types

package
v0.47.14-ics-lsm Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 58 Imported by: 6,292

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCompleteUnbonding           = "complete_unbonding"
	EventTypeCompleteRedelegation        = "complete_redelegation"
	EventTypeCreateValidator             = "create_validator"
	EventTypeEditValidator               = "edit_validator"
	EventTypeDelegate                    = "delegate"
	EventTypeUnbond                      = "unbond"
	EventTypeCancelUnbondingDelegation   = "cancel_unbonding_delegation"
	EventTypeRedelegate                  = "redelegate"
	EventTypeTokenizeShares              = "tokenize_shares"
	EventTypeRedeemShares                = "redeem_shares"
	EventTypeTransferTokenizeShareRecord = "transfer_tokenize_share_record"
	EventTypeValidatorBondDelegation     = "validator_bond_delegation"

	AttributeKeyValidator       = "validator"
	AttributeKeyCommissionRate  = "commission_rate"
	AttributeKeySrcValidator    = "source_validator"
	AttributeKeyDstValidator    = "destination_validator"
	AttributeKeyDelegator       = "delegator"
	AttributeKeyCreationHeight  = "creation_height"
	AttributeKeyCompletionTime  = "completion_time"
	AttributeKeyNewShares       = "new_shares"
	AttributeKeyShareOwner      = "share_owner"
	AttributeKeyShareRecordID   = "share_record_id"
	AttributeKeyAmount          = "amount"
	AttributeKeyTokenizedShares = "tokenized_shares"
)

staking module event types

View Source
const (
	// ModuleName is the name of the staking module
	ModuleName = "staking"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// RouterKey is the msg router key for the staking module
	RouterKey = ModuleName

	// Prefix for module accounts that custodian tokenized shares
	TokenizeShareModuleAccountPrefix = "tokenizeshare_"
)
View Source
const (
	TypeMsgUndelegate                  = "begin_unbonding"
	TypeMsgUnbondValidator             = "unbond_validator"
	TypeMsgCancelUnbondingDelegation   = "cancel_unbond"
	TypeMsgEditValidator               = "edit_validator"
	TypeMsgCreateValidator             = "create_validator"
	TypeMsgDelegate                    = "delegate"
	TypeMsgBeginRedelegate             = "begin_redelegate"
	TypeMsgUpdateParams                = "update_params"
	TypeMsgTokenizeShares              = "tokenize_shares"
	TypeMsgRedeemTokensForShares       = "redeem_tokens_for_shares"
	TypeMsgTransferTokenizeShareRecord = "transfer_tokenize_share_record"
	TypeMsgDisableTokenizeShares       = "disable_tokenize_shares"
	TypeMsgEnableTokenizeShares        = "enable_tokenize_shares"
	TypeMsgValidatorBond               = "validator_bond"
)

staking message types

View Source
const (
	// DefaultUnbondingTime reflects three weeks in seconds as the default
	// unbonding time.
	// TODO: Justify our choice of default here.
	DefaultUnbondingTime time.Duration = time.Hour * 24 * 7 * 3

	// Default maximum number of bonded validators
	DefaultMaxValidators uint32 = 100

	// Default maximum entries in a UBD/RED pair
	DefaultMaxEntries uint32 = 7

	// DefaultHistorical entries is 10000. Apps that don't use IBC can ignore this
	// value by not adding the staking module to the application module manager's
	// SetOrderBeginBlockers.
	DefaultHistoricalEntries uint32 = 10000
)

Staking params default values

View Source
const (
	NotBondedPoolName = "not_bonded_tokens_pool"
	BondedPoolName    = "bonded_tokens_pool"
)

names used as root for pool module accounts:

- NotBondedPool -> "not_bonded_tokens_pool"

- BondedPool -> "bonded_tokens_pool"

View Source
const (
	QueryValidators                    = "validators"
	QueryValidator                     = "validator"
	QueryDelegatorDelegations          = "delegatorDelegations"
	QueryDelegatorUnbondingDelegations = "delegatorUnbondingDelegations"
	QueryRedelegations                 = "redelegations"
	QueryValidatorDelegations          = "validatorDelegations"
	QueryValidatorRedelegations        = "validatorRedelegations"
	QueryValidatorUnbondingDelegations = "validatorUnbondingDelegations"
	QueryDelegation                    = "delegation"
	QueryUnbondingDelegation           = "unbondingDelegation"
	QueryDelegatorValidators           = "delegatorValidators"
	QueryDelegatorValidator            = "delegatorValidator"
	QueryPool                          = "pool"
	QueryParameters                    = "parameters"
	QueryHistoricalInfo                = "historicalInfo"
)

query endpoints supported by the staking Querier

View Source
const (
	// TODO: Why can't we just have one string description which can be JSON by convention
	MaxMonikerLength         = 70
	MaxIdentityLength        = 3000
	MaxWebsiteLength         = 140
	MaxSecurityContactLength = 140
	MaxDetailsLength         = 280
)
View Source
const DoNotModifyDesc = "[do-not-modify]"

constant used in flags to indicate that description field should not be updated

Variables

View Source
var (
	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrEmptyValidatorAddr                       = sdkerrors.Register(ModuleName, 2, "empty validator address")
	ErrNoValidatorFound                         = sdkerrors.Register(ModuleName, 3, "validator does not exist")
	ErrValidatorOwnerExists                     = sdkerrors.Register(ModuleName, 4, "validator already exist for this operator address; must use new validator operator address")
	ErrValidatorPubKeyExists                    = sdkerrors.Register(ModuleName, 5, "validator already exist for this pubkey; must use new validator pubkey")
	ErrValidatorPubKeyTypeNotSupported          = sdkerrors.Register(ModuleName, 6, "validator pubkey type is not supported")
	ErrValidatorJailed                          = sdkerrors.Register(ModuleName, 7, "validator for this address is currently jailed")
	ErrBadRemoveValidator                       = sdkerrors.Register(ModuleName, 8, "failed to remove validator")
	ErrCommissionNegative                       = sdkerrors.Register(ModuleName, 9, "commission must be positive")
	ErrCommissionHuge                           = sdkerrors.Register(ModuleName, 10, "commission cannot be more than 100%")
	ErrCommissionGTMaxRate                      = sdkerrors.Register(ModuleName, 11, "commission cannot be more than the max rate")
	ErrCommissionUpdateTime                     = sdkerrors.Register(ModuleName, 12, "commission cannot be changed more than once in 24h")
	ErrCommissionChangeRateNegative             = sdkerrors.Register(ModuleName, 13, "commission change rate must be positive")
	ErrCommissionChangeRateGTMaxRate            = sdkerrors.Register(ModuleName, 14, "commission change rate cannot be more than the max rate")
	ErrCommissionGTMaxChangeRate                = sdkerrors.Register(ModuleName, 15, "commission cannot be changed more than max change rate")
	ErrSelfDelegationBelowMinimum               = sdkerrors.Register(ModuleName, 16, "validator's self delegation must be greater than their minimum self delegation")
	ErrMinSelfDelegationDecreased               = sdkerrors.Register(ModuleName, 17, "minimum self delegation cannot be decrease")
	ErrEmptyDelegatorAddr                       = sdkerrors.Register(ModuleName, 18, "empty delegator address")
	ErrNoDelegation                             = sdkerrors.Register(ModuleName, 19, "no delegation for (address, validator) tuple")
	ErrBadDelegatorAddr                         = sdkerrors.Register(ModuleName, 20, "delegator does not exist with address")
	ErrNoDelegatorForAddress                    = sdkerrors.Register(ModuleName, 21, "delegator does not contain delegation")
	ErrInsufficientShares                       = sdkerrors.Register(ModuleName, 22, "insufficient delegation shares")
	ErrDelegationValidatorEmpty                 = sdkerrors.Register(ModuleName, 23, "cannot delegate to an empty validator")
	ErrNotEnoughDelegationShares                = sdkerrors.Register(ModuleName, 24, "not enough delegation shares")
	ErrNotMature                                = sdkerrors.Register(ModuleName, 25, "entry not mature")
	ErrNoUnbondingDelegation                    = sdkerrors.Register(ModuleName, 26, "no unbonding delegation found")
	ErrMaxUnbondingDelegationEntries            = sdkerrors.Register(ModuleName, 27, "too many unbonding delegation entries for (delegator, validator) tuple")
	ErrNoRedelegation                           = sdkerrors.Register(ModuleName, 28, "no redelegation found")
	ErrSelfRedelegation                         = sdkerrors.Register(ModuleName, 29, "cannot redelegate to the same validator")
	ErrTinyRedelegationAmount                   = sdkerrors.Register(ModuleName, 30, "too few tokens to redelegate (truncates to zero tokens)")
	ErrBadRedelegationDst                       = sdkerrors.Register(ModuleName, 31, "redelegation destination validator not found")
	ErrTransitiveRedelegation                   = sdkerrors.Register(ModuleName, 32, "redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation")
	ErrMaxRedelegationEntries                   = sdkerrors.Register(ModuleName, 33, "too many redelegation entries for (delegator, src-validator, dst-validator) tuple")
	ErrDelegatorShareExRateInvalid              = sdkerrors.Register(ModuleName, 34, "cannot delegate to validators with invalid (zero) ex-rate")
	ErrBothShareMsgsGiven                       = sdkerrors.Register(ModuleName, 35, "both shares amount and shares percent provided")
	ErrNeitherShareMsgsGiven                    = sdkerrors.Register(ModuleName, 36, "neither shares amount nor shares percent provided")
	ErrInvalidHistoricalInfo                    = sdkerrors.Register(ModuleName, 37, "invalid historical info")
	ErrNoHistoricalInfo                         = sdkerrors.Register(ModuleName, 38, "no historical info found")
	ErrEmptyValidatorPubKey                     = sdkerrors.Register(ModuleName, 39, "empty validator public key")
	ErrCommissionLTMinRate                      = sdkerrors.Register(ModuleName, 40, "commission cannot be less than min rate")
	ErrUnbondingNotFound                        = sdkerrors.Register(ModuleName, 41, "unbonding operation not found")
	ErrUnbondingOnHoldRefCountNegative          = sdkerrors.Register(ModuleName, 42, "cannot un-hold unbonding operation that is not on hold")
	ErrNotEnoughBalance                         = sdkerrors.Register(ModuleName, 101, "not enough balance")
	ErrTokenizeShareRecordNotExists             = sdkerrors.Register(ModuleName, 102, "tokenize share record not exists")
	ErrTokenizeShareRecordAlreadyExists         = sdkerrors.Register(ModuleName, 103, "tokenize share record already exists")
	ErrNotTokenizeShareRecordOwner              = sdkerrors.Register(ModuleName, 104, "not tokenize share record owner")
	ErrExceedingFreeVestingDelegations          = sdkerrors.Register(ModuleName, 105, "trying to exceed vested free delegation for vesting account")
	ErrOnlyBondDenomAllowdForTokenize           = sdkerrors.Register(ModuleName, 106, "only bond denom is allowed for tokenize")
	ErrInsufficientValidatorBondShares          = sdkerrors.Register(ModuleName, 107, "insufficient validator bond shares")
	ErrRedelegationNotAllowedForValidatorBond   = sdkerrors.Register(ModuleName, 108, "redelegation is not allowed for validator bond delegation")
	ErrValidatorBondNotAllowedForTokenizeShare  = sdkerrors.Register(ModuleName, 109, "validator bond delegation is not allowed to tokenize share")
	ErrValidatorBondNotAllowedFromModuleAccount = sdkerrors.Register(ModuleName, 110, "validator bond is not allowed from a module account")
	ErrGlobalLiquidStakingCapExceeded           = sdkerrors.Register(ModuleName, 111, "delegation or tokenization exceeds the global cap")
	ErrValidatorLiquidStakingCapExceeded        = sdkerrors.Register(ModuleName, 112, "delegation or tokenization exceeds the validator cap")
	ErrTokenizeSharesDisabledForAccount         = sdkerrors.Register(ModuleName, 113, "tokenize shares currently disabled for account")
	ErrUnableToDisableTokenizeShares            = sdkerrors.Register(ModuleName, 114, "unable to disable tokenize shares for account")
	ErrTokenizeSharesAlreadyEnabledForAccount   = sdkerrors.Register(ModuleName, 115, "tokenize shares is already enabled for this account")
	ErrTokenizeSharesAlreadyDisabledForAccount  = sdkerrors.Register(ModuleName, 116, "tokenize shares is already disabled for this account")
	ErrValidatorLiquidSharesUnderflow           = sdkerrors.Register(ModuleName, 117, "validator liquid shares underflow")
	ErrTotalLiquidStakedUnderflow               = sdkerrors.Register(ModuleName, 118, "total liquid staked underflow")
	ErrTinyRedemptionAmount                     = sdkerrors.Register(ModuleName, 119, "too few tokens to redeem (truncates to zero tokens)")
	ErrRedelegationInProgress                   = sdkerrors.Register(ModuleName, 120, "delegator is not allowed to tokenize shares from validator with a redelegation in progress")
)

x/staking module sentinel errors

TODO: Many of these errors are redundant. They should be removed and replaced by sdkerrors.ErrInvalidRequest.

REF: https://github.com/cosmos/cosmos-sdk/issues/5450

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// Keys for store prefixes
	// Last* values are constant during a block.
	LastValidatorPowerKey = []byte{0x11} // prefix for each key to a validator index, for bonded validators
	LastTotalPowerKey     = []byte{0x12} // prefix for the total power

	ValidatorsKey             = []byte{0x21} // prefix for each key to a validator
	ValidatorsByConsAddrKey   = []byte{0x22} // prefix for each key to a validator index, by pubkey
	ValidatorsByPowerIndexKey = []byte{0x23} // prefix for each key to a validator index, sorted by power

	DelegationKey                    = []byte{0x31} // key for a delegation
	UnbondingDelegationKey           = []byte{0x32} // key for an unbonding-delegation
	UnbondingDelegationByValIndexKey = []byte{0x33} // prefix for each key for an unbonding-delegation, by validator operator
	RedelegationKey                  = []byte{0x34} // key for a redelegation
	RedelegationByValSrcIndexKey     = []byte{0x35} // prefix for each key for an redelegation, by source validator operator
	RedelegationByValDstIndexKey     = []byte{0x36} // prefix for each key for an redelegation, by destination validator operator

	UnbondingIDKey    = []byte{0x37} // key for the counter for the incrementing id for UnbondingOperations
	UnbondingIndexKey = []byte{0x38} // prefix for an index for looking up unbonding operations by their IDs
	UnbondingTypeKey  = []byte{0x39} // prefix for an index containing the type of unbonding operations

	UnbondingQueueKey    = []byte{0x41} // prefix for the timestamps in unbonding queue
	RedelegationQueueKey = []byte{0x42} // prefix for the timestamps in redelegations queue
	ValidatorQueueKey    = []byte{0x43} // prefix for the timestamps in validator queue

	HistoricalInfoKey   = []byte{0x50} // prefix for the historical info
	ValidatorUpdatesKey = []byte{0x61} // prefix for the end block validator updates key

	ParamsKey = []byte{0x51} // prefix for parameters for module x/staking

	TokenizeShareRecordPrefix          = []byte{0x81} // key for tokenizeshare record prefix
	TokenizeShareRecordIDByOwnerPrefix = []byte{0x82} // key for tokenizeshare record id by owner prefix
	TokenizeShareRecordIDByDenomPrefix = []byte{0x83} // key for tokenizeshare record id by denom prefix
	LastTokenizeShareRecordIDKey       = []byte{0x84} // key for last tokenize share record id
	TotalLiquidStakedTokensKey         = []byte{0x85} // key for total liquid staked tokens
	TokenizeSharesLockPrefix           = []byte{0x86} // key for locking tokenize shares
	TokenizeSharesUnlockQueuePrefix    = []byte{0x87} // key for the queue that unlocks tokenize shares
)
View Source
var (
	// DefaultMinCommissionRate is set to 0%
	DefaultMinCommissionRate = math.LegacyZeroDec()

	// ValidatorBondFactor of -1 indicates that it's disabled
	ValidatorBondCapDisabled = sdk.NewDecFromInt(sdk.NewInt(-1))

	// DefaultValidatorBondFactor is set to -1 (disabled)
	DefaultValidatorBondFactor = ValidatorBondCapDisabled
	// DefaultGlobalLiquidStakingCap is set to 100%
	DefaultGlobalLiquidStakingCap = sdk.OneDec()
	// DefaultValidatorLiquidStakingCap is set to 100%
	DefaultValidatorLiquidStakingCap = sdk.OneDec()
)
View Source
var (
	KeyUnbondingTime             = []byte("UnbondingTime")
	KeyMaxValidators             = []byte("MaxValidators")
	KeyMaxEntries                = []byte("MaxEntries")
	KeyBondDenom                 = []byte("BondDenom")
	KeyHistoricalEntries         = []byte("HistoricalEntries")
	KeyMinCommissionRate         = []byte("MinCommissionRate")
	KeyValidatorBondFactor       = []byte("ValidatorBondFactor")
	KeyGlobalLiquidStakingCap    = []byte("GlobalLiquidStakingCap")
	KeyValidatorLiquidStakingCap = []byte("ValidatorLiquidStakingCap")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStaking        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStaking          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStaking = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	BondStatusUnspecified = BondStatus_name[int32(Unspecified)]
	BondStatusUnbonded    = BondStatus_name[int32(Unbonded)]
	BondStatusUnbonding   = BondStatus_name[int32(Unbonding)]
	BondStatusBonded      = BondStatus_name[int32(Bonded)]
)
View Source
var AuthorizationType_name = map[int32]string{
	0: "AUTHORIZATION_TYPE_UNSPECIFIED",
	1: "AUTHORIZATION_TYPE_DELEGATE",
	2: "AUTHORIZATION_TYPE_UNDELEGATE",
	3: "AUTHORIZATION_TYPE_REDELEGATE",
}
View Source
var AuthorizationType_value = map[string]int32{
	"AUTHORIZATION_TYPE_UNSPECIFIED": 0,
	"AUTHORIZATION_TYPE_DELEGATE":    1,
	"AUTHORIZATION_TYPE_UNDELEGATE":  2,
	"AUTHORIZATION_TYPE_REDELEGATE":  3,
}
View Source
var BondStatus_name = map[int32]string{
	0: "BOND_STATUS_UNSPECIFIED",
	1: "BOND_STATUS_UNBONDED",
	2: "BOND_STATUS_UNBONDING",
	3: "BOND_STATUS_BONDED",
}
View Source
var BondStatus_value = map[string]int32{
	"BOND_STATUS_UNSPECIFIED": 0,
	"BOND_STATUS_UNBONDED":    1,
	"BOND_STATUS_UNBONDING":   2,
	"BOND_STATUS_BONDED":      3,
}
View Source
var Infraction_name = map[int32]string{
	0: "INFRACTION_UNSPECIFIED",
	1: "INFRACTION_DOUBLE_SIGN",
	2: "INFRACTION_DOWNTIME",
}
View Source
var Infraction_value = map[string]int32{
	"INFRACTION_UNSPECIFIED": 0,
	"INFRACTION_DOUBLE_SIGN": 1,
	"INFRACTION_DOWNTIME":    2,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var TokenizeShareLockStatus_name = map[int32]string{
	0: "TOKENIZE_SHARE_LOCK_STATUS_UNSPECIFIED",
	1: "TOKENIZE_SHARE_LOCK_STATUS_LOCKED",
	2: "TOKENIZE_SHARE_LOCK_STATUS_UNLOCKED",
	3: "TOKENIZE_SHARE_LOCK_STATUS_LOCK_EXPIRING",
}
View Source
var TokenizeShareLockStatus_value = map[string]int32{
	"TOKENIZE_SHARE_LOCK_STATUS_UNSPECIFIED":   0,
	"TOKENIZE_SHARE_LOCK_STATUS_LOCKED":        1,
	"TOKENIZE_SHARE_LOCK_STATUS_UNLOCKED":      2,
	"TOKENIZE_SHARE_LOCK_STATUS_LOCK_EXPIRING": 3,
}

Functions

func AddressFromLastValidatorPowerKey

func AddressFromLastValidatorPowerKey(key []byte) []byte

AddressFromLastValidatorPowerKey creates the validator operator address from LastValidatorPowerKey

func AddressFromValidatorsKey added in v0.43.0

func AddressFromValidatorsKey(key []byte) []byte

AddressFromValidatorsKey creates the validator operator address from ValidatorsKey

func GetDelegationKey

func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte

GetDelegationKey creates the key for delegator bond with validator VALUE: staking/Delegation

func GetDelegationsKey

func GetDelegationsKey(delAddr sdk.AccAddress) []byte

GetDelegationsKey creates the prefix for a delegator for all validators

func GetHistoricalInfoKey

func GetHistoricalInfoKey(height int64) []byte

GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.

func GetLastValidatorPowerKey

func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte

GetLastValidatorPowerKey creates the bonded validator index key for an operator address

func GetREDByValDstIndexKey

func GetREDByValDstIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte

GetREDByValDstIndexKey creates the index-key for a redelegation, stored by destination-validator-index VALUE: none (key rearrangement used)

func GetREDByValSrcIndexKey

func GetREDByValSrcIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte

GetREDByValSrcIndexKey creates the index-key for a redelegation, stored by source-validator-index VALUE: none (key rearrangement used)

func GetREDKey

func GetREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte

GetREDKey returns a key prefix for indexing a redelegation from a delegator and source validator to a destination validator.

func GetREDKeyFromValDstIndexKey

func GetREDKeyFromValDstIndexKey(indexKey []byte) []byte

GetREDKeyFromValDstIndexKey rearranges the ValDstIndexKey to get the REDKey

func GetREDKeyFromValSrcIndexKey

func GetREDKeyFromValSrcIndexKey(indexKey []byte) []byte

GetREDKeyFromValSrcIndexKey rearranges the ValSrcIndexKey to get the REDKey

func GetREDsByDelToValDstIndexKey

func GetREDsByDelToValDstIndexKey(delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) []byte

GetREDsByDelToValDstIndexKey returns a key prefix for indexing a redelegation from an address to a source validator.

func GetREDsFromValSrcIndexKey

func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte

GetREDsFromValSrcIndexKey returns a key prefix for indexing a redelegation to a source validator.

func GetREDsKey

func GetREDsKey(delAddr sdk.AccAddress) []byte

GetREDsKey returns a key prefix for indexing a redelegation from a delegator address.

func GetREDsToValDstIndexKey

func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte

GetREDsToValDstIndexKey returns a key prefix for indexing a redelegation to a destination (target) validator.

func GetRedelegationTimeKey

func GetRedelegationTimeKey(timestamp time.Time) []byte

GetRedelegationTimeKey returns a key prefix for indexing an unbonding redelegation based on a completion time.

func GetTokenizeShareAuthorizationTimeKey

func GetTokenizeShareAuthorizationTimeKey(timestamp time.Time) []byte

GetTokenizeShareAuthorizationTimeKey returns the prefix key used for getting a set of pending tokenize share unlocks that complete at the given time

func GetTokenizeShareRecordByIndexKey

func GetTokenizeShareRecordByIndexKey(id uint64) []byte

GetTokenizeShareRecordByIndexKey returns the key of the specified id. Intended for querying the tokenizeShareRecord by the id.

func GetTokenizeShareRecordIDByDenomKey

func GetTokenizeShareRecordIDByDenomKey(denom string) []byte

func GetTokenizeShareRecordIDByOwnerAndIDKey

func GetTokenizeShareRecordIDByOwnerAndIDKey(owner sdk.AccAddress, id uint64) []byte

GetTokenizeShareRecordIdByOwnerAndIdKey returns the key of the specified owner and id. Intended for setting tokenizeShareRecord of an owner

func GetTokenizeShareRecordIdsByOwnerPrefix

func GetTokenizeShareRecordIdsByOwnerPrefix(owner sdk.AccAddress) []byte

GetTokenizeShareRecordIdsByOwnerPrefix returns the key of the specified owner. Intended for querying all tokenizeShareRecords of an owner

func GetTokenizeSharesLockKey

func GetTokenizeSharesLockKey(owner sdk.AccAddress) []byte

GetTokenizeSharesLockKey returns the key for storing a tokenize share lock for a specified account

func GetUBDByValIndexKey

func GetUBDByValIndexKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte

GetUBDByValIndexKey creates the index-key for an unbonding delegation, stored by validator-index VALUE: none (key rearrangement used)

func GetUBDKey

func GetUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte

GetUBDKey creates the key for an unbonding delegation by delegator and validator addr VALUE: staking/UnbondingDelegation

func GetUBDKeyFromValIndexKey

func GetUBDKeyFromValIndexKey(indexKey []byte) []byte

GetUBDKeyFromValIndexKey rearranges the ValIndexKey to get the UBDKey

func GetUBDsByValIndexKey

func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte

GetUBDsByValIndexKey creates the prefix keyspace for the indexes of unbonding delegations for a validator

func GetUBDsKey

func GetUBDsKey(delAddr sdk.AccAddress) []byte

GetUBDsKey creates the prefix for all unbonding delegations from a delegator

func GetUnbondingDelegationTimeKey

func GetUnbondingDelegationTimeKey(timestamp time.Time) []byte

GetUnbondingDelegationTimeKey creates the prefix for all unbonding delegations from a delegator

func GetUnbondingIndexKey added in v0.47.0

func GetUnbondingIndexKey(id uint64) []byte

GetUnbondingIndexKey returns a key for the index for looking up UnbondingDelegations by the UnbondingDelegationEntries they contain

func GetUnbondingTypeKey added in v0.47.0

func GetUnbondingTypeKey(id uint64) []byte

GetUnbondingTypeKey returns a key for an index containing the type of unbonding operations

func GetValidatorByConsAddrKey

func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte

GetValidatorByConsAddrKey creates the key for the validator with pubkey VALUE: validator operator address ([]byte)

func GetValidatorKey

func GetValidatorKey(operatorAddr sdk.ValAddress) []byte

GetValidatorKey creates the key for the validator with address VALUE: staking/Validator

func GetValidatorQueueKey added in v0.40.0

func GetValidatorQueueKey(timestamp time.Time, height int64) []byte

GetValidatorQueueKey returns the prefix key used for getting a set of unbonding validators whose unbonding completion occurs at the given time and height.

func GetValidatorsByPowerIndexKey

func GetValidatorsByPowerIndexKey(validator Validator, powerReduction math.Int) []byte

GetValidatorsByPowerIndexKey creates the validator by power index. Power index is the key used in the power-store, and represents the relative power ranking of the validator. VALUE: validator operator address ([]byte)

func MustMarshalDelegation

func MustMarshalDelegation(cdc codec.BinaryCodec, delegation Delegation) []byte

MustMarshalDelegation returns the delegation bytes. Panics if fails

func MustMarshalRED

func MustMarshalRED(cdc codec.BinaryCodec, red Redelegation) []byte

MustMarshalRED returns the Redelegation bytes. Panics if fails.

func MustMarshalUBD

func MustMarshalUBD(cdc codec.BinaryCodec, ubd UnbondingDelegation) []byte

return the unbonding delegation

func MustMarshalUBDE added in v0.47.0

func MustMarshalUBDE(cdc codec.BinaryCodec, ubd UnbondingDelegationEntry) []byte

return the unbonding delegation entry

func MustMarshalValidator

func MustMarshalValidator(cdc codec.BinaryCodec, validator *Validator) []byte

return the redelegation

func ParamKeyTable added in v0.40.0

func ParamKeyTable() paramtypes.KeyTable

ParamTable for staking module Deprecated: now params can be accessed on key `0x51` on the staking store.

func ParseValidatorPowerRankKey

func ParseValidatorPowerRankKey(key []byte) (operAddr []byte)

ParseValidatorPowerRankKey parses the validators operator address from power rank key

func ParseValidatorQueueKey added in v0.40.0

func ParseValidatorQueueKey(bz []byte) (time.Time, int64, error)

ParseValidatorQueueKey returns the encoded time and height from a key created from GetValidatorQueueKey.

func RegisterInterfaces added in v0.40.0

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the x/staking interfaces types with the interface registry

func RegisterLegacyAminoCodec added in v0.40.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/staking interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer added in v0.40.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.40.0

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient added in v0.40.0

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint added in v0.40.0

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer added in v0.40.0

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.40.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func StakingDescription added in v0.40.0

func ValidateBasic

func ValidateBasic(hi HistoricalInfo) error

ValidateBasic will ensure HistoricalInfo is not nil and sorted

func ValidatePowerReduction added in v0.43.0

func ValidatePowerReduction(i interface{}) error

Types

type AccountKeeper

type AccountKeeper interface {
	IterateAccounts(ctx sdk.Context, process func(authtypes.AccountI) (stop bool))
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI // only used for simulation

	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI

	// TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862
	SetModuleAccount(sdk.Context, authtypes.ModuleAccountI)
}

AccountKeeper defines the expected account keeper (noalias)

type AuthorizationType added in v0.43.0

type AuthorizationType int32

AuthorizationType defines the type of staking module authorization type

Since: cosmos-sdk 0.43

const (
	// AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type
	AuthorizationType_AUTHORIZATION_TYPE_UNSPECIFIED AuthorizationType = 0
	// AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate
	AuthorizationType_AUTHORIZATION_TYPE_DELEGATE AuthorizationType = 1
	// AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate
	AuthorizationType_AUTHORIZATION_TYPE_UNDELEGATE AuthorizationType = 2
	// AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate
	AuthorizationType_AUTHORIZATION_TYPE_REDELEGATE AuthorizationType = 3
)

func (AuthorizationType) EnumDescriptor added in v0.43.0

func (AuthorizationType) EnumDescriptor() ([]byte, []int)

func (AuthorizationType) String added in v0.43.0

func (x AuthorizationType) String() string

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	GetSupply(ctx sdk.Context, denom string) sdk.Coin

	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error

	MintCoins(cts sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BondStatus added in v0.40.0

type BondStatus int32

BondStatus is the status of a validator.

const (
	// UNSPECIFIED defines an invalid validator status.
	Unspecified BondStatus = 0
	// UNBONDED defines a validator that is not bonded.
	Unbonded BondStatus = 1
	// UNBONDING defines a validator that is unbonding.
	Unbonding BondStatus = 2
	// BONDED defines a validator that is bonded.
	Bonded BondStatus = 3
)

func (BondStatus) EnumDescriptor added in v0.40.0

func (BondStatus) EnumDescriptor() ([]byte, []int)

func (BondStatus) String added in v0.40.0

func (x BondStatus) String() string

type Commission

type Commission struct {
	// commission_rates defines the initial commission rates to be used for creating a validator.
	CommissionRates `protobuf:"bytes,1,opt,name=commission_rates,json=commissionRates,proto3,embedded=commission_rates" json:"commission_rates"`
	// update_time is the last time the commission rate was changed.
	UpdateTime time.Time `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,stdtime" json:"update_time"`
}

Commission defines commission parameters for a given validator.

func NewCommission

func NewCommission(rate, maxRate, maxChangeRate sdk.Dec) Commission

NewCommission returns an initialized validator commission.

func NewCommissionWithTime

func NewCommissionWithTime(rate, maxRate, maxChangeRate sdk.Dec, updatedAt time.Time) Commission

NewCommissionWithTime returns an initialized validator commission with a specified update time which should be the current block BFT time.

func (*Commission) Descriptor

func (*Commission) Descriptor() ([]byte, []int)

func (*Commission) Equal

func (this *Commission) Equal(that interface{}) bool

func (*Commission) GetUpdateTime

func (m *Commission) GetUpdateTime() time.Time

func (*Commission) Marshal

func (m *Commission) Marshal() (dAtA []byte, err error)

func (*Commission) MarshalTo

func (m *Commission) MarshalTo(dAtA []byte) (int, error)

func (*Commission) MarshalToSizedBuffer

func (m *Commission) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Commission) ProtoMessage

func (*Commission) ProtoMessage()

func (*Commission) Reset

func (m *Commission) Reset()

func (*Commission) Size

func (m *Commission) Size() (n int)

func (Commission) String

func (c Commission) String() string

String implements the Stringer interface for a Commission object.

func (*Commission) Unmarshal

func (m *Commission) Unmarshal(dAtA []byte) error

func (Commission) ValidateNewRate

func (c Commission) ValidateNewRate(newRate sdk.Dec, blockTime time.Time) error

ValidateNewRate performs basic sanity validation checks of a new commission rate. If validation fails, an SDK error is returned.

func (*Commission) XXX_DiscardUnknown

func (m *Commission) XXX_DiscardUnknown()

func (*Commission) XXX_Marshal

func (m *Commission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Commission) XXX_Merge

func (m *Commission) XXX_Merge(src proto.Message)

func (*Commission) XXX_Size

func (m *Commission) XXX_Size() int

func (*Commission) XXX_Unmarshal

func (m *Commission) XXX_Unmarshal(b []byte) error

type CommissionRates

type CommissionRates struct {
	// rate is the commission rate charged to delegators, as a fraction.
	Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"`
	// max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
	MaxRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_rate"`
	// max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
	MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 142-byte string literal not displayed */
}

CommissionRates defines the initial commission rates to be used for creating a validator.

func NewCommissionRates

func NewCommissionRates(rate, maxRate, maxChangeRate sdk.Dec) CommissionRates

NewCommissionRates returns an initialized validator commission rates.

func (*CommissionRates) Descriptor

func (*CommissionRates) Descriptor() ([]byte, []int)

func (*CommissionRates) Equal

func (this *CommissionRates) Equal(that interface{}) bool

func (*CommissionRates) Marshal

func (m *CommissionRates) Marshal() (dAtA []byte, err error)

func (*CommissionRates) MarshalTo

func (m *CommissionRates) MarshalTo(dAtA []byte) (int, error)

func (*CommissionRates) MarshalToSizedBuffer

func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommissionRates) ProtoMessage

