Documentation ¶
Overview ¶
Package netconf provides the configuration of an Story network, an instance of the Story cross chain protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain struct { ID uint64 // Chain ID asa per https://chainlist.org Name string // Chain name as per https://chainlist.org // RPCURL string // RPC URL of the chain BlockPeriod time.Duration // Block period of the chain }
Chain defines the configuration of an execution chain that supports the Story cross chain protocol. This is most supported EVMs, but also the Story EVM, and the Story Consensus chain.
type Deployment ¶
type ID ¶
type ID string
ID is a network identifier.
type Network ¶
type Network struct { ID ID `json:"name"` // ID of the network. e.g. "simnet", "testnet", "staging", "mainnet" Chains []Chain `json:"chains"` // Chains that are part of the network }
Network defines a deployment of the Story cross chain protocol. It spans an story chain (both execution and consensus) and a set of supported EVMs.
type Static ¶
type Static struct { Version string StoryExecutionChainID uint64 MaxValidators uint32 ConsensusGenesisJSON []byte ConsensusSeedTXT []byte ExecutionGenesisJSON []byte ExecutionSeedTXT []byte }
Static defines static config and data for a network.
func (Static) ConsensusSeeds ¶
func (Static) StoryConsensusChainIDStr ¶
StoryConsensusChainIDStr returns the chain ID string for the Story consensus client.
Click to show internal directories.
Click to hide internal directories.