Get desktop application:
View/edit binary Protocol Buffers messages
Msg defines the staking Msg service.
CreateValidator defines a method for creating a new validator.
MsgCreateValidator defines a SDK message for creating a new validator.
MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
(message has no fields)
EditValidator defines a method for editing an existing validator.
MsgEditValidator defines a SDK message for editing an existing validator.
We pass a reference to the new commission rate and min self delegation as it's not mandatory to update. If not updated, the deserialized rate will be zero with no way to distinguish if an update was intended. REF: #2373
MsgEditValidatorResponse defines the Msg/EditValidator response type.
(message has no fields)
Delegate defines a method for performing a delegation of coins from a delegator to a validator.
MsgDelegate defines a SDK message for performing a delegation of coins from a delegator to a validator.
MsgDelegateResponse defines the Msg/Delegate response type.
(message has no fields)
BeginRedelegate defines a method for performing a redelegation of coins from a delegator and source validator to a destination validator.
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.
Undelegate defines a method for performing an undelegation from a delegate and a validator.
MsgUndelegate defines a SDK message for performing an undelegation from a delegate and a validator.
MsgUndelegateResponse defines the Msg/Undelegate response type.
Query defines the gRPC querier service.
Validators queries all validators that match the given status.
QueryValidatorsRequest is request type for Query/Validators RPC method.
status enables to query for validators matching a given status.
pagination defines an optional pagination for the request.
QueryValidatorsResponse is response type for the Query/Validators RPC method
validators contains all the queried validators.
pagination defines the pagination in the response.
Validator queries validator info for given validator address.
QueryValidatorRequest is response type for the Query/Validator RPC method
validator_addr defines the validator address to query for.
QueryValidatorResponse is response type for the Query/Validator RPC method
validator defines the the validator info.
ValidatorDelegations queries delegate info for given validator.
QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method
validator_addr defines the validator address to query for.
pagination defines an optional pagination for the request.
QueryValidatorDelegationsResponse is response type for the Query/ValidatorDelegations RPC method
pagination defines the pagination in the response.
ValidatorUnbondingDelegations queries unbonding delegations of a validator.
QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method
validator_addr defines the validator address to query for.
pagination defines an optional pagination for the request.
QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.
pagination defines the pagination in the response.
Delegation queries delegate info for given validator delegator pair.
QueryDelegationRequest is request type for the Query/Delegation RPC method.
delegator_addr defines the delegator address to query for.
validator_addr defines the validator address to query for.
QueryDelegationResponse is response type for the Query/Delegation RPC method.
delegation_responses defines the delegation info of a delegation.
UnbondingDelegation queries unbonding info for given validator delegator pair.
QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.
delegator_addr defines the delegator address to query for.
validator_addr defines the validator address to query for.
QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.
unbond defines the unbonding information of a delegation.
DelegatorDelegations queries all delegations of a given delegator address.
QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.
delegator_addr defines the delegator address to query for.
pagination defines an optional pagination for the request.
QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.
delegation_responses defines all the delegations' info of a delegator.
pagination defines the pagination in the response.
DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.
QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.
delegator_addr defines the delegator address to query for.
pagination defines an optional pagination for the request.
QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.
pagination defines the pagination in the response.
Redelegations queries redelegations of given address.
QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.
delegator_addr defines the delegator address to query for.
src_validator_addr defines the validator address to redelegate from.
dst_validator_addr defines the validator address to redelegate to.
pagination defines an optional pagination for the request.
QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.
pagination defines the pagination in the response.
DelegatorValidators queries all validators info for given delegator address.
QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.
delegator_addr defines the delegator address to query for.
pagination defines an optional pagination for the request.
QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.
validators defines the the validators' info of a delegator.
pagination defines the pagination in the response.
DelegatorValidator queries validator info for given delegator validator pair.
QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.
delegator_addr defines the delegator address to query for.
validator_addr defines the validator address to query for.
QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.
validator defines the the validator info.
HistoricalInfo queries the historical info for given height.
QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.
height defines at which height to query the historical info.
QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.
hist defines the historical info at the given height.
Pool queries the pool info.
QueryPoolRequest is request type for the Query/Pool RPC method.
(message has no fields)
QueryPoolResponse is response type for the Query/Pool RPC method.
pool defines the pool info.
Parameters queries the staking parameters.
QueryParamsRequest is request type for the Query/Params RPC method.
(message has no fields)
QueryParamsResponse is response type for the Query/Params RPC method.
params holds all the parameters of this module.
AuthorizationType defines the type of staking module authorization type Since: cosmos-sdk 0.43
Used in:
AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type
AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate
AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate
AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate
BondStatus is the status of a validator.
Used in:
UNSPECIFIED defines an invalid validator status.
UNBONDED defines a validator that is not bonded.
UNBONDING defines a validator that is unbonding.
BONDED defines a validator that is bonded.
Commission defines commission parameters for a given validator.
Used in:
commission_rates defines the initial commission rates to be used for creating a validator.
update_time is the last time the commission rate was changed.
CommissionRates defines the initial commission rates to be used for creating a validator.
Used in:
,rate is the commission rate charged to delegators, as a fraction.
max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.
Used in:
DVPairs defines an array of DVPair objects.
DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.
Used in:
DVVTriplets defines an array of DVVTriplet objects.
Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.
Used in:
,delegator_address is the bech32-encoded address of the delegator.
validator_address is the bech32-encoded address of the validator.
shares define the delegation shares received.
DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.
Used in:
, ,Description defines a validator description.
Used in:
, ,moniker defines a human-readable name for the validator.
identity defines an optional identity signature (ex. UPort or Keybase).
website defines an optional website link.
security_contact defines an optional email for security contact.
details define other optional details.
GenesisState defines the staking module's genesis state.
params defines all the paramaters of related to deposit.
last_total_power tracks the total amounts of bonded tokens recorded during the previous end block.
last_validator_powers is a special index that provides a historical list of the last-block's bonded validators.
delegations defines the validator set at genesis.
delegations defines the delegations active at genesis.
unbonding_delegations defines the unbonding delegations active at genesis.
redelegations defines the redelegations active at genesis.
HistoricalInfo contains header and validator information for a given block. It is stored as part of staking module's state, which persists the `n` most recent HistoricalInfo (`n` is set by the staking module's `historical_entries` parameter).
Used in:
LastValidatorPower required for validator set update logic.
Used in:
address is the address of the validator.
power defines the power of the validator.
Params defines the parameters for the staking module.
Used in:
,unbonding_time is the time duration of unbonding.
max_validators is the maximum number of validators.
max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
historical_entries is the number of historical entries to persist.
bond_denom defines the bondable coin denomination.
Pool is used for tracking bonded and not-bonded token supply of the bond denomination.
Used in:
Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.
Used in:
,delegator_address is the bech32-encoded address of the delegator.
validator_src_address is the validator redelegation source operator address.
validator_dst_address is the validator redelegation destination operator address.
entries are the redelegation entries.
redelegation entries
RedelegationEntry defines a redelegation object with relevant metadata.
Used in:
,creation_height defines the height which the redelegation took place.
completion_time defines the unix time for redelegation completion.
initial_balance defines the initial balance when redelegation started.
shares_dst is the amount of destination-validator shares created by redelegation.
RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.
Used in:
RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.
Used in:
StakeAuthorization defines authorization for delegate/undelegate/redelegate. Since: cosmos-sdk 0.43
max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is empty, there is no spend limit and any amount of coins can be delegated.
validators is the oneof that represents either allow_list or deny_list
allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's account.
deny_list specifies list of validator addresses to whom grantee can not delegate tokens.
authorization_type defines one of AuthorizationType.
Validators defines list of validator addresses.
Used in:
UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.
Used in:
, , ,delegator_address is the bech32-encoded address of the delegator.
validator_address is the bech32-encoded address of the validator.
entries are the unbonding delegation entries.
unbonding delegation entries
UnbondingDelegationEntry defines an unbonding object with relevant metadata.
Used in:
creation_height is the height which the unbonding took place.
completion_time is the unix time for unbonding completion.
initial_balance defines the tokens initially scheduled to receive at completion.
balance defines the tokens to receive at completion.
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. Slashing results in a decrease in the exchange rate, allowing correct calculation of future undelegations without iterating over delegators. When coins are delegated to this validator, the validator is credited with a delegation whose number of bond shares is based on the amount of coins delegated divided by the current exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate.
Used in:
, , , , ,operator_address defines the address of the validator's operator; bech encoded in JSON.
consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
jailed defined whether the validator has been jailed from bonded status or not.
status is the validator status (bonded/unbonding/unbonded).
tokens define the delegated tokens (incl. self-delegation).
delegator_shares defines total shares issued to a validator's delegators.
description defines the description terms for the validator.
unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
commission defines the commission parameters.
min_self_delegation is the validator's self declared minimum self delegation.