func (*CommissionRates) ProtoMessage()

func (*CommissionRates) Reset

func (m *CommissionRates) Reset()

func (*CommissionRates) Size

func (m *CommissionRates) Size() (n int)

func (CommissionRates) String

func (cr CommissionRates) String() string

String implements the Stringer interface for a CommissionRates object.

func (*CommissionRates) Unmarshal

func (m *CommissionRates) Unmarshal(dAtA []byte) error

func (CommissionRates) Validate

func (cr CommissionRates) Validate() error

Validate performs basic sanity validation checks of initial commission parameters. If validation fails, an SDK error is returned.

func (*CommissionRates) XXX_DiscardUnknown

func (m *CommissionRates) XXX_DiscardUnknown()

func (*CommissionRates) XXX_Marshal

func (m *CommissionRates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommissionRates) XXX_Merge

func (m *CommissionRates) XXX_Merge(src proto.Message)

func (*CommissionRates) XXX_Size

func (m *CommissionRates) XXX_Size() int

func (*CommissionRates) XXX_Unmarshal

func (m *CommissionRates) XXX_Unmarshal(b []byte) error

type DVPair

type DVPair struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

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.

func (*DVPair) Descriptor

func (*DVPair) Descriptor() ([]byte, []int)

func (*DVPair) Marshal

func (m *DVPair) Marshal() (dAtA []byte, err error)

func (*DVPair) MarshalTo

func (m *DVPair) MarshalTo(dAtA []byte) (int, error)

func (*DVPair) MarshalToSizedBuffer

func (m *DVPair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DVPair) ProtoMessage

func (*DVPair) ProtoMessage()

func (*DVPair) Reset

func (m *DVPair) Reset()

func (*DVPair) Size

func (m *DVPair) Size() (n int)

func (DVPair) String

func (dv DVPair) String() string

String implements the Stringer interface for a DVPair object.

func (*DVPair) Unmarshal

func (m *DVPair) Unmarshal(dAtA []byte) error

func (*DVPair) XXX_DiscardUnknown

func (m *DVPair) XXX_DiscardUnknown()

func (*DVPair) XXX_Marshal

func (m *DVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DVPair) XXX_Merge

func (m *DVPair) XXX_Merge(src proto.Message)

func (*DVPair) XXX_Size

func (m *DVPair) XXX_Size() int

func (*DVPair) XXX_Unmarshal

func (m *DVPair) XXX_Unmarshal(b []byte) error

type DVPairs

type DVPairs struct {
	Pairs []DVPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

DVPairs defines an array of DVPair objects.

func (*DVPairs) Descriptor

func (*DVPairs) Descriptor() ([]byte, []int)

func (*DVPairs) GetPairs

func (m *DVPairs) GetPairs() []DVPair

func (*DVPairs) Marshal

func (m *DVPairs) Marshal() (dAtA []byte, err error)

func (*DVPairs) MarshalTo

func (m *DVPairs) MarshalTo(dAtA []byte) (int, error)

func (*DVPairs) MarshalToSizedBuffer

func (m *DVPairs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DVPairs) ProtoMessage

func (*DVPairs) ProtoMessage()

func (*DVPairs) Reset

func (m *DVPairs) Reset()

func (*DVPairs) Size

func (m *DVPairs) Size() (n int)

func (*DVPairs) String

func (m *DVPairs) String() string

func (*DVPairs) Unmarshal

func (m *DVPairs) Unmarshal(dAtA []byte) error

func (*DVPairs) XXX_DiscardUnknown

func (m *DVPairs) XXX_DiscardUnknown()

func (*DVPairs) XXX_Marshal

func (m *DVPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DVPairs) XXX_Merge

func (m *DVPairs) XXX_Merge(src proto.Message)

func (*DVPairs) XXX_Size

func (m *DVPairs) XXX_Size() int

func (*DVPairs) XXX_Unmarshal

func (m *DVPairs) XXX_Unmarshal(b []byte) error

type DVVTriplet

type DVVTriplet struct {
	DelegatorAddress    string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
}

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.

func (*DVVTriplet) Descriptor

func (*DVVTriplet) Descriptor() ([]byte, []int)

func (*DVVTriplet) Marshal

func (m *DVVTriplet) Marshal() (dAtA []byte, err error)

func (*DVVTriplet) MarshalTo

func (m *DVVTriplet) MarshalTo(dAtA []byte) (int, error)

func (*DVVTriplet) MarshalToSizedBuffer

func (m *DVVTriplet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DVVTriplet) ProtoMessage

func (*DVVTriplet) ProtoMessage()

func (*DVVTriplet) Reset

func (m *DVVTriplet) Reset()

func (*DVVTriplet) Size

func (m *DVVTriplet) Size() (n int)

func (DVVTriplet) String

func (dvv DVVTriplet) String() string

String implements the Stringer interface for a DVVTriplet object.

func (*DVVTriplet) Unmarshal

func (m *DVVTriplet) Unmarshal(dAtA []byte) error

func (*DVVTriplet) XXX_DiscardUnknown

func (m *DVVTriplet) XXX_DiscardUnknown()

func (*DVVTriplet) XXX_Marshal

func (m *DVVTriplet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DVVTriplet) XXX_Merge

func (m *DVVTriplet) XXX_Merge(src proto.Message)

func (*DVVTriplet) XXX_Size

func (m *DVVTriplet) XXX_Size() int

func (*DVVTriplet) XXX_Unmarshal

func (m *DVVTriplet) XXX_Unmarshal(b []byte) error

type DVVTriplets

type DVVTriplets struct {
	Triplets []DVVTriplet `protobuf:"bytes,1,rep,name=triplets,proto3" json:"triplets"`
}

DVVTriplets defines an array of DVVTriplet objects.

func (*DVVTriplets) Descriptor

func (*DVVTriplets) Descriptor() ([]byte, []int)

func (*DVVTriplets) GetTriplets

func (m *DVVTriplets) GetTriplets() []DVVTriplet

func (*DVVTriplets) Marshal

func (m *DVVTriplets) Marshal() (dAtA []byte, err error)

func (*DVVTriplets) MarshalTo

func (m *DVVTriplets) MarshalTo(dAtA []byte) (int, error)

func (*DVVTriplets) MarshalToSizedBuffer

func (m *DVVTriplets) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DVVTriplets) ProtoMessage

func (*DVVTriplets) ProtoMessage()

func (*DVVTriplets) Reset

func (m *DVVTriplets) Reset()

func (*DVVTriplets) Size

func (m *DVVTriplets) Size() (n int)

func (*DVVTriplets) String

func (m *DVVTriplets) String() string

func (*DVVTriplets) Unmarshal

func (m *DVVTriplets) Unmarshal(dAtA []byte) error

func (*DVVTriplets) XXX_DiscardUnknown

func (m *DVVTriplets) XXX_DiscardUnknown()

func (*DVVTriplets) XXX_Marshal

func (m *DVVTriplets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DVVTriplets) XXX_Merge

func (m *DVVTriplets) XXX_Merge(src proto.Message)

func (*DVVTriplets) XXX_Size

func (m *DVVTriplets) XXX_Size() int

func (*DVVTriplets) XXX_Unmarshal

func (m *DVVTriplets) XXX_Unmarshal(b []byte) error

type Delegation

type Delegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// shares define the delegation shares received.
	Shares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares"`
	// has this delegation been marked as a validator self bond.
	ValidatorBond bool `protobuf:"varint,4,opt,name=validator_bond,json=validatorBond,proto3" json:"validator_bond,omitempty"`
}

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.

func MustUnmarshalDelegation

func MustUnmarshalDelegation(cdc codec.BinaryCodec, value []byte) Delegation

MustUnmarshalDelegation return the unmarshaled delegation from bytes. Panics if fails.

func NewDelegation

func NewDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, shares sdk.Dec) Delegation

NewDelegation creates a new delegation object

func UnmarshalDelegation

func UnmarshalDelegation(cdc codec.BinaryCodec, value []byte) (delegation Delegation, err error)

return the delegation

func (*Delegation) Descriptor

func (*Delegation) Descriptor() ([]byte, []int)

func (Delegation) GetDelegatorAddr

func (d Delegation) GetDelegatorAddr() sdk.AccAddress

func (Delegation) GetShares

func (d Delegation) GetShares() math.LegacyDec

func (Delegation) GetValidatorAddr

func (d Delegation) GetValidatorAddr() sdk.ValAddress

func (*Delegation) Marshal

func (m *Delegation) Marshal() (dAtA []byte, err error)

func (*Delegation) MarshalTo

func (m *Delegation) MarshalTo(dAtA []byte) (int, error)

func (*Delegation) MarshalToSizedBuffer

func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

func (m *Delegation) Size() (n int)

func (Delegation) String

func (d Delegation) String() string

String returns a human readable string representation of a Delegation.

func (*Delegation) Unmarshal

func (m *Delegation) Unmarshal(dAtA []byte) error

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Delegation) XXX_Merge

func (m *Delegation) XXX_Merge(src proto.Message)

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

func (m *Delegation) XXX_Unmarshal(b []byte) error

type DelegationI added in v0.40.0

type DelegationI interface {
	GetDelegatorAddr() sdk.AccAddress // delegator sdk.AccAddress for the bond
	GetValidatorAddr() sdk.ValAddress // validator operator address
	GetShares() math.LegacyDec        // amount of validator's shares held in this delegation
}

DelegationI delegation bond for a delegated proof of stake system

type DelegationResponse

type DelegationResponse struct {
	Delegation Delegation  `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
	Balance    types2.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"`
}

DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.

func NewDelegationResp

func NewDelegationResp(
	delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, shares sdk.Dec, validatorBond bool, balance sdk.Coin,
) DelegationResponse

NewDelegationResp creates a new DelegationResponse instance

func (*DelegationResponse) Descriptor added in v0.40.0

func (*DelegationResponse) Descriptor() ([]byte, []int)

func (*DelegationResponse) GetBalance added in v0.40.0

func (m *DelegationResponse) GetBalance() types2.Coin

func (*DelegationResponse) GetDelegation added in v0.40.0

func (m *DelegationResponse) GetDelegation() Delegation

func (*DelegationResponse) Marshal added in v0.40.0

func (m *DelegationResponse) Marshal() (dAtA []byte, err error)

func (DelegationResponse) MarshalJSON

func (d DelegationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*DelegationResponse) MarshalTo added in v0.40.0

func (m *DelegationResponse) MarshalTo(dAtA []byte) (int, error)

func (*DelegationResponse) MarshalToSizedBuffer added in v0.40.0

func (m *DelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegationResponse) ProtoMessage added in v0.40.0

func (*DelegationResponse) ProtoMessage()

func (*DelegationResponse) Reset added in v0.40.0

func (m *DelegationResponse) Reset()

func (*DelegationResponse) Size added in v0.40.0

func (m *DelegationResponse) Size() (n int)

func (DelegationResponse) String

func (d DelegationResponse) String() string

String implements the Stringer interface for DelegationResponse.

func (*DelegationResponse) Unmarshal added in v0.40.0

func (m *DelegationResponse) Unmarshal(dAtA []byte) error

func (*DelegationResponse) UnmarshalJSON

func (d *DelegationResponse) UnmarshalJSON(bz []byte) error

UnmarshalJSON implements the json.Unmarshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*DelegationResponse) XXX_DiscardUnknown added in v0.40.0

func (m *DelegationResponse) XXX_DiscardUnknown()

func (*DelegationResponse) XXX_Marshal added in v0.40.0

func (m *DelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationResponse) XXX_Merge added in v0.40.0

func (m *DelegationResponse) XXX_Merge(src proto.Message)

func (*DelegationResponse) XXX_Size added in v0.40.0

func (m *DelegationResponse) XXX_Size() int

func (*DelegationResponse) XXX_Unmarshal added in v0.40.0

func (m *DelegationResponse) XXX_Unmarshal(b []byte) error

type DelegationResponses

type DelegationResponses []DelegationResponse

DelegationResponses is a collection of DelegationResp

func (DelegationResponses) String

func (d DelegationResponses) String() (out string)

String implements the Stringer interface for DelegationResponses.

type DelegationSet

type DelegationSet interface {
	GetValidatorSet() ValidatorSet // validator set for which delegation set is based upon

	// iterate through all delegations from one delegator by validator-AccAddress,
	//   execute func for each validator
	IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress,
		fn func(index int64, delegation DelegationI) (stop bool))
}

DelegationSet expected properties for the set of all delegations for a particular (noalias)

type Delegations

type Delegations []Delegation

Delegations is a collection of delegations

func (Delegations) String

func (d Delegations) String() (out string)

type Description

type Description struct {
	// moniker defines a human-readable name for the validator.
	Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// identity defines an optional identity signature (ex. UPort or Keybase).
	Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// website defines an optional website link.
	Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	// security_contact defines an optional email for security contact.
	SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"`
	// details define other optional details.
	Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
}

Description defines a validator description.

func NewDescription

func NewDescription(moniker, identity, website, securityContact, details string) Description

func (*Description) Descriptor

func (*Description) Descriptor() ([]byte, []int)

func (Description) EnsureLength

func (d Description) EnsureLength() (Description, error)

EnsureLength ensures the length of a validator's description.

func (*Description) Equal

func (this *Description) Equal(that interface{}) bool

func (*Description) GetDetails

func (m *Description) GetDetails() string

func (*Description) GetIdentity

func (m *Description) GetIdentity() string

func (*Description) GetMoniker

func (m *Description) GetMoniker() string

func (*Description) GetSecurityContact

func (m *Description) GetSecurityContact() string

func (*Description) GetWebsite

func (m *Description) GetWebsite() string

func (*Description) Marshal

func (m *Description) Marshal() (dAtA []byte, err error)

func (*Description) MarshalTo

func (m *Description) MarshalTo(dAtA []byte) (int, error)

func (*Description) MarshalToSizedBuffer

func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) Reset

func (m *Description) Reset()

func (*Description) Size

func (m *Description) Size() (n int)

func (Description) String

func (d Description) String() string

String implements the Stringer interface for a Description object.

func (*Description) Unmarshal

func (m *Description) Unmarshal(dAtA []byte) error

func (Description) UpdateDescription

func (d Description) UpdateDescription(d2 Description) (Description, error)

UpdateDescription updates the fields of a given description. An error is returned if the resulting description contains an invalid length.

func (*Description) XXX_DiscardUnknown

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal

func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Description) XXX_Merge

func (m *Description) XXX_Merge(src proto.Message)

func (*Description) XXX_Size

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal

func (m *Description) XXX_Unmarshal(b []byte) error

type DistributionKeeper

type DistributionKeeper interface {
	GetFeePoolCommunityCoins(ctx sdk.Context) sdk.DecCoins
	GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins
}

DistributionKeeper expected distribution keeper (noalias)

type GenesisState

type GenesisState struct {
	// params defines all the parameters of related to deposit.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// last_total_power tracks the total amounts of bonded tokens recorded during
	// the previous end block.
	LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */
	// last_validator_powers is a special index that provides a historical list
	// of the last-block's bonded validators.
	LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers"`
	// delegations defines the validator set at genesis.
	Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"`
	// delegations defines the delegations active at genesis.
	Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`
	// unbonding_delegations defines the unbonding delegations active at genesis.
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	// redelegations defines the redelegations active at genesis.
	Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"`
	Exported      bool           `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"`
	// store tokenize share records to provide reward to record owners
	TokenizeShareRecords []TokenizeShareRecord `protobuf:"bytes,9,rep,name=tokenize_share_records,json=tokenizeShareRecords,proto3" json:"tokenize_share_records"`
	// last tokenize share record id, used for next share record id calculation
	LastTokenizeShareRecordId uint64 `` /* 144-byte string literal not displayed */
	// total number of liquid staked tokens at genesis
	TotalLiquidStakedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 209-byte string literal not displayed */
	// tokenize shares locks at genesis
	TokenizeShareLocks []TokenizeShareLock `protobuf:"bytes,12,rep,name=tokenize_share_locks,json=tokenizeShareLocks,proto3" json:"tokenize_share_locks"`
}

GenesisState defines the staking module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState gets the raw genesis raw message for testing

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState

GetGenesisStateFromAppState returns x/staking GenesisState given raw application genesis state.

func NewGenesisState

func NewGenesisState(params Params, validators []Validator, delegations []Delegation) *GenesisState

NewGenesisState creates a new GenesisState instanc e

func (*GenesisState) Descriptor added in v0.40.0

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetDelegations added in v0.40.0

func (m *GenesisState) GetDelegations() []Delegation

func (*GenesisState) GetExported added in v0.40.0

func (m *GenesisState) GetExported() bool

func (*GenesisState) GetLastTokenizeShareRecordId

func (m *GenesisState) GetLastTokenizeShareRecordId() uint64

func (*GenesisState) GetLastValidatorPowers added in v0.40.0

func (m *GenesisState) GetLastValidatorPowers() []LastValidatorPower

func (*GenesisState) GetParams added in v0.40.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRedelegations added in v0.40.0

func (m *GenesisState) GetRedelegations() []Redelegation

func (*GenesisState) GetTokenizeShareLocks

func (m *GenesisState) GetTokenizeShareLocks() []TokenizeShareLock

func (*GenesisState) GetTokenizeShareRecords

func (m *GenesisState) GetTokenizeShareRecords() []TokenizeShareRecord

func (*GenesisState) GetUnbondingDelegations added in v0.40.0

func (m *GenesisState) GetUnbondingDelegations() []UnbondingDelegation

func (*GenesisState) GetValidators added in v0.40.0

func (m *GenesisState) GetValidators() []Validator

func (*GenesisState) Marshal added in v0.40.0

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo added in v0.40.0

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer added in v0.40.0

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage added in v0.40.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.40.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.40.0

func (m *GenesisState) Size() (n int)

func (*GenesisState) String added in v0.40.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.40.0

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) UnpackInterfaces added in v0.40.0

func (g GenesisState) UnpackInterfaces(c codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*GenesisState) XXX_DiscardUnknown added in v0.40.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.40.0

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge added in v0.40.0

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size added in v0.40.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.40.0

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type HistoricalInfo

type HistoricalInfo struct {
	Header types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"`
	Valset []Validator  `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset"`
}

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).

func MustUnmarshalHistoricalInfo

func MustUnmarshalHistoricalInfo(cdc codec.BinaryCodec, value []byte) HistoricalInfo

MustUnmarshalHistoricalInfo wll unmarshal historical info and panic on error

func NewHistoricalInfo

func NewHistoricalInfo(header tmproto.Header, valSet Validators, powerReduction math.Int) HistoricalInfo

NewHistoricalInfo will create a historical information struct from header and valset it will first sort valset before inclusion into historical info

func UnmarshalHistoricalInfo

func UnmarshalHistoricalInfo(cdc codec.BinaryCodec, value []byte) (hi HistoricalInfo, err error)

UnmarshalHistoricalInfo will unmarshal historical info and return any error

func (*HistoricalInfo) Descriptor

func (*HistoricalInfo) Descriptor() ([]byte, []int)

func (*HistoricalInfo) Equal

func (hi *HistoricalInfo) Equal(hi2 *HistoricalInfo) bool

Equal checks if receiver is equal to the parameter

func (*HistoricalInfo) GetHeader

func (m *HistoricalInfo) GetHeader() types.Header

func (*HistoricalInfo) GetValset

func (m *HistoricalInfo) GetValset() []Validator

func (*HistoricalInfo) Marshal

func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)

func (*HistoricalInfo) MarshalTo

func (m *HistoricalInfo) MarshalTo(dAtA []byte) (int, error)

func (*HistoricalInfo) MarshalToSizedBuffer

func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HistoricalInfo) ProtoMessage

func (*HistoricalInfo) ProtoMessage()

func (*HistoricalInfo) Reset

func (m *HistoricalInfo) Reset()

func (*HistoricalInfo) Size

func (m *HistoricalInfo) Size() (n int)

func (*HistoricalInfo) String

func (m *HistoricalInfo) String() string

func (*HistoricalInfo) Unmarshal

func (m *HistoricalInfo) Unmarshal(dAtA []byte) error

func (HistoricalInfo) UnpackInterfaces added in v0.40.0

func (hi HistoricalInfo) UnpackInterfaces(c codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*HistoricalInfo) XXX_DiscardUnknown

func (m *HistoricalInfo) XXX_DiscardUnknown()

func (*HistoricalInfo) XXX_Marshal

func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HistoricalInfo) XXX_Merge

func (m *HistoricalInfo) XXX_Merge(src proto.Message)

func (*HistoricalInfo) XXX_Size

func (m *HistoricalInfo) XXX_Size() int

func (*HistoricalInfo) XXX_Unmarshal

func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error

type Infraction added in v0.47.0

type Infraction int32

Infraction indicates the infraction a validator commited.

const (
	// UNSPECIFIED defines an empty infraction.
	Infraction_INFRACTION_UNSPECIFIED Infraction = 0
	// DOUBLE_SIGN defines a validator that double-signs a block.
	Infraction_INFRACTION_DOUBLE_SIGN Infraction = 1
	// DOWNTIME defines a validator that missed signing too many blocks.
	Infraction_INFRACTION_DOWNTIME Infraction = 2
)

func (Infraction) EnumDescriptor added in v0.47.0

func (Infraction) EnumDescriptor() ([]byte, []int)

func (Infraction) String added in v0.47.0

func (x Infraction) String() string

type LastValidatorPower

type LastValidatorPower struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// power defines the power of the validator.
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
}

LastValidatorPower required for validator set update logic.

func (*LastValidatorPower) Descriptor added in v0.40.0

func (*LastValidatorPower) Descriptor() ([]byte, []int)

func (*LastValidatorPower) Marshal added in v0.40.0

func (m *LastValidatorPower) Marshal() (dAtA []byte, err error)

func (*LastValidatorPower) MarshalTo added in v0.40.0

func (m *LastValidatorPower) MarshalTo(dAtA []byte) (int, error)

func (*LastValidatorPower) MarshalToSizedBuffer added in v0.40.0

func (m *LastValidatorPower) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LastValidatorPower) ProtoMessage added in v0.40.0

func (*LastValidatorPower) ProtoMessage()

func (*LastValidatorPower) Reset added in v0.40.0

func (m *LastValidatorPower) Reset()

func (*LastValidatorPower) Size added in v0.40.0

func (m *LastValidatorPower) Size() (n int)

func (*LastValidatorPower) String added in v0.40.0

func (m *LastValidatorPower) String() string

func (*LastValidatorPower) Unmarshal added in v0.40.0

func (m *LastValidatorPower) Unmarshal(dAtA []byte) error

func (*LastValidatorPower) XXX_DiscardUnknown added in v0.40.0

func (m *LastValidatorPower) XXX_DiscardUnknown()

func (*LastValidatorPower) XXX_Marshal added in v0.40.0

func (m *LastValidatorPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LastValidatorPower) XXX_Merge added in v0.40.0

func (m *LastValidatorPower) XXX_Merge(src proto.Message)

func (*LastValidatorPower) XXX_Size added in v0.40.0

func (m *LastValidatorPower) XXX_Size() int

func (*LastValidatorPower) XXX_Unmarshal added in v0.40.0

func (m *LastValidatorPower) XXX_Unmarshal(b []byte) error

type MsgBeginRedelegate

type MsgBeginRedelegate struct {
	DelegatorAddress    string      `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorSrcAddress string      `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	ValidatorDstAddress string      `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	Amount              types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

MsgBeginRedelegate defines a SDK message for performing a redelegation of coins from a delegator and source validator to a destination validator.

func NewMsgBeginRedelegate

func NewMsgBeginRedelegate(
	delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, amount sdk.Coin,
) *MsgBeginRedelegate

NewMsgBeginRedelegate creates a new MsgBeginRedelegate instance.

func (*MsgBeginRedelegate) Descriptor

func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)

func (MsgBeginRedelegate) GetSignBytes

func (msg MsgBeginRedelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgBeginRedelegate) GetSigners

func (msg MsgBeginRedelegate) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface

func (*MsgBeginRedelegate) Marshal

func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error)

func (*MsgBeginRedelegate) MarshalTo

func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)

func (*MsgBeginRedelegate) MarshalToSizedBuffer

func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBeginRedelegate) ProtoMessage

func (*MsgBeginRedelegate) ProtoMessage()

func (*MsgBeginRedelegate) Reset

func (m *MsgBeginRedelegate) Reset()

func (MsgBeginRedelegate) Route

func (msg MsgBeginRedelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgBeginRedelegate) Size

func (m *MsgBeginRedelegate) Size() (n int)

func (*MsgBeginRedelegate) String

func (m *MsgBeginRedelegate) String() string

func (MsgBeginRedelegate) Type

func (msg MsgBeginRedelegate) Type() string

Type implements the sdk.Msg interface

func (*MsgBeginRedelegate) Unmarshal

func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error

func (MsgBeginRedelegate) ValidateBasic

func (msg MsgBeginRedelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgBeginRedelegate) XXX_DiscardUnknown

func (m *MsgBeginRedelegate) XXX_DiscardUnknown()

func (*MsgBeginRedelegate) XXX_Marshal

func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBeginRedelegate) XXX_Merge

func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)

func (*MsgBeginRedelegate) XXX_Size

func (m *MsgBeginRedelegate) XXX_Size() int

func (*MsgBeginRedelegate) XXX_Unmarshal

func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error

type MsgBeginRedelegateResponse added in v0.40.0

type MsgBeginRedelegateResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.

func (*MsgBeginRedelegateResponse) Descriptor added in v0.40.0

func (*MsgBeginRedelegateResponse) Descriptor() ([]byte, []int)

func (*MsgBeginRedelegateResponse) GetCompletionTime added in v0.40.0

func (m *MsgBeginRedelegateResponse) GetCompletionTime() time.Time

func (*MsgBeginRedelegateResponse) Marshal added in v0.40.0

func (m *MsgBeginRedelegateResponse) Marshal() (dAtA []byte, err error)

func (*MsgBeginRedelegateResponse) MarshalTo added in v0.40.0

func (m *MsgBeginRedelegateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBeginRedelegateResponse) MarshalToSizedBuffer added in v0.40.0

func (m *MsgBeginRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBeginRedelegateResponse) ProtoMessage added in v0.40.0

func (*MsgBeginRedelegateResponse) ProtoMessage()

func (*MsgBeginRedelegateResponse) Reset added in v0.40.0

func (m *MsgBeginRedelegateResponse) Reset()

func (*MsgBeginRedelegateResponse) Size added in v0.40.0

func (m *MsgBeginRedelegateResponse) Size() (n int)

func (*MsgBeginRedelegateResponse) String added in v0.40.0

func (m *MsgBeginRedelegateResponse) String() string

func (*MsgBeginRedelegateResponse) Unmarshal added in v0.40.0

func (m *MsgBeginRedelegateResponse) Unmarshal(dAtA []byte) error

func (*MsgBeginRedelegateResponse) XXX_DiscardUnknown added in v0.40.0

func (m *MsgBeginRedelegateResponse) XXX_DiscardUnknown()

func (*MsgBeginRedelegateResponse) XXX_Marshal added in v0.40.0

func (m *MsgBeginRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBeginRedelegateResponse) XXX_Merge added in v0.40.0

func (m *MsgBeginRedelegateResponse) XXX_Merge(src proto.Message)

func (*MsgBeginRedelegateResponse) XXX_Size added in v0.40.0

func (m *MsgBeginRedelegateResponse) XXX_Size() int

func (*MsgBeginRedelegateResponse) XXX_Unmarshal added in v0.40.0

func (m *MsgBeginRedelegateResponse) XXX_Unmarshal(b []byte) error

type MsgCancelUnbondingDelegation added in v0.46.0

type MsgCancelUnbondingDelegation struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// amount is always less than or equal to unbonding delegation entry balance
	Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
	// creation_height is the height which the unbonding took place.
	CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
}

MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator

Since: cosmos-sdk 0.46

func NewMsgCancelUnbondingDelegation added in v0.46.0

func NewMsgCancelUnbondingDelegation(delAddr sdk.AccAddress, valAddr sdk.ValAddress, creationHeight int64, amount sdk.Coin) *MsgCancelUnbondingDelegation

NewMsgCancelUnbondingDelegation creates a new MsgCancelUnbondingDelegation instance.

func (*MsgCancelUnbondingDelegation) Descriptor added in v0.46.0

func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int)

func (MsgCancelUnbondingDelegation) GetSignBytes added in v0.46.0

func (msg MsgCancelUnbondingDelegation) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgCancelUnbondingDelegation) GetSigners added in v0.46.0

func (msg MsgCancelUnbondingDelegation) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgCancelUnbondingDelegation) Marshal added in v0.46.0

func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error)

func (*MsgCancelUnbondingDelegation) MarshalTo added in v0.46.0

func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelUnbondingDelegation) MarshalToSizedBuffer added in v0.46.0

func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelUnbondingDelegation) ProtoMessage added in v0.46.0

func (*MsgCancelUnbondingDelegation) ProtoMessage()

func (*MsgCancelUnbondingDelegation) Reset added in v0.46.0

func (m *MsgCancelUnbondingDelegation) Reset()

func (MsgCancelUnbondingDelegation) Route added in v0.46.0

Route implements the sdk.Msg interface.

func (*MsgCancelUnbondingDelegation) Size added in v0.46.0

func (m *MsgCancelUnbondingDelegation) Size() (n int)

func (*MsgCancelUnbondingDelegation) String added in v0.46.0

func (MsgCancelUnbondingDelegation) Type added in v0.46.0

Type implements the sdk.Msg interface.

func (*MsgCancelUnbondingDelegation) Unmarshal added in v0.46.0

func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error

func (MsgCancelUnbondingDelegation) ValidateBasic added in v0.46.0

func (msg MsgCancelUnbondingDelegation) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgCancelUnbondingDelegation) XXX_DiscardUnknown added in v0.46.0

func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown()

func (*MsgCancelUnbondingDelegation) XXX_Marshal added in v0.46.0

func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelUnbondingDelegation) XXX_Merge added in v0.46.0

func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message)

func (*MsgCancelUnbondingDelegation) XXX_Size added in v0.46.0

func (m *MsgCancelUnbondingDelegation) XXX_Size() int

func (*MsgCancelUnbondingDelegation) XXX_Unmarshal added in v0.46.0

func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error

type MsgCancelUnbondingDelegationResponse added in v0.46.0

type MsgCancelUnbondingDelegationResponse struct {
}

MsgCancelUnbondingDelegationResponse

Since: cosmos-sdk 0.46

func (*MsgCancelUnbondingDelegationResponse) Descriptor added in v0.46.0

func (*MsgCancelUnbondingDelegationResponse) Descriptor() ([]byte, []int)

func (*MsgCancelUnbondingDelegationResponse) Marshal added in v0.46.0

func (m *MsgCancelUnbondingDelegationResponse) Marshal() (dAtA []byte, err error)

func (*MsgCancelUnbondingDelegationResponse) MarshalTo added in v0.46.0

func (m *MsgCancelUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelUnbondingDelegationResponse) MarshalToSizedBuffer added in v0.46.0

func (m *MsgCancelUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelUnbondingDelegationResponse) ProtoMessage added in v0.46.0

func (*MsgCancelUnbondingDelegationResponse) ProtoMessage()

func (*MsgCancelUnbondingDelegationResponse) Reset added in v0.46.0

func (*MsgCancelUnbondingDelegationResponse) Size added in v0.46.0

func (*MsgCancelUnbondingDelegationResponse) String added in v0.46.0

func (*MsgCancelUnbondingDelegationResponse) Unmarshal added in v0.46.0

func (m *MsgCancelUnbondingDelegationResponse) Unmarshal(dAtA []byte) error

func (*MsgCancelUnbondingDelegationResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgCancelUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*MsgCancelUnbondingDelegationResponse) XXX_Marshal added in v0.46.0

func (m *MsgCancelUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelUnbondingDelegationResponse) XXX_Merge added in v0.46.0

func (*MsgCancelUnbondingDelegationResponse) XXX_Size added in v0.46.0

func (*MsgCancelUnbondingDelegationResponse) XXX_Unmarshal added in v0.46.0

func (m *MsgCancelUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error

type MsgClient added in v0.40.0

type MsgClient interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error)
	// EditValidator defines a method for editing an existing validator.
	EditValidator(ctx context.Context, in *MsgEditValidator, opts ...grpc.CallOption) (*MsgEditValidatorResponse, error)
	// Delegate defines a method for performing a delegation of coins
	// from a delegator to a validator.
	Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
	// BeginRedelegate defines a method for performing a redelegation
	// of coins from a delegator and source validator to a destination validator.
	BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// delegate and a validator.
	Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
	// CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
	// and delegate back to previous validator.
	//
	// Since: cosmos-sdk 0.46
	CancelUnbondingDelegation(ctx context.Context, in *MsgCancelUnbondingDelegation, opts ...grpc.CallOption) (*MsgCancelUnbondingDelegationResponse, error)
	// UpdateParams defines an operation for updating the x/staking module
	// parameters.
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// UnbondValidator defines a method for performing the status transition for a validator
	// from bonded to unbonding
	// This allows a validator to stop their services and jail themselves without
	// experiencing a slash
	UnbondValidator(ctx context.Context, in *MsgUnbondValidator, opts ...grpc.CallOption) (*MsgUnbondValidatorResponse, error)
	// TokenizeShares defines a method for tokenizing shares from a validator.
	TokenizeShares(ctx context.Context, in *MsgTokenizeShares, opts ...grpc.CallOption) (*MsgTokenizeSharesResponse, error)
	// RedeemTokensForShares defines a method for redeeming tokens from a validator for
	// shares.
	RedeemTokensForShares(ctx context.Context, in *MsgRedeemTokensForShares, opts ...grpc.CallOption) (*MsgRedeemTokensForSharesResponse, error)
	// TransferTokenizeShareRecord defines a method to transfer ownership of
	// TokenizeShareRecord
	TransferTokenizeShareRecord(ctx context.Context, in *MsgTransferTokenizeShareRecord, opts ...grpc.CallOption) (*MsgTransferTokenizeShareRecordResponse, error)
	// DisableTokenizeShares defines a method to prevent the tokenization of an addresses stake
	DisableTokenizeShares(ctx context.Context, in *MsgDisableTokenizeShares, opts ...grpc.CallOption) (*MsgDisableTokenizeSharesResponse, error)
	// EnableTokenizeShares defines a method to re-enable the tokenization of an addresseses stake
	// after it has been disabled
	EnableTokenizeShares(ctx context.Context, in *MsgEnableTokenizeShares, opts ...grpc.CallOption) (*MsgEnableTokenizeSharesResponse, error)
	// ValidatorBond defines a method for performing a validator self-bond
	ValidatorBond(ctx context.Context, in *MsgValidatorBond, opts ...grpc.CallOption) (*MsgValidatorBondResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient added in v0.40.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateValidator

type MsgCreateValidator struct {
	Description Description     `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	Commission  CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"`
	// Deprecated: This field has been deprecated with LSM in favor of the validator bond
	MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` // Deprecated: Do not use.
	/* 154-byte string literal not displayed */
	DelegatorAddress string      `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string      `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Pubkey           *types.Any  `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Value            types1.Coin `protobuf:"bytes,7,opt,name=value,proto3" json:"value"`
}

