Documentation
¶
Overview ¶
Package testcontext provides a test context for platformvm tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
context.Context
NetworkID uint32 // 1=mainnet, 2=testnet
ChainID ids.ID
NodeID ids.NodeID
PublicKey interface{} // BLS public key
XChainID ids.ID
CChainID ids.ID
DChainID ids.ID
XAssetID ids.ID // Primary asset ID (X-chain native)
ValidatorState interface{}
WarpSigner interface{}
Log log.Logger
Lock *sync.RWMutex
BCLookup ids.AliaserReader
ChainDataDir string
Keystore interface{}
Signer interface{}
}
Context provides a test context that mimics the old context.Context for compatibility with existing tests
Click to show internal directories.
Click to hide internal directories.