Documentation ¶
Index ¶
- Constants
- func Dir(rootDir string) string
- func NewNode(application abcitypes.Application, nodecfg NodeConfig) (*tmnode.Node, error)
- type AppState
- type Application
- type BalanceState
- type ChainState
- type Config
- type DomainState
- type GenesisDoc
- type GenesisValidator
- type Node
- type NodeConfig
- type Stake
- type Tracker
Constants ¶
View Source
const ( GenesisFilename = "genesis.json" NodeKeyFilename = "node_key.json" PrivValidatorKeyFilename = "priv_validator_key.json" PrivValidatorStateFilename = "priv_validator_state.json" AddrBookFilename = "addrbook.json" RootDirName = "consensus" ConfigDirName = "config" DataDirName = "data" )
Common file names & directories
Variables ¶
This section is empty.
Functions ¶
func NewNode ¶
func NewNode(application abcitypes.Application, nodecfg NodeConfig) (*tmnode.Node, error)
Types ¶
type AppState ¶
type AppState struct { Currencies balance.Currencies `json:"currencies"` Governance governance.GovernanceState `json:"governance"` Chain ChainState `json:"state"` Balances []BalanceState `json:"balances"` Staking []Stake `json:"staking"` Penalties []identity.Penalty `json:"penalties"` Witness []identity.Witness `json:"witness"` Delegation delegation.DelegationState `json:"delegation"` Rewards rewards.RewardMasterState `json:"rewards"` Domains []DomainState `json:"domains"` Trackers []Tracker `json:"trackers"` Fees []BalanceState `json:"fees"` Proposals []governance.GovProposal `json:"proposals"` NetDelegators network_delegation.State `json:"net_delegators"` DelegatorRew network_delegation.RewardState `json:"delegator_rewards"` Evidences evidence.EvidenceState `json:"evidences"` }
func GenerateState ¶ added in v0.14.0
func NewAppState ¶ added in v0.12.0
func NewAppState(currencies balance.Currencies, balances []BalanceState, staking []Stake, penalties []identity.Penalty, witness []identity.Witness, delegation delegation.DelegationState, rewards rewards.RewardMasterState, domains []DomainState, fees []BalanceState, governance governance.GovernanceState, ) *AppState
type Application ¶
type Application = abci.Application
type BalanceState ¶ added in v0.12.0
type ChainState ¶ added in v0.13.0
type DomainState ¶ added in v0.12.0
type DomainState struct { Owner keys.Address `json:"ownerAddress"` Beneficiary keys.Address `json:"beneficiary"` Name string `json:"name"` CreationHeight int64 `json:"creationHeight"` LastUpdateHeight int64 `json:"lastUpdateHeight"` ExpireHeight int64 `json:"expireHeight"` ActiveFlag bool `json:"activeFlag"` OnSaleFlag bool `json:"onSaleFlag"` URI string `json:"uri"` SalePrice *balance.Amount `json:"salePrice"` }
type GenesisDoc ¶
type GenesisDoc = types.GenesisDoc
func NewGenesisDoc ¶
func NewGenesisDoc(chainID string, states AppState) (*GenesisDoc, error)
type GenesisValidator ¶
type GenesisValidator = types.GenesisValidator
type NodeConfig ¶
config is used to provider the right arguments for spinning up a new consensus.Node
func ParseConfig ¶
func ParseConfig(cfg *config.Server) (NodeConfig, error)
func (NodeConfig) GetGenesisDoc ¶ added in v0.12.0
func (nc NodeConfig) GetGenesisDoc() (*types.GenesisDoc, error)
type Tracker ¶ added in v0.14.0
type Tracker struct { Type ethData.ProcessType `json:"type"` State ethData.TrackerState `json:"state"` TrackerName ethchain.TrackerName `json:"trackerName"` SignedETHTx []byte `json:"signedEthTx"` Witnesses []keys.Address `json:"witnesses"` ProcessOwner keys.Address `json:"processOwner"` FinalityVotes []ethData.Vote `json:"finalityVotes"` To []byte `json:"to"` }
TODO: Create More Generic Struct to contain all tracker types.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.