Documentation ¶
Index ¶
- func MustGetDefaultChain(t testing.TB, cc evm.ChainSet) evm.Chain
- func NewChainScopedConfig(t testing.TB, cfg evm.GeneralConfig) evmconfig.ChainScopedConfig
- func NewChainSet(t testing.TB, testopts TestChainOpts) evm.ChainSet
- func NewChainSetOpts(t testing.TB, testopts TestChainOpts) evm.ChainSetOpts
- func NewEthClientMock(t *testing.T) *evmclimocks.Client
- func NewEthClientMockWithDefaultChain(t *testing.T) *evmclimocks.Client
- func NewMockChainSetWithChain(t testing.TB, ch evm.Chain) *evmmocks.ChainSet
- type MockEth
- type RawSub
- type TestChainOpts
- type TestConfigs
- func (mo *TestConfigs) Chains(offset int, limit int, ids ...string) (cs []types.ChainStatus, count int, err error)
- func (mo *TestConfigs) Node(name string) (evmtypes.Node, error)
- func (mo *TestConfigs) NodeStatusesPaged(offset int, limit int, chainIDs ...string) (nodes []types.NodeStatus, cnt int, err error)
- func (mo *TestConfigs) Nodes(chainID utils.Big) (nodes []evmtypes.Node, err error)
- func (mo *TestConfigs) PutChains(cs ...v2.EVMConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChainScopedConfig ¶
func NewChainScopedConfig(t testing.TB, cfg evm.GeneralConfig) evmconfig.ChainScopedConfig
func NewChainSet ¶
func NewChainSet(t testing.TB, testopts TestChainOpts) evm.ChainSet
NewChainSet returns a simple chain collection with one chain and allows to mock client/config on that chain
func NewChainSetOpts ¶
func NewChainSetOpts(t testing.TB, testopts TestChainOpts) evm.ChainSetOpts
func NewEthClientMock ¶
func NewEthClientMock(t *testing.T) *evmclimocks.Client
func NewEthClientMockWithDefaultChain ¶
func NewEthClientMockWithDefaultChain(t *testing.T) *evmclimocks.Client
Types ¶
type MockEth ¶
type MockEth struct { EthClient *evmclimocks.Client CheckFilterLogs func(int64, int64) // contains filtered or unexported fields }
func (*MockEth) SubscribeCallCount ¶
func (*MockEth) UnsubscribeCallCount ¶
type TestChainOpts ¶
type TestChainOpts struct { Client evmclient.Client LogBroadcaster log.Broadcaster LogPoller logpoller.LogPoller GeneralConfig evm.GeneralConfig HeadTracker httypes.HeadTracker DB *sqlx.DB TxManager txmgr.EvmTxManager KeyStore keystore.Eth MailMon *utils.MailboxMonitor GasEstimator gas.EvmFeeEstimator }
type TestConfigs ¶ added in v2.1.0
type TestConfigs struct { v2.EVMConfigs // contains filtered or unexported fields }
func NewTestConfigs ¶ added in v2.1.0
func NewTestConfigs(cs ...*v2.EVMConfig) *TestConfigs
func (*TestConfigs) Chains ¶ added in v2.1.0
func (mo *TestConfigs) Chains(offset int, limit int, ids ...string) (cs []types.ChainStatus, count int, err error)
func (*TestConfigs) Node ¶ added in v2.1.0
func (mo *TestConfigs) Node(name string) (evmtypes.Node, error)
func (*TestConfigs) NodeStatusesPaged ¶ added in v2.1.0
func (mo *TestConfigs) NodeStatusesPaged(offset int, limit int, chainIDs ...string) (nodes []types.NodeStatus, cnt int, err error)
func (*TestConfigs) PutChains ¶ added in v2.1.0
func (mo *TestConfigs) PutChains(cs ...v2.EVMConfig)
Click to show internal directories.
Click to hide internal directories.