Versions in this module Expand all Collapse all v0 v0.0.2 Oct 1, 2024 v0.0.1 Jun 25, 2024 Changes in this version + var ReservedRanges = []AddressRange + var UsedAddresses = []common.Address + func CalculateFunctionSelector(functionSignature string) []byte + func CheckConfigure(chainConfig ChainConfig, parentTimestamp *uint64, blockContext BlockContext, ...) + type AddressRange struct + End common.Address + Start common.Address + func (a *AddressRange) Contains(addr common.Address) bool + type BlockContext interface + Number func() *big.Int + Timestamp func() uint64 + type ChainConfig interface + type PrecompileAccessibleState interface + GetBlockContext func() BlockContext + GetStateDB func() StateDB + NativeAssetCall func(caller common.Address, input []byte, suppliedGas uint64, gasGost uint64, ...) (ret []byte, remainingGas uint64, err error) + type RunStatefulPrecompileFunc func(accessibleState PrecompileAccessibleState, caller common.Address, ...) (ret []byte, remainingGas uint64, err error) + type StateDB interface + AddBalance func(common.Address, *big.Int) + AddBalanceMultiCoin func(common.Address, common.Hash, *big.Int) + CreateAccount func(common.Address) + Exist func(common.Address) bool + GetBalance func(common.Address) *big.Int + GetBalanceMultiCoin func(common.Address, common.Hash) *big.Int + GetNonce func(common.Address) uint64 + GetState func(common.Address, common.Hash) common.Hash + SetCode func(common.Address, []byte) + SetNonce func(common.Address, uint64) + SetState func(common.Address, common.Hash, common.Hash) + SubBalance func(common.Address, *big.Int) + SubBalanceMultiCoin func(common.Address, common.Hash, *big.Int) + type StatefulPrecompileConfig interface + Address func() common.Address + Configure func(ChainConfig, StateDB, BlockContext) + Contract func() StatefulPrecompiledContract + Timestamp func() *uint64 + type StatefulPrecompiledContract interface + Run func(accessibleState PrecompileAccessibleState, caller common.Address, ...) (ret []byte, remainingGas uint64, err error)