MsgCreateValidator defines a SDK message for creating a new validator.

func NewMsgCreateValidator

func NewMsgCreateValidator(
	valAddr sdk.ValAddress, pubKey cryptotypes.PubKey,
	selfDelegation sdk.Coin, description Description, commission CommissionRates,
) (*MsgCreateValidator, error)

NewMsgCreateValidator creates a new MsgCreateValidator instance. Delegator address and validator address are the same.

func (*MsgCreateValidator) Descriptor

func (*MsgCreateValidator) Descriptor() ([]byte, []int)

func (MsgCreateValidator) GetSignBytes

func (msg MsgCreateValidator) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (MsgCreateValidator) GetSigners

func (msg MsgCreateValidator) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface. It returns the address(es) that must sign over msg.GetSignBytes(). If the validator address is not same as delegator's, then the validator must sign the msg as well.

func (*MsgCreateValidator) Marshal

func (m *MsgCreateValidator) Marshal() (dAtA []byte, err error)

func (*MsgCreateValidator) MarshalTo

func (m *MsgCreateValidator) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateValidator) MarshalToSizedBuffer

func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateValidator) ProtoMessage

func (*MsgCreateValidator) ProtoMessage()

func (*MsgCreateValidator) Reset

func (m *MsgCreateValidator) Reset()

func (MsgCreateValidator) Route

func (msg MsgCreateValidator) Route() string

Route implements the sdk.Msg interface.

func (*MsgCreateValidator) Size

func (m *MsgCreateValidator) Size() (n int)

func (*MsgCreateValidator) String

func (m *MsgCreateValidator) String() string

func (MsgCreateValidator) Type

func (msg MsgCreateValidator) Type() string

Type implements the sdk.Msg interface.

func (*MsgCreateValidator) Unmarshal

func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error

func (MsgCreateValidator) UnpackInterfaces added in v0.40.0

func (msg MsgCreateValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateValidator) ValidateBasic

func (msg MsgCreateValidator) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgCreateValidator) XXX_DiscardUnknown

func (m *MsgCreateValidator) XXX_DiscardUnknown()

func (*MsgCreateValidator) XXX_Marshal

func (m *MsgCreateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateValidator) XXX_Merge

func (m *MsgCreateValidator) XXX_Merge(src proto.Message)

func (*MsgCreateValidator) XXX_Size

func (m *MsgCreateValidator) XXX_Size() int

func (*MsgCreateValidator) XXX_Unmarshal

func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error

type MsgCreateValidatorResponse added in v0.40.0

type MsgCreateValidatorResponse struct {
}

MsgCreateValidatorResponse defines the Msg/CreateValidator response type.

func (*MsgCreateValidatorResponse) Descriptor added in v0.40.0

func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int)

func (*MsgCreateValidatorResponse) Marshal added in v0.40.0

func (m *MsgCreateValidatorResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateValidatorResponse) MarshalTo added in v0.40.0

func (m *MsgCreateValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateValidatorResponse) MarshalToSizedBuffer added in v0.40.0

func (m *MsgCreateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateValidatorResponse) ProtoMessage added in v0.40.0

func (*MsgCreateValidatorResponse) ProtoMessage()

func (*MsgCreateValidatorResponse) Reset added in v0.40.0

func (m *MsgCreateValidatorResponse) Reset()

func (*MsgCreateValidatorResponse) Size added in v0.40.0

func (m *MsgCreateValidatorResponse) Size() (n int)

func (*MsgCreateValidatorResponse) String added in v0.40.0

func (m *MsgCreateValidatorResponse) String() string

func (*MsgCreateValidatorResponse) Unmarshal added in v0.40.0

func (m *MsgCreateValidatorResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateValidatorResponse) XXX_DiscardUnknown added in v0.40.0

func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()

func (*MsgCreateValidatorResponse) XXX_Marshal added in v0.40.0

func (m *MsgCreateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateValidatorResponse) XXX_Merge added in v0.40.0

func (m *MsgCreateValidatorResponse) XXX_Merge(src proto.Message)

func (*MsgCreateValidatorResponse) XXX_Size added in v0.40.0

func (m *MsgCreateValidatorResponse) XXX_Size() int

func (*MsgCreateValidatorResponse) XXX_Unmarshal added in v0.40.0

func (m *MsgCreateValidatorResponse) XXX_Unmarshal(b []byte) error

type MsgDelegate

type MsgDelegate struct {
	DelegatorAddress string      `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string      `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Amount           types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgDelegate defines a SDK message for performing a delegation of coins from a delegator to a validator.

func NewMsgDelegate

func NewMsgDelegate(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) *MsgDelegate

NewMsgDelegate creates a new MsgDelegate instance.

func (*MsgDelegate) Descriptor

func (*MsgDelegate) Descriptor() ([]byte, []int)

func (MsgDelegate) GetSignBytes

func (msg MsgDelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgDelegate) GetSigners

func (msg MsgDelegate) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgDelegate) Marshal

func (m *MsgDelegate) Marshal() (dAtA []byte, err error)

func (*MsgDelegate) MarshalTo

func (m *MsgDelegate) MarshalTo(dAtA []byte) (int, error)

func (*MsgDelegate) MarshalToSizedBuffer

func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDelegate) ProtoMessage

func (*MsgDelegate) ProtoMessage()

func (*MsgDelegate) Reset

func (m *MsgDelegate) Reset()

func (MsgDelegate) Route

func (msg MsgDelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgDelegate) Size

func (m *MsgDelegate) Size() (n int)

func (*MsgDelegate) String

func (m *MsgDelegate) String() string

func (MsgDelegate) Type

func (msg MsgDelegate) Type() string

Type implements the sdk.Msg interface.

func (*MsgDelegate) Unmarshal

func (m *MsgDelegate) Unmarshal(dAtA []byte) error

func (MsgDelegate) ValidateBasic

func (msg MsgDelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgDelegate) XXX_DiscardUnknown

func (m *MsgDelegate) XXX_DiscardUnknown()

func (*MsgDelegate) XXX_Marshal

func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDelegate) XXX_Merge

func (m *MsgDelegate) XXX_Merge(src proto.Message)

func (*MsgDelegate) XXX_Size

func (m *MsgDelegate) XXX_Size() int

func (*MsgDelegate) XXX_Unmarshal

func (m *MsgDelegate) XXX_Unmarshal(b []byte) error

type MsgDelegateResponse added in v0.40.0

type MsgDelegateResponse struct {
}

MsgDelegateResponse defines the Msg/Delegate response type.

func (*MsgDelegateResponse) Descriptor added in v0.40.0

func (*MsgDelegateResponse) Descriptor() ([]byte, []int)

func (*MsgDelegateResponse) Marshal added in v0.40.0

func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error)

func (*MsgDelegateResponse) MarshalTo added in v0.40.0

func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDelegateResponse) MarshalToSizedBuffer added in v0.40.0

func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDelegateResponse) ProtoMessage added in v0.40.0

func (*MsgDelegateResponse) ProtoMessage()

func (*MsgDelegateResponse) Reset added in v0.40.0

func (m *MsgDelegateResponse) Reset()

func (*MsgDelegateResponse) Size added in v0.40.0

func (m *MsgDelegateResponse) Size() (n int)

func (*MsgDelegateResponse) String added in v0.40.0

func (m *MsgDelegateResponse) String() string

func (*MsgDelegateResponse) Unmarshal added in v0.40.0

func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error

func (*MsgDelegateResponse) XXX_DiscardUnknown added in v0.40.0

func (m *MsgDelegateResponse) XXX_DiscardUnknown()

func (*MsgDelegateResponse) XXX_Marshal added in v0.40.0

func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDelegateResponse) XXX_Merge added in v0.40.0

func (m *MsgDelegateResponse) XXX_Merge(src proto.Message)

func (*MsgDelegateResponse) XXX_Size added in v0.40.0

func (m *MsgDelegateResponse) XXX_Size() int

func (*MsgDelegateResponse) XXX_Unmarshal added in v0.40.0

func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error

type MsgDisableTokenizeShares

type MsgDisableTokenizeShares struct {
	DelegatorAddress string `` /* 134-byte string literal not displayed */
}

MsgDisableTokenizeShares prevents the tokenization of shares for a given address

func NewMsgDisableTokenizeShares

func NewMsgDisableTokenizeShares(delAddr sdk.AccAddress) *MsgDisableTokenizeShares

NewMsgDisableTokenizeShares creates a new MsgDisableTokenizeShares instance.

func (*MsgDisableTokenizeShares) Descriptor

func (*MsgDisableTokenizeShares) Descriptor() ([]byte, []int)

func (MsgDisableTokenizeShares) GetSignBytes

func (msg MsgDisableTokenizeShares) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgDisableTokenizeShares) GetSigners

func (msg MsgDisableTokenizeShares) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgDisableTokenizeShares) Marshal

func (m *MsgDisableTokenizeShares) Marshal() (dAtA []byte, err error)

func (*MsgDisableTokenizeShares) MarshalTo

func (m *MsgDisableTokenizeShares) MarshalTo(dAtA []byte) (int, error)

func (*MsgDisableTokenizeShares) MarshalToSizedBuffer

func (m *MsgDisableTokenizeShares) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDisableTokenizeShares) ProtoMessage

func (*MsgDisableTokenizeShares) ProtoMessage()

func (*MsgDisableTokenizeShares) Reset

func (m *MsgDisableTokenizeShares) Reset()

func (MsgDisableTokenizeShares) Route

func (msg MsgDisableTokenizeShares) Route() string

Route implements the sdk.Msg interface.

func (*MsgDisableTokenizeShares) Size

func (m *MsgDisableTokenizeShares) Size() (n int)

func (*MsgDisableTokenizeShares) String

func (m *MsgDisableTokenizeShares) String() string

func (MsgDisableTokenizeShares) Type

func (msg MsgDisableTokenizeShares) Type() string

Type implements the sdk.Msg interface.

func (*MsgDisableTokenizeShares) Unmarshal

func (m *MsgDisableTokenizeShares) Unmarshal(dAtA []byte) error

func (MsgDisableTokenizeShares) ValidateBasic

func (msg MsgDisableTokenizeShares) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgDisableTokenizeShares) XXX_DiscardUnknown

func (m *MsgDisableTokenizeShares) XXX_DiscardUnknown()

func (*MsgDisableTokenizeShares) XXX_Marshal

func (m *MsgDisableTokenizeShares) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDisableTokenizeShares) XXX_Merge

func (m *MsgDisableTokenizeShares) XXX_Merge(src proto.Message)

func (*MsgDisableTokenizeShares) XXX_Size

func (m *MsgDisableTokenizeShares) XXX_Size() int

func (*MsgDisableTokenizeShares) XXX_Unmarshal

func (m *MsgDisableTokenizeShares) XXX_Unmarshal(b []byte) error

type MsgDisableTokenizeSharesResponse

type MsgDisableTokenizeSharesResponse struct {
}

MsgDisableTokenizeSharesResponse defines the Msg/DisableTokenizeShares response type.

func (*MsgDisableTokenizeSharesResponse) Descriptor

func (*MsgDisableTokenizeSharesResponse) Descriptor() ([]byte, []int)

func (*MsgDisableTokenizeSharesResponse) Marshal

func (m *MsgDisableTokenizeSharesResponse) Marshal() (dAtA []byte, err error)

func (*MsgDisableTokenizeSharesResponse) MarshalTo

func (m *MsgDisableTokenizeSharesResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDisableTokenizeSharesResponse) MarshalToSizedBuffer

func (m *MsgDisableTokenizeSharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDisableTokenizeSharesResponse) ProtoMessage

func (*MsgDisableTokenizeSharesResponse) ProtoMessage()

func (*MsgDisableTokenizeSharesResponse) Reset

func (*MsgDisableTokenizeSharesResponse) Size

func (m *MsgDisableTokenizeSharesResponse) Size() (n int)

func (*MsgDisableTokenizeSharesResponse) String

func (*MsgDisableTokenizeSharesResponse) Unmarshal

func (m *MsgDisableTokenizeSharesResponse) Unmarshal(dAtA []byte) error

func (*MsgDisableTokenizeSharesResponse) XXX_DiscardUnknown

func (m *MsgDisableTokenizeSharesResponse) XXX_DiscardUnknown()

func (*MsgDisableTokenizeSharesResponse) XXX_Marshal

func (m *MsgDisableTokenizeSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDisableTokenizeSharesResponse) XXX_Merge

func (*MsgDisableTokenizeSharesResponse) XXX_Size

func (m *MsgDisableTokenizeSharesResponse) XXX_Size() int

func (*MsgDisableTokenizeSharesResponse) XXX_Unmarshal

func (m *MsgDisableTokenizeSharesResponse) XXX_Unmarshal(b []byte) error

type MsgEditValidator

type MsgEditValidator struct {
	Description      Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	ValidatorAddress string      `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// 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
	CommissionRate *github_com_cosmos_cosmos_sdk_types.Dec `` /* 153-byte string literal not displayed */
	// Deprecated: This field has been deprecated with LSM in favor of the validator bond
	MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` // Deprecated: Do not use.
	/* 154-byte string literal not displayed */
}

MsgEditValidator defines a SDK message for editing an existing validator.

func NewMsgEditValidator

func NewMsgEditValidator(valAddr sdk.ValAddress, description Description, newRate *sdk.Dec) *MsgEditValidator

NewMsgEditValidator creates a new MsgEditValidator instance

func (*MsgEditValidator) Descriptor

func (*MsgEditValidator) Descriptor() ([]byte, []int)

func (MsgEditValidator) GetSignBytes

func (msg MsgEditValidator) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgEditValidator) GetSigners

func (msg MsgEditValidator) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgEditValidator) Marshal

func (m *MsgEditValidator) Marshal() (dAtA []byte, err error)

func (*MsgEditValidator) MarshalTo

func (m *MsgEditValidator) MarshalTo(dAtA []byte) (int, error)

func (*MsgEditValidator) MarshalToSizedBuffer

func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEditValidator) ProtoMessage

func (*MsgEditValidator) ProtoMessage()

func (*MsgEditValidator) Reset

func (m *MsgEditValidator) Reset()

func (MsgEditValidator) Route

func (msg MsgEditValidator) Route() string

Route implements the sdk.Msg interface.

func (*MsgEditValidator) Size

func (m *MsgEditValidator) Size() (n int)

func (*MsgEditValidator) String

func (m *MsgEditValidator) String() string

func (MsgEditValidator) Type

func (msg MsgEditValidator) Type() string

Type implements the sdk.Msg interface.

func (*MsgEditValidator) Unmarshal

func (m *MsgEditValidator) Unmarshal(dAtA []byte) error

func (MsgEditValidator) ValidateBasic

func (msg MsgEditValidator) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgEditValidator) XXX_DiscardUnknown

func (m *MsgEditValidator) XXX_DiscardUnknown()

func (*MsgEditValidator) XXX_Marshal

func (m *MsgEditValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEditValidator) XXX_Merge

func (m *MsgEditValidator) XXX_Merge(src proto.Message)

func (*MsgEditValidator) XXX_Size

func (m *MsgEditValidator) XXX_Size() int

func (*MsgEditValidator) XXX_Unmarshal

func (m *MsgEditValidator) XXX_Unmarshal(b []byte) error

type MsgEditValidatorResponse added in v0.40.0

type MsgEditValidatorResponse struct {
}

MsgEditValidatorResponse defines the Msg/EditValidator response type.

func (*MsgEditValidatorResponse) Descriptor added in v0.40.0

func (*MsgEditValidatorResponse) Descriptor() ([]byte, []int)

func (*MsgEditValidatorResponse) Marshal added in v0.40.0

func (m *MsgEditValidatorResponse) Marshal() (dAtA []byte, err error)

func (*MsgEditValidatorResponse) MarshalTo added in v0.40.0

func (m *MsgEditValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgEditValidatorResponse) MarshalToSizedBuffer added in v0.40.0

func (m *MsgEditValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEditValidatorResponse) ProtoMessage added in v0.40.0

func (*MsgEditValidatorResponse) ProtoMessage()

func (*MsgEditValidatorResponse) Reset added in v0.40.0

func (m *MsgEditValidatorResponse) Reset()

func (*MsgEditValidatorResponse) Size added in v0.40.0

func (m *MsgEditValidatorResponse) Size() (n int)

func (*MsgEditValidatorResponse) String added in v0.40.0

func (m *MsgEditValidatorResponse) String() string

func (*MsgEditValidatorResponse) Unmarshal added in v0.40.0

func (m *MsgEditValidatorResponse) Unmarshal(dAtA []byte) error

func (*MsgEditValidatorResponse) XXX_DiscardUnknown added in v0.40.0

func (m *MsgEditValidatorResponse) XXX_DiscardUnknown()

func (*MsgEditValidatorResponse) XXX_Marshal added in v0.40.0

func (m *MsgEditValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEditValidatorResponse) XXX_Merge added in v0.40.0

func (m *MsgEditValidatorResponse) XXX_Merge(src proto.Message)

func (*MsgEditValidatorResponse) XXX_Size added in v0.40.0

func (m *MsgEditValidatorResponse) XXX_Size() int

func (*MsgEditValidatorResponse) XXX_Unmarshal added in v0.40.0

func (m *MsgEditValidatorResponse) XXX_Unmarshal(b []byte) error

type MsgEnableTokenizeShares

type MsgEnableTokenizeShares struct {
	DelegatorAddress string `` /* 134-byte string literal not displayed */
}

MsgEnableTokenizeShares re-enables tokenization of shares for a given address

func NewMsgEnableTokenizeShares

func NewMsgEnableTokenizeShares(delAddr sdk.AccAddress) *MsgEnableTokenizeShares

NewMsgEnableTokenizeShares creates a new MsgEnableTokenizeShares instance.

func (*MsgEnableTokenizeShares) Descriptor

func (*MsgEnableTokenizeShares) Descriptor() ([]byte, []int)

func (MsgEnableTokenizeShares) GetSignBytes

func (msg MsgEnableTokenizeShares) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgEnableTokenizeShares) GetSigners

func (msg MsgEnableTokenizeShares) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgEnableTokenizeShares) Marshal

func (m *MsgEnableTokenizeShares) Marshal() (dAtA []byte, err error)

func (*MsgEnableTokenizeShares) MarshalTo

func (m *MsgEnableTokenizeShares) MarshalTo(dAtA []byte) (int, error)

func (*MsgEnableTokenizeShares) MarshalToSizedBuffer

func (m *MsgEnableTokenizeShares) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEnableTokenizeShares) ProtoMessage

func (*MsgEnableTokenizeShares) ProtoMessage()

func (*MsgEnableTokenizeShares) Reset

func (m *MsgEnableTokenizeShares) Reset()

func (MsgEnableTokenizeShares) Route

func (msg MsgEnableTokenizeShares) Route() string

Route implements the sdk.Msg interface.

func (*MsgEnableTokenizeShares) Size

func (m *MsgEnableTokenizeShares) Size() (n int)

func (*MsgEnableTokenizeShares) String

func (m *MsgEnableTokenizeShares) String() string

func (MsgEnableTokenizeShares) Type

func (msg MsgEnableTokenizeShares) Type() string

Type implements the sdk.Msg interface.

func (*MsgEnableTokenizeShares) Unmarshal

func (m *MsgEnableTokenizeShares) Unmarshal(dAtA []byte) error

func (MsgEnableTokenizeShares) ValidateBasic

func (msg MsgEnableTokenizeShares) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgEnableTokenizeShares) XXX_DiscardUnknown

func (m *MsgEnableTokenizeShares) XXX_DiscardUnknown()

func (*MsgEnableTokenizeShares) XXX_Marshal

func (m *MsgEnableTokenizeShares) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEnableTokenizeShares) XXX_Merge

func (m *MsgEnableTokenizeShares) XXX_Merge(src proto.Message)

func (*MsgEnableTokenizeShares) XXX_Size

func (m *MsgEnableTokenizeShares) XXX_Size() int

func (*MsgEnableTokenizeShares) XXX_Unmarshal

func (m *MsgEnableTokenizeShares) XXX_Unmarshal(b []byte) error

type MsgEnableTokenizeSharesResponse

type MsgEnableTokenizeSharesResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgEnableTokenizeSharesResponse defines the Msg/EnableTokenizeShares response type.

func (*MsgEnableTokenizeSharesResponse) Descriptor

func (*MsgEnableTokenizeSharesResponse) Descriptor() ([]byte, []int)

func (*MsgEnableTokenizeSharesResponse) GetCompletionTime

func (m *MsgEnableTokenizeSharesResponse) GetCompletionTime() time.Time

func (*MsgEnableTokenizeSharesResponse) Marshal

func (m *MsgEnableTokenizeSharesResponse) Marshal() (dAtA []byte, err error)

func (*MsgEnableTokenizeSharesResponse) MarshalTo

func (m *MsgEnableTokenizeSharesResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgEnableTokenizeSharesResponse) MarshalToSizedBuffer

func (m *MsgEnableTokenizeSharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEnableTokenizeSharesResponse) ProtoMessage

func (*MsgEnableTokenizeSharesResponse) ProtoMessage()

func (*MsgEnableTokenizeSharesResponse) Reset

func (*MsgEnableTokenizeSharesResponse) Size

func (m *MsgEnableTokenizeSharesResponse) Size() (n int)

func (*MsgEnableTokenizeSharesResponse) String

func (*MsgEnableTokenizeSharesResponse) Unmarshal

func (m *MsgEnableTokenizeSharesResponse) Unmarshal(dAtA []byte) error

func (*MsgEnableTokenizeSharesResponse) XXX_DiscardUnknown

func (m *MsgEnableTokenizeSharesResponse) XXX_DiscardUnknown()

func (*MsgEnableTokenizeSharesResponse) XXX_Marshal

func (m *MsgEnableTokenizeSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEnableTokenizeSharesResponse) XXX_Merge

func (m *MsgEnableTokenizeSharesResponse) XXX_Merge(src proto.Message)

func (*MsgEnableTokenizeSharesResponse) XXX_Size

func (m *MsgEnableTokenizeSharesResponse) XXX_Size() int

func (*MsgEnableTokenizeSharesResponse) XXX_Unmarshal

func (m *MsgEnableTokenizeSharesResponse) XXX_Unmarshal(b []byte) error

type MsgRedeemTokensForShares

type MsgRedeemTokensForShares struct {
	DelegatorAddress string      `` /* 134-byte string literal not displayed */
	Amount           types1.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgRedeemTokensForShares redeems a tokenized share back into a native delegation

func NewMsgRedeemTokensForShares

func NewMsgRedeemTokensForShares(delAddr sdk.AccAddress, amount sdk.Coin) *MsgRedeemTokensForShares

NewMsgRedeemTokensForShares creates a new MsgRedeemTokensForShares instance.

func (*MsgRedeemTokensForShares) Descriptor

func (*MsgRedeemTokensForShares) Descriptor() ([]byte, []int)

func (MsgRedeemTokensForShares) GetSignBytes

func (msg MsgRedeemTokensForShares) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgRedeemTokensForShares) GetSigners

func (msg MsgRedeemTokensForShares) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgRedeemTokensForShares) Marshal

func (m *MsgRedeemTokensForShares) Marshal() (dAtA []byte, err error)

func (*MsgRedeemTokensForShares) MarshalTo

func (m *MsgRedeemTokensForShares) MarshalTo(dAtA []byte) (int, error)

func (*MsgRedeemTokensForShares) MarshalToSizedBuffer

func (m *MsgRedeemTokensForShares) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRedeemTokensForShares) ProtoMessage

func (*MsgRedeemTokensForShares) ProtoMessage()

func (*MsgRedeemTokensForShares) Reset

func (m *MsgRedeemTokensForShares) Reset()

func (MsgRedeemTokensForShares) Route

func (msg MsgRedeemTokensForShares) Route() string

Route implements the sdk.Msg interface.

func (*MsgRedeemTokensForShares) Size

func (m *MsgRedeemTokensForShares) Size() (n int)

func (*MsgRedeemTokensForShares) String

func (m *MsgRedeemTokensForShares) String() string

func (MsgRedeemTokensForShares) Type

func (msg MsgRedeemTokensForShares) Type() string

Type implements the sdk.Msg interface.

func (*MsgRedeemTokensForShares) Unmarshal

func (m *MsgRedeemTokensForShares) Unmarshal(dAtA []byte) error

func (MsgRedeemTokensForShares) ValidateBasic

func (msg MsgRedeemTokensForShares) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgRedeemTokensForShares) XXX_DiscardUnknown

func (m *MsgRedeemTokensForShares) XXX_DiscardUnknown()

func (*MsgRedeemTokensForShares) XXX_Marshal

func (m *MsgRedeemTokensForShares) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRedeemTokensForShares) XXX_Merge

func (m *MsgRedeemTokensForShares) XXX_Merge(src proto.Message)

func (*MsgRedeemTokensForShares) XXX_Size

func (m *MsgRedeemTokensForShares) XXX_Size() int

func (*MsgRedeemTokensForShares) XXX_Unmarshal

func (m *MsgRedeemTokensForShares) XXX_Unmarshal(b []byte) error

type MsgRedeemTokensForSharesResponse

type MsgRedeemTokensForSharesResponse struct {
	Amount types1.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"`
}

MsgRedeemTokensForSharesResponse defines the Msg/MsgRedeemTokensForShares response type.

func (*MsgRedeemTokensForSharesResponse) Descriptor

func (*MsgRedeemTokensForSharesResponse) Descriptor() ([]byte, []int)

func (*MsgRedeemTokensForSharesResponse) GetAmount

func (*MsgRedeemTokensForSharesResponse) Marshal

func (m *MsgRedeemTokensForSharesResponse) Marshal() (dAtA []byte, err error)

func (*MsgRedeemTokensForSharesResponse) MarshalTo

func (m *MsgRedeemTokensForSharesResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRedeemTokensForSharesResponse) MarshalToSizedBuffer

func (m *MsgRedeemTokensForSharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRedeemTokensForSharesResponse) ProtoMessage

func (*MsgRedeemTokensForSharesResponse) ProtoMessage()

func (*MsgRedeemTokensForSharesResponse) Reset

func (*MsgRedeemTokensForSharesResponse) Size

func (m *MsgRedeemTokensForSharesResponse) Size() (n int)

func (*MsgRedeemTokensForSharesResponse) String

func (*MsgRedeemTokensForSharesResponse) Unmarshal

func (m *MsgRedeemTokensForSharesResponse) Unmarshal(dAtA []byte) error

func (*MsgRedeemTokensForSharesResponse) XXX_DiscardUnknown

func (m *MsgRedeemTokensForSharesResponse) XXX_DiscardUnknown()

func (*MsgRedeemTokensForSharesResponse) XXX_Marshal

func (m *MsgRedeemTokensForSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRedeemTokensForSharesResponse) XXX_Merge

