Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2023 v1.0.1 Dec 19, 2023 Changes in this version + type SimulatedBackend struct + func NewSimulatedBackend(alloc core.GenesisAlloc, gasLimit uint64) *SimulatedBackend + func NewSimulatedBackendWithDatabase(database ethdb.Database, alloc core.GenesisAlloc, gasLimit uint64) *SimulatedBackend + func NewSimulatedBackendWithOpts(opts ...SimulatedBackendOpt) *SimulatedBackend + func (b *SimulatedBackend) AdjustTime(adjustment time.Duration) error + func (b *SimulatedBackend) BalanceAt(ctx context.Context, contract common.Address, blockNumber *big.Int) (*big.Int, error) + func (b *SimulatedBackend) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) + func (b *SimulatedBackend) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) + func (b *SimulatedBackend) Blockchain() *core.BlockChain + func (b *SimulatedBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + func (b *SimulatedBackend) CallContractAtHash(ctx context.Context, call ethereum.CallMsg, blockHash common.Hash) ([]byte, error) + func (b *SimulatedBackend) Close() error + func (b *SimulatedBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) + func (b *SimulatedBackend) CodeAtHash(ctx context.Context, contract common.Address, blockHash common.Hash) ([]byte, error) + func (b *SimulatedBackend) Commit() common.Hash + func (b *SimulatedBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error) + func (b *SimulatedBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error) + func (b *SimulatedBackend) Fork(ctx context.Context, parent common.Hash) error + func (b *SimulatedBackend) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error) + func (b *SimulatedBackend) HeaderByNumber(ctx context.Context, block *big.Int) (*types.Header, error) + func (b *SimulatedBackend) NonceAt(ctx context.Context, contract common.Address, blockNumber *big.Int) (uint64, error) + func (b *SimulatedBackend) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error) + func (b *SimulatedBackend) PendingCodeAt(ctx context.Context, contract common.Address) ([]byte, error) + func (b *SimulatedBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) + func (b *SimulatedBackend) Rollback() + func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error + func (b *SimulatedBackend) StorageAt(ctx context.Context, contract common.Address, key common.Hash, ...) ([]byte, error) + func (b *SimulatedBackend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + func (b *SimulatedBackend) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) + func (b *SimulatedBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error) + func (b *SimulatedBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error) + func (b *SimulatedBackend) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error) + func (b *SimulatedBackend) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error) + func (b *SimulatedBackend) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error) + func (b *SimulatedBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type SimulatedBackendOpt func(s *simulatedBackendConfig) + func WithAlloc(alloc core.GenesisAlloc) SimulatedBackendOpt + func WithCacheConfig(cacheConfig *core.CacheConfig) SimulatedBackendOpt + func WithConsensus(consensus consensus.Engine) SimulatedBackendOpt + func WithDatabase(database ethdb.Database) SimulatedBackendOpt + func WithGasLimit(gasLimit uint64) SimulatedBackendOpt + func WithGenesis(genesis core.Genesis) SimulatedBackendOpt + func WithVMConfig(vmConfig vm.Config) SimulatedBackendOpt