Documentation ¶
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k keeper.Keeper, proposer types.PubKeySecp256k1) []abci.Validator
- func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data GenesisState) ([]abci.Validator, error)
- func NewHandler(k keeper.Keeper) sdk.Handler
- func NewQuerier(k keep.Keeper, cdc *wire.Codec) sdk.Querier
- func RegisterCodec(cdc *wire.Codec) *wire.Codec
- type GenesisState
- type QueryBondsParams
- type QueryDelegationParams
- type QueryDelegatorParams
- type QueryValidatorDistParams
- type QueryValidatorParams
Constants ¶
View Source
const ( QueryValidators = "validators" QueryValidator = "validator" QueryDelegator = "delegator" QueryDelegation = "delegation" QueryUnbondingDelegation = "unbondingDelegation" QueryDelegatorValidators = "delegatorValidators" QueryDelegatorValidator = "delegatorValidator" QueryPool = "pool" QueryParameters = "parameters" QueryValidatorDistInfo = "validatorDistInfo" )
query endpoints supported by the staking Querier
Variables ¶
View Source
var (
ValidatorChanged = false
)
Functions ¶
func EndBlocker ¶
func InitGenesis ¶
Types ¶
type GenesisState ¶
type GenesisState struct { Pool posTypes.Pool `json:"pool"` Params posTypes.Params `json:"params"` Validators []posTypes.Validator `json:"validators"` Bonds []posTypes.Delegation `json:"bonds"` }
GenesisState - all staking state that must be provided at genesis
func GenerateGenesis ¶
func GenerateGenesis(pubKey types.PubKeySecp256k1) GenesisState
func NewGenesisState ¶
func NewGenesisState(pool posTypes.Pool, params posTypes.Params, validators []posTypes.Validator, bonds []posTypes.Delegation) GenesisState
type QueryBondsParams ¶
defines the params for the following queries: - 'custom/stake/delegation' - 'custom/stake/unbondingDelegation' - 'custom/stake/delegatorValidator'
type QueryDelegationParams ¶
type QueryDelegatorParams ¶
defines the params for the following queries: - 'custom/stake/delegator' - 'custom/stake/delegatorValidators'
type QueryValidatorParams ¶
defines the params for the following queries: - 'custom/stake/validator'
Click to show internal directories.
Click to hide internal directories.