Documentation ¶
Index ¶
- func BytesArrayToVals(data []byte, valCount uint64) []value.Value
- func PathSliceToInt(path []bool) *big.Int
- type ChainParams
- func (cp ChainParams) Equals(cp2 ChainParams) bool
- func (cp ChainParams) WithArbGasSpeedLimitPerSecond(limit uint64) ChainParams
- func (cp ChainParams) WithGracePeriod(period *common.TimeBlocks) ChainParams
- func (cp ChainParams) WithMaxExecutionSteps(steps uint64) ChainParams
- func (cp ChainParams) WithStakeRequirement(amount *big.Int) ChainParams
- func (cp ChainParams) WithStakeToken(address common.Address) ChainParams
- type ExecutionAssertion
- type MerkleTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesArrayToVals ¶ added in v0.7.3
func PathSliceToInt ¶ added in v0.8.0
Types ¶
type ChainParams ¶ added in v0.8.0
type ChainParams struct { StakeRequirement *big.Int StakeToken common.Address GracePeriod *common.TimeBlocks MaxExecutionSteps uint64 ArbGasSpeedLimitPerSecond uint64 }
If StakeToken is 0, stake requirement is ETH measured in Wei, otherwise stake requirement is units of stakeStoken
func NewRandomChainParams ¶ added in v0.8.0
func NewRandomChainParams() ChainParams
func (ChainParams) Equals ¶ added in v0.8.0
func (cp ChainParams) Equals(cp2 ChainParams) bool
func (ChainParams) WithArbGasSpeedLimitPerSecond ¶ added in v0.8.0
func (cp ChainParams) WithArbGasSpeedLimitPerSecond(limit uint64) ChainParams
func (ChainParams) WithGracePeriod ¶ added in v0.8.0
func (cp ChainParams) WithGracePeriod(period *common.TimeBlocks) ChainParams
func (ChainParams) WithMaxExecutionSteps ¶ added in v0.8.0
func (cp ChainParams) WithMaxExecutionSteps(steps uint64) ChainParams
func (ChainParams) WithStakeRequirement ¶ added in v0.8.0
func (cp ChainParams) WithStakeRequirement(amount *big.Int) ChainParams
func (ChainParams) WithStakeToken ¶ added in v0.8.0
func (cp ChainParams) WithStakeToken(address common.Address) ChainParams
type ExecutionAssertion ¶ added in v0.4.0
type MerkleTree ¶ added in v0.8.0
type MerkleTree struct {
// contains filtered or unexported fields
}
func NewMerkleTree ¶ added in v0.8.0
func NewMerkleTree(elements [][32]byte) *MerkleTree
func (*MerkleTree) GetProof ¶ added in v0.8.0
func (m *MerkleTree) GetProof(index int) ([][32]byte, *big.Int)
func (*MerkleTree) GetRoot ¶ added in v0.8.0
func (m *MerkleTree) GetRoot() common.Hash
Click to show internal directories.
Click to hide internal directories.