Documentation ¶
Index ¶
- type SimulatedTestBackend
- func (_m *SimulatedTestBackend) AttemptReconnect() bool
- func (_m *SimulatedTestBackend) BackendName() string
- func (_m *SimulatedTestBackend) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *SimulatedTestBackend) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *SimulatedTestBackend) BatchContext(ctx context.Context, calls ...w3types.Caller) error
- func (_m *SimulatedTestBackend) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *SimulatedTestBackend) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *SimulatedTestBackend) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *SimulatedTestBackend) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *SimulatedTestBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *SimulatedTestBackend) ChainConfig() *params.ChainConfig
- func (_m *SimulatedTestBackend) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *SimulatedTestBackend) ChainName() string
- func (_m *SimulatedTestBackend) ClearNonce(address common.Address)
- func (_m *SimulatedTestBackend) ClientID() string
- func (_m *SimulatedTestBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *SimulatedTestBackend) ConcurrencyCount() int32
- func (_m *SimulatedTestBackend) EnableTenderly() bool
- func (_m *SimulatedTestBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *SimulatedTestBackend) Estimator() gas.PriceEstimator
- func (_m *SimulatedTestBackend) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (_m *SimulatedTestBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (_m *SimulatedTestBackend) FundAccount(ctx context.Context, address common.Address, amount big.Int)
- func (_m *SimulatedTestBackend) GasSetter() gas.Setter
- func (_m *SimulatedTestBackend) GetBigChainID() *big.Int
- func (_m *SimulatedTestBackend) GetChainID() uint
- func (_m *SimulatedTestBackend) GetFundedAccount(ctx context.Context, requestBalance *big.Int) *keystore.Key
- func (_m *SimulatedTestBackend) GetHeightWatcher() chainwatcher.BlockHeightWatcher
- func (_m *SimulatedTestBackend) GetNextNonce(address common.Address) (*big.Int, error)
- func (_m *SimulatedTestBackend) GetTxContext(ctx context.Context, address *common.Address) backends.AuthType
- func (_m *SimulatedTestBackend) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *SimulatedTestBackend) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *SimulatedTestBackend) HeaderByTime(ctx context.Context, startBlock *big.Int, searchTime time.Time) (*types.Header, error)
- func (_m *SimulatedTestBackend) ImpersonateAccount(ctx context.Context, address common.Address, ...) error
- func (_m *SimulatedTestBackend) NetworkID(ctx context.Context) (*big.Int, error)
- func (_m *SimulatedTestBackend) NewKeyedTransactor(realSigner *bind.TransactOpts) (*bind.TransactOpts, error)
- func (_m *SimulatedTestBackend) NewKeyedTransactorFromKey(key *ecdsa.PrivateKey) (*bind.TransactOpts, error)
- func (_m *SimulatedTestBackend) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *SimulatedTestBackend) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *SimulatedTestBackend) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
- func (_m *SimulatedTestBackend) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *SimulatedTestBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *SimulatedTestBackend) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *SimulatedTestBackend) PendingTransactionCount(ctx context.Context) (uint, error)
- func (_m *SimulatedTestBackend) RPCAddress() string
- func (_m *SimulatedTestBackend) RequestCount() int64
- func (_m *SimulatedTestBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *SimulatedTestBackend) SetChainConfig(config *params.ChainConfig)
- func (_m *SimulatedTestBackend) SetT(t *testing.T)
- func (_m *SimulatedTestBackend) SignTx(ogTx *types.Transaction, signer types.Signer, prv *ecdsa.PrivateKey, ...) (*types.Transaction, error)
- func (_m *SimulatedTestBackend) Signer() types.Signer
- func (_m *SimulatedTestBackend) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (_m *SimulatedTestBackend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *SimulatedTestBackend) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *SimulatedTestBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *SimulatedTestBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *SimulatedTestBackend) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (_m *SimulatedTestBackend) T() *testing.T
- func (_m *SimulatedTestBackend) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *SimulatedTestBackend) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *SimulatedTestBackend) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *SimulatedTestBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (_m *SimulatedTestBackend) VerifyContract(contractType contracts.ContractType, contract contracts.DeployedContract) error
- func (_m *SimulatedTestBackend) WaitForConfirmation(ctx context.Context, transaction *types.Transaction)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimulatedTestBackend ¶
SimulatedTestBackend is an autogenerated mock type for the SimulatedTestBackend type
func NewSimulatedTestBackend ¶
func NewSimulatedTestBackend(t mockConstructorTestingTNewSimulatedTestBackend) *SimulatedTestBackend
NewSimulatedTestBackend creates a new instance of SimulatedTestBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SimulatedTestBackend) AttemptReconnect ¶
func (_m *SimulatedTestBackend) AttemptReconnect() bool
AttemptReconnect provides a mock function with given fields:
func (*SimulatedTestBackend) BackendName ¶
func (_m *SimulatedTestBackend) BackendName() string
BackendName provides a mock function with given fields:
func (*SimulatedTestBackend) BalanceAt ¶
func (_m *SimulatedTestBackend) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceAt provides a mock function with given fields: ctx, account, blockNumber
func (*SimulatedTestBackend) BatchCallContext ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*SimulatedTestBackend) BatchContext ¶
BatchContext provides a mock function with given fields: ctx, calls
func (*SimulatedTestBackend) BlockByHash ¶
func (_m *SimulatedTestBackend) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
BlockByHash provides a mock function with given fields: ctx, hash
func (*SimulatedTestBackend) BlockByNumber ¶
func (_m *SimulatedTestBackend) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
BlockByNumber provides a mock function with given fields: ctx, number
func (*SimulatedTestBackend) BlockNumber ¶
func (_m *SimulatedTestBackend) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber provides a mock function with given fields: ctx
func (*SimulatedTestBackend) CallContext ¶
func (_m *SimulatedTestBackend) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext provides a mock function with given fields: ctx, result, method, args
func (*SimulatedTestBackend) CallContract ¶
func (_m *SimulatedTestBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*SimulatedTestBackend) ChainConfig ¶ added in v0.0.131
func (_m *SimulatedTestBackend) ChainConfig() *params.ChainConfig
ChainConfig provides a mock function with given fields:
func (*SimulatedTestBackend) ChainName ¶
func (_m *SimulatedTestBackend) ChainName() string
ChainName provides a mock function with given fields:
func (*SimulatedTestBackend) ClearNonce ¶ added in v0.0.53
func (_m *SimulatedTestBackend) ClearNonce(address common.Address)
ClearNonce provides a mock function with given fields: address
func (*SimulatedTestBackend) ClientID ¶
func (_m *SimulatedTestBackend) ClientID() string
ClientID provides a mock function with given fields:
func (*SimulatedTestBackend) CodeAt ¶
func (_m *SimulatedTestBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, contract, blockNumber
func (*SimulatedTestBackend) ConcurrencyCount ¶
func (_m *SimulatedTestBackend) ConcurrencyCount() int32
ConcurrencyCount provides a mock function with given fields:
func (*SimulatedTestBackend) EnableTenderly ¶
func (_m *SimulatedTestBackend) EnableTenderly() bool
EnableTenderly provides a mock function with given fields:
func (*SimulatedTestBackend) EstimateGas ¶
func (_m *SimulatedTestBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
EstimateGas provides a mock function with given fields: ctx, call
func (*SimulatedTestBackend) Estimator ¶
func (_m *SimulatedTestBackend) Estimator() gas.PriceEstimator
Estimator provides a mock function with given fields:
func (*SimulatedTestBackend) FeeHistory ¶
func (_m *SimulatedTestBackend) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*ethereum.FeeHistory, error)
FeeHistory provides a mock function with given fields: ctx, blockCount, lastBlock, rewardPercentiles
func (*SimulatedTestBackend) FilterLogs ¶
func (_m *SimulatedTestBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, query
func (*SimulatedTestBackend) FundAccount ¶
func (_m *SimulatedTestBackend) FundAccount(ctx context.Context, address common.Address, amount big.Int)
FundAccount provides a mock function with given fields: ctx, address, amount
func (*SimulatedTestBackend) GasSetter ¶
func (_m *SimulatedTestBackend) GasSetter() gas.Setter
GasSetter provides a mock function with given fields:
func (*SimulatedTestBackend) GetBigChainID ¶
func (_m *SimulatedTestBackend) GetBigChainID() *big.Int
GetBigChainID provides a mock function with given fields:
func (*SimulatedTestBackend) GetChainID ¶
func (_m *SimulatedTestBackend) GetChainID() uint
GetChainID provides a mock function with given fields:
func (*SimulatedTestBackend) GetFundedAccount ¶
func (_m *SimulatedTestBackend) GetFundedAccount(ctx context.Context, requestBalance *big.Int) *keystore.Key
GetFundedAccount provides a mock function with given fields: ctx, requestBalance
func (*SimulatedTestBackend) GetHeightWatcher ¶
func (_m *SimulatedTestBackend) GetHeightWatcher() chainwatcher.BlockHeightWatcher
GetHeightWatcher provides a mock function with given fields:
func (*SimulatedTestBackend) GetNextNonce ¶
GetNextNonce provides a mock function with given fields: address
func (*SimulatedTestBackend) GetTxContext ¶
func (_m *SimulatedTestBackend) GetTxContext(ctx context.Context, address *common.Address) backends.AuthType
GetTxContext provides a mock function with given fields: ctx, address
func (*SimulatedTestBackend) HeaderByHash ¶
func (_m *SimulatedTestBackend) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
HeaderByHash provides a mock function with given fields: ctx, hash
func (*SimulatedTestBackend) HeaderByNumber ¶
func (_m *SimulatedTestBackend) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber provides a mock function with given fields: ctx, number
func (*SimulatedTestBackend) HeaderByTime ¶
func (_m *SimulatedTestBackend) HeaderByTime(ctx context.Context, startBlock *big.Int, searchTime time.Time) (*types.Header, error)
HeaderByTime provides a mock function with given fields: ctx, startBlock, searchTime
func (*SimulatedTestBackend) ImpersonateAccount ¶
func (_m *SimulatedTestBackend) ImpersonateAccount(ctx context.Context, address common.Address, transact func(*bind.TransactOpts) *types.Transaction) error
ImpersonateAccount provides a mock function with given fields: ctx, address, transact
func (*SimulatedTestBackend) NewKeyedTransactor ¶
func (_m *SimulatedTestBackend) NewKeyedTransactor(realSigner *bind.TransactOpts) (*bind.TransactOpts, error)
NewKeyedTransactor provides a mock function with given fields: realSigner
func (*SimulatedTestBackend) NewKeyedTransactorFromKey ¶
func (_m *SimulatedTestBackend) NewKeyedTransactorFromKey(key *ecdsa.PrivateKey) (*bind.TransactOpts, error)
NewKeyedTransactorFromKey provides a mock function with given fields: key
func (*SimulatedTestBackend) NonceAt ¶
func (_m *SimulatedTestBackend) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt provides a mock function with given fields: ctx, account, blockNumber
func (*SimulatedTestBackend) PendingBalanceAt ¶
func (_m *SimulatedTestBackend) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*SimulatedTestBackend) PendingCallContract ¶
func (_m *SimulatedTestBackend) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
PendingCallContract provides a mock function with given fields: ctx, call
func (*SimulatedTestBackend) PendingCodeAt ¶
func (_m *SimulatedTestBackend) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
PendingCodeAt provides a mock function with given fields: ctx, account
func (*SimulatedTestBackend) PendingNonceAt ¶
func (_m *SimulatedTestBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
PendingNonceAt provides a mock function with given fields: ctx, account
func (*SimulatedTestBackend) PendingStorageAt ¶
func (_m *SimulatedTestBackend) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt provides a mock function with given fields: ctx, account, key
func (*SimulatedTestBackend) PendingTransactionCount ¶
func (_m *SimulatedTestBackend) PendingTransactionCount(ctx context.Context) (uint, error)
PendingTransactionCount provides a mock function with given fields: ctx
func (*SimulatedTestBackend) RPCAddress ¶
func (_m *SimulatedTestBackend) RPCAddress() string
RPCAddress provides a mock function with given fields:
func (*SimulatedTestBackend) RequestCount ¶
func (_m *SimulatedTestBackend) RequestCount() int64
RequestCount provides a mock function with given fields:
func (*SimulatedTestBackend) SendTransaction ¶
func (_m *SimulatedTestBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*SimulatedTestBackend) SetChainConfig ¶
func (_m *SimulatedTestBackend) SetChainConfig(config *params.ChainConfig)
SetChainConfig provides a mock function with given fields: config
func (*SimulatedTestBackend) SetT ¶
func (_m *SimulatedTestBackend) SetT(t *testing.T)
SetT provides a mock function with given fields: t
func (*SimulatedTestBackend) SignTx ¶
func (_m *SimulatedTestBackend) SignTx(ogTx *types.Transaction, signer types.Signer, prv *ecdsa.PrivateKey, options ...nonce.Option) (*types.Transaction, error)
SignTx provides a mock function with given fields: ogTx, signer, prv, options
func (*SimulatedTestBackend) Signer ¶
func (_m *SimulatedTestBackend) Signer() types.Signer
Signer provides a mock function with given fields:
func (*SimulatedTestBackend) StorageAt ¶
func (_m *SimulatedTestBackend) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error)
StorageAt provides a mock function with given fields: ctx, account, key, blockNumber
func (*SimulatedTestBackend) SubscribeFilterLogs ¶
func (_m *SimulatedTestBackend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, query, ch
func (*SimulatedTestBackend) SubscribeNewHead ¶
func (_m *SimulatedTestBackend) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*SimulatedTestBackend) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*SimulatedTestBackend) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*SimulatedTestBackend) SyncProgress ¶
func (_m *SimulatedTestBackend) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
SyncProgress provides a mock function with given fields: ctx
func (*SimulatedTestBackend) T ¶
func (_m *SimulatedTestBackend) T() *testing.T
T provides a mock function with given fields:
func (*SimulatedTestBackend) TransactionByHash ¶
func (_m *SimulatedTestBackend) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
func (*SimulatedTestBackend) TransactionCount ¶
func (_m *SimulatedTestBackend) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
TransactionCount provides a mock function with given fields: ctx, blockHash
func (*SimulatedTestBackend) TransactionInBlock ¶
func (_m *SimulatedTestBackend) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
func (*SimulatedTestBackend) TransactionReceipt ¶
func (_m *SimulatedTestBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
func (*SimulatedTestBackend) VerifyContract ¶
func (_m *SimulatedTestBackend) VerifyContract(contractType contracts.ContractType, contract contracts.DeployedContract) error
VerifyContract provides a mock function with given fields: contractType, contract
func (*SimulatedTestBackend) WaitForConfirmation ¶
func (_m *SimulatedTestBackend) WaitForConfirmation(ctx context.Context, transaction *types.Transaction)
WaitForConfirmation provides a mock function with given fields: ctx, transaction