package
0.3.0-dev
Repository: https://github.com/celer-network/sgn.git
Documentation: pkg.go.dev

# Functions

ActiveChangeQueueKey returns the key for a changeID in the activeChangeQueue.
ChangeKey gets a specific change from the store.
ChangeStatusFromString turns a string into a ChangeStatus.
DefaultGenesisState defines the default sync genesis state.
DefaultParams default sync params.
DefaultTallyParams default parameters for tallying.
DefaultVotingParams default parameters for voting.
GetChangeIDBytes returns the byte representation of the changeID.
GetChangeIDFromBytes returns changeID in uint64 format from a byte array.
NewChange creates a new Change instance.
NewGenesisState creates a new genesis state for the sync module.
NewMsgApprove creates a message to cast a vote on an active change.
NewMsgSubmitChange creates a new MsgSubmitChange instance.
NewParams creates a new sync Params instance.
NewQueryChangeParams creates a new instance of QueryChangeParams.
NewQueryChangesParams creates a new instance of QueryChangesParams.
NewTallyParams creates a new TallyParams object.
NewVotingParams creates a new VotingParams object.
ParamKeyTable - Key declaration for parameters.
RegisterChangeTypeCodec registers an external change content type defined in another module for the internal ModuleCdc.
RegisterCodec registers all the necessary types and interfaces for sync.
ValidateGenesis checks if parameters are within valid ranges.
ValidChangeStatus returns true if the change status is valid and false otherwise.

# Constants

Governance module event types.
Governance module event types.
Governance module event types.
error on change handler.
met vote quorum.
Sync message types and routes.
DefaultParamspace default name for parameter store.
15 seconds.
DefaultStartingChangeID is 1.
Governance module event types.
Governance module event types.
Sync message types and routes.
Sync message types and routes.
Sync message types and routes.
ModuleName is the name of the module.
query endpoints supported by the sync Querier.
query endpoints supported by the sync Querier.
QuerierRoute is the querier route for sync.
query endpoints supported by the sync Querier.
query endpoints supported by the sync Querier.
query endpoints supported by the sync Querier.
query endpoints supported by the sync Querier.
RouterKey is the message route for sync.
Valid Change statuses.
Valid Change statuses.
Valid Change statuses.
Valid Change statuses.
StoreKey is the store key string for sync.
Sync message types and routes.
Sync message types and routes.
Sync message types and routes.
Sync message types and routes.
Sync message types and routes.
Sync message types and routes.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
Default sync params.
x/sync module sentinel errors.
x/sync module sentinel errors.
x/sync module sentinel errors.
x/sync module sentinel errors.
x/sync module sentinel errors.
module codec.
Parameter store key.
Parameter store key.

# Structs

Change defines a struct used by the sync module to allow for voting on network changes.
GenesisState - all staking state that must be provided at genesis.
MsgApprove defines a message to cast a vote.
MsgSubmitChange defines a message to create a sync change.
Params returns all of the sync params.
QueryChangeParams Params for queries: - 'custom/sync/change' - 'custom/sync/deposits' - 'custom/sync/tally'.
QueryChangesParams Params for query 'custom/sync/changes'.
TallyParams defines the params around Tallying votes in sync.
VotingParams defines the params around Voting in sync.

# Interfaces

ParamSubspace defines the expected Subspace interface for parameters (noalias).

# Type aliases

No description provided by the author
Changes is an array of change.
No description provided by the author