func (*MsgRedeemTokensForSharesResponse) XXX_Size

func (m *MsgRedeemTokensForSharesResponse) XXX_Size() int

func (*MsgRedeemTokensForSharesResponse) XXX_Unmarshal

func (m *MsgRedeemTokensForSharesResponse) XXX_Unmarshal(b []byte) error

type MsgServer added in v0.40.0

type MsgServer interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
	// EditValidator defines a method for editing an existing validator.
	EditValidator(context.Context, *MsgEditValidator) (*MsgEditValidatorResponse, error)
	// Delegate defines a method for performing a delegation of coins
	// from a delegator to a validator.
	Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
	// BeginRedelegate defines a method for performing a redelegation
	// of coins from a delegator and source validator to a destination validator.
	BeginRedelegate(context.Context, *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// delegate and a validator.
	Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
	// CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
	// and delegate back to previous validator.
	//
	// Since: cosmos-sdk 0.46
	CancelUnbondingDelegation(context.Context, *MsgCancelUnbondingDelegation) (*MsgCancelUnbondingDelegationResponse, error)
	// UpdateParams defines an operation for updating the x/staking module
	// parameters.
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// UnbondValidator defines a method for performing the status transition for a validator
	// from bonded to unbonding
	// This allows a validator to stop their services and jail themselves without
	// experiencing a slash
	UnbondValidator(context.Context, *MsgUnbondValidator) (*MsgUnbondValidatorResponse, error)
	// TokenizeShares defines a method for tokenizing shares from a validator.
	TokenizeShares(context.Context, *MsgTokenizeShares) (*MsgTokenizeSharesResponse, error)
	// RedeemTokensForShares defines a method for redeeming tokens from a validator for
	// shares.
	RedeemTokensForShares(context.Context, *MsgRedeemTokensForShares) (*MsgRedeemTokensForSharesResponse, error)
	// TransferTokenizeShareRecord defines a method to transfer ownership of
	// TokenizeShareRecord
	TransferTokenizeShareRecord(context.Context, *MsgTransferTokenizeShareRecord) (*MsgTransferTokenizeShareRecordResponse, error)
	// DisableTokenizeShares defines a method to prevent the tokenization of an addresses stake
	DisableTokenizeShares(context.Context, *MsgDisableTokenizeShares) (*MsgDisableTokenizeSharesResponse, error)
	// EnableTokenizeShares defines a method to re-enable the tokenization of an addresseses stake
	// after it has been disabled
	EnableTokenizeShares(context.Context, *MsgEnableTokenizeShares) (*MsgEnableTokenizeSharesResponse, error)
	// ValidatorBond defines a method for performing a validator self-bond
	ValidatorBond(context.Context, *MsgValidatorBond) (*MsgValidatorBondResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTokenizeShares

type MsgTokenizeShares struct {
	DelegatorAddress    string      `` /* 134-byte string literal not displayed */
	ValidatorAddress    string      `` /* 134-byte string literal not displayed */
	Amount              types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
	TokenizedShareOwner string      `protobuf:"bytes,4,opt,name=tokenized_share_owner,json=tokenizedShareOwner,proto3" json:"tokenized_share_owner,omitempty"`
}

MsgTokenizeShares tokenizes a delegation

func NewMsgTokenizeShares

func NewMsgTokenizeShares(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin, owner sdk.AccAddress) *MsgTokenizeShares

NewMsgTokenizeShares creates a new MsgTokenizeShares instance.

func (*MsgTokenizeShares) Descriptor

func (*MsgTokenizeShares) Descriptor() ([]byte, []int)

func (MsgTokenizeShares) GetSignBytes

func (msg MsgTokenizeShares) GetSignBytes() []byte

MsgTokenizeShares implements the sdk.Msg interface.

func (MsgTokenizeShares) GetSigners

func (msg MsgTokenizeShares) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgTokenizeShares) Marshal

func (m *MsgTokenizeShares) Marshal() (dAtA []byte, err error)

func (*MsgTokenizeShares) MarshalTo

func (m *MsgTokenizeShares) MarshalTo(dAtA []byte) (int, error)

func (*MsgTokenizeShares) MarshalToSizedBuffer

func (m *MsgTokenizeShares) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTokenizeShares) ProtoMessage

func (*MsgTokenizeShares) ProtoMessage()

func (*MsgTokenizeShares) Reset

func (m *MsgTokenizeShares) Reset()

func (MsgTokenizeShares) Route

func (msg MsgTokenizeShares) Route() string

Route implements the sdk.Msg interface.

func (*MsgTokenizeShares) Size

func (m *MsgTokenizeShares) Size() (n int)

func (*MsgTokenizeShares) String

func (m *MsgTokenizeShares) String() string

func (MsgTokenizeShares) Type

func (msg MsgTokenizeShares) Type() string

Type implements the sdk.Msg interface.

func (*MsgTokenizeShares) Unmarshal

func (m *MsgTokenizeShares) Unmarshal(dAtA []byte) error

func (MsgTokenizeShares) ValidateBasic

func (msg MsgTokenizeShares) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgTokenizeShares) XXX_DiscardUnknown

func (m *MsgTokenizeShares) XXX_DiscardUnknown()

func (*MsgTokenizeShares) XXX_Marshal

func (m *MsgTokenizeShares) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTokenizeShares) XXX_Merge

func (m *MsgTokenizeShares) XXX_Merge(src proto.Message)

func (*MsgTokenizeShares) XXX_Size

func (m *MsgTokenizeShares) XXX_Size() int

func (*MsgTokenizeShares) XXX_Unmarshal

func (m *MsgTokenizeShares) XXX_Unmarshal(b []byte) error

type MsgTokenizeSharesResponse

type MsgTokenizeSharesResponse struct {
	Amount types1.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"`
}

MsgTokenizeSharesResponse defines the Msg/MsgTokenizeShares response type.

func (*MsgTokenizeSharesResponse) Descriptor

func (*MsgTokenizeSharesResponse) Descriptor() ([]byte, []int)

func (*MsgTokenizeSharesResponse) GetAmount

func (m *MsgTokenizeSharesResponse) GetAmount() types1.Coin

func (*MsgTokenizeSharesResponse) Marshal

func (m *MsgTokenizeSharesResponse) Marshal() (dAtA []byte, err error)

func (*MsgTokenizeSharesResponse) MarshalTo

func (m *MsgTokenizeSharesResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTokenizeSharesResponse) MarshalToSizedBuffer

func (m *MsgTokenizeSharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTokenizeSharesResponse) ProtoMessage

func (*MsgTokenizeSharesResponse) ProtoMessage()

func (*MsgTokenizeSharesResponse) Reset

func (m *MsgTokenizeSharesResponse) Reset()

func (*MsgTokenizeSharesResponse) Size

func (m *MsgTokenizeSharesResponse) Size() (n int)

func (*MsgTokenizeSharesResponse) String

func (m *MsgTokenizeSharesResponse) String() string

func (*MsgTokenizeSharesResponse) Unmarshal

func (m *MsgTokenizeSharesResponse) Unmarshal(dAtA []byte) error

func (*MsgTokenizeSharesResponse) XXX_DiscardUnknown

func (m *MsgTokenizeSharesResponse) XXX_DiscardUnknown()

func (*MsgTokenizeSharesResponse) XXX_Marshal

func (m *MsgTokenizeSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTokenizeSharesResponse) XXX_Merge

func (m *MsgTokenizeSharesResponse) XXX_Merge(src proto.Message)

func (*MsgTokenizeSharesResponse) XXX_Size

func (m *MsgTokenizeSharesResponse) XXX_Size() int

func (*MsgTokenizeSharesResponse) XXX_Unmarshal

func (m *MsgTokenizeSharesResponse) XXX_Unmarshal(b []byte) error

type MsgTransferTokenizeShareRecord

type MsgTransferTokenizeShareRecord struct {
	TokenizeShareRecordId uint64 `` /* 129-byte string literal not displayed */
	Sender                string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	NewOwner              string `protobuf:"bytes,3,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"`
}

MsgTransferTokenizeShareRecord transfer a tokenize share record

func NewMsgTransferTokenizeShareRecord

func NewMsgTransferTokenizeShareRecord(recordId uint64, sender, newOwner sdk.AccAddress) *MsgTransferTokenizeShareRecord

NewMsgTransferTokenizeShareRecord creates a new MsgTransferTokenizeShareRecord instance.

func (*MsgTransferTokenizeShareRecord) Descriptor

func (*MsgTransferTokenizeShareRecord) Descriptor() ([]byte, []int)

func (MsgTransferTokenizeShareRecord) GetSignBytes

func (msg MsgTransferTokenizeShareRecord) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgTransferTokenizeShareRecord) GetSigners

func (msg MsgTransferTokenizeShareRecord) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgTransferTokenizeShareRecord) Marshal

func (m *MsgTransferTokenizeShareRecord) Marshal() (dAtA []byte, err error)

func (*MsgTransferTokenizeShareRecord) MarshalTo

func (m *MsgTransferTokenizeShareRecord) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferTokenizeShareRecord) MarshalToSizedBuffer

func (m *MsgTransferTokenizeShareRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferTokenizeShareRecord) ProtoMessage

func (*MsgTransferTokenizeShareRecord) ProtoMessage()

func (*MsgTransferTokenizeShareRecord) Reset

func (m *MsgTransferTokenizeShareRecord) Reset()

func (MsgTransferTokenizeShareRecord) Route

Route implements the sdk.Msg interface.

func (*MsgTransferTokenizeShareRecord) Size

func (m *MsgTransferTokenizeShareRecord) Size() (n int)

func (*MsgTransferTokenizeShareRecord) String

func (MsgTransferTokenizeShareRecord) Type

Type implements the sdk.Msg interface.

func (*MsgTransferTokenizeShareRecord) Unmarshal

func (m *MsgTransferTokenizeShareRecord) Unmarshal(dAtA []byte) error

func (MsgTransferTokenizeShareRecord) ValidateBasic

func (msg MsgTransferTokenizeShareRecord) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgTransferTokenizeShareRecord) XXX_DiscardUnknown

func (m *MsgTransferTokenizeShareRecord) XXX_DiscardUnknown()

func (*MsgTransferTokenizeShareRecord) XXX_Marshal

func (m *MsgTransferTokenizeShareRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferTokenizeShareRecord) XXX_Merge

func (m *MsgTransferTokenizeShareRecord) XXX_Merge(src proto.Message)

func (*MsgTransferTokenizeShareRecord) XXX_Size

func (m *MsgTransferTokenizeShareRecord) XXX_Size() int

func (*MsgTransferTokenizeShareRecord) XXX_Unmarshal

func (m *MsgTransferTokenizeShareRecord) XXX_Unmarshal(b []byte) error

type MsgTransferTokenizeShareRecordResponse

type MsgTransferTokenizeShareRecordResponse struct {
}

MsgTransferTokenizeShareRecordResponse defines the Msg/MsgTransferTokenizeShareRecord response type.

func (*MsgTransferTokenizeShareRecordResponse) Descriptor

func (*MsgTransferTokenizeShareRecordResponse) Descriptor() ([]byte, []int)

func (*MsgTransferTokenizeShareRecordResponse) Marshal

func (m *MsgTransferTokenizeShareRecordResponse) Marshal() (dAtA []byte, err error)

func (*MsgTransferTokenizeShareRecordResponse) MarshalTo

func (m *MsgTransferTokenizeShareRecordResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferTokenizeShareRecordResponse) MarshalToSizedBuffer

func (m *MsgTransferTokenizeShareRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferTokenizeShareRecordResponse) ProtoMessage

func (*MsgTransferTokenizeShareRecordResponse) Reset

func (*MsgTransferTokenizeShareRecordResponse) Size

func (*MsgTransferTokenizeShareRecordResponse) String

func (*MsgTransferTokenizeShareRecordResponse) Unmarshal

func (m *MsgTransferTokenizeShareRecordResponse) Unmarshal(dAtA []byte) error

func (*MsgTransferTokenizeShareRecordResponse) XXX_DiscardUnknown

func (m *MsgTransferTokenizeShareRecordResponse) XXX_DiscardUnknown()

func (*MsgTransferTokenizeShareRecordResponse) XXX_Marshal

func (m *MsgTransferTokenizeShareRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferTokenizeShareRecordResponse) XXX_Merge

func (*MsgTransferTokenizeShareRecordResponse) XXX_Size

func (*MsgTransferTokenizeShareRecordResponse) XXX_Unmarshal

func (m *MsgTransferTokenizeShareRecordResponse) XXX_Unmarshal(b []byte) error

type MsgUnbondValidator

