Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName defines the name of the module ModuleName = "sidechannel" // StoreKey is the store key string for bor StoreKey = ModuleName // RouterKey is the message route for bor RouterKey = ModuleName // QuerierRoute is the querier route for bor QuerierRoute = ModuleName // DefaultParamspace default name for parameter store DefaultParamspace = ModuleName // TStoreKey is the string store key for the param transient store TStoreKey = "transient_params" )
Variables ¶
View Source
var ( // TxsKeyPrefix prefix for txs TxsKeyPrefix = []byte{0x01} // ValidatorsKeyPrefix prefix for validators ValidatorsKeyPrefix = []byte{0x02} )
View Source
var ModuleCdc = codec.New()
ModuleCdc module codec
Functions ¶
func TxStoreKey ¶
TxStoreKey returns key used to get tx from store
func TxsStoreKey ¶
TxsStoreKey returns key used to get txs from store
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis performs basic validation of topup genesis data returning an error for any failed validation criteria.
func ValidatorsKey ¶
ValidatorsKey returns key used to get past-validators from store
Types ¶
type GenesisState ¶
type GenesisState struct {
PastCommits []PastCommit `json:"past_commits" yaml:"past_commits"`
}
GenesisState is the sidechannel state that must be provided at genesis.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns a default genesis state
func NewGenesisState ¶
func NewGenesisState(pastCommits []PastCommit) GenesisState
NewGenesisState creates a new genesis state.
type PastCommit ¶
type PastCommit struct { Height int64 `json:"height" yaml:"height"` Txs tmTypes.Txs `json:"txs" yaml:"txs"` }
PastCommit represent past commit for the record and process side-txs
Click to show internal directories.
Click to hide internal directories.