package
0.5.7
Repository: https://github.com/initia-labs/initia.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DefaultGenesisState gets the raw genesis raw message for testing.
DefaultParams returns a default set of parameters.
GetGenesisStateFromAppState returns x/staking GenesisState given raw application genesis state.
IsAllBondDenoms returns true if the given coins are subset of bondDenoms.
MustMarshalDelegation returns the delegation bytes.
MustMarshalRED returns the Redelegation bytes.
return the unbonding delegation.
return the unbonding delegation entry.
return the redelegation.
MustUnmarshalDelegation return the unmarshaled delegation from bytes.
unmarshal the current staking params value from store key or panic.
MustUnmarshalRED unmarshals a redelegation from a store value.
unmarshal a unbonding delegation from a store value.
unmarshal a unbonding delegation entry from a store value.
unmarshal a redelegation from a store value.
NewCommission returns an initialized validator commission.
NewCommissionRates returns an initialized validator commission rates.
NewCommissionWithTime returns an initialized validator commission with a specified update time which should be the current block BFT time.
NewDelegation creates a new delegation object nolint:interfacer.
NewDelegationResp creates a new DelegationResponse instance.
No description provided by the author
NewGenesisState creates a new GenesisState instanc e.
NewMsgBeginRedelegate creates a new MsgBeginRedelegate instance.
NewMsgCancelUnbondingDelegation creates a new MsgCancelUnbondingDelegation instance.
No description provided by the author
NewMsgCreateValidator creates a new MsgCreateValidator instance.
NewMsgDelegate creates a new MsgDelegate instance.
NewMsgEditValidator creates a new MsgEditValidator instance nolint:interfacer.
NewMsgUndelegate creates a new MsgUndelegate instance.
No description provided by the author
No description provided by the author
NewParams creates a new Params instance.
NewPool creates a new Pool instance used for queries.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint:interfacer.
No description provided by the author
NewRedelegationEntryResponse creates a new RedelegationEntryResponse instance.
NewRedelegationResponse crates a new RedelegationEntryResponse instance.
NewStakeAuthorization creates a new StakeAuthorization object.
NewUnbondingDelegation - create a new unbonding delegation object nolint:interfacer.
No description provided by the author
NewValidator constructs a new Validator nolint:interfacer.
RegisterInterfaces registers the x/staking interfaces types with the interface registry.
RegisterLegacyAminoCodec registers the necessary x/staking interfaces and concrete types on the provided LegacyAmino codec.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
No description provided by the author
return the delegation.
unmarshal the current staking params value from store key.
UnmarshalRED unmarshals a redelegation from a store value.
unmarshal a unbonding delegation from a store value.
unmarshal a unbonding delegation entry from a store value.
unmarshal a redelegation from a store value.
No description provided by the author

# Constants

staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation.
AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate.
AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate.
AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate.
AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type.
BONDED defines a validator that is bonded.
names used as root for pool module accounts: - NotBondedPool -> "not_bonded_tokens_pool" - BondedPool -> "bonded_tokens_pool".
DefaultHistorical entries is 10000.
Default maximum entries in a UBD/RED pair.
Default maximum number of bonded validators.
DefaultMinVotingPower minimum voting power to get into power update validator set.
No description provided by the author
DefaultUnbondingTime reflects three weeks in seconds as the default unbonding time.
constant used in flags to indicate that description field should not be updated.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
staking module event types.
DOUBLE_SIGN defines a validator that double-signs a block.
DOWNTIME defines a validator that missed signing too many blocks.
UNSPECIFIED defines an empty infraction.
No description provided by the author
No description provided by the author
TODO: Why can't we just have one string description which can be JSON by convention.
No description provided by the author
No description provided by the author
ModuleName is the name of the staking module.
names used as root for pool module accounts: - NotBondedPool -> "not_bonded_tokens_pool" - BondedPool -> "bonded_tokens_pool".
QuerierRoute is the querier route for the staking module.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
query endpoints supported by the staking Querier.
RouterKey is the msg router key for the staking module.
StoreKey is the string store representation.
UNBONDED defines a validator that is not bonded.
UNBONDING defines a validator that is unbonding.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UNSPECIFIED defines an invalid validator status.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
key for a delegation.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/staking module sentinel errors TODO: Many of these errors are redundant.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
x/staking module sentinel errors TODO: Many of these errors are redundant.
prefix for the historical info.
No description provided by the author
No description provided by the author
prefix for each key to a validator index, for bonded validators.
key for the counter for the incrementing id for UnbondingOperations.
prefix for parameters for module x/staking.
prefix for the timestamps in redelegations queue.
prefix for each key for an redelegation, by destination validator operator.
prefix for each key for an redelegation, by source validator operator.
key for a redelegation.
prefix for each key for an unbonding-delegation, by validator operator.
key for an unbonding-delegation.
prefix for the timestamps in unbonding queue.
prefix for an index for looking up unbonding operations by their IDs.
prefix for an index containing the type of unbonding operations.
prefix for the timestamps in validator queue.
prefix for each key to a validator index, by pubkey.
prefix for each key to a validator index, sorted by power.
prefix for each key to a validator.
prefix for each key to a validator index, sorted by power.

