Documentation ¶
Index ¶
- Constants
- func NewGeneralConfig(t testing.TB, overrideFn func(*erinaceus.Config, *erinaceus.Secrets)) erinaceus.GeneralConfig
- func NewGeneralConfigSimulated(t testing.TB, overrideFn func(*erinaceus.Config, *erinaceus.Secrets)) erinaceus.GeneralConfig
- func NewTestGeneralConfig(t testing.TB) erinaceus.GeneralConfig
- func WriteTOMLFile(t *testing.T, contents any, fileName string) string
Constants ¶
View Source
const DefaultPeerID = "12D3KooWPjceQrSwdWXPyLLeABRXmuqt69Rg3sBYbU1Nft9HyQ6X"
Variables ¶
This section is empty.
Functions ¶
func NewGeneralConfig ¶
func NewGeneralConfig(t testing.TB, overrideFn func(*erinaceus.Config, *erinaceus.Secrets)) erinaceus.GeneralConfig
NewGeneralConfig returns a new erinaceus.GeneralConfig with overrides. The default test overrides are applied before overrideFn, and include one chain with evmclient.NullClientChainID.
func NewGeneralConfigSimulated ¶
func NewGeneralConfigSimulated(t testing.TB, overrideFn func(*erinaceus.Config, *erinaceus.Secrets)) erinaceus.GeneralConfig
NewGeneralConfigSimulated returns a new erinaceus.GeneralConfig with overrides, including the simulated EVM chain. The default test overrides are applied before overrideFn. The simulated chain (testutils.SimulatedChainID) replaces the null chain (evmclient.NullClientChainID).
func NewTestGeneralConfig ¶
func NewTestGeneralConfig(t testing.TB) erinaceus.GeneralConfig
NewTestGeneralConfig returns a new erinaceus.GeneralConfig with default test overrides and one chain with evmclient.NullClientChainID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.