type MsgUnbondValidator struct {
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"address"`
}

MsgUnbondValidator defines a method for performing the status transition for a validator from bonded to unbonded This allows a validator to stop their services and jail themselves without experiencing a slash

func NewMsgUnbondValidator

func NewMsgUnbondValidator(valAddr sdk.ValAddress) *MsgUnbondValidator

NewMsgUnbondValidator creates a new MsgUnbondValidator instance.

func (*MsgUnbondValidator) Descriptor

func (*MsgUnbondValidator) Descriptor() ([]byte, []int)

func (MsgUnbondValidator) GetSignBytes

func (msg MsgUnbondValidator) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgUnbondValidator) GetSigners

func (msg MsgUnbondValidator) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgUnbondValidator) GetValidatorAddress

func (m *MsgUnbondValidator) GetValidatorAddress() string

func (*MsgUnbondValidator) Marshal

func (m *MsgUnbondValidator) Marshal() (dAtA []byte, err error)

func (*MsgUnbondValidator) MarshalTo

func (m *MsgUnbondValidator) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnbondValidator) MarshalToSizedBuffer

func (m *MsgUnbondValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnbondValidator) ProtoMessage

func (*MsgUnbondValidator) ProtoMessage()

func (*MsgUnbondValidator) Reset

func (m *MsgUnbondValidator) Reset()

func (MsgUnbondValidator) Route

func (msg MsgUnbondValidator) Route() string

Route implements the sdk.Msg interface.

func (*MsgUnbondValidator) Size

func (m *MsgUnbondValidator) Size() (n int)

func (*MsgUnbondValidator) String

func (m *MsgUnbondValidator) String() string

func (MsgUnbondValidator) Type

func (msg MsgUnbondValidator) Type() string

Type implements the sdk.Msg interface.

func (*MsgUnbondValidator) Unmarshal

func (m *MsgUnbondValidator) Unmarshal(dAtA []byte) error

func (MsgUnbondValidator) ValidateBasic

func (msg MsgUnbondValidator) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgUnbondValidator) XXX_DiscardUnknown

func (m *MsgUnbondValidator) XXX_DiscardUnknown()

func (*MsgUnbondValidator) XXX_Marshal

func (m *MsgUnbondValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnbondValidator) XXX_Merge

func (m *MsgUnbondValidator) XXX_Merge(src proto.Message)

func (*MsgUnbondValidator) XXX_Size

func (m *MsgUnbondValidator) XXX_Size() int

func (*MsgUnbondValidator) XXX_Unmarshal

func (m *MsgUnbondValidator) XXX_Unmarshal(b []byte) error

type MsgUnbondValidatorResponse

type MsgUnbondValidatorResponse struct {
}

MsgUnbondValidatorResponse defines the Msg/UnbondValidator response type.

func (*MsgUnbondValidatorResponse) Descriptor

func (*MsgUnbondValidatorResponse) Descriptor() ([]byte, []int)

func (*MsgUnbondValidatorResponse) Marshal

func (m *MsgUnbondValidatorResponse) Marshal() (dAtA []byte, err error)

func (*MsgUnbondValidatorResponse) MarshalTo

func (m *MsgUnbondValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnbondValidatorResponse) MarshalToSizedBuffer

func (m *MsgUnbondValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnbondValidatorResponse) ProtoMessage

func (*MsgUnbondValidatorResponse) ProtoMessage()

func (*MsgUnbondValidatorResponse) Reset

func (m *MsgUnbondValidatorResponse) Reset()

func (*MsgUnbondValidatorResponse) Size

func (m *MsgUnbondValidatorResponse) Size() (n int)

func (*MsgUnbondValidatorResponse) String

func (m *MsgUnbondValidatorResponse) String() string

func (*MsgUnbondValidatorResponse) Unmarshal

func (m *MsgUnbondValidatorResponse) Unmarshal(dAtA []byte) error

func (*MsgUnbondValidatorResponse) XXX_DiscardUnknown

func (m *MsgUnbondValidatorResponse) XXX_DiscardUnknown()

func (*MsgUnbondValidatorResponse) XXX_Marshal

func (m *MsgUnbondValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnbondValidatorResponse) XXX_Merge

func (m *MsgUnbondValidatorResponse) XXX_Merge(src proto.Message)

func (*MsgUnbondValidatorResponse) XXX_Size

func (m *MsgUnbondValidatorResponse) XXX_Size() int

func (*MsgUnbondValidatorResponse) XXX_Unmarshal

func (m *MsgUnbondValidatorResponse) XXX_Unmarshal(b []byte) error

type MsgUndelegate

type MsgUndelegate struct {
	DelegatorAddress string      `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string      `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Amount           types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgUndelegate defines a SDK message for performing an undelegation from a delegate and a validator.

func NewMsgUndelegate

func NewMsgUndelegate(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) *MsgUndelegate

NewMsgUndelegate creates a new MsgUndelegate instance.

func (*MsgUndelegate) Descriptor

func (*MsgUndelegate) Descriptor() ([]byte, []int)

func (MsgUndelegate) GetSignBytes

func (msg MsgUndelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgUndelegate) GetSigners

func (msg MsgUndelegate) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgUndelegate) Marshal

func (m *MsgUndelegate) Marshal() (dAtA []byte, err error)

func (*MsgUndelegate) MarshalTo

func (m *MsgUndelegate) MarshalTo(dAtA []byte) (int, error)

func (*MsgUndelegate) MarshalToSizedBuffer

func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUndelegate) ProtoMessage

func (*MsgUndelegate) ProtoMessage()

func (*MsgUndelegate) Reset

func (m *MsgUndelegate) Reset()

func (MsgUndelegate) Route

func (msg MsgUndelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgUndelegate) Size

func (m *MsgUndelegate) Size() (n int)

func (*MsgUndelegate) String

func (m *MsgUndelegate) String() string

func (MsgUndelegate) Type

func (msg MsgUndelegate) Type() string

Type implements the sdk.Msg interface.

func (*MsgUndelegate) Unmarshal

func (m *MsgUndelegate) Unmarshal(dAtA []byte) error

func (MsgUndelegate) ValidateBasic

func (msg MsgUndelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgUndelegate) XXX_DiscardUnknown

func (m *MsgUndelegate) XXX_DiscardUnknown()

func (*MsgUndelegate) XXX_Marshal

func (m *MsgUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUndelegate) XXX_Merge

func (m *MsgUndelegate) XXX_Merge(src proto.Message)

func (*MsgUndelegate) XXX_Size

func (m *MsgUndelegate) XXX_Size() int

func (*MsgUndelegate) XXX_Unmarshal

func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error

type MsgUndelegateResponse added in v0.40.0

type MsgUndelegateResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgUndelegateResponse defines the Msg/Undelegate response type.

func (*MsgUndelegateResponse) Descriptor added in v0.40.0

func (*MsgUndelegateResponse) Descriptor() ([]byte, []int)

func (*MsgUndelegateResponse) GetCompletionTime added in v0.40.0

func (m *MsgUndelegateResponse) GetCompletionTime() time.Time

func (*MsgUndelegateResponse) Marshal added in v0.40.0

func (m *MsgUndelegateResponse) Marshal() (dAtA []byte, err error)

func (*MsgUndelegateResponse) MarshalTo added in v0.40.0

func (m *MsgUndelegateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUndelegateResponse) MarshalToSizedBuffer added in v0.40.0

func (m *MsgUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUndelegateResponse) ProtoMessage added in v0.40.0

func (*MsgUndelegateResponse) ProtoMessage()

func (*MsgUndelegateResponse) Reset added in v0.40.0

func (m *MsgUndelegateResponse) Reset()

func (*MsgUndelegateResponse) Size added in v0.40.0

func (m *MsgUndelegateResponse) Size() (n int)

func (*MsgUndelegateResponse) String added in v0.40.0

func (m *MsgUndelegateResponse) String() string

func (*MsgUndelegateResponse) Unmarshal added in v0.40.0

func (m *MsgUndelegateResponse) Unmarshal(dAtA []byte) error

func (*MsgUndelegateResponse) XXX_DiscardUnknown added in v0.40.0

func (m *MsgUndelegateResponse) XXX_DiscardUnknown()

func (*MsgUndelegateResponse) XXX_Marshal added in v0.40.0

func (m *MsgUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUndelegateResponse) XXX_Merge added in v0.40.0

func (m *MsgUndelegateResponse) XXX_Merge(src proto.Message)

func (*MsgUndelegateResponse) XXX_Size added in v0.40.0

func (m *MsgUndelegateResponse) XXX_Size() int

func (*MsgUndelegateResponse) XXX_Unmarshal added in v0.40.0

func (m *MsgUndelegateResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateParams added in v0.47.0

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/staking parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor added in v0.47.0

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetAuthority added in v0.47.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.47.0

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes added in v0.47.0

func (m *MsgUpdateParams) GetSignBytes() []byte

GetSignBytes returns the raw bytes for a MsgUpdateParams message that the expected signer needs to sign.

func (*MsgUpdateParams) GetSigners added in v0.47.0

func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateParams message

func (*MsgUpdateParams) Marshal added in v0.47.0

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo added in v0.47.0

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.47.0

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage added in v0.47.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.47.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.47.0

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String added in v0.47.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.47.0

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic added in v0.47.0

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic executes sanity validation on the provided data

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.47.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.47.0

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge added in v0.47.0

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size added in v0.47.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.47.0

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse added in v0.47.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor added in v0.47.0

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal added in v0.47.0

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo added in v0.47.0

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.47.0

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.47.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.47.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.47.0

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String added in v0.47.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.47.0

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.47.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.47.0

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.47.0

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size added in v0.47.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.47.0

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type MsgValidatorBond

type MsgValidatorBond struct {
	DelegatorAddress string `` /* 134-byte string literal not displayed */
	ValidatorAddress string `` /* 134-byte string literal not displayed */
}

MsgValidatorBond defines a SDK message for performing validator self-bond of delegated coins from a delegator to a validator.

func NewMsgValidatorBond

func NewMsgValidatorBond(delAddr sdk.AccAddress, valAddr sdk.ValAddress) *MsgValidatorBond

NewMsgValidatorBond creates a new MsgValidatorBond instance.

func (*MsgValidatorBond) Descriptor

func (*MsgValidatorBond) Descriptor() ([]byte, []int)

func (MsgValidatorBond) GetSignBytes

func (msg MsgValidatorBond) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgValidatorBond) GetSigners

func (msg MsgValidatorBond) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgValidatorBond) Marshal

func (m *MsgValidatorBond) Marshal() (dAtA []byte, err error)

func (*MsgValidatorBond) MarshalTo

func (m *MsgValidatorBond) MarshalTo(dAtA []byte) (int, error)

func (*MsgValidatorBond) MarshalToSizedBuffer

func (m *MsgValidatorBond) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgValidatorBond) ProtoMessage

func (*MsgValidatorBond) ProtoMessage()

func (*MsgValidatorBond) Reset

func (m *MsgValidatorBond) Reset()

func (MsgValidatorBond) Route

func (msg MsgValidatorBond) Route() string

Route implements the sdk.Msg interface.

func (*MsgValidatorBond) Size

func (m *MsgValidatorBond) Size() (n int)

func (*MsgValidatorBond) String

func (m *MsgValidatorBond) String() string

func (MsgValidatorBond) Type

func (msg MsgValidatorBond) Type() string

Type implements the sdk.Msg interface.

func (*MsgValidatorBond) Unmarshal

func (m *MsgValidatorBond) Unmarshal(dAtA []byte) error

func (MsgValidatorBond) ValidateBasic

func (msg MsgValidatorBond) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgValidatorBond) XXX_DiscardUnknown

func (m *MsgValidatorBond) XXX_DiscardUnknown()

func (*MsgValidatorBond) XXX_Marshal

func (m *MsgValidatorBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgValidatorBond) XXX_Merge

func (m *MsgValidatorBond) XXX_Merge(src proto.Message)

func (*MsgValidatorBond) XXX_Size

func (m *MsgValidatorBond) XXX_Size() int

func (*MsgValidatorBond) XXX_Unmarshal

func (m *MsgValidatorBond) XXX_Unmarshal(b []byte) error

type MsgValidatorBondResponse

type MsgValidatorBondResponse struct {
}

MsgValidatorBondResponse defines the Msg/ValidatorBond response type.

func (*MsgValidatorBondResponse) Descriptor

func (*MsgValidatorBondResponse) Descriptor() ([]byte, []int)

func (*MsgValidatorBondResponse) Marshal

func (m *MsgValidatorBondResponse) Marshal() (dAtA []byte, err error)

func (*MsgValidatorBondResponse) MarshalTo

func (m *MsgValidatorBondResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgValidatorBondResponse) MarshalToSizedBuffer

func (m *MsgValidatorBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgValidatorBondResponse) ProtoMessage

func (*MsgValidatorBondResponse) ProtoMessage()

func (*MsgValidatorBondResponse) Reset

func (m *MsgValidatorBondResponse) Reset()

func (*MsgValidatorBondResponse) Size

func (m *MsgValidatorBondResponse) Size() (n int)

func (*MsgValidatorBondResponse) String

func (m *MsgValidatorBondResponse) String() string

func (*MsgValidatorBondResponse) Unmarshal

func (m *MsgValidatorBondResponse) Unmarshal(dAtA []byte) error

func (*MsgValidatorBondResponse) XXX_DiscardUnknown

func (m *MsgValidatorBondResponse) XXX_DiscardUnknown()

func (*MsgValidatorBondResponse) XXX_Marshal

func (m *MsgValidatorBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgValidatorBondResponse) XXX_Merge

func (m *MsgValidatorBondResponse) XXX_Merge(src proto.Message)

func (*MsgValidatorBondResponse) XXX_Size

func (m *MsgValidatorBondResponse) XXX_Size() int

func (*MsgValidatorBondResponse) XXX_Unmarshal

func (m *MsgValidatorBondResponse) XXX_Unmarshal(b []byte) error

type MultiStakingHooks

type MultiStakingHooks []StakingHooks

func NewMultiStakingHooks

func NewMultiStakingHooks(hooks ...StakingHooks) MultiStakingHooks

func (MultiStakingHooks) AfterDelegationModified

func (h MultiStakingHooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error

func (MultiStakingHooks) AfterUnbondingInitiated added in v0.47.0

func (h MultiStakingHooks) AfterUnbondingInitiated(ctx sdk.Context, id uint64) error

func (MultiStakingHooks) AfterValidatorBeginUnbonding

func (h MultiStakingHooks) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error

func (MultiStakingHooks) AfterValidatorBonded

func (h MultiStakingHooks) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error

func (MultiStakingHooks) AfterValidatorCreated

func (h MultiStakingHooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) error

func (MultiStakingHooks) AfterValidatorRemoved

func (h MultiStakingHooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error

func (MultiStakingHooks) BeforeDelegationCreated

func (h MultiStakingHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error

func (MultiStakingHooks) BeforeDelegationRemoved

func (h MultiStakingHooks) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error

func (MultiStakingHooks) BeforeDelegationSharesModified

func (h MultiStakingHooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error

func (MultiStakingHooks) BeforeTokenizeShareRecordRemoved

func (h MultiStakingHooks) BeforeTokenizeShareRecordRemoved(ctx sdk.Context, recordID uint64) error

func (MultiStakingHooks) BeforeValidatorModified

func (h MultiStakingHooks) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) error

func (MultiStakingHooks) BeforeValidatorSlashed

func (h MultiStakingHooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) error

type Params

type Params struct {
	// unbonding_time is the time duration of unbonding.
	UnbondingTime time.Duration `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time"`
	// max_validators is the maximum number of validators.
	MaxValidators uint32 `protobuf:"varint,2,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty"`
	// max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
	MaxEntries uint32 `protobuf:"varint,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
	// historical_entries is the number of historical entries to persist.
	HistoricalEntries uint32 `protobuf:"varint,4,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"`
	// bond_denom defines the bondable coin denomination.
	BondDenom string `protobuf:"bytes,5,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty"`
	// min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
	MinCommissionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 181-byte string literal not displayed */
	// validator_bond_factor is required as a safety check for tokenizing shares and
	// delegations from liquid staking providers
	ValidatorBondFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 189-byte string literal not displayed */
	// global_liquid_staking_cap represents a cap on the portion of stake that
	// comes from liquid staking providers
	GlobalLiquidStakingCap github_com_cosmos_cosmos_sdk_types.Dec `` /* 204-byte string literal not displayed */
	// validator_liquid_staking_cap represents a cap on the portion of stake that
	// comes from liquid staking providers for a specific validator
	ValidatorLiquidStakingCap github_com_cosmos_cosmos_sdk_types.Dec `` /* 216-byte string literal not displayed */
}

Params defines the parameters for the x/staking module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func MustUnmarshalParams

func MustUnmarshalParams(cdc *codec.LegacyAmino, value []byte) Params

unmarshal the current staking params value from store key or panic

func NewParams

func NewParams(unbondingTime time.Duration,
	maxValidators,
	maxEntries,
	historicalEntries uint32,
	bondDenom string,
	minCommissionRate sdk.Dec,
	validatorBondFactor sdk.Dec,
	globalLiquidStakingCap sdk.Dec,
	validatorLiquidStakingCap sdk.Dec,
) Params

NewParams creates a new Params instance

func UnmarshalParams

func UnmarshalParams(cdc *codec.LegacyAmino, value []byte) (params Params, err error)

unmarshal the current staking params value from store key

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetBondDenom

func (m *Params) GetBondDenom() string

func (*Params) GetHistoricalEntries

func (m *Params) GetHistoricalEntries() uint32

func (*Params) GetMaxEntries

func (m *Params) GetMaxEntries() uint32

func (*Params) GetMaxValidators

func (m *Params) GetMaxValidators() uint32

func (*Params) GetUnbondingTime

func (m *Params) GetUnbondingTime() time.Duration

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

Implements params.ParamSet Deprecated.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String returns a human readable string representation of the parameters.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

validate a set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type PendingTokenizeShareAuthorizations

type PendingTokenizeShareAuthorizations struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

PendingTokenizeShareAuthorizations stores a list of addresses that have their tokenize share enablement in progress

func (*PendingTokenizeShareAuthorizations) Descriptor

func (*PendingTokenizeShareAuthorizations) Descriptor() ([]byte, []int)

func (*PendingTokenizeShareAuthorizations) GetAddresses

func (m *PendingTokenizeShareAuthorizations) GetAddresses() []string

func (*PendingTokenizeShareAuthorizations) Marshal

func (m *PendingTokenizeShareAuthorizations) Marshal() (dAtA []byte, err error)

func (*PendingTokenizeShareAuthorizations) MarshalTo

func (m *PendingTokenizeShareAuthorizations) MarshalTo(dAtA []byte) (int, error)

func (*PendingTokenizeShareAuthorizations) MarshalToSizedBuffer

func (m *PendingTokenizeShareAuthorizations) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PendingTokenizeShareAuthorizations) ProtoMessage

func (*PendingTokenizeShareAuthorizations) ProtoMessage()

func (*PendingTokenizeShareAuthorizations) Reset

func (*PendingTokenizeShareAuthorizations) Size

func (*PendingTokenizeShareAuthorizations) String

func (*PendingTokenizeShareAuthorizations) Unmarshal

func (m *PendingTokenizeShareAuthorizations) Unmarshal(dAtA []byte) error

func (*PendingTokenizeShareAuthorizations) XXX_DiscardUnknown

func (m *PendingTokenizeShareAuthorizations) XXX_DiscardUnknown()

func (*PendingTokenizeShareAuthorizations) XXX_Marshal

func (m *PendingTokenizeShareAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PendingTokenizeShareAuthorizations) XXX_Merge

func (*PendingTokenizeShareAuthorizations) XXX_Size

func (*PendingTokenizeShareAuthorizations) XXX_Unmarshal

func (m *PendingTokenizeShareAuthorizations) XXX_Unmarshal(b []byte) error

type Pool

type Pool struct {
	NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 148-byte string literal not displayed */
	BondedTokens    github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */
}

Pool is used for tracking bonded and not-bonded token supply of the bond denomination.

func NewPool

func NewPool(notBonded, bonded math.Int) Pool

NewPool creates a new Pool instance used for queries

func (*Pool) Description added in v0.40.0

func (*Pool) Descriptor added in v0.40.0

func (*Pool) Descriptor() ([]byte, []int)

func (*Pool) Equal added in v0.30.0

func (this *Pool) Equal(that interface{}) bool

func (*Pool) Marshal added in v0.40.0

func (m *Pool) Marshal() (dAtA []byte, err error)

func (*Pool) MarshalTo added in v0.40.0

func (m *Pool) MarshalTo(dAtA []byte) (int, error)

func (*Pool) MarshalToSizedBuffer added in v0.40.0

func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Pool) ProtoMessage added in v0.40.0

func (*Pool) ProtoMessage()

func (*Pool) Reset added in v0.40.0

func (m *Pool) Reset()

func (*Pool) Size added in v0.40.0

func (m *Pool) Size() (n int)

func (*Pool) String

func (m *Pool) String() string

func (*Pool) Unmarshal added in v0.40.0

func (m *Pool) Unmarshal(dAtA []byte) error

func (*Pool) XXX_DiscardUnknown added in v0.40.0

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal added in v0.40.0

func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pool) XXX_Merge added in v0.40.0

func (m *Pool) XXX_Merge(src proto.Message)

func (*Pool) XXX_Size added in v0.40.0

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal added in v0.40.0

func (m *Pool) XXX_Unmarshal(b []byte) error

type QueryAllTokenizeShareRecordsRequest

type QueryAllTokenizeShareRecordsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllTokenizeShareRecordsRequest is request type for the Query/QueryAllTokenizeShareRecords RPC method.

func (*QueryAllTokenizeShareRecordsRequest) Descriptor

func (*QueryAllTokenizeShareRecordsRequest) Descriptor() ([]byte, []int)

func (*QueryAllTokenizeShareRecordsRequest) GetPagination

func (*QueryAllTokenizeShareRecordsRequest) Marshal

func (m *QueryAllTokenizeShareRecordsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllTokenizeShareRecordsRequest) MarshalTo

func (m *QueryAllTokenizeShareRecordsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllTokenizeShareRecordsRequest) MarshalToSizedBuffer

func (m *QueryAllTokenizeShareRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllTokenizeShareRecordsRequest) ProtoMessage

func (*QueryAllTokenizeShareRecordsRequest) ProtoMessage()

func (*QueryAllTokenizeShareRecordsRequest) Reset

func (*QueryAllTokenizeShareRecordsRequest) Size

func (*QueryAllTokenizeShareRecordsRequest) String

func (*QueryAllTokenizeShareRecordsRequest) Unmarshal

func (m *QueryAllTokenizeShareRecordsRequest) Unmarshal(dAtA []byte) error

func (*QueryAllTokenizeShareRecordsRequest) XXX_DiscardUnknown

func (m *QueryAllTokenizeShareRecordsRequest) XXX_DiscardUnknown()

func (*QueryAllTokenizeShareRecordsRequest) XXX_Marshal

func (m *QueryAllTokenizeShareRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllTokenizeShareRecordsRequest) XXX_Merge

func (*QueryAllTokenizeShareRecordsRequest) XXX_Size

func (*QueryAllTokenizeShareRecordsRequest) XXX_Unmarshal

func (m *QueryAllTokenizeShareRecordsRequest) XXX_Unmarshal(b []byte) error

type QueryAllTokenizeShareRecordsResponse

type QueryAllTokenizeShareRecordsResponse struct {
	Records []TokenizeShareRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllTokenizeShareRecordsResponse is response type for the Query/QueryAllTokenizeShareRecords RPC method.

func (*QueryAllTokenizeShareRecordsResponse) Descriptor

func (*QueryAllTokenizeShareRecordsResponse) Descriptor() ([]byte, []int)

func (*QueryAllTokenizeShareRecordsResponse) GetPagination

func (*QueryAllTokenizeShareRecordsResponse) GetRecords

func (*QueryAllTokenizeShareRecordsResponse) Marshal

func (m *QueryAllTokenizeShareRecordsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllTokenizeShareRecordsResponse) MarshalTo

func (m *QueryAllTokenizeShareRecordsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllTokenizeShareRecordsResponse) MarshalToSizedBuffer

func (m *QueryAllTokenizeShareRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllTokenizeShareRecordsResponse) ProtoMessage

func (*QueryAllTokenizeShareRecordsResponse) ProtoMessage()

func (*QueryAllTokenizeShareRecordsResponse) Reset

func (*QueryAllTokenizeShareRecordsResponse) Size

func (*QueryAllTokenizeShareRecordsResponse) String

func (*QueryAllTokenizeShareRecordsResponse) Unmarshal

func (m *QueryAllTokenizeShareRecordsResponse) Unmarshal(dAtA []byte) error

func (*QueryAllTokenizeShareRecordsResponse) XXX_DiscardUnknown

func (m *QueryAllTokenizeShareRecordsResponse) XXX_DiscardUnknown()

func (*QueryAllTokenizeShareRecordsResponse) XXX_Marshal

func (m *QueryAllTokenizeShareRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllTokenizeShareRecordsResponse) XXX_Merge

func (*QueryAllTokenizeShareRecordsResponse) XXX_Size

func (*QueryAllTokenizeShareRecordsResponse) XXX_Unmarshal

func (m *QueryAllTokenizeShareRecordsResponse) XXX_Unmarshal(b []byte) error

type QueryClient added in v0.40.0

type QueryClient interface {
	// Validators queries all validators that match the given status.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
	// ValidatorDelegations queries delegate info for given validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorDelegations(ctx context.Context, in *QueryValidatorDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationsResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given validator delegator pair.
	Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given validator delegator
	// pair.
	UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
	// delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// Redelegations queries redelegations of given address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator
	// address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorValidator queries validator info for given delegator validator
	// pair.
	DelegatorValidator(ctx context.Context, in *QueryDelegatorValidatorRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorResponse, error)
	// Query for individual tokenize share record information by share by id
	TokenizeShareRecordById(ctx context.Context, in *QueryTokenizeShareRecordByIdRequest, opts ...grpc.CallOption) (*QueryTokenizeShareRecordByIdResponse, error)
	// Query for individual tokenize share record information by share denom
	TokenizeShareRecordByDenom(ctx context.Context, in *QueryTokenizeShareRecordByDenomRequest, opts ...grpc.CallOption) (*QueryTokenizeShareRecordByDenomResponse, error)
	// Query tokenize share records by address
	TokenizeShareRecordsOwned(ctx context.Context, in *QueryTokenizeShareRecordsOwnedRequest, opts ...grpc.CallOption) (*QueryTokenizeShareRecordsOwnedResponse, error)
	// Query for all tokenize share records
	AllTokenizeShareRecords(ctx context.Context, in *QueryAllTokenizeShareRecordsRequest, opts ...grpc.CallOption) (*QueryAllTokenizeShareRecordsResponse, error)
	// Query for last tokenize share record id
	LastTokenizeShareRecordId(ctx context.Context, in *QueryLastTokenizeShareRecordIdRequest, opts ...grpc.CallOption) (*QueryLastTokenizeShareRecordIdResponse, error)
	// Query for total tokenized staked assets
	TotalTokenizeSharedAssets(ctx context.Context, in *QueryTotalTokenizeSharedAssetsRequest, opts ...grpc.CallOption) (*QueryTotalTokenizeSharedAssetsResponse, error)
	// Query for total liquid staked (including tokenized shares or owned by an liquid staking provider)
	TotalLiquidStaked(ctx context.Context, in *QueryTotalLiquidStaked, opts ...grpc.CallOption) (*QueryTotalLiquidStakedResponse, error)
	// Query tokenize share locks
	TokenizeShareLockInfo(ctx context.Context, in *QueryTokenizeShareLockInfo, opts ...grpc.CallOption) (*QueryTokenizeShareLockInfoResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(ctx context.Context, in *QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*QueryHistoricalInfoResponse, error)
	// Pool queries the pool info.
	Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error)
	// Parameters queries the staking parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient added in v0.40.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDelegationRequest added in v0.40.0

type QueryDelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryDelegationRequest is request type for the Query/Delegation RPC method.

func (*QueryDelegationRequest) Descriptor added in v0.40.0

func (*QueryDelegationRequest) Descriptor() ([]byte, []int)

func (*QueryDelegationRequest) Marshal added in v0.40.0

func (m *QueryDelegationRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegationRequest) MarshalTo added in v0.40.0

func (m *QueryDelegationRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegationRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegationRequest) ProtoMessage added in v0.40.0

func (*QueryDelegationRequest) ProtoMessage()

func (*QueryDelegationRequest) Reset added in v0.40.0

func (m *QueryDelegationRequest) Reset()

func (*QueryDelegationRequest) Size added in v0.40.0

func (m *QueryDelegationRequest) Size() (n int)

func (*QueryDelegationRequest) String added in v0.40.0

func (m *QueryDelegationRequest) String() string

func (*QueryDelegationRequest) Unmarshal added in v0.40.0

func (m *QueryDelegationRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegationRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegationRequest) XXX_DiscardUnknown()

func (*QueryDelegationRequest) XXX_Marshal added in v0.40.0

func (m *QueryDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegationRequest) XXX_Merge added in v0.40.0

func (m *QueryDelegationRequest) XXX_Merge(src proto.Message)

func (*QueryDelegationRequest) XXX_Size added in v0.40.0

func (m *QueryDelegationRequest) XXX_Size() int

func (*QueryDelegationRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegationRequest) XXX_Unmarshal(b []byte) error

type QueryDelegationResponse added in v0.40.0

type QueryDelegationResponse struct {
	// delegation_responses defines the delegation info of a delegation.
	DelegationResponse *DelegationResponse `protobuf:"bytes,1,opt,name=delegation_response,json=delegationResponse,proto3" json:"delegation_response,omitempty"`
}

QueryDelegationResponse is response type for the Query/Delegation RPC method.

func (*QueryDelegationResponse) Descriptor added in v0.40.0

func (*QueryDelegationResponse) Descriptor() ([]byte, []int)

func (*QueryDelegationResponse) GetDelegationResponse added in v0.40.0

func (m *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse

func (*QueryDelegationResponse) Marshal added in v0.40.0

func (m *QueryDelegationResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegationResponse) MarshalTo added in v0.40.0

func (m *QueryDelegationResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegationResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegationResponse) ProtoMessage added in v0.40.0

func (*QueryDelegationResponse) ProtoMessage()

func (*QueryDelegationResponse) Reset added in v0.40.0

func (m *QueryDelegationResponse) Reset()

func (*QueryDelegationResponse) Size added in v0.40.0

func (m *QueryDelegationResponse) Size() (n int)

func (*QueryDelegationResponse) String added in v0.40.0

func (m *QueryDelegationResponse) String() string

func (*QueryDelegationResponse) Unmarshal added in v0.40.0

func (m *QueryDelegationResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegationResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegationResponse) XXX_DiscardUnknown()

func (*QueryDelegationResponse) XXX_Marshal added in v0.40.0

func (m *QueryDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegationResponse) XXX_Merge added in v0.40.0

func (m *QueryDelegationResponse) XXX_Merge(src proto.Message)

func (*QueryDelegationResponse) XXX_Size added in v0.40.0

func (m *QueryDelegationResponse) XXX_Size() int

func (*QueryDelegationResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegationResponse) XXX_Unmarshal(b []byte) error

type QueryDelegatorDelegationsRequest added in v0.40.0

type QueryDelegatorDelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.

func (*QueryDelegatorDelegationsRequest) Descriptor added in v0.40.0

func (*QueryDelegatorDelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryDelegatorDelegationsRequest) Marshal added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorDelegationsRequest) MarshalTo added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorDelegationsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorDelegationsRequest) ProtoMessage added in v0.40.0

func (*QueryDelegatorDelegationsRequest) ProtoMessage()

func (*QueryDelegatorDelegationsRequest) Reset added in v0.40.0

func (*QueryDelegatorDelegationsRequest) Size added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) Size() (n int)

func (*QueryDelegatorDelegationsRequest) String added in v0.40.0

func (*QueryDelegatorDelegationsRequest) Unmarshal added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegatorDelegationsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsRequest) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorDelegationsRequest) XXX_Merge added in v0.40.0

func (*QueryDelegatorDelegationsRequest) XXX_Size added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) XXX_Size() int

func (*QueryDelegatorDelegationsRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegatorDelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryDelegatorDelegationsResponse added in v0.40.0

type QueryDelegatorDelegationsResponse struct {
	// delegation_responses defines all the delegations' info of a delegator.
	DelegationResponses []DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.

func (*QueryDelegatorDelegationsResponse) Descriptor added in v0.40.0

func (*QueryDelegatorDelegationsResponse) Descriptor() ([]byte, []int)

func (*QueryDelegatorDelegationsResponse) GetDelegationResponses added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) GetDelegationResponses() []DelegationResponse

func (*QueryDelegatorDelegationsResponse) GetPagination added in v0.40.0

func (*QueryDelegatorDelegationsResponse) Marshal added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorDelegationsResponse) MarshalTo added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorDelegationsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorDelegationsResponse) ProtoMessage added in v0.40.0

func (*QueryDelegatorDelegationsResponse) ProtoMessage()

func (*QueryDelegatorDelegationsResponse) Reset added in v0.40.0

func (*QueryDelegatorDelegationsResponse) Size added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) Size() (n int)

func (*QueryDelegatorDelegationsResponse) String added in v0.40.0

func (*QueryDelegatorDelegationsResponse) Unmarshal added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegatorDelegationsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsResponse) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorDelegationsResponse) XXX_Merge added in v0.40.0

func (*QueryDelegatorDelegationsResponse) XXX_Size added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) XXX_Size() int

func (*QueryDelegatorDelegationsResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegatorDelegationsResponse) XXX_Unmarshal(b []byte) error

type QueryDelegatorParams

type QueryDelegatorParams struct {
	DelegatorAddr sdk.AccAddress
}

defines the params for the following queries: - 'custom/staking/delegatorDelegations' - 'custom/staking/delegatorUnbondingDelegations' - 'custom/staking/delegatorValidators'

func NewQueryDelegatorParams

func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams

type QueryDelegatorUnbondingDelegationsRequest added in v0.40.0

type QueryDelegatorUnbondingDelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.

func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryDelegatorUnbondingDelegationsRequest) Marshal added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalTo added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) Reset added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) Size added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) String added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) Unmarshal added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Merge added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Size added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal added in v0.40.0

type QueryDelegatorUnbondingDelegationsResponse added in v0.40.0

type QueryDelegatorUnbondingDelegationsResponse struct {
	UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.

func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) GetPagination added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) Marshal added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalTo added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) Reset added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) Size added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) String added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) Unmarshal added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Merge added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Size added in v0.40.0

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal added in v0.40.0

type QueryDelegatorValidatorRequest added in v0.40.0

type QueryDelegatorValidatorRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.

func (*QueryDelegatorValidatorRequest) Descriptor added in v0.40.0

func (*QueryDelegatorValidatorRequest) Descriptor() ([]byte, []int)

func (*QueryDelegatorValidatorRequest) Marshal added in v0.40.0

func (m *QueryDelegatorValidatorRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorValidatorRequest) MarshalTo added in v0.40.0

func (m *QueryDelegatorValidatorRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorRequest) ProtoMessage added in v0.40.0

func (*QueryDelegatorValidatorRequest) ProtoMessage()

func (*QueryDelegatorValidatorRequest) Reset added in v0.40.0

func (m *QueryDelegatorValidatorRequest) Reset()

func (*QueryDelegatorValidatorRequest) Size added in v0.40.0

func (m *QueryDelegatorValidatorRequest) Size() (n int)

func (*QueryDelegatorValidatorRequest) String added in v0.40.0

func (*QueryDelegatorValidatorRequest) Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegatorValidatorRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorValidatorRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorRequest) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorValidatorRequest) XXX_Merge added in v0.40.0

func (m *QueryDelegatorValidatorRequest) XXX_Merge(src proto.Message)

func (*QueryDelegatorValidatorRequest) XXX_Size added in v0.40.0

func (m *QueryDelegatorValidatorRequest) XXX_Size() int

func (*QueryDelegatorValidatorRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorRequest) XXX_Unmarshal(b []byte) error

type QueryDelegatorValidatorResponse added in v0.40.0

type QueryDelegatorValidatorResponse struct {
	// validator defines the validator info.
	Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}

QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.

func (*QueryDelegatorValidatorResponse) Descriptor added in v0.40.0

func (*QueryDelegatorValidatorResponse) Descriptor() ([]byte, []int)

func (*QueryDelegatorValidatorResponse) GetValidator added in v0.40.0

func (m *QueryDelegatorValidatorResponse) GetValidator() Validator

func (*QueryDelegatorValidatorResponse) Marshal added in v0.40.0

func (m *QueryDelegatorValidatorResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorValidatorResponse) MarshalTo added in v0.40.0

func (m *QueryDelegatorValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorResponse) ProtoMessage added in v0.40.0

func (*QueryDelegatorValidatorResponse) ProtoMessage()

func (*QueryDelegatorValidatorResponse) Reset added in v0.40.0

func (*QueryDelegatorValidatorResponse) Size added in v0.40.0

func (m *QueryDelegatorValidatorResponse) Size() (n int)

func (*QueryDelegatorValidatorResponse) String added in v0.40.0

func (*QueryDelegatorValidatorResponse) Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegatorValidatorResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorValidatorResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorResponse) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorValidatorResponse) XXX_Merge added in v0.40.0

func (m *QueryDelegatorValidatorResponse) XXX_Merge(src proto.Message)

func (*QueryDelegatorValidatorResponse) XXX_Size added in v0.40.0

func (m *QueryDelegatorValidatorResponse) XXX_Size() int

func (*QueryDelegatorValidatorResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorResponse) XXX_Unmarshal(b []byte) error

type QueryDelegatorValidatorsRequest added in v0.40.0

type QueryDelegatorValidatorsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.

func (*QueryDelegatorValidatorsRequest) Descriptor added in v0.40.0

func (*QueryDelegatorValidatorsRequest) Descriptor() ([]byte, []int)

func (*QueryDelegatorValidatorsRequest) Marshal added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorValidatorsRequest) MarshalTo added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsRequest) ProtoMessage added in v0.40.0

func (*QueryDelegatorValidatorsRequest) ProtoMessage()

func (*QueryDelegatorValidatorsRequest) Reset added in v0.40.0

func (*QueryDelegatorValidatorsRequest) Size added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) Size() (n int)

func (*QueryDelegatorValidatorsRequest) String added in v0.40.0

func (*QueryDelegatorValidatorsRequest) Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegatorValidatorsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsRequest) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorValidatorsRequest) XXX_Merge added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) XXX_Merge(src proto.Message)

func (*QueryDelegatorValidatorsRequest) XXX_Size added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) XXX_Size() int

func (*QueryDelegatorValidatorsRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorsRequest) XXX_Unmarshal(b []byte) error

type QueryDelegatorValidatorsResponse added in v0.40.0

type QueryDelegatorValidatorsResponse struct {
	// validators defines the validators' info of a delegator.
	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.

func (*QueryDelegatorValidatorsResponse) Descriptor added in v0.40.0

func (*QueryDelegatorValidatorsResponse) Descriptor() ([]byte, []int)

func (*QueryDelegatorValidatorsResponse) GetPagination added in v0.40.0

func (*QueryDelegatorValidatorsResponse) GetValidators added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) GetValidators() []Validator

func (*QueryDelegatorValidatorsResponse) Marshal added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorValidatorsResponse) MarshalTo added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsResponse) ProtoMessage added in v0.40.0

func (*QueryDelegatorValidatorsResponse) ProtoMessage()

func (*QueryDelegatorValidatorsResponse) Reset added in v0.40.0

func (*QueryDelegatorValidatorsResponse) Size added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) Size() (n int)

func (*QueryDelegatorValidatorsResponse) String added in v0.40.0

func (*QueryDelegatorValidatorsResponse) Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegatorValidatorsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsResponse) XXX_Marshal added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorValidatorsResponse) XXX_Merge added in v0.40.0

func (*QueryDelegatorValidatorsResponse) XXX_Size added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) XXX_Size() int

func (*QueryDelegatorValidatorsResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryDelegatorValidatorsResponse) XXX_Unmarshal(b []byte) error

type QueryHistoricalInfoRequest added in v0.40.0

type QueryHistoricalInfoRequest struct {
	// height defines at which height to query the historical info.
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.

func (*QueryHistoricalInfoRequest) Descriptor added in v0.40.0

func (*QueryHistoricalInfoRequest) Descriptor() ([]byte, []int)

func (*QueryHistoricalInfoRequest) GetHeight added in v0.40.0

func (m *QueryHistoricalInfoRequest) GetHeight() int64

func (*QueryHistoricalInfoRequest) Marshal added in v0.40.0

func (m *QueryHistoricalInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryHistoricalInfoRequest) MarshalTo added in v0.40.0

func (m *QueryHistoricalInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryHistoricalInfoRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryHistoricalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHistoricalInfoRequest) ProtoMessage added in v0.40.0

func (*QueryHistoricalInfoRequest) ProtoMessage()

func (*QueryHistoricalInfoRequest) Reset added in v0.40.0

func (m *QueryHistoricalInfoRequest) Reset()

func (*QueryHistoricalInfoRequest) Size added in v0.40.0

func (m *QueryHistoricalInfoRequest) Size() (n int)

func (*QueryHistoricalInfoRequest) String added in v0.40.0

func (m *QueryHistoricalInfoRequest) String() string

func (*QueryHistoricalInfoRequest) Unmarshal added in v0.40.0

func (m *QueryHistoricalInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryHistoricalInfoRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()

func (*QueryHistoricalInfoRequest) XXX_Marshal added in v0.40.0

func (m *QueryHistoricalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHistoricalInfoRequest) XXX_Merge added in v0.40.0

func (m *QueryHistoricalInfoRequest) XXX_Merge(src proto.Message)

func (*QueryHistoricalInfoRequest) XXX_Size added in v0.40.0

func (m *QueryHistoricalInfoRequest) XXX_Size() int

func (*QueryHistoricalInfoRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryHistoricalInfoRequest) XXX_Unmarshal(b []byte) error

type QueryHistoricalInfoResponse added in v0.40.0

type QueryHistoricalInfoResponse struct {
	// hist defines the historical info at the given height.
	Hist *HistoricalInfo `protobuf:"bytes,1,opt,name=hist,proto3" json:"hist,omitempty"`
}

QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.

func (*QueryHistoricalInfoResponse) Descriptor added in v0.40.0

func (*QueryHistoricalInfoResponse) Descriptor() ([]byte, []int)

func (*QueryHistoricalInfoResponse) GetHist added in v0.40.0

func (*QueryHistoricalInfoResponse) Marshal added in v0.40.0

func (m *QueryHistoricalInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryHistoricalInfoResponse) MarshalTo added in v0.40.0

func (m *QueryHistoricalInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryHistoricalInfoResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryHistoricalInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHistoricalInfoResponse) ProtoMessage added in v0.40.0

func (*QueryHistoricalInfoResponse) ProtoMessage()

func (*QueryHistoricalInfoResponse) Reset added in v0.40.0

func (m *QueryHistoricalInfoResponse) Reset()

func (*QueryHistoricalInfoResponse) Size added in v0.40.0

func (m *QueryHistoricalInfoResponse) Size() (n int)

func (*QueryHistoricalInfoResponse) String added in v0.40.0

func (m *QueryHistoricalInfoResponse) String() string

func (*QueryHistoricalInfoResponse) Unmarshal added in v0.40.0

func (m *QueryHistoricalInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryHistoricalInfoResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()

func (*QueryHistoricalInfoResponse) XXX_Marshal added in v0.40.0

func (m *QueryHistoricalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHistoricalInfoResponse) XXX_Merge added in v0.40.0

func (m *QueryHistoricalInfoResponse) XXX_Merge(src proto.Message)

func (*QueryHistoricalInfoResponse) XXX_Size added in v0.40.0

func (m *QueryHistoricalInfoResponse) XXX_Size() int

func (*QueryHistoricalInfoResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryHistoricalInfoResponse) XXX_Unmarshal(b []byte) error

type QueryLastTokenizeShareRecordIdRequest

type QueryLastTokenizeShareRecordIdRequest struct {
}

QueryLastTokenizeShareRecordIdRequest is request type for the Query/QueryLastTokenizeShareRecordId RPC method.

func (*QueryLastTokenizeShareRecordIdRequest) Descriptor

func (*QueryLastTokenizeShareRecordIdRequest) Descriptor() ([]byte, []int)

func (*QueryLastTokenizeShareRecordIdRequest) Marshal

func (m *QueryLastTokenizeShareRecordIdRequest) Marshal() (dAtA []byte, err error)

func (*QueryLastTokenizeShareRecordIdRequest) MarshalTo

func (m *QueryLastTokenizeShareRecordIdRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryLastTokenizeShareRecordIdRequest) MarshalToSizedBuffer

func (m *QueryLastTokenizeShareRecordIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryLastTokenizeShareRecordIdRequest) ProtoMessage

func (*QueryLastTokenizeShareRecordIdRequest) ProtoMessage()

func (*QueryLastTokenizeShareRecordIdRequest) Reset

func (*QueryLastTokenizeShareRecordIdRequest) Size

func (*QueryLastTokenizeShareRecordIdRequest) String

func (*QueryLastTokenizeShareRecordIdRequest) Unmarshal

func (m *QueryLastTokenizeShareRecordIdRequest) Unmarshal(dAtA []byte) error

func (*QueryLastTokenizeShareRecordIdRequest) XXX_DiscardUnknown

func (m *QueryLastTokenizeShareRecordIdRequest) XXX_DiscardUnknown()

func (*QueryLastTokenizeShareRecordIdRequest) XXX_Marshal

func (m *QueryLastTokenizeShareRecordIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryLastTokenizeShareRecordIdRequest) XXX_Merge

func (*QueryLastTokenizeShareRecordIdRequest) XXX_Size

func (*QueryLastTokenizeShareRecordIdRequest) XXX_Unmarshal

func (m *QueryLastTokenizeShareRecordIdRequest) XXX_Unmarshal(b []byte) error

type QueryLastTokenizeShareRecordIdResponse

type QueryLastTokenizeShareRecordIdResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryLastTokenizeShareRecordIdResponse is response type for the Query/QueryLastTokenizeShareRecordId RPC method.

func (*QueryLastTokenizeShareRecordIdResponse) Descriptor

func (*QueryLastTokenizeShareRecordIdResponse) Descriptor() ([]byte, []int)

func (*QueryLastTokenizeShareRecordIdResponse) GetId

func (*QueryLastTokenizeShareRecordIdResponse) Marshal

func (m *QueryLastTokenizeShareRecordIdResponse) Marshal() (dAtA []byte, err error)

func (*QueryLastTokenizeShareRecordIdResponse) MarshalTo

func (m *QueryLastTokenizeShareRecordIdResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryLastTokenizeShareRecordIdResponse) MarshalToSizedBuffer

func (m *QueryLastTokenizeShareRecordIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryLastTokenizeShareRecordIdResponse) ProtoMessage

func (*QueryLastTokenizeShareRecordIdResponse) Reset

func (*QueryLastTokenizeShareRecordIdResponse) Size

func (*QueryLastTokenizeShareRecordIdResponse) String

func (*QueryLastTokenizeShareRecordIdResponse) Unmarshal

func (m *QueryLastTokenizeShareRecordIdResponse) Unmarshal(dAtA []byte) error

func (*QueryLastTokenizeShareRecordIdResponse) XXX_DiscardUnknown

func (m *QueryLastTokenizeShareRecordIdResponse) XXX_DiscardUnknown()

func (*QueryLastTokenizeShareRecordIdResponse) XXX_Marshal

func (m *QueryLastTokenizeShareRecordIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryLastTokenizeShareRecordIdResponse) XXX_Merge

func (*QueryLastTokenizeShareRecordIdResponse) XXX_Size

func (*QueryLastTokenizeShareRecordIdResponse) XXX_Unmarshal

func (m *QueryLastTokenizeShareRecordIdResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest added in v0.40.0

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor added in v0.40.0

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal added in v0.40.0

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo added in v0.40.0

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage added in v0.40.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.40.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.40.0

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String added in v0.40.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.40.0

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.40.0

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge added in v0.40.0

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size added in v0.40.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse added in v0.40.0

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor added in v0.40.0

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams added in v0.40.0

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.40.0

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo added in v0.40.0

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage added in v0.40.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.40.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.40.0

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String added in v0.40.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.40.0

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.40.0

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge added in v0.40.0

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size added in v0.40.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryPoolRequest added in v0.40.0

type QueryPoolRequest struct {
}

QueryPoolRequest is request type for the Query/Pool RPC method.

func (*QueryPoolRequest) Descriptor added in v0.40.0

func (*QueryPoolRequest) Descriptor() ([]byte, []int)

func (*QueryPoolRequest) Marshal added in v0.40.0

func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)

func (*QueryPoolRequest) MarshalTo added in v0.40.0

func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPoolRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPoolRequest) ProtoMessage added in v0.40.0

func (*QueryPoolRequest) ProtoMessage()

func (*QueryPoolRequest) Reset added in v0.40.0

func (m *QueryPoolRequest) Reset()

func (*QueryPoolRequest) Size added in v0.40.0

func (m *QueryPoolRequest) Size() (n int)

func (*QueryPoolRequest) String added in v0.40.0

func (m *QueryPoolRequest) String() string

func (*QueryPoolRequest) Unmarshal added in v0.40.0

func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error

func (*QueryPoolRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryPoolRequest) XXX_DiscardUnknown()

func (*QueryPoolRequest) XXX_Marshal added in v0.40.0

func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPoolRequest) XXX_Merge added in v0.40.0

func (m *QueryPoolRequest) XXX_Merge(src proto.Message)

func (*QueryPoolRequest) XXX_Size added in v0.40.0

func (m *QueryPoolRequest) XXX_Size() int

func (*QueryPoolRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error

type QueryPoolResponse added in v0.40.0

type QueryPoolResponse struct {
	// pool defines the pool info.
	Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
}

QueryPoolResponse is response type for the Query/Pool RPC method.

func (*QueryPoolResponse) Descriptor added in v0.40.0

func (*QueryPoolResponse) Descriptor() ([]byte, []int)

func (*QueryPoolResponse) GetPool added in v0.40.0

func (m *QueryPoolResponse) GetPool() Pool

func (*QueryPoolResponse) Marshal added in v0.40.0

func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)

func (*QueryPoolResponse) MarshalTo added in v0.40.0

func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPoolResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPoolResponse) ProtoMessage added in v0.40.0

func (*QueryPoolResponse) ProtoMessage()

func (*QueryPoolResponse) Reset added in v0.40.0

func (m *QueryPoolResponse) Reset()

func (*QueryPoolResponse) Size added in v0.40.0

func (m *QueryPoolResponse) Size() (n int)

func (*QueryPoolResponse) String added in v0.40.0

func (m *QueryPoolResponse) String() string

func (*QueryPoolResponse) Unmarshal added in v0.40.0

func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error

func (*QueryPoolResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryPoolResponse) XXX_DiscardUnknown()

func (*QueryPoolResponse) XXX_Marshal added in v0.40.0

func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPoolResponse) XXX_Merge added in v0.40.0

func (m *QueryPoolResponse) XXX_Merge(src proto.Message)

func (*QueryPoolResponse) XXX_Size added in v0.40.0

func (m *QueryPoolResponse) XXX_Size() int

func (*QueryPoolResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error

type QueryRedelegationParams

type QueryRedelegationParams struct {
	DelegatorAddr    sdk.AccAddress
	SrcValidatorAddr sdk.ValAddress
	DstValidatorAddr sdk.ValAddress
}

defines the params for the following queries: - 'custom/staking/redelegation'

func NewQueryRedelegationParams

func NewQueryRedelegationParams(delegatorAddr sdk.AccAddress, srcValidatorAddr, dstValidatorAddr sdk.ValAddress) QueryRedelegationParams

type QueryRedelegationsRequest added in v0.40.0

type QueryRedelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// src_validator_addr defines the validator address to redelegate from.
	SrcValidatorAddr string `protobuf:"bytes,2,opt,name=src_validator_addr,json=srcValidatorAddr,proto3" json:"src_validator_addr,omitempty"`
	// dst_validator_addr defines the validator address to redelegate to.
	DstValidatorAddr string `protobuf:"bytes,3,opt,name=dst_validator_addr,json=dstValidatorAddr,proto3" json:"dst_validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.

func (*QueryRedelegationsRequest) Descriptor added in v0.40.0

func (*QueryRedelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryRedelegationsRequest) Marshal added in v0.40.0

func (m *QueryRedelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryRedelegationsRequest) MarshalTo added in v0.40.0

func (m *QueryRedelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryRedelegationsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryRedelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRedelegationsRequest) ProtoMessage added in v0.40.0

func (*QueryRedelegationsRequest) ProtoMessage()

func (*QueryRedelegationsRequest) Reset added in v0.40.0

func (m *QueryRedelegationsRequest) Reset()

func (*QueryRedelegationsRequest) Size added in v0.40.0

func (m *QueryRedelegationsRequest) Size() (n int)

func (*QueryRedelegationsRequest) String added in v0.40.0

func (m *QueryRedelegationsRequest) String() string

func (*QueryRedelegationsRequest) Unmarshal added in v0.40.0

func (m *QueryRedelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryRedelegationsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryRedelegationsRequest) XXX_DiscardUnknown()

func (*QueryRedelegationsRequest) XXX_Marshal added in v0.40.0

func (m *QueryRedelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRedelegationsRequest) XXX_Merge added in v0.40.0

func (m *QueryRedelegationsRequest) XXX_Merge(src proto.Message)

func (*QueryRedelegationsRequest) XXX_Size added in v0.40.0

func (m *QueryRedelegationsRequest) XXX_Size() int

func (*QueryRedelegationsRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryRedelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryRedelegationsResponse added in v0.40.0

type QueryRedelegationsResponse struct {
	RedelegationResponses []RedelegationResponse `protobuf:"bytes,1,rep,name=redelegation_responses,json=redelegationResponses,proto3" json:"redelegation_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.

func (*QueryRedelegationsResponse) Descriptor added in v0.40.0

func (*QueryRedelegationsResponse) Descriptor() ([]byte, []int)

func (*QueryRedelegationsResponse) GetPagination added in v0.40.0

func (m *QueryRedelegationsResponse) GetPagination() *query.PageResponse

func (*QueryRedelegationsResponse) GetRedelegationResponses added in v0.40.0

func (m *QueryRedelegationsResponse) GetRedelegationResponses() []RedelegationResponse

func (*QueryRedelegationsResponse) Marshal added in v0.40.0

func (m *QueryRedelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryRedelegationsResponse) MarshalTo added in v0.40.0

func (m *QueryRedelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryRedelegationsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryRedelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRedelegationsResponse) ProtoMessage added in v0.40.0

func (*QueryRedelegationsResponse) ProtoMessage()

func (*QueryRedelegationsResponse) Reset added in v0.40.0

func (m *QueryRedelegationsResponse) Reset()

func (*QueryRedelegationsResponse) Size added in v0.40.0

func (m *QueryRedelegationsResponse) Size() (n int)

func (*QueryRedelegationsResponse) String added in v0.40.0

func (m *QueryRedelegationsResponse) String() string

func (*QueryRedelegationsResponse) Unmarshal added in v0.40.0

func (m *QueryRedelegationsResponse) Unmarshal(dAtA []byte) error

func (*QueryRedelegationsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryRedelegationsResponse) XXX_DiscardUnknown()

func (*QueryRedelegationsResponse) XXX_Marshal added in v0.40.0

func (m *QueryRedelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRedelegationsResponse) XXX_Merge added in v0.40.0

func (m *QueryRedelegationsResponse) XXX_Merge(src proto.Message)

func (*QueryRedelegationsResponse) XXX_Size added in v0.40.0

func (m *QueryRedelegationsResponse) XXX_Size() int

func (*QueryRedelegationsResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryRedelegationsResponse) XXX_Unmarshal(b []byte) error

type QueryServer added in v0.40.0

type QueryServer interface {
	// Validators queries all validators that match the given status.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
	// ValidatorDelegations queries delegate info for given validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorDelegations(context.Context, *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorUnbondingDelegations(context.Context, *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given validator delegator pair.
	Delegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given validator delegator
	// pair.
	UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
	// delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorUnbondingDelegations(context.Context, *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// Redelegations queries redelegations of given address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Redelegations(context.Context, *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator
	// address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorValidator queries validator info for given delegator validator
	// pair.
	DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error)
	// Query for individual tokenize share record information by share by id
	TokenizeShareRecordById(context.Context, *QueryTokenizeShareRecordByIdRequest) (*QueryTokenizeShareRecordByIdResponse, error)
	// Query for individual tokenize share record information by share denom
	TokenizeShareRecordByDenom(context.Context, *QueryTokenizeShareRecordByDenomRequest) (*QueryTokenizeShareRecordByDenomResponse, error)
	// Query tokenize share records by address
	TokenizeShareRecordsOwned(context.Context, *QueryTokenizeShareRecordsOwnedRequest) (*QueryTokenizeShareRecordsOwnedResponse, error)
	// Query for all tokenize share records
	AllTokenizeShareRecords(context.Context, *QueryAllTokenizeShareRecordsRequest) (*QueryAllTokenizeShareRecordsResponse, error)
	// Query for last tokenize share record id
	LastTokenizeShareRecordId(context.Context, *QueryLastTokenizeShareRecordIdRequest) (*QueryLastTokenizeShareRecordIdResponse, error)
	// Query for total tokenized staked assets
	TotalTokenizeSharedAssets(context.Context, *QueryTotalTokenizeSharedAssetsRequest) (*QueryTotalTokenizeSharedAssetsResponse, error)
	// Query for total liquid staked (including tokenized shares or owned by an liquid staking provider)
	TotalLiquidStaked(context.Context, *QueryTotalLiquidStaked) (*QueryTotalLiquidStakedResponse, error)
	// Query tokenize share locks
	TokenizeShareLockInfo(context.Context, *QueryTokenizeShareLockInfo) (*QueryTokenizeShareLockInfoResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(context.Context, *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
	// Pool queries the pool info.
	Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error)
	// Parameters queries the staking parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTokenizeShareLockInfo

type QueryTokenizeShareLockInfo struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryTokenizeShareLockInfo queries the tokenize share lock information associated with given account

func (*QueryTokenizeShareLockInfo) Descriptor

func (*QueryTokenizeShareLockInfo) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareLockInfo) GetAddress

func (m *QueryTokenizeShareLockInfo) GetAddress() string

func (*QueryTokenizeShareLockInfo) Marshal

func (m *QueryTokenizeShareLockInfo) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareLockInfo) MarshalTo

func (m *QueryTokenizeShareLockInfo) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareLockInfo) MarshalToSizedBuffer

func (m *QueryTokenizeShareLockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareLockInfo) ProtoMessage

func (*QueryTokenizeShareLockInfo) ProtoMessage()

func (*QueryTokenizeShareLockInfo) Reset

func (m *QueryTokenizeShareLockInfo) Reset()

func (*QueryTokenizeShareLockInfo) Size

func (m *QueryTokenizeShareLockInfo) Size() (n int)

func (*QueryTokenizeShareLockInfo) String

func (m *QueryTokenizeShareLockInfo) String() string

func (*QueryTokenizeShareLockInfo) Unmarshal

func (m *QueryTokenizeShareLockInfo) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareLockInfo) XXX_DiscardUnknown

func (m *QueryTokenizeShareLockInfo) XXX_DiscardUnknown()

func (*QueryTokenizeShareLockInfo) XXX_Marshal

func (m *QueryTokenizeShareLockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareLockInfo) XXX_Merge

func (m *QueryTokenizeShareLockInfo) XXX_Merge(src proto.Message)

func (*QueryTokenizeShareLockInfo) XXX_Size

func (m *QueryTokenizeShareLockInfo) XXX_Size() int

func (*QueryTokenizeShareLockInfo) XXX_Unmarshal

func (m *QueryTokenizeShareLockInfo) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareLockInfoResponse

type QueryTokenizeShareLockInfoResponse struct {
	Status         string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	ExpirationTime string `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
}

QueryTokenizeShareLockInfoResponse is the response from the QueryTokenizeShareLockInfo query

func (*QueryTokenizeShareLockInfoResponse) Descriptor

func (*QueryTokenizeShareLockInfoResponse) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareLockInfoResponse) GetExpirationTime

func (m *QueryTokenizeShareLockInfoResponse) GetExpirationTime() string

func (*QueryTokenizeShareLockInfoResponse) GetStatus

func (*QueryTokenizeShareLockInfoResponse) Marshal

func (m *QueryTokenizeShareLockInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareLockInfoResponse) MarshalTo

func (m *QueryTokenizeShareLockInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareLockInfoResponse) MarshalToSizedBuffer

func (m *QueryTokenizeShareLockInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareLockInfoResponse) ProtoMessage

func (*QueryTokenizeShareLockInfoResponse) ProtoMessage()

func (*QueryTokenizeShareLockInfoResponse) Reset

func (*QueryTokenizeShareLockInfoResponse) Size

func (*QueryTokenizeShareLockInfoResponse) String

func (*QueryTokenizeShareLockInfoResponse) Unmarshal

func (m *QueryTokenizeShareLockInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareLockInfoResponse) XXX_DiscardUnknown

func (m *QueryTokenizeShareLockInfoResponse) XXX_DiscardUnknown()

func (*QueryTokenizeShareLockInfoResponse) XXX_Marshal

func (m *QueryTokenizeShareLockInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareLockInfoResponse) XXX_Merge

func (*QueryTokenizeShareLockInfoResponse) XXX_Size

func (*QueryTokenizeShareLockInfoResponse) XXX_Unmarshal

func (m *QueryTokenizeShareLockInfoResponse) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareRecordByDenomRequest

type QueryTokenizeShareRecordByDenomRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryTokenizeShareRecordByDenomRequest is request type for the Query/QueryTokenizeShareRecordByDenom RPC method.

func (*QueryTokenizeShareRecordByDenomRequest) Descriptor

func (*QueryTokenizeShareRecordByDenomRequest) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordByDenomRequest) GetDenom