# Structs

Commission defines commission parameters for a given validator.
CommissionRates defines the initial commission rates to be used for creating a validator.
Delegation represents the bond with tokens held by an account.
DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.
Description defines a validator description.
DVPair is struct that just has a delegator-validator pair with no other data.
DVPairs defines an array of DVPair objects.
DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data.
DVVTriplets defines an array of DVVTriplet objects.
GenesisState defines the staking module's genesis state.
LastValidatorPower required for validator set update logic.
MsgBeginRedelegate defines a SDK message for performing a redelegation of coins from a delegator and source validator to a destination validator.
MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator.
MsgCancelUnbondingDelegationResponse.
MsgCreateValidator defines a SDK message for creating a new validator.
MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
MsgDelegate defines a SDK message for performing a delegation of coins from a delegator to a validator.
MsgDelegateResponse defines the Msg/Delegate response type.
MsgEditValidator defines a SDK message for editing an existing validator.
MsgEditValidatorResponse defines the Msg/EditValidator response type.
MsgUndelegate defines a SDK message for performing an undelegation from a delegate and a validator.
MsgUndelegateResponse defines the Msg/Undelegate response type.
MsgUpdateParams is the Msg/UpdateParams request type.
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Params defines the parameters for the staking module.
Pool is used for tracking bonded and not-bonded token supply of the bond denomination.
QueryDelegationRequest is request type for the Query/Delegation RPC method.
QueryDelegationResponse is response type for the Query/Delegation RPC method.
QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.
QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.
defines the params for the following queries: - 'custom/staking/delegatorDelegations' - 'custom/staking/delegatorUnbondingDelegations' - 'custom/staking/delegatorValidators'.
QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.
QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.
QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.
QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.
QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.
QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.
QueryParamsRequest is request type for the Query/Params RPC method.
QueryParamsResponse is response type for the Query/Params RPC method.
QueryPoolRequest is request type for the Query/Pool RPC method.
QueryPoolResponse is response type for the Query/Pool RPC method.
defines the params for the following queries: - 'custom/staking/redelegation'.
QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.
QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.
QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.
QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.
QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method.
QueryValidatorDelegationsResponse is response type for the Query/ValidatorDelegations RPC method.
defines the params for the following queries: - 'custom/staking/validator' - 'custom/staking/validatorDelegations' - 'custom/staking/validatorUnbondingDelegations'.
QueryValidatorRequest is response type for the Query/Validator RPC method.
QueryValidatorResponse is response type for the Query/Validator RPC method.
QueryValidatorsParams defines the params for the following queries: - 'custom/staking/validators'.
QueryValidatorsRequest is request type for Query/Validators RPC method.
QueryValidatorsResponse is response type for the Query/Validators RPC method.
QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method.
QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.
Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.
RedelegationEntry defines a redelegation object with relevant metadata.
RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.
RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.
StakeAuthorization defines authorization for delegate/undelegate/redelegate.
No description provided by the author
No description provided by the author
Validators defines list of validator addresses.
StakingHooksWrapper is a wrapper for modules to inject StakingHooks using depinject.
UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.
UnbondingDelegationEntry defines an unbonding object with relevant metadata.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
ValAddresses defines a repeated set of validator addresses.
Validator defines a validator, together with the total amount of the Validator's bond shares and their exchange rate to coins.
Validators is a collection of Validator.

# Interfaces

AccountKeeper defines the expected account keeper (noalias).
BankKeeper defines the expected interface needed to retrieve account balances.
CommunityPoolKeeper expected community pool keeper (noalias).
DelegationI delegation bond for a delegated proof of stake system.
DelegationSet expected properties for the set of all delegations for a particular (noalias).
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
No description provided by the author
StakingHooks event hooks for staking validator object (noalias).
ValidatorI expected validator functions.
ValidatorSet expected properties for the set of all validators (noalias).
VotingPowerKeeper expected move keeper (noalias).

# Type aliases

AuthorizationType defines the type of staking module authorization type Since: cosmos-sdk 0.43.
BondStatus is the status of a validator.
DelegationResponses is a collection of DelegationResp.
Delegations is a collection of delegations.
Infraction indicates the infraction a validator committed.
No description provided by the author
No description provided by the author
RedelegationResponses are a collection of RedelegationResp.
Redelegations are a collection of Redelegation.
UnbondingDelegations is a collection of UnbondingDelegation.
UnbondingType defines the type of unbonding operation.
ValidatorsByVotingPower implements sort.Interface for []Validator based on the VotingPower and Address fields.