Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2022 v1.0.0 Jun 19, 2022 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 (b *SimulatedBackend) AcceptedCallContract(ctx context.Context, call interfaces.CallMsg) ([]byte, error) + func (b *SimulatedBackend) AcceptedCodeAt(ctx context.Context, contract common.Address) ([]byte, error) + func (b *SimulatedBackend) AcceptedNonceAt(ctx context.Context, account common.Address) (uint64, error) + 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 interfaces.CallMsg, blockNumber *big.Int) ([]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) Commit(accept bool) + func (b *SimulatedBackend) EstimateGas(ctx context.Context, call interfaces.CallMsg) (uint64, error) + func (b *SimulatedBackend) FilterLogs(ctx context.Context, query interfaces.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) 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 interfaces.FilterQuery, ch chan<- types.Log) (interfaces.Subscription, error) + func (b *SimulatedBackend) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (interfaces.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)