func (*QueryTokenizeShareRecordByDenomRequest) Marshal

func (m *QueryTokenizeShareRecordByDenomRequest) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordByDenomRequest) MarshalTo

func (m *QueryTokenizeShareRecordByDenomRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByDenomRequest) MarshalToSizedBuffer

func (m *QueryTokenizeShareRecordByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByDenomRequest) ProtoMessage

func (*QueryTokenizeShareRecordByDenomRequest) Reset

func (*QueryTokenizeShareRecordByDenomRequest) Size

func (*QueryTokenizeShareRecordByDenomRequest) String

func (*QueryTokenizeShareRecordByDenomRequest) Unmarshal

func (m *QueryTokenizeShareRecordByDenomRequest) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordByDenomRequest) XXX_DiscardUnknown

func (m *QueryTokenizeShareRecordByDenomRequest) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordByDenomRequest) XXX_Marshal

func (m *QueryTokenizeShareRecordByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordByDenomRequest) XXX_Merge

func (*QueryTokenizeShareRecordByDenomRequest) XXX_Size

func (*QueryTokenizeShareRecordByDenomRequest) XXX_Unmarshal

func (m *QueryTokenizeShareRecordByDenomRequest) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareRecordByDenomResponse

type QueryTokenizeShareRecordByDenomResponse struct {
	Record TokenizeShareRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record"`
}

QueryTokenizeShareRecordByDenomResponse is response type for the Query/QueryTokenizeShareRecordByDenom RPC method.

func (*QueryTokenizeShareRecordByDenomResponse) Descriptor

func (*QueryTokenizeShareRecordByDenomResponse) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordByDenomResponse) GetRecord

func (*QueryTokenizeShareRecordByDenomResponse) Marshal

func (m *QueryTokenizeShareRecordByDenomResponse) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordByDenomResponse) MarshalTo

func (m *QueryTokenizeShareRecordByDenomResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByDenomResponse) MarshalToSizedBuffer

func (m *QueryTokenizeShareRecordByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByDenomResponse) ProtoMessage

func (*QueryTokenizeShareRecordByDenomResponse) Reset

func (*QueryTokenizeShareRecordByDenomResponse) Size

func (*QueryTokenizeShareRecordByDenomResponse) String

func (*QueryTokenizeShareRecordByDenomResponse) Unmarshal

func (m *QueryTokenizeShareRecordByDenomResponse) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordByDenomResponse) XXX_DiscardUnknown

func (m *QueryTokenizeShareRecordByDenomResponse) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordByDenomResponse) XXX_Marshal

func (m *QueryTokenizeShareRecordByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordByDenomResponse) XXX_Merge

func (*QueryTokenizeShareRecordByDenomResponse) XXX_Size

func (*QueryTokenizeShareRecordByDenomResponse) XXX_Unmarshal

func (m *QueryTokenizeShareRecordByDenomResponse) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareRecordByIdRequest

type QueryTokenizeShareRecordByIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryTokenizeShareRecordByIdRequest is request type for the Query/QueryTokenizeShareRecordById RPC method.

func (*QueryTokenizeShareRecordByIdRequest) Descriptor

func (*QueryTokenizeShareRecordByIdRequest) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordByIdRequest) GetId

func (*QueryTokenizeShareRecordByIdRequest) Marshal

func (m *QueryTokenizeShareRecordByIdRequest) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordByIdRequest) MarshalTo

func (m *QueryTokenizeShareRecordByIdRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByIdRequest) MarshalToSizedBuffer

func (m *QueryTokenizeShareRecordByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByIdRequest) ProtoMessage

func (*QueryTokenizeShareRecordByIdRequest) ProtoMessage()

func (*QueryTokenizeShareRecordByIdRequest) Reset

func (*QueryTokenizeShareRecordByIdRequest) Size

func (*QueryTokenizeShareRecordByIdRequest) String

func (*QueryTokenizeShareRecordByIdRequest) Unmarshal

func (m *QueryTokenizeShareRecordByIdRequest) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordByIdRequest) XXX_DiscardUnknown

func (m *QueryTokenizeShareRecordByIdRequest) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordByIdRequest) XXX_Marshal

func (m *QueryTokenizeShareRecordByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordByIdRequest) XXX_Merge

func (*QueryTokenizeShareRecordByIdRequest) XXX_Size

func (*QueryTokenizeShareRecordByIdRequest) XXX_Unmarshal

func (m *QueryTokenizeShareRecordByIdRequest) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareRecordByIdResponse

type QueryTokenizeShareRecordByIdResponse struct {
	Record TokenizeShareRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record"`
}

QueryTokenizeShareRecordByIdRequest is response type for the Query/QueryTokenizeShareRecordById RPC method.

func (*QueryTokenizeShareRecordByIdResponse) Descriptor

func (*QueryTokenizeShareRecordByIdResponse) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordByIdResponse) GetRecord

func (*QueryTokenizeShareRecordByIdResponse) Marshal

func (m *QueryTokenizeShareRecordByIdResponse) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordByIdResponse) MarshalTo

func (m *QueryTokenizeShareRecordByIdResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByIdResponse) MarshalToSizedBuffer

func (m *QueryTokenizeShareRecordByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordByIdResponse) ProtoMessage

func (*QueryTokenizeShareRecordByIdResponse) ProtoMessage()

func (*QueryTokenizeShareRecordByIdResponse) Reset

func (*QueryTokenizeShareRecordByIdResponse) Size

func (*QueryTokenizeShareRecordByIdResponse) String

func (*QueryTokenizeShareRecordByIdResponse) Unmarshal

func (m *QueryTokenizeShareRecordByIdResponse) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordByIdResponse) XXX_DiscardUnknown

func (m *QueryTokenizeShareRecordByIdResponse) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordByIdResponse) XXX_Marshal

func (m *QueryTokenizeShareRecordByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordByIdResponse) XXX_Merge

func (*QueryTokenizeShareRecordByIdResponse) XXX_Size

func (*QueryTokenizeShareRecordByIdResponse) XXX_Unmarshal

func (m *QueryTokenizeShareRecordByIdResponse) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareRecordsOwnedRequest

type QueryTokenizeShareRecordsOwnedRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
}

QueryTokenizeShareRecordsOwnedRequest is request type for the Query/QueryTokenizeShareRecordsOwned RPC method.

func (*QueryTokenizeShareRecordsOwnedRequest) Descriptor

func (*QueryTokenizeShareRecordsOwnedRequest) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordsOwnedRequest) GetOwner

func (*QueryTokenizeShareRecordsOwnedRequest) Marshal

func (m *QueryTokenizeShareRecordsOwnedRequest) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordsOwnedRequest) MarshalTo

func (m *QueryTokenizeShareRecordsOwnedRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordsOwnedRequest) MarshalToSizedBuffer

func (m *QueryTokenizeShareRecordsOwnedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordsOwnedRequest) ProtoMessage

func (*QueryTokenizeShareRecordsOwnedRequest) ProtoMessage()

func (*QueryTokenizeShareRecordsOwnedRequest) Reset

func (*QueryTokenizeShareRecordsOwnedRequest) Size

func (*QueryTokenizeShareRecordsOwnedRequest) String

func (*QueryTokenizeShareRecordsOwnedRequest) Unmarshal

func (m *QueryTokenizeShareRecordsOwnedRequest) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordsOwnedRequest) XXX_DiscardUnknown

func (m *QueryTokenizeShareRecordsOwnedRequest) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordsOwnedRequest) XXX_Marshal

func (m *QueryTokenizeShareRecordsOwnedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordsOwnedRequest) XXX_Merge

func (*QueryTokenizeShareRecordsOwnedRequest) XXX_Size

func (*QueryTokenizeShareRecordsOwnedRequest) XXX_Unmarshal

func (m *QueryTokenizeShareRecordsOwnedRequest) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareRecordsOwnedResponse

type QueryTokenizeShareRecordsOwnedResponse struct {
	Records []TokenizeShareRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records"`
}

QueryTokenizeShareRecordsOwnedResponse is response type for the Query/QueryTokenizeShareRecordsOwned RPC method.

func (*QueryTokenizeShareRecordsOwnedResponse) Descriptor

func (*QueryTokenizeShareRecordsOwnedResponse) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordsOwnedResponse) GetRecords

func (*QueryTokenizeShareRecordsOwnedResponse) Marshal

func (m *QueryTokenizeShareRecordsOwnedResponse) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordsOwnedResponse) MarshalTo

func (m *QueryTokenizeShareRecordsOwnedResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordsOwnedResponse) MarshalToSizedBuffer

func (m *QueryTokenizeShareRecordsOwnedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordsOwnedResponse) ProtoMessage

func (*QueryTokenizeShareRecordsOwnedResponse) Reset

func (*QueryTokenizeShareRecordsOwnedResponse) Size

func (*QueryTokenizeShareRecordsOwnedResponse) String

func (*QueryTokenizeShareRecordsOwnedResponse) Unmarshal

func (m *QueryTokenizeShareRecordsOwnedResponse) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordsOwnedResponse) XXX_DiscardUnknown

func (m *QueryTokenizeShareRecordsOwnedResponse) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordsOwnedResponse) XXX_Marshal

func (m *QueryTokenizeShareRecordsOwnedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordsOwnedResponse) XXX_Merge

func (*QueryTokenizeShareRecordsOwnedResponse) XXX_Size

func (*QueryTokenizeShareRecordsOwnedResponse) XXX_Unmarshal

func (m *QueryTokenizeShareRecordsOwnedResponse) XXX_Unmarshal(b []byte) error

type QueryTotalLiquidStaked

type QueryTotalLiquidStaked struct {
}

QueryTotalLiquidStakedRequest is request type for the Query/QueryQueryTotalLiquidStaked RPC method.

func (*QueryTotalLiquidStaked) Descriptor

func (*QueryTotalLiquidStaked) Descriptor() ([]byte, []int)

func (*QueryTotalLiquidStaked) Marshal

func (m *QueryTotalLiquidStaked) Marshal() (dAtA []byte, err error)

func (*QueryTotalLiquidStaked) MarshalTo

func (m *QueryTotalLiquidStaked) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalLiquidStaked) MarshalToSizedBuffer

func (m *QueryTotalLiquidStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalLiquidStaked) ProtoMessage

func (*QueryTotalLiquidStaked) ProtoMessage()

func (*QueryTotalLiquidStaked) Reset

func (m *QueryTotalLiquidStaked) Reset()

func (*QueryTotalLiquidStaked) Size

func (m *QueryTotalLiquidStaked) Size() (n int)

func (*QueryTotalLiquidStaked) String

func (m *QueryTotalLiquidStaked) String() string

func (*QueryTotalLiquidStaked) Unmarshal

func (m *QueryTotalLiquidStaked) Unmarshal(dAtA []byte) error

func (*QueryTotalLiquidStaked) XXX_DiscardUnknown

func (m *QueryTotalLiquidStaked) XXX_DiscardUnknown()

func (*QueryTotalLiquidStaked) XXX_Marshal

func (m *QueryTotalLiquidStaked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalLiquidStaked) XXX_Merge

func (m *QueryTotalLiquidStaked) XXX_Merge(src proto.Message)

func (*QueryTotalLiquidStaked) XXX_Size

func (m *QueryTotalLiquidStaked) XXX_Size() int

func (*QueryTotalLiquidStaked) XXX_Unmarshal

func (m *QueryTotalLiquidStaked) XXX_Unmarshal(b []byte) error

type QueryTotalLiquidStakedResponse

type QueryTotalLiquidStakedResponse struct {
	Tokens string `protobuf:"bytes,1,opt,name=tokens,proto3" json:"tokens,omitempty"`
}

QueryTotalLiquidStakedResponse is response type for the Query/QueryQueryTotalLiquidStaked RPC method.

func (*QueryTotalLiquidStakedResponse) Descriptor

func (*QueryTotalLiquidStakedResponse) Descriptor() ([]byte, []int)

func (*QueryTotalLiquidStakedResponse) GetTokens

func (m *QueryTotalLiquidStakedResponse) GetTokens() string

func (*QueryTotalLiquidStakedResponse) Marshal

func (m *QueryTotalLiquidStakedResponse) Marshal() (dAtA []byte, err error)

func (*QueryTotalLiquidStakedResponse) MarshalTo

func (m *QueryTotalLiquidStakedResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalLiquidStakedResponse) MarshalToSizedBuffer

func (m *QueryTotalLiquidStakedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalLiquidStakedResponse) ProtoMessage

func (*QueryTotalLiquidStakedResponse) ProtoMessage()

func (*QueryTotalLiquidStakedResponse) Reset

func (m *QueryTotalLiquidStakedResponse) Reset()

func (*QueryTotalLiquidStakedResponse) Size

func (m *QueryTotalLiquidStakedResponse) Size() (n int)

func (*QueryTotalLiquidStakedResponse) String

func (*QueryTotalLiquidStakedResponse) Unmarshal

func (m *QueryTotalLiquidStakedResponse) Unmarshal(dAtA []byte) error

func (*QueryTotalLiquidStakedResponse) XXX_DiscardUnknown

func (m *QueryTotalLiquidStakedResponse) XXX_DiscardUnknown()

func (*QueryTotalLiquidStakedResponse) XXX_Marshal

func (m *QueryTotalLiquidStakedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalLiquidStakedResponse) XXX_Merge

func (m *QueryTotalLiquidStakedResponse) XXX_Merge(src proto.Message)

func (*QueryTotalLiquidStakedResponse) XXX_Size

func (m *QueryTotalLiquidStakedResponse) XXX_Size() int

func (*QueryTotalLiquidStakedResponse) XXX_Unmarshal

func (m *QueryTotalLiquidStakedResponse) XXX_Unmarshal(b []byte) error

type QueryTotalTokenizeSharedAssetsRequest

type QueryTotalTokenizeSharedAssetsRequest struct {
}

QueryTotalTokenizeSharedAssetsRequest is request type for the Query/QueryTotalTokenizeSharedAssets RPC method.

func (*QueryTotalTokenizeSharedAssetsRequest) Descriptor

func (*QueryTotalTokenizeSharedAssetsRequest) Descriptor() ([]byte, []int)

func (*QueryTotalTokenizeSharedAssetsRequest) Marshal

func (m *QueryTotalTokenizeSharedAssetsRequest) Marshal() (dAtA []byte, err error)

func (*QueryTotalTokenizeSharedAssetsRequest) MarshalTo

func (m *QueryTotalTokenizeSharedAssetsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalTokenizeSharedAssetsRequest) MarshalToSizedBuffer

func (m *QueryTotalTokenizeSharedAssetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalTokenizeSharedAssetsRequest) ProtoMessage

func (*QueryTotalTokenizeSharedAssetsRequest) ProtoMessage()

func (*QueryTotalTokenizeSharedAssetsRequest) Reset

func (*QueryTotalTokenizeSharedAssetsRequest) Size

func (*QueryTotalTokenizeSharedAssetsRequest) String

func (*QueryTotalTokenizeSharedAssetsRequest) Unmarshal

func (m *QueryTotalTokenizeSharedAssetsRequest) Unmarshal(dAtA []byte) error

func (*QueryTotalTokenizeSharedAssetsRequest) XXX_DiscardUnknown

func (m *QueryTotalTokenizeSharedAssetsRequest) XXX_DiscardUnknown()

func (*QueryTotalTokenizeSharedAssetsRequest) XXX_Marshal

func (m *QueryTotalTokenizeSharedAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalTokenizeSharedAssetsRequest) XXX_Merge

func (*QueryTotalTokenizeSharedAssetsRequest) XXX_Size

func (*QueryTotalTokenizeSharedAssetsRequest) XXX_Unmarshal

func (m *QueryTotalTokenizeSharedAssetsRequest) XXX_Unmarshal(b []byte) error

type QueryTotalTokenizeSharedAssetsResponse

type QueryTotalTokenizeSharedAssetsResponse struct {
	Value types.Coin `protobuf:"bytes,1,opt,name=value,proto3" json:"value"`
}

QueryTotalTokenizeSharedAssetsResponse is response type for the Query/QueryTotalTokenizeSharedAssets RPC method.

func (*QueryTotalTokenizeSharedAssetsResponse) Descriptor

func (*QueryTotalTokenizeSharedAssetsResponse) Descriptor() ([]byte, []int)

func (*QueryTotalTokenizeSharedAssetsResponse) GetValue

func (*QueryTotalTokenizeSharedAssetsResponse) Marshal

func (m *QueryTotalTokenizeSharedAssetsResponse) Marshal() (dAtA []byte, err error)

func (*QueryTotalTokenizeSharedAssetsResponse) MarshalTo

func (m *QueryTotalTokenizeSharedAssetsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalTokenizeSharedAssetsResponse) MarshalToSizedBuffer

func (m *QueryTotalTokenizeSharedAssetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalTokenizeSharedAssetsResponse) ProtoMessage

func (*QueryTotalTokenizeSharedAssetsResponse) Reset

func (*QueryTotalTokenizeSharedAssetsResponse) Size

func (*QueryTotalTokenizeSharedAssetsResponse) String

func (*QueryTotalTokenizeSharedAssetsResponse) Unmarshal

func (m *QueryTotalTokenizeSharedAssetsResponse) Unmarshal(dAtA []byte) error

func (*QueryTotalTokenizeSharedAssetsResponse) XXX_DiscardUnknown

func (m *QueryTotalTokenizeSharedAssetsResponse) XXX_DiscardUnknown()

func (*QueryTotalTokenizeSharedAssetsResponse) XXX_Marshal

func (m *QueryTotalTokenizeSharedAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalTokenizeSharedAssetsResponse) XXX_Merge

func (*QueryTotalTokenizeSharedAssetsResponse) XXX_Size

func (*QueryTotalTokenizeSharedAssetsResponse) XXX_Unmarshal

func (m *QueryTotalTokenizeSharedAssetsResponse) XXX_Unmarshal(b []byte) error

type QueryUnbondingDelegationRequest added in v0.40.0

type QueryUnbondingDelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.

func (*QueryUnbondingDelegationRequest) Descriptor added in v0.40.0

func (*QueryUnbondingDelegationRequest) Descriptor() ([]byte, []int)

func (*QueryUnbondingDelegationRequest) Marshal added in v0.40.0

func (m *QueryUnbondingDelegationRequest) Marshal() (dAtA []byte, err error)

func (*QueryUnbondingDelegationRequest) MarshalTo added in v0.40.0

func (m *QueryUnbondingDelegationRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryUnbondingDelegationRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryUnbondingDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUnbondingDelegationRequest) ProtoMessage added in v0.40.0

func (*QueryUnbondingDelegationRequest) ProtoMessage()

func (*QueryUnbondingDelegationRequest) Reset added in v0.40.0

func (*QueryUnbondingDelegationRequest) Size added in v0.40.0

func (m *QueryUnbondingDelegationRequest) Size() (n int)

func (*QueryUnbondingDelegationRequest) String added in v0.40.0

func (*QueryUnbondingDelegationRequest) Unmarshal added in v0.40.0

func (m *QueryUnbondingDelegationRequest) Unmarshal(dAtA []byte) error

func (*QueryUnbondingDelegationRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryUnbondingDelegationRequest) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationRequest) XXX_Marshal added in v0.40.0

func (m *QueryUnbondingDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUnbondingDelegationRequest) XXX_Merge added in v0.40.0

func (m *QueryUnbondingDelegationRequest) XXX_Merge(src proto.Message)

func (*QueryUnbondingDelegationRequest) XXX_Size added in v0.40.0

func (m *QueryUnbondingDelegationRequest) XXX_Size() int

func (*QueryUnbondingDelegationRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryUnbondingDelegationRequest) XXX_Unmarshal(b []byte) error

type QueryUnbondingDelegationResponse added in v0.40.0

type QueryUnbondingDelegationResponse struct {
	// unbond defines the unbonding information of a delegation.
	Unbond UnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond"`
}

QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.

func (*QueryUnbondingDelegationResponse) Descriptor added in v0.40.0

func (*QueryUnbondingDelegationResponse) Descriptor() ([]byte, []int)

func (*QueryUnbondingDelegationResponse) GetUnbond added in v0.40.0

func (*QueryUnbondingDelegationResponse) Marshal added in v0.40.0

func (m *QueryUnbondingDelegationResponse) Marshal() (dAtA []byte, err error)

func (*QueryUnbondingDelegationResponse) MarshalTo added in v0.40.0

func (m *QueryUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryUnbondingDelegationResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUnbondingDelegationResponse) ProtoMessage added in v0.40.0

func (*QueryUnbondingDelegationResponse) ProtoMessage()

func (*QueryUnbondingDelegationResponse) Reset added in v0.40.0

func (*QueryUnbondingDelegationResponse) Size added in v0.40.0

func (m *QueryUnbondingDelegationResponse) Size() (n int)

func (*QueryUnbondingDelegationResponse) String added in v0.40.0

func (*QueryUnbondingDelegationResponse) Unmarshal added in v0.40.0

func (m *QueryUnbondingDelegationResponse) Unmarshal(dAtA []byte) error

func (*QueryUnbondingDelegationResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationResponse) XXX_Marshal added in v0.40.0

func (m *QueryUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUnbondingDelegationResponse) XXX_Merge added in v0.40.0

func (*QueryUnbondingDelegationResponse) XXX_Size added in v0.40.0

func (m *QueryUnbondingDelegationResponse) XXX_Size() int

func (*QueryUnbondingDelegationResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorDelegationsRequest added in v0.40.0

type QueryValidatorDelegationsRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method

func (*QueryValidatorDelegationsRequest) Descriptor added in v0.40.0

func (*QueryValidatorDelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorDelegationsRequest) GetPagination added in v0.40.0

func (*QueryValidatorDelegationsRequest) GetValidatorAddr added in v0.40.0

func (m *QueryValidatorDelegationsRequest) GetValidatorAddr() string

func (*QueryValidatorDelegationsRequest) Marshal added in v0.40.0

func (m *QueryValidatorDelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorDelegationsRequest) MarshalTo added in v0.40.0

func (m *QueryValidatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsRequest) ProtoMessage added in v0.40.0

func (*QueryValidatorDelegationsRequest) ProtoMessage()

func (*QueryValidatorDelegationsRequest) Reset added in v0.40.0

func (*QueryValidatorDelegationsRequest) Size added in v0.40.0

func (m *QueryValidatorDelegationsRequest) Size() (n int)

func (*QueryValidatorDelegationsRequest) String added in v0.40.0

func (*QueryValidatorDelegationsRequest) Unmarshal added in v0.40.0

func (m *QueryValidatorDelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorDelegationsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsRequest) XXX_Marshal added in v0.40.0

func (m *QueryValidatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorDelegationsRequest) XXX_Merge added in v0.40.0

func (*QueryValidatorDelegationsRequest) XXX_Size added in v0.40.0

func (m *QueryValidatorDelegationsRequest) XXX_Size() int

func (*QueryValidatorDelegationsRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryValidatorDelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorDelegationsResponse added in v0.40.0

type QueryValidatorDelegationsResponse struct {
	DelegationResponses DelegationResponses `` /* 141-byte string literal not displayed */
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorDelegationsResponse is response type for the Query/ValidatorDelegations RPC method

func (*QueryValidatorDelegationsResponse) Descriptor added in v0.40.0

func (*QueryValidatorDelegationsResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorDelegationsResponse) GetDelegationResponses added in v0.40.0

func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() DelegationResponses

func (*QueryValidatorDelegationsResponse) GetPagination added in v0.40.0

func (*QueryValidatorDelegationsResponse) Marshal added in v0.40.0

func (m *QueryValidatorDelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorDelegationsResponse) MarshalTo added in v0.40.0

func (m *QueryValidatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsResponse) ProtoMessage added in v0.40.0

func (*QueryValidatorDelegationsResponse) ProtoMessage()

func (*QueryValidatorDelegationsResponse) Reset added in v0.40.0

func (*QueryValidatorDelegationsResponse) Size added in v0.40.0

func (m *QueryValidatorDelegationsResponse) Size() (n int)

func (*QueryValidatorDelegationsResponse) String added in v0.40.0

func (*QueryValidatorDelegationsResponse) Unmarshal added in v0.40.0

func (m *QueryValidatorDelegationsResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorDelegationsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsResponse) XXX_Marshal added in v0.40.0

func (m *QueryValidatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorDelegationsResponse) XXX_Merge added in v0.40.0

func (*QueryValidatorDelegationsResponse) XXX_Size added in v0.40.0

func (m *QueryValidatorDelegationsResponse) XXX_Size() int

func (*QueryValidatorDelegationsResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryValidatorDelegationsResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorParams

type QueryValidatorParams struct {
	ValidatorAddr sdk.ValAddress
	Page, Limit   int
}

defines the params for the following queries: - 'custom/staking/validator' - 'custom/staking/validatorDelegations' - 'custom/staking/validatorUnbondingDelegations'

func NewQueryValidatorParams

func NewQueryValidatorParams(validatorAddr sdk.ValAddress, page, limit int) QueryValidatorParams

type QueryValidatorRequest added in v0.40.0

type QueryValidatorRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryValidatorRequest is response type for the Query/Validator RPC method

func (*QueryValidatorRequest) Descriptor added in v0.40.0

func (*QueryValidatorRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorRequest) GetValidatorAddr added in v0.40.0

func (m *QueryValidatorRequest) GetValidatorAddr() string

func (*QueryValidatorRequest) Marshal added in v0.40.0

func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorRequest) MarshalTo added in v0.40.0

func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorRequest) ProtoMessage added in v0.40.0

func (*QueryValidatorRequest) ProtoMessage()

func (*QueryValidatorRequest) Reset added in v0.40.0

func (m *QueryValidatorRequest) Reset()

func (*QueryValidatorRequest) Size added in v0.40.0

func (m *QueryValidatorRequest) Size() (n int)

func (*QueryValidatorRequest) String added in v0.40.0

func (m *QueryValidatorRequest) String() string

func (*QueryValidatorRequest) Unmarshal added in v0.40.0

func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorRequest) XXX_DiscardUnknown()

func (*QueryValidatorRequest) XXX_Marshal added in v0.40.0

func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorRequest) XXX_Merge added in v0.40.0

func (m *QueryValidatorRequest) XXX_Merge(src proto.Message)

func (*QueryValidatorRequest) XXX_Size added in v0.40.0

func (m *QueryValidatorRequest) XXX_Size() int

func (*QueryValidatorRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorResponse added in v0.40.0

type QueryValidatorResponse struct {
	// validator defines the validator info.
	Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}

QueryValidatorResponse is response type for the Query/Validator RPC method

func (*QueryValidatorResponse) Descriptor added in v0.40.0

func (*QueryValidatorResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorResponse) GetValidator added in v0.40.0

func (m *QueryValidatorResponse) GetValidator() Validator

func (*QueryValidatorResponse) Marshal added in v0.40.0

func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorResponse) MarshalTo added in v0.40.0

func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorResponse) ProtoMessage added in v0.40.0

func (*QueryValidatorResponse) ProtoMessage()

func (*QueryValidatorResponse) Reset added in v0.40.0

func (m *QueryValidatorResponse) Reset()

func (*QueryValidatorResponse) Size added in v0.40.0

func (m *QueryValidatorResponse) Size() (n int)

func (*QueryValidatorResponse) String added in v0.40.0

func (m *QueryValidatorResponse) String() string

func (*QueryValidatorResponse) Unmarshal added in v0.40.0

func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorResponse) XXX_DiscardUnknown()

func (*QueryValidatorResponse) XXX_Marshal added in v0.40.0

func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorResponse) XXX_Merge added in v0.40.0

func (m *QueryValidatorResponse) XXX_Merge(src proto.Message)

func (*QueryValidatorResponse) XXX_Size added in v0.40.0

func (m *QueryValidatorResponse) XXX_Size() int

func (*QueryValidatorResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorUnbondingDelegationsRequest added in v0.40.0

type QueryValidatorUnbondingDelegationsRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method

func (*QueryValidatorUnbondingDelegationsRequest) Descriptor added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorUnbondingDelegationsRequest) GetPagination added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() string

func (*QueryValidatorUnbondingDelegationsRequest) Marshal added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorUnbondingDelegationsRequest) MarshalTo added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) Reset added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) Size added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) String added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) Unmarshal added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Marshal added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Merge added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Size added in v0.40.0

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Unmarshal added in v0.40.0

type QueryValidatorUnbondingDelegationsResponse added in v0.40.0

type QueryValidatorUnbondingDelegationsResponse struct {
	UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.

func (*QueryValidatorUnbondingDelegationsResponse) Descriptor added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) GetPagination added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) GetUnbondingResponses added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) Marshal added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorUnbondingDelegationsResponse) MarshalTo added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) Reset added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) Size added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) String added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) Unmarshal added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Marshal added in v0.40.0

func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Merge added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Size added in v0.40.0

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Unmarshal added in v0.40.0

type QueryValidatorsParams

type QueryValidatorsParams struct {
	Page, Limit int
	Status      string
}

QueryValidatorsParams defines the params for the following queries: - 'custom/staking/validators'

func NewQueryValidatorsParams

func NewQueryValidatorsParams(page, limit int, status string) QueryValidatorsParams

type QueryValidatorsRequest added in v0.40.0

type QueryValidatorsRequest struct {
	// status enables to query for validators matching a given status.
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorsRequest is request type for Query/Validators RPC method.

func (*QueryValidatorsRequest) Descriptor added in v0.40.0

func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorsRequest) GetPagination added in v0.40.0

func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest

func (*QueryValidatorsRequest) GetStatus added in v0.40.0

func (m *QueryValidatorsRequest) GetStatus() string

func (*QueryValidatorsRequest) Marshal added in v0.40.0

func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorsRequest) MarshalTo added in v0.40.0

func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorsRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorsRequest) ProtoMessage added in v0.40.0

func (*QueryValidatorsRequest) ProtoMessage()

func (*QueryValidatorsRequest) Reset added in v0.40.0

func (m *QueryValidatorsRequest) Reset()

func (*QueryValidatorsRequest) Size added in v0.40.0

func (m *QueryValidatorsRequest) Size() (n int)

func (*QueryValidatorsRequest) String added in v0.40.0

func (m *QueryValidatorsRequest) String() string

func (*QueryValidatorsRequest) Unmarshal added in v0.40.0

func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorsRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorsRequest) XXX_DiscardUnknown()

func (*QueryValidatorsRequest) XXX_Marshal added in v0.40.0

func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorsRequest) XXX_Merge added in v0.40.0

func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message)

func (*QueryValidatorsRequest) XXX_Size added in v0.40.0

func (m *QueryValidatorsRequest) XXX_Size() int

func (*QueryValidatorsRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorsResponse added in v0.40.0

type QueryValidatorsResponse struct {
	// validators contains all the queried validators.
	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorsResponse is response type for the Query/Validators RPC method

func (*QueryValidatorsResponse) Descriptor added in v0.40.0

func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorsResponse) GetPagination added in v0.40.0

func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse

func (*QueryValidatorsResponse) GetValidators added in v0.40.0

func (m *QueryValidatorsResponse) GetValidators() []Validator

func (*QueryValidatorsResponse) Marshal added in v0.40.0

func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorsResponse) MarshalTo added in v0.40.0

func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorsResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorsResponse) ProtoMessage added in v0.40.0

func (*QueryValidatorsResponse) ProtoMessage()

func (*QueryValidatorsResponse) Reset added in v0.40.0

func (m *QueryValidatorsResponse) Reset()

func (*QueryValidatorsResponse) Size added in v0.40.0

func (m *QueryValidatorsResponse) Size() (n int)

func (*QueryValidatorsResponse) String added in v0.40.0

func (m *QueryValidatorsResponse) String() string

func (*QueryValidatorsResponse) Unmarshal added in v0.40.0

func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorsResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryValidatorsResponse) XXX_DiscardUnknown()

func (*QueryValidatorsResponse) XXX_Marshal added in v0.40.0

func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorsResponse) XXX_Merge added in v0.40.0

func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message)

func (*QueryValidatorsResponse) XXX_Size added in v0.40.0

func (m *QueryValidatorsResponse) XXX_Size() int

func (*QueryValidatorsResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error

type Redelegation

type Redelegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_src_address is the validator redelegation source operator address.
	ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	// validator_dst_address is the validator redelegation destination operator address.
	ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	// entries are the redelegation entries.
	Entries []RedelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries"`
}

Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.

func MustUnmarshalRED

func MustUnmarshalRED(cdc codec.BinaryCodec, value []byte) Redelegation

MustUnmarshalRED unmarshals a redelegation from a store value. Panics if fails.

func NewRedelegation

func NewRedelegation(
	delegatorAddr sdk.AccAddress, validatorSrcAddr, validatorDstAddr sdk.ValAddress,
	creationHeight int64, minTime time.Time, balance math.Int, sharesDst sdk.Dec, id uint64,
) Redelegation

func UnmarshalRED

func UnmarshalRED(cdc codec.BinaryCodec, value []byte) (red Redelegation, err error)

UnmarshalRED unmarshals a redelegation from a store value

func (*Redelegation) AddEntry

func (red *Redelegation) AddEntry(creationHeight int64, minTime time.Time, balance math.Int, sharesDst sdk.Dec, id uint64)

AddEntry - append entry to the unbonding delegation

func (*Redelegation) Descriptor

func (*Redelegation) Descriptor() ([]byte, []int)

func (*Redelegation) Marshal

func (m *Redelegation) Marshal() (dAtA []byte, err error)

func (*Redelegation) MarshalTo

func (m *Redelegation) MarshalTo(dAtA []byte) (int, error)

func (*Redelegation) MarshalToSizedBuffer

func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Redelegation) ProtoMessage

func (*Redelegation) ProtoMessage()

func (*Redelegation) RemoveEntry

func (red *Redelegation) RemoveEntry(i int64)

RemoveEntry - remove entry at index i to the unbonding delegation

func (*Redelegation) Reset

func (m *Redelegation) Reset()

func (*Redelegation) Size

func (m *Redelegation) Size() (n int)

func (Redelegation) String

func (red Redelegation) String() string

String returns a human readable string representation of a Redelegation.

func (*Redelegation) Unmarshal

func (m *Redelegation) Unmarshal(dAtA []byte) error

func (*Redelegation) XXX_DiscardUnknown

func (m *Redelegation) XXX_DiscardUnknown()

func (*Redelegation) XXX_Marshal

func (m *Redelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Redelegation) XXX_Merge

func (m *Redelegation) XXX_Merge(src proto.Message)

func (*Redelegation) XXX_Size

func (m *Redelegation) XXX_Size() int

func (*Redelegation) XXX_Unmarshal

func (m *Redelegation) XXX_Unmarshal(b []byte) error

type RedelegationEntry

type RedelegationEntry struct {
	// creation_height  defines the height which the redelegation took place.
	CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// completion_time defines the unix time for redelegation completion.
	CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	// initial_balance defines the initial balance when redelegation started.
	InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
	// shares_dst is the amount of destination-validator shares created by redelegation.
	SharesDst github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
	// Incrementing id that uniquely identifies this entry
	UnbondingId uint64 `protobuf:"varint,5,opt,name=unbonding_id,json=unbondingId,proto3" json:"unbonding_id,omitempty"`
	// Strictly positive if this entry's unbonding has been stopped by external modules
	UnbondingOnHoldRefCount int64 `` /* 137-byte string literal not displayed */
}

RedelegationEntry defines a redelegation object with relevant metadata.

func NewRedelegationEntry

func NewRedelegationEntry(creationHeight int64, completionTime time.Time, balance math.Int, sharesDst sdk.Dec, id uint64) RedelegationEntry

func (*RedelegationEntry) Descriptor

func (*RedelegationEntry) Descriptor() ([]byte, []int)

func (*RedelegationEntry) Equal

func (this *RedelegationEntry) Equal(that interface{}) bool

func (*RedelegationEntry) GetCompletionTime

func (m *RedelegationEntry) GetCompletionTime() time.Time

func (*RedelegationEntry) GetCreationHeight

func (m *RedelegationEntry) GetCreationHeight() int64

func (*RedelegationEntry) GetUnbondingId added in v0.47.0

func (m *RedelegationEntry) GetUnbondingId() uint64

func (*RedelegationEntry) GetUnbondingOnHoldRefCount added in v0.47.0

func (m *RedelegationEntry) GetUnbondingOnHoldRefCount() int64

func (RedelegationEntry) IsMature

func (e RedelegationEntry) IsMature(currentTime time.Time) bool

IsMature - is the current entry mature

func (*RedelegationEntry) Marshal

func (m *RedelegationEntry) Marshal() (dAtA []byte, err error)

func (*RedelegationEntry) MarshalTo

func (m *RedelegationEntry) MarshalTo(dAtA []byte) (int, error)

func (*RedelegationEntry) MarshalToSizedBuffer

func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (RedelegationEntry) OnHold added in v0.47.0

func (e RedelegationEntry) OnHold() bool

OnHold - is the current entry on hold due to external modules

func (*RedelegationEntry) ProtoMessage

func (*RedelegationEntry) ProtoMessage()

func (*RedelegationEntry) Reset

func (m *RedelegationEntry) Reset()

func (*RedelegationEntry) Size

func (m *RedelegationEntry) Size() (n int)

func (RedelegationEntry) String

func (e RedelegationEntry) String() string

String implements the Stringer interface for a RedelegationEntry object.

func (*RedelegationEntry) Unmarshal

func (m *RedelegationEntry) Unmarshal(dAtA []byte) error

func (*RedelegationEntry) XXX_DiscardUnknown

func (m *RedelegationEntry) XXX_DiscardUnknown()

func (*RedelegationEntry) XXX_Marshal

func (m *RedelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedelegationEntry) XXX_Merge

func (m *RedelegationEntry) XXX_Merge(src proto.Message)

func (*RedelegationEntry) XXX_Size

func (m *RedelegationEntry) XXX_Size() int

func (*RedelegationEntry) XXX_Unmarshal

func (m *RedelegationEntry) XXX_Unmarshal(b []byte) error

type RedelegationEntryResponse

type RedelegationEntryResponse struct {
	RedelegationEntry RedelegationEntry                      `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry"`
	Balance           github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"`
}

RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.

func NewRedelegationEntryResponse

func NewRedelegationEntryResponse(
	creationHeight int64, completionTime time.Time, sharesDst sdk.Dec, initialBalance, balance math.Int, unbondingID uint64,
) RedelegationEntryResponse

NewRedelegationEntryResponse creates a new RedelegationEntryResponse instance.

func (*RedelegationEntryResponse) Descriptor added in v0.40.0

func (*RedelegationEntryResponse) Descriptor() ([]byte, []int)

func (*RedelegationEntryResponse) Equal added in v0.40.0

func (this *RedelegationEntryResponse) Equal(that interface{}) bool

func (*RedelegationEntryResponse) GetRedelegationEntry added in v0.40.0

func (m *RedelegationEntryResponse) GetRedelegationEntry() RedelegationEntry

func (*RedelegationEntryResponse) Marshal added in v0.40.0

func (m *RedelegationEntryResponse) Marshal() (dAtA []byte, err error)

func (*RedelegationEntryResponse) MarshalTo added in v0.40.0

func (m *RedelegationEntryResponse) MarshalTo(dAtA []byte) (int, error)

func (*RedelegationEntryResponse) MarshalToSizedBuffer added in v0.40.0

func (m *RedelegationEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RedelegationEntryResponse) ProtoMessage added in v0.40.0

func (*RedelegationEntryResponse) ProtoMessage()

func (*RedelegationEntryResponse) Reset added in v0.40.0

func (m *RedelegationEntryResponse) Reset()

func (*RedelegationEntryResponse) Size added in v0.40.0

func (m *RedelegationEntryResponse) Size() (n int)

func (*RedelegationEntryResponse) String added in v0.40.0

func (m *RedelegationEntryResponse) String() string

func (*RedelegationEntryResponse) Unmarshal added in v0.40.0

func (m *RedelegationEntryResponse) Unmarshal(dAtA []byte) error

func (*RedelegationEntryResponse) XXX_DiscardUnknown added in v0.40.0

func (m *RedelegationEntryResponse) XXX_DiscardUnknown()

func (*RedelegationEntryResponse) XXX_Marshal added in v0.40.0

func (m *RedelegationEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedelegationEntryResponse) XXX_Merge added in v0.40.0

func (m *RedelegationEntryResponse) XXX_Merge(src proto.Message)

func (*RedelegationEntryResponse) XXX_Size added in v0.40.0

func (m *RedelegationEntryResponse) XXX_Size() int

func (*RedelegationEntryResponse) XXX_Unmarshal added in v0.40.0

func (m *RedelegationEntryResponse) XXX_Unmarshal(b []byte) error

type RedelegationResponse

type RedelegationResponse struct {
	Redelegation Redelegation                `protobuf:"bytes,1,opt,name=redelegation,proto3" json:"redelegation"`
	Entries      []RedelegationEntryResponse `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries"`
}

RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.

func NewRedelegationResponse

func NewRedelegationResponse(
	delegatorAddr sdk.AccAddress, validatorSrc, validatorDst sdk.ValAddress, entries []RedelegationEntryResponse,
) RedelegationResponse

NewRedelegationResponse crates a new RedelegationEntryResponse instance.

func (*RedelegationResponse) Descriptor added in v0.40.0

func (*RedelegationResponse) Descriptor() ([]byte, []int)

func (*RedelegationResponse) GetEntries added in v0.40.0

func (*RedelegationResponse) GetRedelegation added in v0.40.0

func (m *RedelegationResponse) GetRedelegation() Redelegation

func (*RedelegationResponse) Marshal added in v0.40.0

func (m *RedelegationResponse) Marshal() (dAtA []byte, err error)

func (RedelegationResponse) MarshalJSON

func (r RedelegationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*RedelegationResponse) MarshalTo added in v0.40.0

func (m *RedelegationResponse) MarshalTo(dAtA []byte) (int, error)

func (*RedelegationResponse) MarshalToSizedBuffer added in v0.40.0

func (m *RedelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RedelegationResponse) ProtoMessage added in v0.40.0

func (*RedelegationResponse) ProtoMessage()

func (*RedelegationResponse) Reset added in v0.40.0

func (m *RedelegationResponse) Reset()

func (*RedelegationResponse) Size added in v0.40.0

func (m *RedelegationResponse) Size() (n int)

func (*RedelegationResponse) String

func (m *RedelegationResponse) String() string

func (*RedelegationResponse) Unmarshal added in v0.40.0

func (m *RedelegationResponse) Unmarshal(dAtA []byte) error

func (*RedelegationResponse) UnmarshalJSON

func (r *RedelegationResponse) UnmarshalJSON(bz []byte) error

UnmarshalJSON implements the json.Unmarshaler interface. This is so we can achieve a flattened structure while embedding other types.

func (*RedelegationResponse) XXX_DiscardUnknown added in v0.40.0

func (m *RedelegationResponse) XXX_DiscardUnknown()

func (*RedelegationResponse) XXX_Marshal added in v0.40.0

func (m *RedelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedelegationResponse) XXX_Merge added in v0.40.0

func (m *RedelegationResponse) XXX_Merge(src proto.Message)

func (*RedelegationResponse) XXX_Size added in v0.40.0

func (m *RedelegationResponse) XXX_Size() int

func (*RedelegationResponse) XXX_Unmarshal added in v0.40.0

func (m *RedelegationResponse) XXX_Unmarshal(b []byte) error

type RedelegationResponses

type RedelegationResponses []RedelegationResponse

RedelegationResponses are a collection of RedelegationResp

func (RedelegationResponses) String

func (r RedelegationResponses) String() (out string)

type Redelegations

type Redelegations []Redelegation

Redelegations are a collection of Redelegation

func (Redelegations) String

func (d Redelegations) String() (out string)

type StakeAuthorization added in v0.43.0

type StakeAuthorization struct {
	// 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.
	MaxTokens *types.Coin `` /* 141-byte string literal not displayed */
	// validators is the oneof that represents either allow_list or deny_list
	//
	// Types that are valid to be assigned to Validators:
	//	*StakeAuthorization_AllowList
	//	*StakeAuthorization_DenyList
	Validators isStakeAuthorization_Validators `protobuf_oneof:"validators"`
	// authorization_type defines one of AuthorizationType.
	AuthorizationType AuthorizationType `` /* 159-byte string literal not displayed */
}

StakeAuthorization defines authorization for delegate/undelegate/redelegate.

Since: cosmos-sdk 0.43

func NewStakeAuthorization added in v0.43.0

func NewStakeAuthorization(allowed []sdk.ValAddress, denied []sdk.ValAddress, authzType AuthorizationType, amount *sdk.Coin) (*StakeAuthorization, error)

NewStakeAuthorization creates a new StakeAuthorization object.

func (StakeAuthorization) Accept added in v0.43.0

Accept implements Authorization.Accept.

func (*StakeAuthorization) Descriptor added in v0.43.0

func (*StakeAuthorization) Descriptor() ([]byte, []int)

func (*StakeAuthorization) GetAllowList added in v0.43.0

func (*StakeAuthorization) GetAuthorizationType added in v0.43.0

func (m *StakeAuthorization) GetAuthorizationType() AuthorizationType

func (*StakeAuthorization) GetDenyList added in v0.43.0

func (*StakeAuthorization) GetMaxTokens added in v0.43.0

func (m *StakeAuthorization) GetMaxTokens() *types.Coin

func (*StakeAuthorization) GetValidators added in v0.43.0

func (m *StakeAuthorization) GetValidators() isStakeAuthorization_Validators

func (*StakeAuthorization) Marshal added in v0.43.0

func (m *StakeAuthorization) Marshal() (dAtA []byte, err error)

func (*StakeAuthorization) MarshalTo added in v0.43.0

func (m *StakeAuthorization) MarshalTo(dAtA []byte) (int, error)

func (*StakeAuthorization) MarshalToSizedBuffer added in v0.43.0

func (m *StakeAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (StakeAuthorization) MsgTypeURL added in v0.43.0

func (a StakeAuthorization) MsgTypeURL() string

MsgTypeURL implements Authorization.MsgTypeURL.

func (*StakeAuthorization) ProtoMessage added in v0.43.0

func (*StakeAuthorization) ProtoMessage()

func (*StakeAuthorization) Reset added in v0.43.0

func (m *StakeAuthorization) Reset()

func (*StakeAuthorization) Size added in v0.43.0

func (m *StakeAuthorization) Size() (n int)

func (*StakeAuthorization) String added in v0.43.0

func (m *StakeAuthorization) String() string

func (*StakeAuthorization) Unmarshal added in v0.43.0

func (m *StakeAuthorization) Unmarshal(dAtA []byte) error

func (StakeAuthorization) ValidateBasic added in v0.43.0

func (a StakeAuthorization) ValidateBasic() error

func (*StakeAuthorization) XXX_DiscardUnknown added in v0.43.0

func (m *StakeAuthorization) XXX_DiscardUnknown()

func (*StakeAuthorization) XXX_Marshal added in v0.43.0

func (m *StakeAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StakeAuthorization) XXX_Merge added in v0.43.0

func (m *StakeAuthorization) XXX_Merge(src proto.Message)

func (*StakeAuthorization) XXX_OneofWrappers added in v0.43.0

func (*StakeAuthorization) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*StakeAuthorization) XXX_Size added in v0.43.0

func (m *StakeAuthorization) XXX_Size() int

func (*StakeAuthorization) XXX_Unmarshal added in v0.43.0

func (m *StakeAuthorization) XXX_Unmarshal(b []byte) error

type StakeAuthorization_AllowList added in v0.43.0

type StakeAuthorization_AllowList struct {
	AllowList *StakeAuthorization_Validators `protobuf:"bytes,2,opt,name=allow_list,json=allowList,proto3,oneof" json:"allow_list,omitempty"`
}

func (*StakeAuthorization_AllowList) MarshalTo added in v0.43.0

func (m *StakeAuthorization_AllowList) MarshalTo(dAtA []byte) (int, error)

func (*StakeAuthorization_AllowList) MarshalToSizedBuffer added in v0.43.0

func (m *StakeAuthorization_AllowList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StakeAuthorization_AllowList) Size added in v0.43.0

func (m *StakeAuthorization_AllowList) Size() (n int)

type StakeAuthorization_DenyList added in v0.43.0

type StakeAuthorization_DenyList struct {
	DenyList *StakeAuthorization_Validators `protobuf:"bytes,3,opt,name=deny_list,json=denyList,proto3,oneof" json:"deny_list,omitempty"`
}

func (*StakeAuthorization_DenyList) MarshalTo added in v0.43.0

func (m *StakeAuthorization_DenyList) MarshalTo(dAtA []byte) (int, error)

func (*StakeAuthorization_DenyList) MarshalToSizedBuffer added in v0.43.0

func (m *StakeAuthorization_DenyList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StakeAuthorization_DenyList) Size added in v0.43.0

func (m *StakeAuthorization_DenyList) Size() (n int)

type StakeAuthorization_Validators added in v0.43.0

type StakeAuthorization_Validators struct {
	Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
}

Validators defines list of validator addresses.

func (*StakeAuthorization_Validators) Descriptor added in v0.43.0

func (*StakeAuthorization_Validators) Descriptor() ([]byte, []int)

func (*StakeAuthorization_Validators) GetAddress added in v0.43.0

func (m *StakeAuthorization_Validators) GetAddress() []string

func (*StakeAuthorization_Validators) Marshal added in v0.43.0

func (m *StakeAuthorization_Validators) Marshal() (dAtA []byte, err error)

func (*StakeAuthorization_Validators) MarshalTo added in v0.43.0

func (m *StakeAuthorization_Validators) MarshalTo(dAtA []byte) (int, error)

func (*StakeAuthorization_Validators) MarshalToSizedBuffer added in v0.43.0

func (m *StakeAuthorization_Validators) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StakeAuthorization_Validators) ProtoMessage added in v0.43.0

func (*StakeAuthorization_Validators) ProtoMessage()

func (*StakeAuthorization_Validators) Reset added in v0.43.0

func (m *StakeAuthorization_Validators) Reset()

func (*StakeAuthorization_Validators) Size added in v0.43.0

func (m *StakeAuthorization_Validators) Size() (n int)

func (*StakeAuthorization_Validators) String added in v0.43.0

func (*StakeAuthorization_Validators) Unmarshal added in v0.43.0

func (m *StakeAuthorization_Validators) Unmarshal(dAtA []byte) error

func (*StakeAuthorization_Validators) XXX_DiscardUnknown added in v0.43.0

func (m *StakeAuthorization_Validators) XXX_DiscardUnknown()

func (*StakeAuthorization_Validators) XXX_Marshal added in v0.43.0

func (m *StakeAuthorization_Validators) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StakeAuthorization_Validators) XXX_Merge added in v0.43.0

func (m *StakeAuthorization_Validators) XXX_Merge(src proto.Message)

func (*StakeAuthorization_Validators) XXX_Size added in v0.43.0

func (m *StakeAuthorization_Validators) XXX_Size() int

func (*StakeAuthorization_Validators) XXX_Unmarshal added in v0.43.0

func (m *StakeAuthorization_Validators) XXX_Unmarshal(b []byte) error

type StakingHooks

type StakingHooks interface {
	AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) error                           // Must be called when a validator is created
	BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) error                         // Must be called when a validator's state changes
	AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error // Must be called when a validator is deleted

	AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error         // Must be called when a validator is bonded
	AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error // Must be called when a validator begins unbonding

	BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error        // Must be called when a delegation is created
	BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error // Must be called when a delegation's shares are modified
	BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error        // Must be called when a delegation is removed
	AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
	BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) error
	AfterUnbondingInitiated(ctx sdk.Context, id uint64) error
	BeforeTokenizeShareRecordRemoved(ctx sdk.Context, recordID uint64) error // Must be called when tokenize share record is deleted
}

StakingHooks event hooks for staking validator object (noalias)

type StakingHooksWrapper added in v0.47.0

type StakingHooksWrapper struct{ StakingHooks }

StakingHooksWrapper is a wrapper for modules to inject StakingHooks using depinject.

func (StakingHooksWrapper) IsOnePerModuleType added in v0.47.0

func (StakingHooksWrapper) IsOnePerModuleType()

IsOnePerModuleType implements the depinject.OnePerModuleType interface.

type TokenizeShareLock

type TokenizeShareLock struct {
	// Address of the account that is locked
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Status of the lock (LOCKED or LOCK_EXPIRING)
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// Completion time if the lock is expiring
	CompletionTime time.Time `protobuf:"bytes,3,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"`
}

TokenizeSharesLock required for specifying account locks at genesis

func (*TokenizeShareLock) Descriptor

func (*TokenizeShareLock) Descriptor() ([]byte, []int)

func (*TokenizeShareLock) GetAddress

func (m *TokenizeShareLock) GetAddress() string

func (*TokenizeShareLock) GetCompletionTime

func (m *TokenizeShareLock) GetCompletionTime() time.Time

func (*TokenizeShareLock) GetStatus

func (m *TokenizeShareLock) GetStatus() string

func (*TokenizeShareLock) Marshal

func (m *TokenizeShareLock) Marshal() (dAtA []byte, err error)

func (*TokenizeShareLock) MarshalTo

func (m *TokenizeShareLock) MarshalTo(dAtA []byte) (int, error)

func (*TokenizeShareLock) MarshalToSizedBuffer

func (m *TokenizeShareLock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TokenizeShareLock) ProtoMessage

func (*TokenizeShareLock) ProtoMessage()

func (*TokenizeShareLock) Reset

func (m *TokenizeShareLock) Reset()

func (*TokenizeShareLock) Size

func (m *TokenizeShareLock) Size() (n int)

func (*TokenizeShareLock) String

func (m *TokenizeShareLock) String() string

func (*TokenizeShareLock) Unmarshal

func (m *TokenizeShareLock) Unmarshal(dAtA []byte) error

func (*TokenizeShareLock) XXX_DiscardUnknown

func (m *TokenizeShareLock) XXX_DiscardUnknown()

func (*TokenizeShareLock) XXX_Marshal

func (m *TokenizeShareLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenizeShareLock) XXX_Merge

func (m *TokenizeShareLock) XXX_Merge(src proto.Message)

func (*TokenizeShareLock) XXX_Size

func (m *TokenizeShareLock) XXX_Size() int

func (*TokenizeShareLock) XXX_Unmarshal

func (m *TokenizeShareLock) XXX_Unmarshal(b []byte) error

type TokenizeShareLockStatus

type TokenizeShareLockStatus int32

TokenizeShareLockStatus indicates whether the address is able to tokenize shares

const (
	// UNSPECIFIED defines an empty tokenize share lock status
	TOKENIZE_SHARE_LOCK_STATUS_UNSPECIFIED TokenizeShareLockStatus = 0
	// LOCKED indicates the account is locked and cannot tokenize shares
	TOKENIZE_SHARE_LOCK_STATUS_LOCKED TokenizeShareLockStatus = 1
	// UNLOCKED indicates the account is unlocked and can tokenize shares
	TOKENIZE_SHARE_LOCK_STATUS_UNLOCKED TokenizeShareLockStatus = 2
	// LOCK_EXPIRING indicates the account is unable to tokenize shares, but
	// will be able to tokenize shortly (after 1 unbonding period)
	TOKENIZE_SHARE_LOCK_STATUS_LOCK_EXPIRING TokenizeShareLockStatus = 3
)

func (TokenizeShareLockStatus) EnumDescriptor

func (TokenizeShareLockStatus) EnumDescriptor() ([]byte, []int)

func (TokenizeShareLockStatus) String

func (x TokenizeShareLockStatus) String() string

type TokenizeShareRecord

type TokenizeShareRecord struct {
	Id            uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Owner         string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	ModuleAccount string `protobuf:"bytes,3,opt,name=module_account,json=moduleAccount,proto3" json:"module_account,omitempty"`
	Validator     string `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"`
}

TokenizeShareRecord represents a tokenized delegation

func (*TokenizeShareRecord) Descriptor

func (*TokenizeShareRecord) Descriptor() ([]byte, []int)

func (*TokenizeShareRecord) Equal

func (this *TokenizeShareRecord) Equal(that interface{}) bool

func (*TokenizeShareRecord) GetId

func (m *TokenizeShareRecord) GetId() uint64

func (*TokenizeShareRecord) GetModuleAccount

func (m *TokenizeShareRecord) GetModuleAccount() string

func (TokenizeShareRecord) GetModuleAddress

func (r TokenizeShareRecord) GetModuleAddress() sdk.AccAddress

func (*TokenizeShareRecord) GetOwner

func (m *TokenizeShareRecord) GetOwner() string

func (TokenizeShareRecord) GetShareTokenDenom

func (r TokenizeShareRecord) GetShareTokenDenom() string

func (*TokenizeShareRecord) GetValidator

func (m *TokenizeShareRecord) GetValidator() string

func (*TokenizeShareRecord) Marshal

func (m *TokenizeShareRecord) Marshal() (dAtA []byte, err error)

func (*TokenizeShareRecord) MarshalTo

func (m *TokenizeShareRecord) MarshalTo(dAtA []byte) (int, error)

func (*TokenizeShareRecord) MarshalToSizedBuffer

func (m *TokenizeShareRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TokenizeShareRecord) ProtoMessage

func (*TokenizeShareRecord) ProtoMessage()

func (*TokenizeShareRecord) Reset

func (m *TokenizeShareRecord) Reset()

func (*TokenizeShareRecord) Size

func (m *TokenizeShareRecord) Size() (n int)

func (*TokenizeShareRecord) String

func (m *TokenizeShareRecord) String() string

func (*TokenizeShareRecord) Unmarshal

func (m *TokenizeShareRecord) Unmarshal(dAtA []byte) error

func (*TokenizeShareRecord) XXX_DiscardUnknown

func (m *TokenizeShareRecord) XXX_DiscardUnknown()

func (*TokenizeShareRecord) XXX_Marshal

func (m *TokenizeShareRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenizeShareRecord) XXX_Merge

func (m *TokenizeShareRecord) XXX_Merge(src proto.Message)

func (*TokenizeShareRecord) XXX_Size

func (m *TokenizeShareRecord) XXX_Size() int

func (*TokenizeShareRecord) XXX_Unmarshal

func (m *TokenizeShareRecord) XXX_Unmarshal(b []byte) error

type UnbondingDelegation

type UnbondingDelegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// entries are the unbonding delegation entries.
	Entries []UnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"`
}

UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.

func MustUnmarshalUBD

func MustUnmarshalUBD(cdc codec.BinaryCodec, value []byte) UnbondingDelegation

unmarshal a unbonding delegation from a store value

func NewUnbondingDelegation

func NewUnbondingDelegation(
	delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress,
	creationHeight int64, minTime time.Time, balance math.Int, id uint64,
) UnbondingDelegation

NewUnbondingDelegation - create a new unbonding delegation object

func UnmarshalUBD

func UnmarshalUBD(cdc codec.BinaryCodec, value []byte) (ubd UnbondingDelegation, err error)

unmarshal a unbonding delegation from a store value

func (*UnbondingDelegation) AddEntry

func (ubd *UnbondingDelegation) AddEntry(creationHeight int64, minTime time.Time, balance math.Int, unbondingID uint64)

AddEntry - append entry to the unbonding delegation

func (*UnbondingDelegation) Descriptor

func (*UnbondingDelegation) Descriptor() ([]byte, []int)

func (*UnbondingDelegation) Marshal

func (m *UnbondingDelegation) Marshal() (dAtA []byte, err error)

func (*UnbondingDelegation) MarshalTo

func (m *UnbondingDelegation) MarshalTo(dAtA []byte) (int, error)

func (*UnbondingDelegation) MarshalToSizedBuffer

func (m *UnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UnbondingDelegation) ProtoMessage

func (*UnbondingDelegation) ProtoMessage()

func (*UnbondingDelegation) RemoveEntry

func (ubd *UnbondingDelegation) RemoveEntry(i int64)

RemoveEntry - remove entry at index i to the unbonding delegation

func (*UnbondingDelegation) Reset

func (m *UnbondingDelegation) Reset()

func (*UnbondingDelegation) Size

func (m *UnbondingDelegation) Size() (n int)

func (UnbondingDelegation) String

func (ubd UnbondingDelegation) String() string

String returns a human readable string representation of an UnbondingDelegation.

func (*UnbondingDelegation) Unmarshal

func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error

func (*UnbondingDelegation) XXX_DiscardUnknown

func (m *UnbondingDelegation) XXX_DiscardUnknown()

func (*UnbondingDelegation) XXX_Marshal

func (m *UnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnbondingDelegation) XXX_Merge

func (m *UnbondingDelegation) XXX_Merge(src proto.Message)

func (*UnbondingDelegation) XXX_Size

func (m *UnbondingDelegation) XXX_Size() int

func (*UnbondingDelegation) XXX_Unmarshal

func (m *UnbondingDelegation) XXX_Unmarshal(b []byte) error

type UnbondingDelegationEntry

type UnbondingDelegationEntry struct {
	// creation_height is the height which the unbonding took place.
	CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// completion_time is the unix time for unbonding completion.
	CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	// initial_balance defines the tokens initially scheduled to receive at completion.
	InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
	// balance defines the tokens to receive at completion.
	Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"`
	// Incrementing id that uniquely identifies this entry
	UnbondingId uint64 `protobuf:"varint,5,opt,name=unbonding_id,json=unbondingId,proto3" json:"unbonding_id,omitempty"`
	// Strictly positive if this entry's unbonding has been stopped by external modules
	UnbondingOnHoldRefCount int64 `` /* 137-byte string literal not displayed */
}

UnbondingDelegationEntry defines an unbonding object with relevant metadata.

func MustUnmarshalUBDE added in v0.47.0

func MustUnmarshalUBDE(cdc codec.BinaryCodec, value []byte) UnbondingDelegationEntry

unmarshal a unbonding delegation entry from a store value

func NewUnbondingDelegationEntry

func NewUnbondingDelegationEntry(creationHeight int64, completionTime time.Time, balance math.Int, unbondingID uint64) UnbondingDelegationEntry

func UnmarshalUBDE added in v0.47.0

func UnmarshalUBDE(cdc codec.BinaryCodec, value []byte) (ubd UnbondingDelegationEntry, err error)

unmarshal a unbonding delegation entry from a store value

func (*UnbondingDelegationEntry) Descriptor

func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int)

func (*UnbondingDelegationEntry) Equal

func (this *UnbondingDelegationEntry) Equal(that interface{}) bool

func (*UnbondingDelegationEntry) GetCompletionTime

func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time

func (*UnbondingDelegationEntry) GetCreationHeight

func (m *UnbondingDelegationEntry) GetCreationHeight() int64

func (*UnbondingDelegationEntry) GetUnbondingId added in v0.47.0

func (m *UnbondingDelegationEntry) GetUnbondingId() uint64

func (*UnbondingDelegationEntry) GetUnbondingOnHoldRefCount added in v0.47.0

func (m *UnbondingDelegationEntry) GetUnbondingOnHoldRefCount() int64

func (UnbondingDelegationEntry) IsMature

func (e UnbondingDelegationEntry) IsMature(currentTime time.Time) bool

IsMature - is the current entry mature

func (*UnbondingDelegationEntry) Marshal

func (m *UnbondingDelegationEntry) Marshal() (dAtA []byte, err error)

func (*UnbondingDelegationEntry) MarshalTo

func (m *UnbondingDelegationEntry) MarshalTo(dAtA []byte) (int, error)

func (*UnbondingDelegationEntry) MarshalToSizedBuffer

func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (UnbondingDelegationEntry) OnHold added in v0.47.0

func (e UnbondingDelegationEntry) OnHold() bool

OnHold - is the current entry on hold due to external modules

func (*UnbondingDelegationEntry) ProtoMessage

func (*UnbondingDelegationEntry) ProtoMessage()

func (*UnbondingDelegationEntry) Reset

func (m *UnbondingDelegationEntry) Reset()

func (*UnbondingDelegationEntry) Size

func (m *UnbondingDelegationEntry) Size() (n int)

func (UnbondingDelegationEntry) String

func (e UnbondingDelegationEntry) String() string

String implements the stringer interface for a UnbondingDelegationEntry.

func (*UnbondingDelegationEntry) Unmarshal

func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error

func (*UnbondingDelegationEntry) XXX_DiscardUnknown

func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()

func (*UnbondingDelegationEntry) XXX_Marshal

func (m *UnbondingDelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnbondingDelegationEntry) XXX_Merge

func (m *UnbondingDelegationEntry) XXX_Merge(src proto.Message)

func (*UnbondingDelegationEntry) XXX_Size

func (m *UnbondingDelegationEntry) XXX_Size() int

func (*UnbondingDelegationEntry) XXX_Unmarshal

func (m *UnbondingDelegationEntry) XXX_Unmarshal(b []byte) error

type UnbondingDelegations

type UnbondingDelegations []UnbondingDelegation

UnbondingDelegations is a collection of UnbondingDelegation

func (UnbondingDelegations) String

func (ubds UnbondingDelegations) String() (out string)

type UnbondingType added in v0.47.0

type UnbondingType int

UnbondingType defines the type of unbonding operation

const (
	UnbondingType_Undefined UnbondingType = iota
	UnbondingType_UnbondingDelegation
	UnbondingType_Redelegation
	UnbondingType_ValidatorUnbonding
)

type UnimplementedMsgServer added in v0.40.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BeginRedelegate added in v0.40.0

func (*UnimplementedMsgServer) CancelUnbondingDelegation added in v0.46.0

func (*UnimplementedMsgServer) CreateValidator added in v0.40.0

func (*UnimplementedMsgServer) Delegate added in v0.40.0

func (*UnimplementedMsgServer) DisableTokenizeShares

func (*UnimplementedMsgServer) EditValidator added in v0.40.0

func (*UnimplementedMsgServer) EnableTokenizeShares

func (*UnimplementedMsgServer) RedeemTokensForShares

func (*UnimplementedMsgServer) TokenizeShares

func (*UnimplementedMsgServer) UnbondValidator

func (*UnimplementedMsgServer) Undelegate added in v0.40.0

func (*UnimplementedMsgServer) UpdateParams added in v0.47.0

func (*UnimplementedMsgServer) ValidatorBond

type UnimplementedQueryServer added in v0.40.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Delegation added in v0.40.0

func (*UnimplementedQueryServer) DelegatorDelegations added in v0.40.0

func (*UnimplementedQueryServer) DelegatorUnbondingDelegations added in v0.40.0

func (*UnimplementedQueryServer) DelegatorValidator added in v0.40.0

func (*UnimplementedQueryServer) DelegatorValidators added in v0.40.0

func (*UnimplementedQueryServer) HistoricalInfo added in v0.40.0

func (*UnimplementedQueryServer) Params added in v0.40.0

func (*UnimplementedQueryServer) Pool added in v0.40.0

func (*UnimplementedQueryServer) Redelegations added in v0.40.0

func (*UnimplementedQueryServer) TokenizeShareLockInfo

func (*UnimplementedQueryServer) TotalLiquidStaked

func (*UnimplementedQueryServer) UnbondingDelegation added in v0.40.0

func (*UnimplementedQueryServer) Validator added in v0.40.0

func (*UnimplementedQueryServer) ValidatorDelegations added in v0.40.0

func (*UnimplementedQueryServer) ValidatorUnbondingDelegations added in v0.40.0

func (*UnimplementedQueryServer) Validators added in v0.40.0

type ValAddresses added in v0.40.0

type ValAddresses struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

ValAddresses defines a repeated set of validator addresses.

func (*ValAddresses) Descriptor added in v0.40.0

func (*ValAddresses) Descriptor() ([]byte, []int)

func (*ValAddresses) GetAddresses added in v0.40.0

func (m *ValAddresses) GetAddresses() []string

func (*ValAddresses) Marshal added in v0.40.0

func (m *ValAddresses) Marshal() (dAtA []byte, err error)

func (*ValAddresses) MarshalTo added in v0.40.0

func (m *ValAddresses) MarshalTo(dAtA []byte) (int, error)

func (*ValAddresses) MarshalToSizedBuffer added in v0.40.0

func (m *ValAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValAddresses) ProtoMessage added in v0.40.0

func (*ValAddresses) ProtoMessage()

func (*ValAddresses) Reset added in v0.40.0

func (m *ValAddresses) Reset()

func (*ValAddresses) Size added in v0.40.0

func (m *ValAddresses) Size() (n int)

func (*ValAddresses) String added in v0.40.0

func (this *ValAddresses) String() string

func (*ValAddresses) Unmarshal added in v0.40.0

func (m *ValAddresses) Unmarshal(dAtA []byte) error

func (*ValAddresses) XXX_DiscardUnknown added in v0.40.0

func (m *ValAddresses) XXX_DiscardUnknown()

func (*ValAddresses) XXX_Marshal added in v0.40.0

func (m *ValAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValAddresses) XXX_Merge added in v0.40.0

func (m *ValAddresses) XXX_Merge(src proto.Message)

func (*ValAddresses) XXX_Size added in v0.40.0

func (m *ValAddresses) XXX_Size() int

func (*ValAddresses) XXX_Unmarshal added in v0.40.0

func (m *ValAddresses) XXX_Unmarshal(b []byte) error

type Validator

type Validator struct {
	// operator_address defines the address of the validator's operator; bech encoded in JSON.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
	ConsensusPubkey *types1.Any `protobuf:"bytes,2,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
	// jailed defined whether the validator has been jailed from bonded status or not.
	Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// status is the validator status (bonded/unbonding/unbonded).
	Status BondStatus `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status,omitempty"`
	// tokens define the delegated tokens (incl. self-delegation).
	Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens"`
	// delegator_shares defines total shares issued to a validator's delegators.
	DelegatorShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	// description defines the description terms for the validator.
	Description Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description"`
	// unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
	UnbondingHeight int64 `protobuf:"varint,8,opt,name=unbonding_height,json=unbondingHeight,proto3" json:"unbonding_height,omitempty"`
	// unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
	UnbondingTime time.Time `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3,stdtime" json:"unbonding_time"`
	// commission defines the commission parameters.
	Commission Commission `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission"`
	// Deprecated: This field has been deprecated with LSM in favor of the validator bond
	MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` // Deprecated: Do not use.
	/* 155-byte string literal not displayed */
	// strictly positive if this validator's unbonding has been stopped by external modules
	UnbondingOnHoldRefCount int64 `` /* 138-byte string literal not displayed */
	// list of unbonding ids, each uniquely identifing an unbonding of this validator
	UnbondingIds []uint64 `protobuf:"varint,13,rep,packed,name=unbonding_ids,json=unbondingIds,proto3" json:"unbonding_ids,omitempty"`
	// Number of shares self bonded from the validator
	ValidatorBondShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 190-byte string literal not displayed */
	// Number of shares either tokenized or owned by a liquid staking provider
	LiquidShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 159-byte string literal not displayed */
}

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.

func MustUnmarshalValidator

func MustUnmarshalValidator(cdc codec.BinaryCodec, value []byte) Validator

unmarshal a redelegation from a store value

func NewValidator

func NewValidator(operator sdk.ValAddress, pubKey cryptotypes.PubKey, description Description) (Validator, error)

NewValidator constructs a new Validator

func UnmarshalValidator

func UnmarshalValidator(cdc codec.BinaryCodec, value []byte) (v Validator, err error)

unmarshal a redelegation from a store value

func (Validator) ABCIValidatorUpdate

func (v Validator) ABCIValidatorUpdate(r math.Int) abci.ValidatorUpdate

ABCIValidatorUpdate returns an abci.ValidatorUpdate from a staking validator type with the full validator power

func (Validator) ABCIValidatorUpdateZero

func (v Validator) ABCIValidatorUpdateZero() abci.ValidatorUpdate

ABCIValidatorUpdateZero returns an abci.ValidatorUpdate from a staking validator type with zero power used for validator updates.

func (Validator) AddTokensFromDel

func (v Validator) AddTokensFromDel(amount math.Int) (Validator, sdk.Dec)

AddTokensFromDel adds tokens to a validator

func (Validator) BondedTokens

func (v Validator) BondedTokens() math.Int

get the bonded tokens which the validator holds

func (Validator) ConsPubKey added in v0.30.0

func (v Validator) ConsPubKey() (cryptotypes.PubKey, error)

ConsPubKey returns the validator PubKey as a cryptotypes.PubKey.

func (Validator) ConsensusPower

func (v Validator) ConsensusPower(r math.Int) int64

ConsensusPower gets the consensus-engine power. Aa reduction of 10^6 from validator tokens is applied

func (*Validator) Descriptor

func (*Validator) Descriptor() ([]byte, []int)

func (*Validator) Equal

func (v *Validator) Equal(v2 *Validator) bool

Equal checks if the receiver equals the parameter

func (Validator) GetBondedTokens

func (v Validator) GetBondedTokens() math.Int

func (Validator) GetCommission

func (v Validator) GetCommission() math.LegacyDec

func (Validator) GetConsAddr

func (v Validator) GetConsAddr() (sdk.ConsAddress, error)

GetConsAddr extracts Consensus key address

func (Validator) GetConsensusPower

func (v Validator) GetConsensusPower(r math.Int) int64

func (Validator) GetDelegatorShares

func (v Validator) GetDelegatorShares() math.LegacyDec

func (Validator) GetLiquidShares

func (v Validator) GetLiquidShares() sdk.Dec

func (Validator) GetMinSelfDelegation

func (v Validator) GetMinSelfDelegation() math.Int

func (Validator) GetMoniker

func (v Validator) GetMoniker() string

func (Validator) GetOperator

func (v Validator) GetOperator() sdk.ValAddress

func (Validator) GetStatus

func (v Validator) GetStatus() BondStatus

func (Validator) GetTokens

func (v Validator) GetTokens() math.Int

func (Validator) InvalidExRate

func (v Validator) InvalidExRate() bool

In some situations, the exchange rate becomes invalid, e.g. if Validator loses all tokens due to slashing. In this case, make all future delegations invalid.

func (Validator) IsBonded

func (v Validator) IsBonded() bool

IsBonded checks if the validator status equals Bonded

func (Validator) IsJailed

func (v Validator) IsJailed() bool

func (Validator) IsUnbonded

func (v Validator) IsUnbonded() bool

IsUnbonded checks if the validator status equals Unbonded

func (Validator) IsUnbonding

func (v Validator) IsUnbonding() bool

IsUnbonding checks if the validator status equals Unbonding

func (*Validator) Marshal

func (m *Validator) Marshal() (dAtA []byte, err error)

func (*Validator) MarshalTo

func (m *Validator) MarshalTo(dAtA []byte) (int, error)

func (*Validator) MarshalToSizedBuffer

func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Validator) MinEqual

func (v *Validator) MinEqual(other *Validator) bool

MinEqual defines a more minimum set of equality conditions when comparing two validators.

func (Validator) PotentialConsensusPower

func (v Validator) PotentialConsensusPower(r math.Int) int64

PotentialConsensusPower returns the potential consensus-engine power.

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (Validator) RemoveDelShares

func (v Validator) RemoveDelShares(delShares sdk.Dec) (Validator, math.Int)

RemoveDelShares removes delegator shares from a validator. NOTE: because token fractions are left in the valiadator,

the exchange rate of future shares of this validator can increase.

func (Validator) RemoveTokens

func (v Validator) RemoveTokens(tokens math.Int) Validator

RemoveTokens removes tokens from a validator

func (*Validator) Reset

func (m *Validator) Reset()

func (Validator) SetInitialCommission

func (v Validator) SetInitialCommission(commission Commission) (Validator, error)

SetInitialCommission attempts to set a validator's initial commission. An error is returned if the commission is invalid.

func (Validator) SharesFromTokens

func (v Validator) SharesFromTokens(amt math.Int) (sdk.Dec, error)

SharesFromTokens returns the shares of a delegation given a bond amount. It returns an error if the validator has no tokens.

func (Validator) SharesFromTokensTruncated

func (v Validator) SharesFromTokensTruncated(amt math.Int) (sdk.Dec, error)

SharesFromTokensTruncated returns the truncated shares of a delegation given a bond amount. It returns an error if the validator has no tokens.

func (*Validator) Size

func (m *Validator) Size() (n int)

func (Validator) String

func (v Validator) String() string

String implements the Stringer interface for a Validator object.

func (Validator) TmConsPublicKey added in v0.40.0

func (v Validator) TmConsPublicKey() (tmprotocrypto.PublicKey, error)

TmConsPublicKey casts Validator.ConsensusPubkey to tmprotocrypto.PubKey.

func (Validator) TokensFromShares

func (v Validator) TokensFromShares(shares sdk.Dec) math.LegacyDec

calculate the token worth of provided shares

func (Validator) TokensFromSharesRoundUp

func (v Validator) TokensFromSharesRoundUp(shares sdk.Dec) math.LegacyDec

TokensFromSharesRoundUp returns the token worth of provided shares, rounded up.

func (Validator) TokensFromSharesTruncated

func (v Validator) TokensFromSharesTruncated(shares sdk.Dec) math.LegacyDec

calculate the token worth of provided shares, truncated

func (*Validator) Unmarshal

func (m *Validator) Unmarshal(dAtA []byte) error

func (Validator) UnpackInterfaces added in v0.40.0

func (v Validator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (Validator) UpdateStatus

func (v Validator) UpdateStatus(newStatus BondStatus) Validator

UpdateStatus updates the location of the shares within a validator to reflect the new status

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Validator) XXX_Merge

func (m *Validator) XXX_Merge(src proto.Message)

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

func (m *Validator) XXX_Unmarshal(b []byte) error

type ValidatorI added in v0.40.0

type ValidatorI interface {
	IsJailed() bool                                          // whether the validator is jailed
	GetMoniker() string                                      // moniker of the validator
	GetStatus() BondStatus                                   // status of the validator
	IsBonded() bool                                          // check if has a bonded status
	IsUnbonded() bool                                        // check if has status unbonded
	IsUnbonding() bool                                       // check if has status unbonding
	GetOperator() sdk.ValAddress                             // operator address to receive/return validators coins
	ConsPubKey() (cryptotypes.PubKey, error)                 // validation consensus pubkey (cryptotypes.PubKey)
	TmConsPublicKey() (tmprotocrypto.PublicKey, error)       // validation consensus pubkey (Tendermint)
	GetConsAddr() (sdk.ConsAddress, error)                   // validation consensus address
	GetTokens() math.Int                                     // validation tokens
	GetBondedTokens() math.Int                               // validator bonded tokens
	GetConsensusPower(math.Int) int64                        // validation power in tendermint
	GetCommission() math.LegacyDec                           // validator commission rate
	GetMinSelfDelegation() math.Int                          // validator minimum self delegation
	GetDelegatorShares() math.LegacyDec                      // total outstanding delegator shares
	GetLiquidShares() sdk.Dec                                // total shares earmarked from liquid staking
	TokensFromShares(sdk.Dec) math.LegacyDec                 // token worth of provided delegator shares
	TokensFromSharesTruncated(sdk.Dec) math.LegacyDec        // token worth of provided delegator shares, truncated
	TokensFromSharesRoundUp(sdk.Dec) math.LegacyDec          // token worth of provided delegator shares, rounded up
	SharesFromTokens(amt math.Int) (sdk.Dec, error)          // shares worth of delegator's bond
	SharesFromTokensTruncated(amt math.Int) (sdk.Dec, error) // truncated shares worth of delegator's bond
}

ValidatorI expected validator functions

type ValidatorSet

type ValidatorSet interface {
	// iterate through validators by operator address, execute func for each validator
	IterateValidators(sdk.Context,
		func(index int64, validator ValidatorI) (stop bool))

	// iterate through bonded validators by operator address, execute func for each validator
	IterateBondedValidatorsByPower(sdk.Context,
		func(index int64, validator ValidatorI) (stop bool))

	// iterate through the consensus validator set of the last block by operator address, execute func for each validator
	IterateLastValidators(sdk.Context,
		func(index int64, validator ValidatorI) (stop bool))

	Validator(sdk.Context, sdk.ValAddress) ValidatorI            // get a particular validator by operator address
	ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) ValidatorI // get a particular validator by consensus address
	TotalBondedTokens(sdk.Context) math.Int                      // total bonded tokens within the validator set
	StakingTokenSupply(sdk.Context) math.Int                     // total staking token supply

	// slash the validator and delegators of the validator, specifying offence height, offence power, and slash fraction
	Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) math.Int
	SlashWithInfractionReason(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec, Infraction) math.Int
	Jail(sdk.Context, sdk.ConsAddress)   // jail a validator
	Unjail(sdk.Context, sdk.ConsAddress) // unjail a validator

	// Delegation allows for getting a particular delegation for a given validator
	// and delegator outside the scope of the staking module.
	Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) DelegationI

	// MaxValidators returns the maximum amount of bonded validators
	MaxValidators(sdk.Context) uint32
}

ValidatorSet expected properties for the set of all validators (noalias)

type ValidatorUpdates added in v0.47.0

type ValidatorUpdates struct {
	Updates []types3.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates"`
}

ValidatorUpdates defines an array of abci.ValidatorUpdate objects. TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence

func (*ValidatorUpdates) Descriptor added in v0.47.0

func (*ValidatorUpdates) Descriptor() ([]byte, []int)

func (*ValidatorUpdates) GetUpdates added in v0.47.0

func (m *ValidatorUpdates) GetUpdates() []types3.ValidatorUpdate

func (*ValidatorUpdates) Marshal added in v0.47.0

func (m *ValidatorUpdates) Marshal() (dAtA []byte, err error)

func (*ValidatorUpdates) MarshalTo added in v0.47.0

func (m *ValidatorUpdates) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorUpdates) MarshalToSizedBuffer added in v0.47.0

func (m *ValidatorUpdates) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorUpdates) ProtoMessage added in v0.47.0

func (*ValidatorUpdates) ProtoMessage()

func (*ValidatorUpdates) Reset added in v0.47.0

func (m *ValidatorUpdates) Reset()

func (*ValidatorUpdates) Size added in v0.47.0

func (m *ValidatorUpdates) Size() (n int)

func (*ValidatorUpdates) String added in v0.47.0

func (m *ValidatorUpdates) String() string

func (*ValidatorUpdates) Unmarshal added in v0.47.0

func (m *ValidatorUpdates) Unmarshal(dAtA []byte) error

func (*ValidatorUpdates) XXX_DiscardUnknown added in v0.47.0

func (m *ValidatorUpdates) XXX_DiscardUnknown()

func (*ValidatorUpdates) XXX_Marshal added in v0.47.0

func (m *ValidatorUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorUpdates) XXX_Merge added in v0.47.0

func (m *ValidatorUpdates) XXX_Merge(src proto.Message)

func (*ValidatorUpdates) XXX_Size added in v0.47.0

func (m *ValidatorUpdates) XXX_Size() int

func (*ValidatorUpdates) XXX_Unmarshal added in v0.47.0

func (m *ValidatorUpdates) XXX_Unmarshal(b []byte) error

type Validators

type Validators []Validator

Validators is a collection of Validator

func (Validators) Len

func (v Validators) Len() int

Implements sort interface

func (Validators) Less

func (v Validators) Less(i, j int) bool

Implements sort interface

func (Validators) Sort

func (v Validators) Sort()

Sort Validators sorts validator array in ascending operator address order

func (Validators) String

func (v Validators) String() (out string)

func (Validators) Swap

func (v Validators) Swap(i, j int)

Implements sort interface

func (Validators) ToSDKValidators

func (v Validators) ToSDKValidators() (validators []ValidatorI)

ToSDKValidators - convenience function convert []Validator to []sdk.ValidatorI

func (Validators) UnpackInterfaces added in v0.40.0

func (v Validators) UnpackInterfaces(c codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

type ValidatorsByVotingPower added in v0.40.0

type ValidatorsByVotingPower []Validator

ValidatorsByVotingPower implements sort.Interface for []Validator based on the VotingPower and Address fields. The validators are sorted first by their voting power (descending). Secondary index - Address (ascending). Copied from tendermint/types/validator_set.go

func (ValidatorsByVotingPower) Len added in v0.40.0

func (valz ValidatorsByVotingPower) Len() int

func (ValidatorsByVotingPower) Less added in v0.40.0

func (valz ValidatorsByVotingPower) Less(i, j int, r math.Int) bool

func (ValidatorsByVotingPower) Swap added in v0.40.0

func (valz ValidatorsByVotingPower) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL