mocks

package
v0.20.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimulatedTestBackend

type SimulatedTestBackend struct {
	mock.Mock
}

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

func (_m *SimulatedTestBackend) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, b

func (*SimulatedTestBackend) BatchContext

func (_m *SimulatedTestBackend) BatchContext(ctx context.Context, calls ...w3types.Caller) error

BatchContext provides a mock function with given fields: ctx, calls

func (*SimulatedTestBackend) BatchWithContext added in v0.1.7

func (_m *SimulatedTestBackend) BatchWithContext(ctx context.Context, calls ...w3types.Caller) error

BatchWithContext 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) ChainID

func (_m *SimulatedTestBackend) ChainID(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

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) 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

func (_m *SimulatedTestBackend) GetNextNonce(address common.Address) (*big.Int, error)

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) NetworkID

func (_m *SimulatedTestBackend) NetworkID(ctx context.Context) (*big.Int, error)

NetworkID provides a mock function with given fields: ctx

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) Store added in v0.1.7

func (_m *SimulatedTestBackend) Store(key *keystore.Key)

Store provides a mock function with given fields: key

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

func (_m *SimulatedTestBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*SimulatedTestBackend) SuggestGasTipCap

func (_m *SimulatedTestBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

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

func (*SimulatedTestBackend) Web3Version added in v0.7.0

func (_m *SimulatedTestBackend) Web3Version(ctx context.Context) (string, error)

Web3Version provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL