Documentation ¶
Overview ¶
Package test provides helper and setup functions to test the substrate package.
Index ¶
Constants ¶
View Source
const PastBlocks = 100
PastBlocks defines how many blocks into the past the event subs should query. Must be large enough to ensure that event subs can query all past events of the current test.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainCfg ¶
type ChainCfg struct { // ChainUrl is the url of the chain's RPC endpoint. ChainUrl string `json:"chain_url"` // Network is the network ID. NetworkID substrate.NetworkID `json:"network_id"` // BlockTime is the block time of the node in milli seconds. BlockTimeMs uint32 `json:"block_time_ms"` BlockTime time.Duration }
func LoadChainCfg ¶
Click to show internal directories.
Click to hide internal directories.