Documentation ¶
Index ¶
- func MustGetDefaultChain(t testing.TB, cc legacyevm.LegacyChainContainer) legacyevm.Chain
- func MustGetDefaultChainID(t testing.TB, evmCfgs evmtoml.EVMConfigs) *big.Int
- func NewChainRelayExtOpts(t testing.TB, testopts TestChainOpts) legacyevm.ChainRelayExtenderConfig
- func NewChainRelayExtenders(t testing.TB, testopts TestChainOpts) *evmrelay.ChainRelayerExtenders
- func NewChainScopedConfig(t testing.TB, cfg legacyevm.AppConfig) evmconfig.ChainScopedConfig
- func NewEthClientMock(t *testing.T) *evmclimocks.Client
- func NewEthClientMockWithDefaultChain(t *testing.T) *evmclimocks.Client
- type MockEth
- type RawSub
- type TestChainOpts
- type TestConfigs
- func (mo *TestConfigs) Chains(chainIDs ...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 string) (nodes []evmtypes.Node, err error)
- func (mo *TestConfigs) PutChains(cs ...evmtoml.EVMConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGetDefaultChain ¶
Deprecated, this is a replacement function for tests for now removed default chain logic
func MustGetDefaultChainID ¶ added in v2.6.0
Deprecated, this is a replacement function for tests for now removed default evmChainID logic
func NewChainRelayExtOpts ¶ added in v2.5.0
func NewChainRelayExtOpts(t testing.TB, testopts TestChainOpts) legacyevm.ChainRelayExtenderConfig
func NewChainRelayExtenders ¶ added in v2.5.0
func NewChainRelayExtenders(t testing.TB, testopts TestChainOpts) *evmrelay.ChainRelayerExtenders
NewChainRelayExtenders returns a simple chain collection with one chain and allows to mock client/config on that chain
func NewChainScopedConfig ¶
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 legacyevm.AppConfig HeadTracker httypes.HeadTracker DB sqlutil.DataSource TxManager txmgr.TxManager KeyStore keystore.Eth MailMon *mailbox.Monitor GasEstimator gas.EvmFeeEstimator }
type TestConfigs ¶ added in v2.1.0
type TestConfigs struct { evmtoml.EVMConfigs // contains filtered or unexported fields }
func NewTestConfigs ¶ added in v2.1.0
func NewTestConfigs(cs ...*evmtoml.EVMConfig) *TestConfigs
func (*TestConfigs) Chains ¶ added in v2.1.0
func (mo *TestConfigs) Chains(chainIDs ...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) Nodes ¶ added in v2.1.0
func (mo *TestConfigs) Nodes(chainID string) (nodes []evmtypes.Node, err error)
Nodes implements evmtypes.Configs
func (*TestConfigs) PutChains ¶ added in v2.1.0
func (mo *TestConfigs) PutChains(cs ...evmtoml.EVMConfig)
Click to show internal directories.
Click to hide internal directories.