types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 54 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "validator"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_" + ModuleName

	// RouterKey defines module's messages routing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgCreateValidator       = "create_validator"
	TypeMsgEditValidator         = "edit_validator"
	TypeMsgSetOnline             = "set_online"
	TypeMsgSetOffline            = "set_offline"
	TypeMsgDelegate              = "delegate"
	TypeMsgDelegateNFT           = "delegate_nft"
	TypeMsgRedelegate            = "redelegate"
	TypeMsgRedelegateNFT         = "redelegate_nft"
	TypeMsgUndelegate            = "undelegate"
	TypeMsgUndelegateNFT         = "undelegate_nft"
	TypeMsgCancelRedelegation    = "cancel_redelegation"
	TypeMsgCancelRedelegationNFT = "cancel_redelegation_nft"
	TypeMsgCancelUndelegation    = "cancel_undelegation"
	TypeMsgCancelUndelegationNFT = "cancel_undelegation_nft"
)
View Source
const (
	// Default maximum number of bonded validators.
	DefaultMaxValidators uint32 = 256

	// Default maximum number of bonded delegations per validator.
	DefaultMaxDelegations uint32 = 1000

	// 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 validator module to the application module manager's SetOrderBeginBlockers.
	DefaultHistoricalEntries uint32 = 10000

	// DefaultRedelegationTime reflects a week in nanoseconds as the default redelegating time.
	DefaultRedelegationTime time.Duration = time.Hour * 24 * 7

	// DefaultUndelegationTime reflects a month in nanoseconds as the default unbonding time.
	DefaultUndelegationTime time.Duration = time.Hour * 24 * 7 * 4

	// DefaultSignedBlocksWindow 24 * ~5 sec = ~120 sec window
	DefaultSignedBlocksWindow int64 = 24

	DefaultBaseDenom = cmdcfg.BaseDenom
)

Validator params default values.

View Source
const (
	BondedPoolName    = "bonded_tokens_pool"
	NotBondedPoolName = "not_bonded_tokens_pool"
)
View Source
const (
	QueryValidators             = "validators"
	QueryValidator              = "validator"
	QueryDelegatorDelegations   = "delegatorDelegations"
	QueryDelegatorUndelegations = "delegatorUndelegations"
	QueryRedelegations          = "redelegations"
	QueryValidatorDelegations   = "validatorDelegations"
	QueryValidatorRedelegations = "validatorRedelegations"
	QueryValidatorUndelegations = "validatorUndelegations"
	QueryDelegation             = "delegation"
	QueryUndelegation           = "undelegation"
	QueryDelegatorValidators    = "delegatorValidators"
	QueryDelegatorValidator     = "delegatorValidator"
	QueryPool                   = "pool"
	QueryParameters             = "parameters"
	QueryHistoricalInfo         = "historicalInfo"
)

query endpoints supported by the staking Querier

View Source
const (
	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 (
	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")
	ErrNoUndelegation                  = sdkerrors.Register(ModuleName, 26, "no unbonding delegation found")
	ErrMaxUndelegationEntries          = 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")
)

x/validator 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 (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
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 (
	// DefaultMinSignedPerWindow 0.5 of 24 blocks = ~ 60 sec
	DefaultMinSignedPerWindow = sdk.NewDec(1).Quo(sdk.NewDec(2))
	// DefaultSlashFractionDowntime 1% of stake
	DefaultSlashFractionDowntime = sdk.NewDec(1).Quo(sdk.NewDec(100))
	// DefaultSlashFractionDoubleSign 5% of stake
	DefaultSlashFractionDoubleSign = sdk.NewDec(1).Quo(sdk.NewDec(20))
)
View Source
var (
	KeyMaxValidators     = []byte("MaxValidators")
	KeyMaxDelegations    = []byte("MaxDelegations")
	KeyMaxEntries        = []byte("MaxEntries")
	KeyHistoricalEntries = []byte("HistoricalEntries")
	KeyRedelegationTime  = []byte("RedelegationTime")
	KeyUndelegationTime  = []byte("UndelegationTime")
	KeyBaseDenom         = []byte("BaseDenom")

	KeySignedBlocksWindow      = []byte("SignedBlocksWindow")
	KeyMinSignedPerWindow      = []byte("MinSignedPerWindow")
	KeySlashFractionDowntime   = []byte("SlashFractionDowntime")
	KeySlashFractionDoubleSign = []byte("SlashFractionDoubleSign")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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(BondStatus_Unspecified)]
	BondStatusUnbonded    = BondStatus_name[int32(BondStatus_Unbonded)]
	BondStatusUnbonding   = BondStatus_name[int32(BondStatus_Unbonding)]
	BondStatusBonded      = BondStatus_name[int32(BondStatus_Bonded)]
)
View Source
var (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
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,
}

ModuleCdc references the global validator module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.

The actual codec used for serialization should be provided to modules/validator and defined at the application level.

View Source
var StakeType_name = map[int32]string{
	0: "STAKE_TYPE_UNSPECIFIED",
	1: "STAKE_TYPE_COIN",
	2: "STAKE_TYPE_NFT",
}
View Source
var StakeType_value = map[string]int32{
	"STAKE_TYPE_UNSPECIFIED": 0,
	"STAKE_TYPE_COIN":        1,
	"STAKE_TYPE_NFT":         2,
}

Functions

func AddressFromLastValidatorPowerKey added in v0.0.8

func AddressFromLastValidatorPowerKey(key []byte) []byte

AddressFromLastValidatorPowerKey creates the validator operator address from LastValidatorPowerKey.

func GetAllCustomCoinsStaked added in v0.0.8

func GetAllCustomCoinsStaked() []byte

func GetAllDelegationsCount added in v0.1.0

func GetAllDelegationsCount() []byte

GetAllDelegationsCount returns the prefix key for all counts of delegations.

func GetAllDelegationsKey added in v0.0.8

func GetAllDelegationsKey() []byte

GetAllDelegationsKey returns the prefix key for all delegations.

func GetAllREDsKey added in v0.0.8

func GetAllREDsKey() []byte

GetAllREDsKey returns a key prefix for indexing all redelegations.

func GetAllRedelegationsTimeKey added in v0.0.8

func GetAllRedelegationsTimeKey() []byte

GetAllRedelegationsTimeKey creates the prefix for undelegations.

func GetAllUBDsKey added in v0.0.8

func GetAllUBDsKey() []byte

GetAllUBDsKey returns a key prefix for indexing all undelegations.

func GetAllUndelegationsTimeKey added in v0.0.8

func GetAllUndelegationsTimeKey() []byte

GetAllUndelegationsTimeKey creates the prefix for undelegations.

func GetAllValidatorQueueKey added in v0.0.8

func GetAllValidatorQueueKey() []byte

func GetCustomCoinStaked added in v0.0.8

func GetCustomCoinStaked(denom string) []byte

func GetDelegationKey added in v0.0.8

func GetDelegationKey(delegator sdk.AccAddress, validator sdk.ValAddress, denom string) []byte

GetDelegationKey creates the key for the exact delegation in the specified coin.

func GetDelegationKeyFromValIndexKey added in v0.0.8

func GetDelegationKeyFromValIndexKey(indexKey []byte) []byte

GetDelegationKeyFromValIndexKey rearranges the ValIndexKey to get the DelegationKey

func GetDelegationsKey added in v0.0.8

func GetDelegationsKey(delegator sdk.AccAddress, validator sdk.ValAddress) []byte

GetDelegationsKey creates the prefix key for delegations bond with validator.

func GetDelegatorDelegationsKey added in v0.0.8

func GetDelegatorDelegationsKey(delegator sdk.AccAddress) []byte

GetDelegatorDelegationsKey creates the prefix for delegations from the given delegator.

func GetHistoricalInfoKey added in v0.0.8

func GetHistoricalInfoKey(height int64) []byte

GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.

func GetHistoricalInfosKey added in v0.0.8

func GetHistoricalInfosKey() []byte

GetHistoricalInfosKey returns a key prefix for all HistoricalInfo objects.

func GetLastTotalPowerKey added in v0.0.8

func GetLastTotalPowerKey() []byte

GetLastTotalPowerKey returns key for the total power record.

func GetLastValidatorPowerKey added in v0.0.8

func GetLastValidatorPowerKey(validator sdk.ValAddress) []byte

GetLastValidatorPowerKey creates the bonded validator index key for the given operator address.

func GetLastValidatorPowersKey added in v0.0.8

func GetLastValidatorPowersKey() []byte

GetLastValidatorPowersKey returns prefix key for bonded validators.

func GetMissedBlockKey added in v0.0.8

func GetMissedBlockKey(addr sdk.ConsAddress, height int64) []byte

GetMissedBlockKey returns key for save validator missed blocks

func GetREDByValDstIndexKey added in v0.0.8

func GetREDByValDstIndexKey(delegator sdk.AccAddress, validatorSrc, validatorDst sdk.ValAddress) []byte

GetREDByValDstIndexKey creates the index-key for a redelegation, stored by destination-validator-index.

func GetREDByValSrcIndexKey added in v0.0.8

func GetREDByValSrcIndexKey(delegator sdk.AccAddress, validatorSrc, validatorDst sdk.ValAddress) []byte

GetREDByValSrcIndexKey creates the index-key for a redelegation, stored by source-validator-index.

func GetREDKey added in v0.0.8

func GetREDKey(delegator sdk.AccAddress, validatorSrc sdk.ValAddress, validatorDst sdk.ValAddress) []byte

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

func GetREDKeyFromValDstIndexKey added in v0.0.8

func GetREDKeyFromValDstIndexKey(indexKey []byte) []byte

GetREDKeyFromValDstIndexKey rearranges the ValDstIndexKey to get the REDKey

func GetREDKeyFromValSrcIndexKey added in v0.0.8

func GetREDKeyFromValSrcIndexKey(indexKey []byte) []byte

GetREDKeyFromValSrcIndexKey rearranges the ValSrcIndexKey to get the REDKey

func GetREDsByDelToValDstIndexKey added in v0.0.8

func GetREDsByDelToValDstIndexKey(delegator sdk.AccAddress, validatorDst sdk.ValAddress) []byte

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

func GetREDsFromValSrcIndexKey added in v0.0.8

func GetREDsFromValSrcIndexKey(validatorSrc sdk.ValAddress) []byte

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

func GetREDsKey added in v0.0.8

func GetREDsKey(delegator sdk.AccAddress) []byte

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

func GetREDsToValDstIndexKey added in v0.0.8

func GetREDsToValDstIndexKey(validatorDst sdk.ValAddress) []byte

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

func GetRedelegationsTimeKey added in v0.0.8

func GetRedelegationsTimeKey(timestamp time.Time) []byte

GetRedelegationsTimeKey returns a key prefix for indexing redelegations based on a completion time.

func GetRewardForBlock added in v0.0.8

func GetRewardForBlock(blockHeight uint64) sdk.Int

func GetStartHeightKey added in v0.0.8

func GetStartHeightKey(addr sdk.ConsAddress) []byte

GetStartHeightKey returns key for save validator first block stake

func GetUBDByValIndexKey added in v0.0.8

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

GetUBDByValIndexKey creates the index-key for an unbonding delegation, stored by validator-index

func GetUBDKey added in v0.0.8

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

GetUBDKey creates the key for an unbonding delegation by delegator and validator addr

func GetUBDKeyFromValIndexKey added in v0.0.8

func GetUBDKeyFromValIndexKey(indexKey []byte) []byte

GetUBDKeyFromValIndexKey rearranges the ValIndexKey to get the UBDKey

func GetUBDsByValIndexKey added in v0.0.8

func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte

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

func GetUBDsKey added in v0.0.8

func GetUBDsKey(delegator sdk.AccAddress) []byte

GetUBDsKey creates the prefix for all unbonding delegations from a delegator

func GetUndelegationsTimeKey added in v0.0.8

func GetUndelegationsTimeKey(timestamp time.Time) []byte

GetUndelegationsTimeKey creates the prefix for undelegations based on a completion time.

func GetValidatorAllDelegations added in v0.0.8

func GetValidatorAllDelegations() []byte

GetValidatorAllDelegations returns the prefix for all validators delegations index

func GetValidatorByConsAddrIndexKey added in v0.0.8

func GetValidatorByConsAddrIndexKey(addr sdk.ConsAddress) []byte

GetValidatorByConsAddrIndexKey creates the key for the validator with the given consensus address.

func GetValidatorDelegationsCount added in v0.1.0

func GetValidatorDelegationsCount(valAddr sdk.ValAddress) []byte

func GetValidatorDelegationsKey added in v0.0.8

func GetValidatorDelegationsKey(val sdk.ValAddress) []byte

GetValidatorDelegationsKey create the key for validator all delegations

func GetValidatorDelegatorDelegationKey added in v0.0.8

func GetValidatorDelegatorDelegationKey(val sdk.ValAddress, del sdk.AccAddress, denom string) []byte

GetValidatorDelegatorDelegationKey create a key for validator-delegator-denom delegation

func GetValidatorDelegatorDelegationsKey added in v0.0.8

func GetValidatorDelegatorDelegationsKey(val sdk.ValAddress, del sdk.AccAddress) []byte

GetValidatorDelegatorDelegationsKey create a key for all delegations between delegator and validator

func GetValidatorKey added in v0.0.8

func GetValidatorKey(validator sdk.ValAddress) []byte

GetValidatorKey creates the key for the validator with the given operator address.

func GetValidatorQueueKey added in v0.0.8

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 GetValidatorRewards added in v0.0.8

func GetValidatorRewards(addr sdk.ValAddress) []byte

func GetValidatorsByPowerIndexKey added in v0.0.8

func GetValidatorsByPowerIndexKey() []byte

GetValidatorsByPowerIndexKey returns the prefix key for the validators sorted by voting power.

func GetValidatorsKey added in v0.0.8

func GetValidatorsKey() []byte

GetValidatorsKey returns prefix key for all validators.

func GetValidatorsRewards added in v0.0.8

func GetValidatorsRewards() []byte

func MustMarshalDelegation added in v0.0.8

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

MustMarshalDelegation returns the delegation bytes. Panics if fails.

func MustMarshalRED added in v0.0.8

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

MustMarshalRED returns the redelegation bytes. Panics if fails.

func MustMarshalUBD added in v0.0.8

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

MustMarshalUBD returns the undelegation bytes. Panics if fails.

func MustMarshalValidator added in v0.0.8

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

func MustMarshalValidatorRewards added in v0.0.8

func MustMarshalValidatorRewards(cdc codec.BinaryCodec, rewards *ValidatorRS) []byte

func ParamKeyTable added in v0.0.8

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module.

func ParseValidatorDelegationsCountKey added in v0.1.0

func ParseValidatorDelegationsCountKey(key []byte) sdk.ValAddress

func ParseValidatorPowerKey added in v0.0.8

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

ParseValidatorPowerKey parses the validators operator address from voting power key.

func ParseValidatorQueueKey added in v0.0.8

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

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers concrete implementations of specific interfaces.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.0.8

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

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

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

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

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SetHasIntersection added in v0.0.8

func SetHasIntersection(set []uint32, otherset []uint32) bool

return true if sets have same elements

func SetHasSubset added in v0.0.8

func SetHasSubset(set []uint32, subset []uint32) bool

return true if set has subset of IDs

func SetSubstract added in v0.0.8

func SetSubstract(set []uint32, subset []uint32) []uint32

returns elements of (set-subset)

func ValidateBasic added in v0.0.8

func ValidateBasic(hi HistoricalInfo) error

ValidateBasic will ensure HistoricalInfo is not nil and sorted.

Types

type AccountKeeper added in v0.0.8

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 BankKeeper added in v0.0.8

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

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

	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, 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

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

BankKeeper defines the expected interface needed to retrieve account balances.

type BondStatus

type BondStatus int32

BondStatus is the status of a validator.

const (
	// UNSPECIFIED defines an invalid validator status.
	BondStatus_Unspecified BondStatus = 0
	// UNBONDED defines a validator that is not bonded.
	BondStatus_Unbonded BondStatus = 1
	// UNBONDING defines a validator that is unbonding.
	BondStatus_Unbonding BondStatus = 2
	// BONDED defines a validator that is bonded.
	BondStatus_Bonded BondStatus = 3
)

func (BondStatus) EnumDescriptor

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

func (BondStatus) String

func (x BondStatus) String() string

type CoinKeeper added in v0.0.8

type CoinKeeper interface {
	GetCoin(ctx sdk.Context, denom string) (coin cointypes.Coin, err error)
	GetCoins(ctx sdk.Context) (coins []cointypes.Coin)
	GetBaseDenom(ctx sdk.Context) string
	GetDecreasingFactor(ctx sdk.Context, coin sdk.Coin) (sdk.Dec, error)
	BurnPoolCoins(ctx sdk.Context, poolName string, coins sdk.Coins) error
	UpdateCoinVR(ctx sdk.Context, denom string, volume sdkmath.Int, reserve sdkmath.Int) error
	IsCoinExists(ctx sdk.Context, denom string) bool
}

type Delegation

type Delegation struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// stake defines the object describing the stake completely.
	Stake Stake `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
}

Delegation represents the bond with coins/NTFs held by an account. It is owned by particular delegator, and is associated with the voting power of particular validator.

func MustUnmarshalDelegation added in v0.0.8

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

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

func NewDelegation added in v0.0.8

func NewDelegation(delegator sdk.AccAddress, validator sdk.ValAddress, stake Stake) Delegation

NewDelegation creates a new delegation object.

func UnmarshalDelegation added in v0.0.8

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

UnmarshalDelegation returns the unmarshaled delegation from bytes.

func (*Delegation) Descriptor

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

func (*Delegation) Equal added in v0.0.8

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

func (Delegation) GetDelegator added in v0.0.8

func (d Delegation) GetDelegator() sdk.AccAddress

GetDelegator returns delegator address.

func (Delegation) GetStake added in v0.0.8

func (d Delegation) GetStake() StakeI

GetStake returns the stake delegated.

func (Delegation) GetValidator added in v0.0.8

func (d Delegation) GetValidator() sdk.ValAddress

GetValidator returns validator address.

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 (m *Delegation) String() string

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

type DelegationI interface {
	GetDelegator() sdk.AccAddress
	GetValidator() sdk.ValAddress
	GetStake() StakeI
}

DelegationI defines interface for a delegation bonded to a validator.

type DelegationSet added in v0.0.8

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 added in v0.0.8

type Delegations []Delegation

Delegations is a collection of delegations.

func (Delegations) String added in v0.0.8

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

type DelegatorReward added in v0.0.8

type DelegatorReward struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// coins is the complete list of coin stakes rewards.
	Coins []StakeReward `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins"`
	// nfts is the complete list of NFT stakes rewards.
	NFTs []StakeReward `protobuf:"bytes,3,rep,name=nfts,proto3" json:"nfts"`
}

DelegatorReward contains delegator address and amount of a reward in base coin.

func (*DelegatorReward) Descriptor added in v0.0.8

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

func (*DelegatorReward) Marshal added in v0.0.8

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

func (*DelegatorReward) MarshalTo added in v0.0.8

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

func (*DelegatorReward) MarshalToSizedBuffer added in v0.0.8

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

func (*DelegatorReward) ProtoMessage added in v0.0.8

func (*DelegatorReward) ProtoMessage()

func (*DelegatorReward) Reset added in v0.0.8

func (m *DelegatorReward) Reset()

func (*DelegatorReward) Size added in v0.0.8

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

func (*DelegatorReward) String added in v0.0.8

func (m *DelegatorReward) String() string

func (*DelegatorReward) Unmarshal added in v0.0.8

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

func (*DelegatorReward) XXX_DiscardUnknown added in v0.0.8

func (m *DelegatorReward) XXX_DiscardUnknown()

func (*DelegatorReward) XXX_Marshal added in v0.0.8

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

func (*DelegatorReward) XXX_Merge added in v0.0.8

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

func (*DelegatorReward) XXX_Size added in v0.0.8

func (m *DelegatorReward) XXX_Size() int

func (*DelegatorReward) XXX_Unmarshal added in v0.0.8

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

type DelegatorSlash added in v0.0.8

type DelegatorSlash struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// coins is the list of coin slashes.
	Coins []SlashCoin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins"`
	// nfts is the list of NFT slashes.
	NFTs []SlashNFT `protobuf:"bytes,3,rep,name=nfts,proto3" json:"nfts"`
}

DelegatorSlash contains delegator address and amount of a reward in base coin.

func (*DelegatorSlash) Descriptor added in v0.0.8

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

func (*DelegatorSlash) Marshal added in v0.0.8

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

func (*DelegatorSlash) MarshalTo added in v0.0.8

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

func (*DelegatorSlash) MarshalToSizedBuffer added in v0.0.8

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

func (*DelegatorSlash) ProtoMessage added in v0.0.8

func (*DelegatorSlash) ProtoMessage()

func (*DelegatorSlash) Reset added in v0.0.8

func (m *DelegatorSlash) Reset()

func (*DelegatorSlash) Size added in v0.0.8

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

func (*DelegatorSlash) String added in v0.0.8

func (m *DelegatorSlash) String() string

func (*DelegatorSlash) Unmarshal added in v0.0.8

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

func (*DelegatorSlash) XXX_DiscardUnknown added in v0.0.8

func (m *DelegatorSlash) XXX_DiscardUnknown()

func (*DelegatorSlash) XXX_Marshal added in v0.0.8

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

func (*DelegatorSlash) XXX_Merge added in v0.0.8

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

func (*DelegatorSlash) XXX_Size added in v0.0.8

func (m *DelegatorSlash) XXX_Size() int

func (*DelegatorSlash) XXX_Unmarshal added in v0.0.8

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

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 added in v0.0.8

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

func (*Description) Descriptor

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

func (Description) EnsureLength added in v0.0.8

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 (m *Description) String() string

func (*Description) Unmarshal

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

func (Description) UpdateDescription added in v0.0.8

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 added in v0.0.8

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

DistributionKeeper expected distribution keeper (noalias)

type EventCancelRedelegation added in v0.0.8

type EventCancelRedelegation struct {
	Delegator      string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	ValidatorSrc   string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	ValidatorDst   string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	CreationHeight int64  `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	Stake          Stake  `protobuf:"bytes,5,opt,name=stake,proto3" json:"stake"`
}

EventCancelRedelegation defines event emitted when a redelegated from a validator to another one is cancelled.

func (*EventCancelRedelegation) Descriptor added in v0.0.8

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

func (*EventCancelRedelegation) GetCreationHeight added in v0.0.8

func (m *EventCancelRedelegation) GetCreationHeight() int64

func (*EventCancelRedelegation) GetDelegator added in v0.0.8

func (m *EventCancelRedelegation) GetDelegator() string

func (*EventCancelRedelegation) GetStake added in v0.0.8

func (m *EventCancelRedelegation) GetStake() Stake

func (*EventCancelRedelegation) GetValidatorDst added in v0.0.8

func (m *EventCancelRedelegation) GetValidatorDst() string

func (*EventCancelRedelegation) GetValidatorSrc added in v0.0.8

func (m *EventCancelRedelegation) GetValidatorSrc() string

func (*EventCancelRedelegation) Marshal added in v0.0.8

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

func (*EventCancelRedelegation) MarshalTo added in v0.0.8

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

func (*EventCancelRedelegation) MarshalToSizedBuffer added in v0.0.8

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

func (*EventCancelRedelegation) ProtoMessage added in v0.0.8

func (*EventCancelRedelegation) ProtoMessage()

func (*EventCancelRedelegation) Reset added in v0.0.8

func (m *EventCancelRedelegation) Reset()

func (*EventCancelRedelegation) Size added in v0.0.8

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

func (*EventCancelRedelegation) String added in v0.0.8

func (m *EventCancelRedelegation) String() string

func (*EventCancelRedelegation) Unmarshal added in v0.0.8

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

func (*EventCancelRedelegation) XXX_DiscardUnknown added in v0.0.8

func (m *EventCancelRedelegation) XXX_DiscardUnknown()

func (*EventCancelRedelegation) XXX_Marshal added in v0.0.8

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

func (*EventCancelRedelegation) XXX_Merge added in v0.0.8

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

func (*EventCancelRedelegation) XXX_Size added in v0.0.8

func (m *EventCancelRedelegation) XXX_Size() int

func (*EventCancelRedelegation) XXX_Unmarshal added in v0.0.8

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

type EventCancelUndelegation added in v0.0.8

type EventCancelUndelegation struct {
	Delegator      string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Validator      string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	CreationHeight int64  `protobuf:"varint,3,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	Stake          Stake  `protobuf:"bytes,4,opt,name=stake,proto3" json:"stake"`
}

EventCancelUndelegation defines event emitted when an undelegated from a validator is cancelled.

func (*EventCancelUndelegation) Descriptor added in v0.0.8

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

func (*EventCancelUndelegation) GetCreationHeight added in v0.0.8

func (m *EventCancelUndelegation) GetCreationHeight() int64

func (*EventCancelUndelegation) GetDelegator added in v0.0.8

func (m *EventCancelUndelegation) GetDelegator() string

func (*EventCancelUndelegation) GetStake added in v0.0.8

func (m *EventCancelUndelegation) GetStake() Stake

func (*EventCancelUndelegation) GetValidator added in v0.0.8

func (m *EventCancelUndelegation) GetValidator() string

func (*EventCancelUndelegation) Marshal added in v0.0.8

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

func (*EventCancelUndelegation) MarshalTo added in v0.0.8

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

func (*EventCancelUndelegation) MarshalToSizedBuffer added in v0.0.8

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

func (*EventCancelUndelegation) ProtoMessage added in v0.0.8

func (*EventCancelUndelegation) ProtoMessage()

func (*EventCancelUndelegation) Reset added in v0.0.8

func (m *EventCancelUndelegation) Reset()

func (*EventCancelUndelegation) Size added in v0.0.8

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

func (*EventCancelUndelegation) String added in v0.0.8

func (m *EventCancelUndelegation) String() string

func (*EventCancelUndelegation) Unmarshal added in v0.0.8

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

func (*EventCancelUndelegation) XXX_DiscardUnknown added in v0.0.8

func (m *EventCancelUndelegation) XXX_DiscardUnknown()

func (*EventCancelUndelegation) XXX_Marshal added in v0.0.8

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

func (*EventCancelUndelegation) XXX_Merge added in v0.0.8

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

func (*EventCancelUndelegation) XXX_Size added in v0.0.8

func (m *EventCancelUndelegation) XXX_Size() int

func (*EventCancelUndelegation) XXX_Unmarshal added in v0.0.8

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

type EventCreateValidator added in v0.0.8

type EventCreateValidator struct {
	Sender          string                                 `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Validator       string                                 `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	RewardAddress   string                                 `protobuf:"bytes,3,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
	ConsensusPubkey string                                 `protobuf:"bytes,4,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
	Description     Description                            `protobuf:"bytes,5,opt,name=description,proto3" json:"description"`
	Commission      github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
	Stake           types.Coin                             `protobuf:"bytes,7,opt,name=stake,proto3" json:"stake"`
}

EventCreateValidator defines event emitted when new validator is created.

func (*EventCreateValidator) Descriptor added in v0.0.8

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

func (*EventCreateValidator) GetConsensusPubkey added in v0.0.8

func (m *EventCreateValidator) GetConsensusPubkey() string

func (*EventCreateValidator) GetDescription added in v0.0.8

func (m *EventCreateValidator) GetDescription() Description

func (*EventCreateValidator) GetRewardAddress added in v0.0.8

func (m *EventCreateValidator) GetRewardAddress() string

func (*EventCreateValidator) GetSender added in v0.0.8

func (m *EventCreateValidator) GetSender() string

func (*EventCreateValidator) GetStake added in v0.0.8

func (m *EventCreateValidator) GetStake() types.Coin

func (*EventCreateValidator) GetValidator added in v0.0.8

func (m *EventCreateValidator) GetValidator() string

func (*EventCreateValidator) Marshal added in v0.0.8

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

func (*EventCreateValidator) MarshalTo added in v0.0.8

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

func (*EventCreateValidator) MarshalToSizedBuffer added in v0.0.8

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

func (*EventCreateValidator) ProtoMessage added in v0.0.8

func (*EventCreateValidator) ProtoMessage()

func (*EventCreateValidator) Reset added in v0.0.8

func (m *EventCreateValidator) Reset()

func (*EventCreateValidator) Size added in v0.0.8

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

func (*EventCreateValidator) String added in v0.0.8

func (m *EventCreateValidator) String() string

func (*EventCreateValidator) Unmarshal added in v0.0.8

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

func (*EventCreateValidator) XXX_DiscardUnknown added in v0.0.8

func (m *EventCreateValidator) XXX_DiscardUnknown()

func (*EventCreateValidator) XXX_Marshal added in v0.0.8

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

func (*EventCreateValidator) XXX_Merge added in v0.0.8

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

func (*EventCreateValidator) XXX_Size added in v0.0.8

func (m *EventCreateValidator) XXX_Size() int

func (*EventCreateValidator) XXX_Unmarshal added in v0.0.8

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

type EventDelegate added in v0.0.8

type EventDelegate struct {
	Delegator  string                `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Validator  string                `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Stake      Stake                 `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
	AmountBase cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount_base,json=amountBase,proto3,customtype=cosmossdk.io/math.Int" json:"amount_base"`
}

EventDelegate defines event emitted when a coin or NFT is delegated to a validator.

func (*EventDelegate) Descriptor added in v0.0.8

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

func (*EventDelegate) GetDelegator added in v0.0.8

func (m *EventDelegate) GetDelegator() string

func (*EventDelegate) GetStake added in v0.0.8

func (m *EventDelegate) GetStake() Stake

func (*EventDelegate) GetValidator added in v0.0.8

func (m *EventDelegate) GetValidator() string

func (*EventDelegate) Marshal added in v0.0.8

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

func (*EventDelegate) MarshalTo added in v0.0.8

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

func (*EventDelegate) MarshalToSizedBuffer added in v0.0.8

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

func (*EventDelegate) ProtoMessage added in v0.0.8

func (*EventDelegate) ProtoMessage()

func (*EventDelegate) Reset added in v0.0.8

func (m *EventDelegate) Reset()

func (*EventDelegate) Size added in v0.0.8

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

func (*EventDelegate) String added in v0.0.8

func (m *EventDelegate) String() string

func (*EventDelegate) Unmarshal added in v0.0.8

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

func (*EventDelegate) XXX_DiscardUnknown added in v0.0.8

func (m *EventDelegate) XXX_DiscardUnknown()

func (*EventDelegate) XXX_Marshal added in v0.0.8

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

func (*EventDelegate) XXX_Merge added in v0.0.8

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

func (*EventDelegate) XXX_Size added in v0.0.8

func (m *EventDelegate) XXX_Size() int

func (*EventDelegate) XXX_Unmarshal added in v0.0.8

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

type EventDelegatedCoinsUpdate added in v0.0.8

type EventDelegatedCoinsUpdate struct {
}

EventDelegatedCoinsUpdate defines event emitted when total delegated amount of any coin is changed.

func (*EventDelegatedCoinsUpdate) Descriptor added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) Marshal added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) MarshalTo added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) MarshalToSizedBuffer added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) ProtoMessage added in v0.0.8

func (*EventDelegatedCoinsUpdate) ProtoMessage()

func (*EventDelegatedCoinsUpdate) Reset added in v0.0.8

func (m *EventDelegatedCoinsUpdate) Reset()

func (*EventDelegatedCoinsUpdate) Size added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) String added in v0.0.8

func (m *EventDelegatedCoinsUpdate) String() string

func (*EventDelegatedCoinsUpdate) Unmarshal added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) XXX_DiscardUnknown added in v0.0.8

func (m *EventDelegatedCoinsUpdate) XXX_DiscardUnknown()

func (*EventDelegatedCoinsUpdate) XXX_Marshal added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) XXX_Merge added in v0.0.8

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

func (*EventDelegatedCoinsUpdate) XXX_Size added in v0.0.8

func (m *EventDelegatedCoinsUpdate) XXX_Size() int

func (*EventDelegatedCoinsUpdate) XXX_Unmarshal added in v0.0.8

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

type EventEditValidator added in v0.0.8

type EventEditValidator struct {
	Sender        string      `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Validator     string      `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	RewardAddress string      `protobuf:"bytes,3,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
	Description   Description `protobuf:"bytes,4,opt,name=description,proto3" json:"description"`
}

EventEditValidator defines event emitted when existing validator is editted.

func (*EventEditValidator) Descriptor added in v0.0.8

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

func (*EventEditValidator) GetDescription added in v0.0.8

func (m *EventEditValidator) GetDescription() Description

func (*EventEditValidator) GetRewardAddress added in v0.0.8

func (m *EventEditValidator) GetRewardAddress() string

func (*EventEditValidator) GetSender added in v0.0.8

func (m *EventEditValidator) GetSender() string

func (*EventEditValidator) GetValidator added in v0.0.8

func (m *EventEditValidator) GetValidator() string

func (*EventEditValidator) Marshal added in v0.0.8

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

func (*EventEditValidator) MarshalTo added in v0.0.8

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

func (*EventEditValidator) MarshalToSizedBuffer added in v0.0.8

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

func (*EventEditValidator) ProtoMessage added in v0.0.8

func (*EventEditValidator) ProtoMessage()

func (*EventEditValidator) Reset added in v0.0.8

func (m *EventEditValidator) Reset()

func (*EventEditValidator) Size added in v0.0.8

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

func (*EventEditValidator) String added in v0.0.8

func (m *EventEditValidator) String() string

func (*EventEditValidator) Unmarshal added in v0.0.8

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

func (*EventEditValidator) XXX_DiscardUnknown added in v0.0.8

func (m *EventEditValidator) XXX_DiscardUnknown()

func (*EventEditValidator) XXX_Marshal added in v0.0.8

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

func (*EventEditValidator) XXX_Merge added in v0.0.8

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

func (*EventEditValidator) XXX_Size added in v0.0.8

func (m *EventEditValidator) XXX_Size() int

func (*EventEditValidator) XXX_Unmarshal added in v0.0.8

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

type EventEmission added in v0.0.8

type EventEmission struct {
	Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"`
}

EventEmission defines event emitted when emission for the block is minted.

func (*EventEmission) Descriptor added in v0.0.8

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

func (*EventEmission) Marshal added in v0.0.8

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

func (*EventEmission) MarshalTo added in v0.0.8

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

func (*EventEmission) MarshalToSizedBuffer added in v0.0.8

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

func (*EventEmission) ProtoMessage added in v0.0.8

func (*EventEmission) ProtoMessage()

func (*EventEmission) Reset added in v0.0.8

func (m *EventEmission) Reset()

func (*EventEmission) Size added in v0.0.8

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

func (*EventEmission) String added in v0.0.8

func (m *EventEmission) String() string

func (*EventEmission) Unmarshal added in v0.0.8

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

func (*EventEmission) XXX_DiscardUnknown added in v0.0.8

func (m *EventEmission) XXX_DiscardUnknown()

func (*EventEmission) XXX_Marshal added in v0.0.8

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

func (*EventEmission) XXX_Merge added in v0.0.8

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

func (*EventEmission) XXX_Size added in v0.0.8

func (m *EventEmission) XXX_Size() int

func (*EventEmission) XXX_Unmarshal added in v0.0.8

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

type EventForceUndelegate added in v0.1.0

type EventForceUndelegate struct {
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Stake     Stake  `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
}

EventForceUndelegate defines event emitted when a delegation is undelegated by force (max delegation count is reached).

func (*EventForceUndelegate) Descriptor added in v0.1.0

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

func (*EventForceUndelegate) GetDelegator added in v0.1.0

func (m *EventForceUndelegate) GetDelegator() string

func (*EventForceUndelegate) GetStake added in v0.1.0

func (m *EventForceUndelegate) GetStake() Stake

func (*EventForceUndelegate) GetValidator added in v0.1.0

func (m *EventForceUndelegate) GetValidator() string

func (*EventForceUndelegate) Marshal added in v0.1.0

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

func (*EventForceUndelegate) MarshalTo added in v0.1.0

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

func (*EventForceUndelegate) MarshalToSizedBuffer added in v0.1.0

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

func (*EventForceUndelegate) ProtoMessage added in v0.1.0

func (*EventForceUndelegate) ProtoMessage()

func (*EventForceUndelegate) Reset added in v0.1.0

func (m *EventForceUndelegate) Reset()

func (*EventForceUndelegate) Size added in v0.1.0

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

func (*EventForceUndelegate) String added in v0.1.0

func (m *EventForceUndelegate) String() string

func (*EventForceUndelegate) Unmarshal added in v0.1.0

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

func (*EventForceUndelegate) XXX_DiscardUnknown added in v0.1.0

func (m *EventForceUndelegate) XXX_DiscardUnknown()

func (*EventForceUndelegate) XXX_Marshal added in v0.1.0

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

func (*EventForceUndelegate) XXX_Merge added in v0.1.0

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

func (*EventForceUndelegate) XXX_Size added in v0.1.0

func (m *EventForceUndelegate) XXX_Size() int

func (*EventForceUndelegate) XXX_Unmarshal added in v0.1.0

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

type EventLiveness added in v0.0.8

type EventLiveness struct {
	Validator       string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	ConsensusPubkey string `protobuf:"bytes,2,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
	MissedBlocks    uint32 `protobuf:"varint,3,opt,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks,omitempty"`
}

EventLiveness defines event emitted when a validator is missed a block to sign.

func (*EventLiveness) Descriptor added in v0.0.8

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

func (*EventLiveness) GetConsensusPubkey added in v0.0.8

func (m *EventLiveness) GetConsensusPubkey() string

func (*EventLiveness) GetMissedBlocks added in v0.0.8

func (m *EventLiveness) GetMissedBlocks() uint32

func (*EventLiveness) GetValidator added in v0.0.8

func (m *EventLiveness) GetValidator() string

func (*EventLiveness) Marshal added in v0.0.8

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

func (*EventLiveness) MarshalTo added in v0.0.8

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

func (*EventLiveness) MarshalToSizedBuffer added in v0.0.8

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

func (*EventLiveness) ProtoMessage added in v0.0.8

func (*EventLiveness) ProtoMessage()

func (*EventLiveness) Reset added in v0.0.8

func (m *EventLiveness) Reset()

func (*EventLiveness) Size added in v0.0.8

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

func (*EventLiveness) String added in v0.0.8

func (m *EventLiveness) String() string

func (*EventLiveness) Unmarshal added in v0.0.8

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

func (*EventLiveness) XXX_DiscardUnknown added in v0.0.8

func (m *EventLiveness) XXX_DiscardUnknown()

func (*EventLiveness) XXX_Marshal added in v0.0.8

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

func (*EventLiveness) XXX_Merge added in v0.0.8

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

func (*EventLiveness) XXX_Size added in v0.0.8

func (m *EventLiveness) XXX_Size() int

func (*EventLiveness) XXX_Unmarshal added in v0.0.8

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

type EventPayRewards added in v0.0.8

type EventPayRewards struct {
	Validators []ValidatorReward `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
}

EventPayRewards defines event emitted when all accumulated commissions are payed as rewards.

func (*EventPayRewards) Descriptor added in v0.0.8

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

func (*EventPayRewards) GetValidators added in v0.0.8

func (m *EventPayRewards) GetValidators() []ValidatorReward

func (*EventPayRewards) Marshal added in v0.0.8

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

func (*EventPayRewards) MarshalTo added in v0.0.8

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

func (*EventPayRewards) MarshalToSizedBuffer added in v0.0.8

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

func (*EventPayRewards) ProtoMessage added in v0.0.8

func (*EventPayRewards) ProtoMessage()

func (*EventPayRewards) Reset added in v0.0.8

func (m *EventPayRewards) Reset()

func (*EventPayRewards) Size added in v0.0.8

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

func (*EventPayRewards) String added in v0.0.8

func (m *EventPayRewards) String() string

func (*EventPayRewards) Unmarshal added in v0.0.8

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

func (*EventPayRewards) XXX_DiscardUnknown added in v0.0.8

func (m *EventPayRewards) XXX_DiscardUnknown()

func (*EventPayRewards) XXX_Marshal added in v0.0.8

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

func (*EventPayRewards) XXX_Merge added in v0.0.8

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

func (*EventPayRewards) XXX_Size added in v0.0.8

func (m *EventPayRewards) XXX_Size() int

func (*EventPayRewards) XXX_Unmarshal added in v0.0.8

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

type EventRedelegate added in v0.0.8

type EventRedelegate struct {
	Delegator    string                `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	ValidatorSrc string                `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	ValidatorDst string                `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	Stake        Stake                 `protobuf:"bytes,4,opt,name=stake,proto3" json:"stake"`
	AmountBase   cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=amount_base,json=amountBase,proto3,customtype=cosmossdk.io/math.Int" json:"amount_base"`
	CompleteAt   time.Time             `protobuf:"bytes,6,opt,name=complete_at,json=completeAt,proto3,stdtime" json:"complete_at"`
}

EventRedelegate defines event emitted when a coin or NFT is redelegated from a validator to another one.

func (*EventRedelegate) Descriptor added in v0.0.8

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

func (*EventRedelegate) GetCompleteAt added in v0.0.8

func (m *EventRedelegate) GetCompleteAt() time.Time

func (*EventRedelegate) GetDelegator added in v0.0.8

func (m *EventRedelegate) GetDelegator() string

func (*EventRedelegate) GetStake added in v0.0.8

func (m *EventRedelegate) GetStake() Stake

func (*EventRedelegate) GetValidatorDst added in v0.0.8

func (m *EventRedelegate) GetValidatorDst() string

func (*EventRedelegate) GetValidatorSrc added in v0.0.8

func (m *EventRedelegate) GetValidatorSrc() string

func (*EventRedelegate) Marshal added in v0.0.8

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

func (*EventRedelegate) MarshalTo added in v0.0.8

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

func (*EventRedelegate) MarshalToSizedBuffer added in v0.0.8

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

func (*EventRedelegate) ProtoMessage added in v0.0.8

func (*EventRedelegate) ProtoMessage()

func (*EventRedelegate) Reset added in v0.0.8

func (m *EventRedelegate) Reset()

func (*EventRedelegate) Size added in v0.0.8

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

func (*EventRedelegate) String added in v0.0.8

func (m *EventRedelegate) String() string

func (*EventRedelegate) Unmarshal added in v0.0.8

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

func (*EventRedelegate) XXX_DiscardUnknown added in v0.0.8

func (m *EventRedelegate) XXX_DiscardUnknown()

func (*EventRedelegate) XXX_Marshal added in v0.0.8

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

func (*EventRedelegate) XXX_Merge added in v0.0.8

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

func (*EventRedelegate) XXX_Size added in v0.0.8

func (m *EventRedelegate) XXX_Size() int

func (*EventRedelegate) XXX_Unmarshal added in v0.0.8

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

type EventRedelegateComplete added in v0.0.8

type EventRedelegateComplete struct {
	Delegator    string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	ValidatorSrc string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	ValidatorDst string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	Stake        Stake  `protobuf:"bytes,4,opt,name=stake,proto3" json:"stake"`
}

EventRedelegateComplete defines event emitted when a redelegation is completed.

func (*EventRedelegateComplete) Descriptor added in v0.0.8

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

func (*EventRedelegateComplete) GetDelegator added in v0.0.8

func (m *EventRedelegateComplete) GetDelegator() string

func (*EventRedelegateComplete) GetStake added in v0.0.8

func (m *EventRedelegateComplete) GetStake() Stake

func (*EventRedelegateComplete) GetValidatorDst added in v0.0.8

func (m *EventRedelegateComplete) GetValidatorDst() string

func (*EventRedelegateComplete) GetValidatorSrc added in v0.0.8

func (m *EventRedelegateComplete) GetValidatorSrc() string

func (*EventRedelegateComplete) Marshal added in v0.0.8

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

func (*EventRedelegateComplete) MarshalTo added in v0.0.8

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

func (*EventRedelegateComplete) MarshalToSizedBuffer added in v0.0.8

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

func (*EventRedelegateComplete) ProtoMessage added in v0.0.8

func (*EventRedelegateComplete) ProtoMessage()

func (*EventRedelegateComplete) Reset added in v0.0.8

func (m *EventRedelegateComplete) Reset()

func (*EventRedelegateComplete) Size added in v0.0.8

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

func (*EventRedelegateComplete) String added in v0.0.8

func (m *EventRedelegateComplete) String() string

func (*EventRedelegateComplete) Unmarshal added in v0.0.8

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

func (*EventRedelegateComplete) XXX_DiscardUnknown added in v0.0.8

func (m *EventRedelegateComplete) XXX_DiscardUnknown()

func (*EventRedelegateComplete) XXX_Marshal added in v0.0.8

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

func (*EventRedelegateComplete) XXX_Merge added in v0.0.8

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

func (*EventRedelegateComplete) XXX_Size added in v0.0.8

func (m *EventRedelegateComplete) XXX_Size() int

func (*EventRedelegateComplete) XXX_Unmarshal added in v0.0.8

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

type EventRemoveValidator added in v0.1.0

type EventRemoveValidator struct {
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
}

EventRemoveValidator defines event emitted when validator is removed.

func (*EventRemoveValidator) Descriptor added in v0.1.0

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

func (*EventRemoveValidator) GetValidator added in v0.1.0

func (m *EventRemoveValidator) GetValidator() string

func (*EventRemoveValidator) Marshal added in v0.1.0

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

func (*EventRemoveValidator) MarshalTo added in v0.1.0

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

func (*EventRemoveValidator) MarshalToSizedBuffer added in v0.1.0

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

func (*EventRemoveValidator) ProtoMessage added in v0.1.0

func (*EventRemoveValidator) ProtoMessage()

func (*EventRemoveValidator) Reset added in v0.1.0

func (m *EventRemoveValidator) Reset()

func (*EventRemoveValidator) Size added in v0.1.0

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

func (*EventRemoveValidator) String added in v0.1.0

func (m *EventRemoveValidator) String() string

func (*EventRemoveValidator) Unmarshal added in v0.1.0

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

func (*EventRemoveValidator) XXX_DiscardUnknown added in v0.1.0

func (m *EventRemoveValidator) XXX_DiscardUnknown()

func (*EventRemoveValidator) XXX_Marshal added in v0.1.0

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

func (*EventRemoveValidator) XXX_Merge added in v0.1.0

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

func (*EventRemoveValidator) XXX_Size added in v0.1.0

func (m *EventRemoveValidator) XXX_Size() int

func (*EventRemoveValidator) XXX_Unmarshal added in v0.1.0

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

type EventSetOffline added in v0.0.8

type EventSetOffline struct {
	Sender    string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
}

EventSetOffline defines event emitted when existing validator is turned off from the blockchain consensus.

func (*EventSetOffline) Descriptor added in v0.0.8

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

func (*EventSetOffline) GetSender added in v0.0.8

func (m *EventSetOffline) GetSender() string

func (*EventSetOffline) GetValidator added in v0.0.8

func (m *EventSetOffline) GetValidator() string

func (*EventSetOffline) Marshal added in v0.0.8

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

func (*EventSetOffline) MarshalTo added in v0.0.8

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

func (*EventSetOffline) MarshalToSizedBuffer added in v0.0.8

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

func (*EventSetOffline) ProtoMessage added in v0.0.8

func (*EventSetOffline) ProtoMessage()

func (*EventSetOffline) Reset added in v0.0.8

func (m *EventSetOffline) Reset()

func (*EventSetOffline) Size added in v0.0.8

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

func (*EventSetOffline) String added in v0.0.8

func (m *EventSetOffline) String() string

func (*EventSetOffline) Unmarshal added in v0.0.8

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

func (*EventSetOffline) XXX_DiscardUnknown added in v0.0.8

func (m *EventSetOffline) XXX_DiscardUnknown()

func (*EventSetOffline) XXX_Marshal added in v0.0.8

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

func (*EventSetOffline) XXX_Merge added in v0.0.8

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

func (*EventSetOffline) XXX_Size added in v0.0.8

func (m *EventSetOffline) XXX_Size() int

func (*EventSetOffline) XXX_Unmarshal added in v0.0.8

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

type EventSetOnline added in v0.0.8

type EventSetOnline struct {
	Sender    string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
}

EventSetOnline defines event emitted when existing validator is turned on into the blockchain consensus.

func (*EventSetOnline) Descriptor added in v0.0.8

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

func (*EventSetOnline) GetSender added in v0.0.8

func (m *EventSetOnline) GetSender() string

func (*EventSetOnline) GetValidator added in v0.0.8

func (m *EventSetOnline) GetValidator() string

func (*EventSetOnline) Marshal added in v0.0.8

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

func (*EventSetOnline) MarshalTo added in v0.0.8

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

func (*EventSetOnline) MarshalToSizedBuffer added in v0.0.8

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

func (*EventSetOnline) ProtoMessage added in v0.0.8

func (*EventSetOnline) ProtoMessage()

func (*EventSetOnline) Reset added in v0.0.8

func (m *EventSetOnline) Reset()

func (*EventSetOnline) Size added in v0.0.8

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

func (*EventSetOnline) String added in v0.0.8

func (m *EventSetOnline) String() string

func (*EventSetOnline) Unmarshal added in v0.0.8

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

func (*EventSetOnline) XXX_DiscardUnknown added in v0.0.8

func (m *EventSetOnline) XXX_DiscardUnknown()

func (*EventSetOnline) XXX_Marshal added in v0.0.8

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

func (*EventSetOnline) XXX_Merge added in v0.0.8

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

func (*EventSetOnline) XXX_Size added in v0.0.8

func (m *EventSetOnline) XXX_Size() int

func (*EventSetOnline) XXX_Unmarshal added in v0.0.8

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

type EventUndelegate added in v0.0.8

type EventUndelegate struct {
	Delegator  string                `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Validator  string                `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Stake      Stake                 `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
	AmountBase cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount_base,json=amountBase,proto3,customtype=cosmossdk.io/math.Int" json:"amount_base"`
	CompleteAt time.Time             `protobuf:"bytes,5,opt,name=complete_at,json=completeAt,proto3,stdtime" json:"complete_at"`
}

EventUndelegate defines event emitted when a coin or NFT is undelegated from a validator.

func (*EventUndelegate) Descriptor added in v0.0.8

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

func (*EventUndelegate) GetCompleteAt added in v0.0.8

func (m *EventUndelegate) GetCompleteAt() time.Time

func (*EventUndelegate) GetDelegator added in v0.0.8

func (m *EventUndelegate) GetDelegator() string

func (*EventUndelegate) GetStake added in v0.0.8

func (m *EventUndelegate) GetStake() Stake

func (*EventUndelegate) GetValidator added in v0.0.8

func (m *EventUndelegate) GetValidator() string

func (*EventUndelegate) Marshal added in v0.0.8

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

func (*EventUndelegate) MarshalTo added in v0.0.8

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

func (*EventUndelegate) MarshalToSizedBuffer added in v0.0.8

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

func (*EventUndelegate) ProtoMessage added in v0.0.8

func (*EventUndelegate) ProtoMessage()

func (*EventUndelegate) Reset added in v0.0.8

func (m *EventUndelegate) Reset()

func (*EventUndelegate) Size added in v0.0.8

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

func (*EventUndelegate) String added in v0.0.8

func (m *EventUndelegate) String() string

func (*EventUndelegate) Unmarshal added in v0.0.8

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

func (*EventUndelegate) XXX_DiscardUnknown added in v0.0.8

func (m *EventUndelegate) XXX_DiscardUnknown()

func (*EventUndelegate) XXX_Marshal added in v0.0.8

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

func (*EventUndelegate) XXX_Merge added in v0.0.8

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

func (*EventUndelegate) XXX_Size added in v0.0.8

func (m *EventUndelegate) XXX_Size() int

func (*EventUndelegate) XXX_Unmarshal added in v0.0.8

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

type EventUndelegateComplete added in v0.0.8

type EventUndelegateComplete struct {
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Stake     Stake  `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
}

EventUndelegateComplete defines event emitted when a undelegation is completed.

func (*EventUndelegateComplete) Descriptor added in v0.0.8

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

func (*EventUndelegateComplete) GetDelegator added in v0.0.8

func (m *EventUndelegateComplete) GetDelegator() string

func (*EventUndelegateComplete) GetStake added in v0.0.8

func (m *EventUndelegateComplete) GetStake() Stake

func (*EventUndelegateComplete) GetValidator added in v0.0.8

func (m *EventUndelegateComplete) GetValidator() string

func (*EventUndelegateComplete) Marshal added in v0.0.8

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

func (*EventUndelegateComplete) MarshalTo added in v0.0.8

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

func (*EventUndelegateComplete) MarshalToSizedBuffer added in v0.0.8

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

func (*EventUndelegateComplete) ProtoMessage added in v0.0.8

func (*EventUndelegateComplete) ProtoMessage()

func (*EventUndelegateComplete) Reset added in v0.0.8

func (m *EventUndelegateComplete) Reset()

func (*EventUndelegateComplete) Size added in v0.0.8

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

func (*EventUndelegateComplete) String added in v0.0.8

func (m *EventUndelegateComplete) String() string

func (*EventUndelegateComplete) Unmarshal added in v0.0.8

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

func (*EventUndelegateComplete) XXX_DiscardUnknown added in v0.0.8

func (m *EventUndelegateComplete) XXX_DiscardUnknown()

func (*EventUndelegateComplete) XXX_Marshal added in v0.0.8

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

func (*EventUndelegateComplete) XXX_Merge added in v0.0.8

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

func (*EventUndelegateComplete) XXX_Size added in v0.0.8

func (m *EventUndelegateComplete) XXX_Size() int

func (*EventUndelegateComplete) XXX_Unmarshal added in v0.0.8

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

type EventUpdateCoinsStaked added in v0.1.0

type EventUpdateCoinsStaked struct {
	Denom       string                `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	TotalAmount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_amount,json=totalAmount,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount"`
}

func (*EventUpdateCoinsStaked) Descriptor added in v0.1.0

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

func (*EventUpdateCoinsStaked) GetDenom added in v0.1.0

func (m *EventUpdateCoinsStaked) GetDenom() string

func (*EventUpdateCoinsStaked) Marshal added in v0.1.0

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

func (*EventUpdateCoinsStaked) MarshalTo added in v0.1.0

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

func (*EventUpdateCoinsStaked) MarshalToSizedBuffer added in v0.1.0

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

func (*EventUpdateCoinsStaked) ProtoMessage added in v0.1.0

func (*EventUpdateCoinsStaked) ProtoMessage()

func (*EventUpdateCoinsStaked) Reset added in v0.1.0

func (m *EventUpdateCoinsStaked) Reset()

func (*EventUpdateCoinsStaked) Size added in v0.1.0

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

func (*EventUpdateCoinsStaked) String added in v0.1.0

func (m *EventUpdateCoinsStaked) String() string

func (*EventUpdateCoinsStaked) Unmarshal added in v0.1.0

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

func (*EventUpdateCoinsStaked) XXX_DiscardUnknown added in v0.1.0

func (m *EventUpdateCoinsStaked) XXX_DiscardUnknown()

func (*EventUpdateCoinsStaked) XXX_Marshal added in v0.1.0

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

func (*EventUpdateCoinsStaked) XXX_Merge added in v0.1.0

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

func (*EventUpdateCoinsStaked) XXX_Size added in v0.1.0

func (m *EventUpdateCoinsStaked) XXX_Size() int

func (*EventUpdateCoinsStaked) XXX_Unmarshal added in v0.1.0

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

type EventUpdateValidator added in v0.0.8

type EventUpdateValidator struct {
	Validator   string     `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	Status      BondStatus `protobuf:"varint,2,opt,name=status,proto3,enum=decimal.validator.v1.BondStatus" json:"status,omitempty"`
	Online      bool       `protobuf:"varint,3,opt,name=online,proto3" json:"online,omitempty"`
	Jailed      bool       `protobuf:"varint,4,opt,name=jailed,proto3" json:"jailed,omitempty"`
	VotingPower uint64     `protobuf:"varint,5,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
}

EventUpdateValidator defines event emitted when existing validator is updated.

func (*EventUpdateValidator) Descriptor added in v0.0.8

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

func (*EventUpdateValidator) GetJailed added in v0.0.8

func (m *EventUpdateValidator) GetJailed() bool

func (*EventUpdateValidator) GetOnline added in v0.0.8

func (m *EventUpdateValidator) GetOnline() bool

func (*EventUpdateValidator) GetStatus added in v0.0.8

func (m *EventUpdateValidator) GetStatus() BondStatus

func (*EventUpdateValidator) GetValidator added in v0.0.8

func (m *EventUpdateValidator) GetValidator() string

func (*EventUpdateValidator) GetVotingPower added in v0.0.8

func (m *EventUpdateValidator) GetVotingPower() uint64

func (*EventUpdateValidator) Marshal added in v0.0.8

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

func (*EventUpdateValidator) MarshalTo added in v0.0.8

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

func (*EventUpdateValidator) MarshalToSizedBuffer added in v0.0.8

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

func (*EventUpdateValidator) ProtoMessage added in v0.0.8

func (*EventUpdateValidator) ProtoMessage()

func (*EventUpdateValidator) Reset added in v0.0.8

func (m *EventUpdateValidator) Reset()

func (*EventUpdateValidator) Size added in v0.0.8

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

func (*EventUpdateValidator) String added in v0.0.8

func (m *EventUpdateValidator) String() string

func (*EventUpdateValidator) Unmarshal added in v0.0.8

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

func (*EventUpdateValidator) XXX_DiscardUnknown added in v0.0.8

func (m *EventUpdateValidator) XXX_DiscardUnknown()

func (*EventUpdateValidator) XXX_Marshal added in v0.0.8

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

func (*EventUpdateValidator) XXX_Merge added in v0.0.8

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

func (*EventUpdateValidator) XXX_Size added in v0.0.8

func (m *EventUpdateValidator) XXX_Size() int

func (*EventUpdateValidator) XXX_Unmarshal added in v0.0.8

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

type EventValidatorSlash added in v0.1.0

type EventValidatorSlash struct {
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// delegators is the complete list of delegator rewards.
	Delegators    []DelegatorSlash  `protobuf:"bytes,6,rep,name=delegators,proto3" json:"delegators"`
	Undelegations []UndelegateSlash `protobuf:"bytes,7,rep,name=undelegations,proto3" json:"undelegations"`
	Redelegations []RedelegateSlash `protobuf:"bytes,8,rep,name=redelegations,proto3" json:"redelegations"`
}

ValidatorSlash contains the detailed validator slash.

func (*EventValidatorSlash) Descriptor added in v0.1.0

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

func (*EventValidatorSlash) Marshal added in v0.1.0

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

func (*EventValidatorSlash) MarshalTo added in v0.1.0

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

func (*EventValidatorSlash) MarshalToSizedBuffer added in v0.1.0

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

func (*EventValidatorSlash) ProtoMessage added in v0.1.0

func (*EventValidatorSlash) ProtoMessage()

func (*EventValidatorSlash) Reset added in v0.1.0

func (m *EventValidatorSlash) Reset()

func (*EventValidatorSlash) Size added in v0.1.0

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

func (*EventValidatorSlash) String added in v0.1.0

func (m *EventValidatorSlash) String() string

func (*EventValidatorSlash) Unmarshal added in v0.1.0

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

func (*EventValidatorSlash) XXX_DiscardUnknown added in v0.1.0

func (m *EventValidatorSlash) XXX_DiscardUnknown()

func (*EventValidatorSlash) XXX_Marshal added in v0.1.0

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

func (*EventValidatorSlash) XXX_Merge added in v0.1.0

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

func (*EventValidatorSlash) XXX_Size added in v0.1.0

func (m *EventValidatorSlash) XXX_Size() int

func (*EventValidatorSlash) XXX_Unmarshal added in v0.1.0

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

type GenesisState

type GenesisState struct {
	// validators defines the validator set at genesis.
	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
	// delegations defines the delegations bonded to validators at genesis.
	Delegations []Delegation `protobuf:"bytes,2,rep,name=delegations,proto3" json:"delegations"`
	// undelegations defines the undelegations active at genesis.
	Undelegations []Undelegation `protobuf:"bytes,3,rep,name=undelegations,proto3" json:"undelegations"`
	// redelegations defines the redelegations active at genesis.
	Redelegations []Redelegation `protobuf:"bytes,4,rep,name=redelegations,proto3" json:"redelegations"`
	// last_validator_powers defines a historical list of the last-block's bonded validators.
	LastValidatorPowers []LastValidatorPower `protobuf:"bytes,5,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers"`
	// last_total_power tracks the total amounts of validators power recorded during the previous end block.
	LastTotalPower int64 `protobuf:"varint,6,opt,name=last_total_power,json=lastTotalPower,proto3" json:"last_total_power,omitempty"`
	// params defines all the module's parameters.
	Params Params `protobuf:"bytes,7,opt,name=params,proto3" json:"params"`
	// exported is true if genesis was exported from the state.
	Exported bool `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"`
}

GenesisState defines the module's genesis state.

func DefaultGenesisState added in v0.0.8

func DefaultGenesisState() *GenesisState

DefaultGenesisState gets the raw genesis raw message for testing

func GetGenesisStateFromAppState added in v0.0.8

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

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

func NewGenesisState added in v0.0.8

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

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDelegations

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

func (*GenesisState) GetExported

func (m *GenesisState) GetExported() bool

func (*GenesisState) GetLastTotalPower added in v0.0.8

func (m *GenesisState) GetLastTotalPower() int64

func (*GenesisState) GetLastValidatorPowers

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRedelegations added in v0.0.8

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

func (*GenesisState) GetUndelegations added in v0.0.8

func (m *GenesisState) GetUndelegations() []Undelegation

func (*GenesisState) GetValidators

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) UnpackInterfaces added in v0.0.8

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

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type HistoricalInfo added in v0.0.8

type HistoricalInfo struct {
	Header types2.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 validator module's state, which persists the `n` most recent HistoricalInfo (`n` is set by the validator module's `historical_entries` parameter).

func MustUnmarshalHistoricalInfo added in v0.0.8

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

MustUnmarshalHistoricalInfo will unmarshal historical info and panic on error.

func NewHistoricalInfo added in v0.0.8

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

NewHistoricalInfo will create a historical information struct from header and validator set. It will first sort validator set before inclusion into historical info.

func UnmarshalHistoricalInfo added in v0.0.8

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

UnmarshalHistoricalInfo will unmarshal historical info and return any error.

func (*HistoricalInfo) Descriptor added in v0.0.8

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

func (*HistoricalInfo) Equal added in v0.0.8

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

Equal checks if receiver is equal to the parameter.

func (*HistoricalInfo) Marshal added in v0.0.8

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

func (*HistoricalInfo) MarshalTo added in v0.0.8

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

func (*HistoricalInfo) MarshalToSizedBuffer added in v0.0.8

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

func (*HistoricalInfo) ProtoMessage added in v0.0.8

func (*HistoricalInfo) ProtoMessage()

func (*HistoricalInfo) Reset added in v0.0.8

func (m *HistoricalInfo) Reset()

func (*HistoricalInfo) Size added in v0.0.8

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

func (*HistoricalInfo) String added in v0.0.8

func (m *HistoricalInfo) String() string

func (*HistoricalInfo) Unmarshal added in v0.0.8

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

func (HistoricalInfo) UnpackInterfaces added in v0.0.8

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

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces.

func (*HistoricalInfo) XXX_DiscardUnknown added in v0.0.8

func (m *HistoricalInfo) XXX_DiscardUnknown()

func (*HistoricalInfo) XXX_Marshal added in v0.0.8

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

func (*HistoricalInfo) XXX_Merge added in v0.0.8

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

func (*HistoricalInfo) XXX_Size added in v0.0.8

func (m *HistoricalInfo) XXX_Size() int

func (*HistoricalInfo) XXX_Unmarshal added in v0.0.8

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

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 voting power of the validator.
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
}

LastValidatorPower defines an object containing a pair of validator address and it's voting power.

func (*LastValidatorPower) Descriptor

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

func (*LastValidatorPower) Marshal

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

func (*LastValidatorPower) MarshalTo

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

func (*LastValidatorPower) MarshalToSizedBuffer

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

func (*LastValidatorPower) ProtoMessage

func (*LastValidatorPower) ProtoMessage()

func (*LastValidatorPower) Reset

func (m *LastValidatorPower) Reset()

func (*LastValidatorPower) Size

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

func (*LastValidatorPower) String

func (m *LastValidatorPower) String() string

func (*LastValidatorPower) Unmarshal

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

func (*LastValidatorPower) XXX_DiscardUnknown

func (m *LastValidatorPower) XXX_DiscardUnknown()

func (*LastValidatorPower) XXX_Marshal

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

func (*LastValidatorPower) XXX_Merge

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

func (*LastValidatorPower) XXX_Size

func (m *LastValidatorPower) XXX_Size() int

func (*LastValidatorPower) XXX_Unmarshal

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

type MsgCancelRedelegation added in v0.0.8

type MsgCancelRedelegation struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator_src is the bech32-encoded address of the source validator.
	ValidatorSrc string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	// validator_dst is the bech32-encoded address of the destination validator.
	ValidatorDst string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	// creation_height defines number of the block at which redelegation was beginned.
	CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// coin defines amount of the coin to cancel from redelegation.
	Coin types1.Coin `protobuf:"bytes,5,opt,name=coin,proto3" json:"coin"`
}

MsgCancelRedelegation defines the SDK message for performing a cancel redelegation for delegator.

func NewMsgCancelRedelegation added in v0.0.8

func NewMsgCancelRedelegation(
	delegatorAddr sdk.AccAddress,
	validatorSrcAddr sdk.ValAddress,
	validatorDstAddr sdk.ValAddress,
	creationHeight int64,
	coin sdk.Coin,
) *MsgCancelRedelegation

NewMsgCancelRedelegation creates a new instance of MsgCancelRedelegation.

func (*MsgCancelRedelegation) Descriptor added in v0.0.8

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

func (*MsgCancelRedelegation) GetSignBytes added in v0.0.8

func (msg *MsgCancelRedelegation) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgCancelRedelegation) GetSigners added in v0.0.8

func (msg *MsgCancelRedelegation) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgCancelRedelegation) Marshal added in v0.0.8

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

func (*MsgCancelRedelegation) MarshalTo added in v0.0.8

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

func (*MsgCancelRedelegation) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelRedelegation) ProtoMessage added in v0.0.8

func (*MsgCancelRedelegation) ProtoMessage()

func (*MsgCancelRedelegation) Reset added in v0.0.8

func (m *MsgCancelRedelegation) Reset()

func (*MsgCancelRedelegation) Route added in v0.0.8

func (msg *MsgCancelRedelegation) Route() string

Route should return the name of the module.

func (*MsgCancelRedelegation) Size added in v0.0.8

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

func (*MsgCancelRedelegation) String added in v0.0.8

func (m *MsgCancelRedelegation) String() string

func (*MsgCancelRedelegation) Type added in v0.0.8

func (msg *MsgCancelRedelegation) Type() string

Type should return the action.

func (*MsgCancelRedelegation) Unmarshal added in v0.0.8

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

func (*MsgCancelRedelegation) ValidateBasic added in v0.0.8

func (msg *MsgCancelRedelegation) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgCancelRedelegation) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelRedelegation) XXX_DiscardUnknown()

func (*MsgCancelRedelegation) XXX_Marshal added in v0.0.8

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

func (*MsgCancelRedelegation) XXX_Merge added in v0.0.8

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

func (*MsgCancelRedelegation) XXX_Size added in v0.0.8

func (m *MsgCancelRedelegation) XXX_Size() int

func (*MsgCancelRedelegation) XXX_Unmarshal added in v0.0.8

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

type MsgCancelRedelegationNFT added in v0.0.8

type MsgCancelRedelegationNFT struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator_src is the bech32-encoded address of the source validator.
	ValidatorSrc string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	// validator_dst is the bech32-encoded address of the destination validator.
	ValidatorDst string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	// creation_height defines number of the block at which redelegation was beginned.
	CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// token_id defines the NFT token ID.
	TokenID string `protobuf:"bytes,5,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// sub_token_ids defines list of NFT sub-token IDs.
	SubTokenIDs []uint32 `protobuf:"varint,6,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"`
}

MsgCancelRedelegationNFT defines the SDK message for performing a cancel redelegation for delegator.

func NewMsgCancelRedelegationNFT added in v0.0.8

func NewMsgCancelRedelegationNFT(
	delegatorAddr sdk.AccAddress,
	validatorSrcAddr sdk.ValAddress,
	validatorDstAddr sdk.ValAddress,
	creationHeight int64,
	tokenID string,
	subTokenIDs []uint32,
) *MsgCancelRedelegationNFT

NewMsgCancelRedelegationNFT creates a new instance of MsgCancelRedelegationNFT.

func (*MsgCancelRedelegationNFT) Descriptor added in v0.0.8

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

func (*MsgCancelRedelegationNFT) GetSignBytes added in v0.0.8

func (msg *MsgCancelRedelegationNFT) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgCancelRedelegationNFT) GetSigners added in v0.0.8

func (msg *MsgCancelRedelegationNFT) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgCancelRedelegationNFT) Marshal added in v0.0.8

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

func (*MsgCancelRedelegationNFT) MarshalTo added in v0.0.8

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

func (*MsgCancelRedelegationNFT) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelRedelegationNFT) ProtoMessage added in v0.0.8

func (*MsgCancelRedelegationNFT) ProtoMessage()

func (*MsgCancelRedelegationNFT) Reset added in v0.0.8

func (m *MsgCancelRedelegationNFT) Reset()

func (*MsgCancelRedelegationNFT) Route added in v0.0.8

func (msg *MsgCancelRedelegationNFT) Route() string

Route should return the name of the module.

func (*MsgCancelRedelegationNFT) Size added in v0.0.8

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

func (*MsgCancelRedelegationNFT) String added in v0.0.8

func (m *MsgCancelRedelegationNFT) String() string

func (*MsgCancelRedelegationNFT) Type added in v0.0.8

func (msg *MsgCancelRedelegationNFT) Type() string

Type should return the action.

func (*MsgCancelRedelegationNFT) Unmarshal added in v0.0.8

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

func (*MsgCancelRedelegationNFT) ValidateBasic added in v0.0.8

func (msg *MsgCancelRedelegationNFT) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgCancelRedelegationNFT) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelRedelegationNFT) XXX_DiscardUnknown()

func (*MsgCancelRedelegationNFT) XXX_Marshal added in v0.0.8

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

func (*MsgCancelRedelegationNFT) XXX_Merge added in v0.0.8

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

func (*MsgCancelRedelegationNFT) XXX_Size added in v0.0.8

func (m *MsgCancelRedelegationNFT) XXX_Size() int

func (*MsgCancelRedelegationNFT) XXX_Unmarshal added in v0.0.8

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

type MsgCancelRedelegationNFTResponse added in v0.0.8

type MsgCancelRedelegationNFTResponse struct {
}

MsgCancelRedelegationNFTResponse

func (*MsgCancelRedelegationNFTResponse) Descriptor added in v0.0.8

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

func (*MsgCancelRedelegationNFTResponse) Marshal added in v0.0.8

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

func (*MsgCancelRedelegationNFTResponse) MarshalTo added in v0.0.8

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

func (*MsgCancelRedelegationNFTResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelRedelegationNFTResponse) ProtoMessage added in v0.0.8

func (*MsgCancelRedelegationNFTResponse) ProtoMessage()

func (*MsgCancelRedelegationNFTResponse) Reset added in v0.0.8

func (*MsgCancelRedelegationNFTResponse) Size added in v0.0.8

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

func (*MsgCancelRedelegationNFTResponse) String added in v0.0.8

func (*MsgCancelRedelegationNFTResponse) Unmarshal added in v0.0.8

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

func (*MsgCancelRedelegationNFTResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelRedelegationNFTResponse) XXX_DiscardUnknown()

func (*MsgCancelRedelegationNFTResponse) XXX_Marshal added in v0.0.8

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

func (*MsgCancelRedelegationNFTResponse) XXX_Merge added in v0.0.8

func (*MsgCancelRedelegationNFTResponse) XXX_Size added in v0.0.8

func (m *MsgCancelRedelegationNFTResponse) XXX_Size() int

func (*MsgCancelRedelegationNFTResponse) XXX_Unmarshal added in v0.0.8

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

type MsgCancelRedelegationResponse added in v0.0.8

type MsgCancelRedelegationResponse struct {
}

MsgCancelRedelegationResponse

func (*MsgCancelRedelegationResponse) Descriptor added in v0.0.8

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

func (*MsgCancelRedelegationResponse) Marshal added in v0.0.8

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

func (*MsgCancelRedelegationResponse) MarshalTo added in v0.0.8

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

func (*MsgCancelRedelegationResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelRedelegationResponse) ProtoMessage added in v0.0.8

func (*MsgCancelRedelegationResponse) ProtoMessage()

func (*MsgCancelRedelegationResponse) Reset added in v0.0.8

func (m *MsgCancelRedelegationResponse) Reset()

func (*MsgCancelRedelegationResponse) Size added in v0.0.8

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

func (*MsgCancelRedelegationResponse) String added in v0.0.8

func (*MsgCancelRedelegationResponse) Unmarshal added in v0.0.8

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

func (*MsgCancelRedelegationResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelRedelegationResponse) XXX_DiscardUnknown()

func (*MsgCancelRedelegationResponse) XXX_Marshal added in v0.0.8

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

func (*MsgCancelRedelegationResponse) XXX_Merge added in v0.0.8

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

func (*MsgCancelRedelegationResponse) XXX_Size added in v0.0.8

func (m *MsgCancelRedelegationResponse) XXX_Size() int

func (*MsgCancelRedelegationResponse) XXX_Unmarshal added in v0.0.8

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

type MsgCancelUndelegation added in v0.0.8

type MsgCancelUndelegation struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// creation_height defines number of the block at which undelegation was beginned.
	CreationHeight int64 `protobuf:"varint,3,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// coin defines amount of the coin to cancel from undelegation.
	Coin types1.Coin `protobuf:"bytes,4,opt,name=coin,proto3" json:"coin"`
}

MsgCancelUndelegation defines the SDK message for performing a cancel undelegation for delegator.

func NewMsgCancelUndelegation added in v0.0.8

func NewMsgCancelUndelegation(
	delegatorAddr sdk.AccAddress,
	validatorAddr sdk.ValAddress,
	creationHeight int64,
	coin sdk.Coin,
) *MsgCancelUndelegation

NewMsgCancelUndelegation creates a new instance of MsgCancelUndelegation.

func (*MsgCancelUndelegation) Descriptor added in v0.0.8

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

func (*MsgCancelUndelegation) GetSignBytes added in v0.0.8

func (msg *MsgCancelUndelegation) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgCancelUndelegation) GetSigners added in v0.0.8

func (msg *MsgCancelUndelegation) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgCancelUndelegation) Marshal added in v0.0.8

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

func (*MsgCancelUndelegation) MarshalTo added in v0.0.8

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

func (*MsgCancelUndelegation) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelUndelegation) ProtoMessage added in v0.0.8

func (*MsgCancelUndelegation) ProtoMessage()

func (*MsgCancelUndelegation) Reset added in v0.0.8

func (m *MsgCancelUndelegation) Reset()

func (*MsgCancelUndelegation) Route added in v0.0.8

func (msg *MsgCancelUndelegation) Route() string

Route should return the name of the module.

func (*MsgCancelUndelegation) Size added in v0.0.8

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

func (*MsgCancelUndelegation) String added in v0.0.8

func (m *MsgCancelUndelegation) String() string

func (*MsgCancelUndelegation) Type added in v0.0.8

func (msg *MsgCancelUndelegation) Type() string

Type should return the action.

func (*MsgCancelUndelegation) Unmarshal added in v0.0.8

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

func (*MsgCancelUndelegation) ValidateBasic added in v0.0.8

func (msg *MsgCancelUndelegation) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgCancelUndelegation) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelUndelegation) XXX_DiscardUnknown()

func (*MsgCancelUndelegation) XXX_Marshal added in v0.0.8

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

func (*MsgCancelUndelegation) XXX_Merge added in v0.0.8

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

func (*MsgCancelUndelegation) XXX_Size added in v0.0.8

func (m *MsgCancelUndelegation) XXX_Size() int

func (*MsgCancelUndelegation) XXX_Unmarshal added in v0.0.8

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

type MsgCancelUndelegationNFT added in v0.0.8

type MsgCancelUndelegationNFT struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// creation_height defines number of the block at which undelegation was beginned.
	CreationHeight int64 `protobuf:"varint,3,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// token_id defines the NFT token ID.
	TokenID string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// sub_token_ids defines list of NFT sub-token IDs.
	SubTokenIDs []uint32 `protobuf:"varint,5,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"`
}

MsgCancelUndelegationNFT defines the SDK message for performing a cancel undelegation for delegator.

func NewMsgCancelUndelegationNFT added in v0.0.8

func NewMsgCancelUndelegationNFT(
	delegatorAddr sdk.AccAddress,
	validatorAddr sdk.ValAddress,
	creationHeight int64,
	tokenID string,
	subTokenIDs []uint32,
) *MsgCancelUndelegationNFT

NewMsgCancelUndelegationNFT creates a new instance of MsgCancelUndelegationNFT.

func (*MsgCancelUndelegationNFT) Descriptor added in v0.0.8

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

func (*MsgCancelUndelegationNFT) GetSignBytes added in v0.0.8

func (msg *MsgCancelUndelegationNFT) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgCancelUndelegationNFT) GetSigners added in v0.0.8

func (msg *MsgCancelUndelegationNFT) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgCancelUndelegationNFT) Marshal added in v0.0.8

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

func (*MsgCancelUndelegationNFT) MarshalTo added in v0.0.8

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

func (*MsgCancelUndelegationNFT) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelUndelegationNFT) ProtoMessage added in v0.0.8

func (*MsgCancelUndelegationNFT) ProtoMessage()

func (*MsgCancelUndelegationNFT) Reset added in v0.0.8

func (m *MsgCancelUndelegationNFT) Reset()

func (*MsgCancelUndelegationNFT) Route added in v0.0.8

func (msg *MsgCancelUndelegationNFT) Route() string

Route should return the name of the module.

func (*MsgCancelUndelegationNFT) Size added in v0.0.8

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

func (*MsgCancelUndelegationNFT) String added in v0.0.8

func (m *MsgCancelUndelegationNFT) String() string

func (*MsgCancelUndelegationNFT) Type added in v0.0.8

func (msg *MsgCancelUndelegationNFT) Type() string

Type should return the action.

func (*MsgCancelUndelegationNFT) Unmarshal added in v0.0.8

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

func (*MsgCancelUndelegationNFT) ValidateBasic added in v0.0.8

func (msg *MsgCancelUndelegationNFT) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgCancelUndelegationNFT) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelUndelegationNFT) XXX_DiscardUnknown()

func (*MsgCancelUndelegationNFT) XXX_Marshal added in v0.0.8

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

func (*MsgCancelUndelegationNFT) XXX_Merge added in v0.0.8

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

func (*MsgCancelUndelegationNFT) XXX_Size added in v0.0.8

func (m *MsgCancelUndelegationNFT) XXX_Size() int

func (*MsgCancelUndelegationNFT) XXX_Unmarshal added in v0.0.8

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

type MsgCancelUndelegationNFTResponse added in v0.0.8

type MsgCancelUndelegationNFTResponse struct {
}

MsgCancelUndelegationNFTResponse

func (*MsgCancelUndelegationNFTResponse) Descriptor added in v0.0.8

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

func (*MsgCancelUndelegationNFTResponse) Marshal added in v0.0.8

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

func (*MsgCancelUndelegationNFTResponse) MarshalTo added in v0.0.8

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

func (*MsgCancelUndelegationNFTResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelUndelegationNFTResponse) ProtoMessage added in v0.0.8

func (*MsgCancelUndelegationNFTResponse) ProtoMessage()

func (*MsgCancelUndelegationNFTResponse) Reset added in v0.0.8

func (*MsgCancelUndelegationNFTResponse) Size added in v0.0.8

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

func (*MsgCancelUndelegationNFTResponse) String added in v0.0.8

func (*MsgCancelUndelegationNFTResponse) Unmarshal added in v0.0.8

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

func (*MsgCancelUndelegationNFTResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelUndelegationNFTResponse) XXX_DiscardUnknown()

func (*MsgCancelUndelegationNFTResponse) XXX_Marshal added in v0.0.8

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

func (*MsgCancelUndelegationNFTResponse) XXX_Merge added in v0.0.8

func (*MsgCancelUndelegationNFTResponse) XXX_Size added in v0.0.8

func (m *MsgCancelUndelegationNFTResponse) XXX_Size() int

func (*MsgCancelUndelegationNFTResponse) XXX_Unmarshal added in v0.0.8

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

type MsgCancelUndelegationResponse added in v0.0.8

type MsgCancelUndelegationResponse struct {
}

MsgCancelUndelegationResponse

func (*MsgCancelUndelegationResponse) Descriptor added in v0.0.8

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

func (*MsgCancelUndelegationResponse) Marshal added in v0.0.8

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

func (*MsgCancelUndelegationResponse) MarshalTo added in v0.0.8

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

func (*MsgCancelUndelegationResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCancelUndelegationResponse) ProtoMessage added in v0.0.8

func (*MsgCancelUndelegationResponse) ProtoMessage()

func (*MsgCancelUndelegationResponse) Reset added in v0.0.8

func (m *MsgCancelUndelegationResponse) Reset()

func (*MsgCancelUndelegationResponse) Size added in v0.0.8

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

func (*MsgCancelUndelegationResponse) String added in v0.0.8

func (*MsgCancelUndelegationResponse) Unmarshal added in v0.0.8

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

func (*MsgCancelUndelegationResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCancelUndelegationResponse) XXX_DiscardUnknown()

func (*MsgCancelUndelegationResponse) XXX_Marshal added in v0.0.8

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

func (*MsgCancelUndelegationResponse) XXX_Merge added in v0.0.8

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

func (*MsgCancelUndelegationResponse) XXX_Size added in v0.0.8

func (m *MsgCancelUndelegationResponse) XXX_Size() int

func (*MsgCancelUndelegationResponse) XXX_Unmarshal added in v0.0.8

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

type MsgClient

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)
	// SetOnline defines a method for turning on a validator into the blockchain consensus.
	SetOnline(ctx context.Context, in *MsgSetOnline, opts ...grpc.CallOption) (*MsgSetOnlineResponse, error)
	// SetOffline defines a method for turning off a validator from the blockchain consensus.
	SetOffline(ctx context.Context, in *MsgSetOffline, opts ...grpc.CallOption) (*MsgSetOfflineResponse, 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)
	// DelegateNFT defines a method for performing a delegation of NFTs from a delegator to a validator.
	DelegateNFT(ctx context.Context, in *MsgDelegateNFT, opts ...grpc.CallOption) (*MsgDelegateNFTResponse, error)
	// Redelegate defines a method for performing a redelegation of coins from a source validator to destination one.
	Redelegate(ctx context.Context, in *MsgRedelegate, opts ...grpc.CallOption) (*MsgRedelegateResponse, error)
	// RedelegateNFT defines a method for performing a redelegation of NFTs from a source validator to destination one.
	RedelegateNFT(ctx context.Context, in *MsgRedelegateNFT, opts ...grpc.CallOption) (*MsgRedelegateNFTResponse, error)
	// Undelegate defines a method for performing an undelegation of coins from a validator.
	Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
	// UndelegateNFT defines a method for performing an undelegation of NFTs from a validator.
	UndelegateNFT(ctx context.Context, in *MsgUndelegateNFT, opts ...grpc.CallOption) (*MsgUndelegateNFTResponse, error)
	// CancelRedelegation defines a method for canceling the redelegation and delegate back the validator.
	CancelRedelegation(ctx context.Context, in *MsgCancelRedelegation, opts ...grpc.CallOption) (*MsgCancelRedelegationResponse, error)
	// CancelRedelegationNFT defines a method for canceling the redelegation and delegate back the validator.
	CancelRedelegationNFT(ctx context.Context, in *MsgCancelRedelegationNFT, opts ...grpc.CallOption) (*MsgCancelRedelegationNFTResponse, error)
	// CancelUndelegation defines a method for canceling the undelegation and delegate back to the validator.
	CancelUndelegation(ctx context.Context, in *MsgCancelUndelegation, opts ...grpc.CallOption) (*MsgCancelUndelegationResponse, error)
	// CancelUndelegationNFT defines a method for canceling the undelegation and delegate back to the validator.
	CancelUndelegationNFT(ctx context.Context, in *MsgCancelUndelegationNFT, opts ...grpc.CallOption) (*MsgCancelUndelegationNFTResponse, 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

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateValidator added in v0.0.8

type MsgCreateValidator struct {
	OperatorAddress string                                 `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	RewardAddress   string                                 `protobuf:"bytes,2,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
	ConsensusPubkey *types.Any                             `protobuf:"bytes,3,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
	Description     Description                            `protobuf:"bytes,4,opt,name=description,proto3" json:"description"`
	Commission      github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
	Stake           types1.Coin                            `protobuf:"bytes,6,opt,name=stake,proto3" json:"stake"`
}

MsgCreateValidator defines a SDK message for creating a new validator.

func NewMsgCreateValidator added in v0.0.8

func NewMsgCreateValidator(
	operatorAddr sdk.ValAddress,
	rewardAddr sdk.AccAddress,
	pubKey cryptotypes.PubKey,
	description Description,
	commission sdk.Dec,
	stake sdk.Coin,
) (*MsgCreateValidator, error)

NewMsgCreateValidator creates a new instance of MsgCreateValidator.

func (*MsgCreateValidator) Descriptor added in v0.0.8

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

func (*MsgCreateValidator) GetSignBytes added in v0.0.8

func (msg *MsgCreateValidator) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgCreateValidator) GetSigners added in v0.0.8

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

GetSigners defines whose signature is required.

func (*MsgCreateValidator) Marshal added in v0.0.8

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

func (*MsgCreateValidator) MarshalTo added in v0.0.8

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

func (*MsgCreateValidator) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCreateValidator) ProtoMessage added in v0.0.8

func (*MsgCreateValidator) ProtoMessage()

func (*MsgCreateValidator) Reset added in v0.0.8

func (m *MsgCreateValidator) Reset()

func (*MsgCreateValidator) Route added in v0.0.8

func (msg *MsgCreateValidator) Route() string

Route should return the name of the module.

func (*MsgCreateValidator) Size added in v0.0.8

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

func (*MsgCreateValidator) String added in v0.0.8

func (m *MsgCreateValidator) String() string

func (*MsgCreateValidator) Type added in v0.0.8

func (msg *MsgCreateValidator) Type() string

Type should return the action.

func (*MsgCreateValidator) Unmarshal added in v0.0.8

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

func (MsgCreateValidator) UnpackInterfaces added in v0.0.8

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

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces.

func (*MsgCreateValidator) ValidateBasic added in v0.0.8

func (msg *MsgCreateValidator) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgCreateValidator) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCreateValidator) XXX_DiscardUnknown()

func (*MsgCreateValidator) XXX_Marshal added in v0.0.8

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

func (*MsgCreateValidator) XXX_Merge added in v0.0.8

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

func (*MsgCreateValidator) XXX_Size added in v0.0.8

func (m *MsgCreateValidator) XXX_Size() int

func (*MsgCreateValidator) XXX_Unmarshal added in v0.0.8

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

type MsgCreateValidatorResponse added in v0.0.8

type MsgCreateValidatorResponse struct {
}

MsgCreateValidatorResponse defines the Msg/CreateValidator response type.

func (*MsgCreateValidatorResponse) Descriptor added in v0.0.8

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

func (*MsgCreateValidatorResponse) Marshal added in v0.0.8

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

func (*MsgCreateValidatorResponse) MarshalTo added in v0.0.8

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

func (*MsgCreateValidatorResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgCreateValidatorResponse) ProtoMessage added in v0.0.8

func (*MsgCreateValidatorResponse) ProtoMessage()

func (*MsgCreateValidatorResponse) Reset added in v0.0.8

func (m *MsgCreateValidatorResponse) Reset()

func (*MsgCreateValidatorResponse) Size added in v0.0.8

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

func (*MsgCreateValidatorResponse) String added in v0.0.8

func (m *MsgCreateValidatorResponse) String() string

func (*MsgCreateValidatorResponse) Unmarshal added in v0.0.8

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

func (*MsgCreateValidatorResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()

func (*MsgCreateValidatorResponse) XXX_Marshal added in v0.0.8

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

func (*MsgCreateValidatorResponse) XXX_Merge added in v0.0.8

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

func (*MsgCreateValidatorResponse) XXX_Size added in v0.0.8

func (m *MsgCreateValidatorResponse) XXX_Size() int

func (*MsgCreateValidatorResponse) XXX_Unmarshal added in v0.0.8

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

type MsgDelegate

type MsgDelegate struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// coin defines amount of the coin to delegate.
	Coin types1.Coin `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin"`
}

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

func NewMsgDelegate added in v0.0.8

func NewMsgDelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, coin sdk.Coin) *MsgDelegate

NewMsgDelegate creates a new instance of MsgDelegate.

func (*MsgDelegate) Descriptor

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

func (*MsgDelegate) GetSignBytes added in v0.0.8

func (msg *MsgDelegate) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgDelegate) GetSigners added in v0.0.8

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

GetSigners defines whose signature is required.

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 added in v0.0.8

func (msg *MsgDelegate) Route() string

Route should return the name of the module.

func (*MsgDelegate) Size

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

func (*MsgDelegate) String

func (m *MsgDelegate) String() string

func (*MsgDelegate) Type added in v0.0.8

func (msg *MsgDelegate) Type() string

Type should return the action.

func (*MsgDelegate) Unmarshal

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

func (*MsgDelegate) ValidateBasic added in v0.0.8

func (msg *MsgDelegate) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

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 MsgDelegateNFT

type MsgDelegateNFT struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// token_id defines the NFT token ID.
	TokenID string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// sub_token_ids defines list of NFT sub-token IDs.
	SubTokenIDs []uint32 `protobuf:"varint,4,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"`
}

MsgDelegateNFT defines a SDK message for performing a delegation of NFTs from a delegator to a validator.

func NewMsgDelegateNFT added in v0.0.8

func NewMsgDelegateNFT(
	delegatorAddr sdk.AccAddress,
	validatorAddr sdk.ValAddress,
	tokenID string,
	subTokenIDs []uint32,
) *MsgDelegateNFT

NewMsgDelegateNFT creates a new instance of MsgDelegateNFT.

func (*MsgDelegateNFT) Descriptor

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

func (*MsgDelegateNFT) GetSignBytes added in v0.0.8

func (msg *MsgDelegateNFT) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgDelegateNFT) GetSigners added in v0.0.8

func (msg *MsgDelegateNFT) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgDelegateNFT) Marshal

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

func (*MsgDelegateNFT) MarshalTo

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

func (*MsgDelegateNFT) MarshalToSizedBuffer

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

func (*MsgDelegateNFT) ProtoMessage

func (*MsgDelegateNFT) ProtoMessage()

func (*MsgDelegateNFT) Reset

func (m *MsgDelegateNFT) Reset()

func (*MsgDelegateNFT) Route added in v0.0.8

func (msg *MsgDelegateNFT) Route() string

Route should return the name of the module.

func (*MsgDelegateNFT) Size

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

func (*MsgDelegateNFT) String

func (m *MsgDelegateNFT) String() string

func (*MsgDelegateNFT) Type added in v0.0.8

func (msg *MsgDelegateNFT) Type() string

Type should return the action.

func (*MsgDelegateNFT) Unmarshal

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

func (*MsgDelegateNFT) ValidateBasic added in v0.0.8

func (msg *MsgDelegateNFT) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgDelegateNFT) XXX_DiscardUnknown

func (m *MsgDelegateNFT) XXX_DiscardUnknown()

func (*MsgDelegateNFT) XXX_Marshal

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

func (*MsgDelegateNFT) XXX_Merge

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

func (*MsgDelegateNFT) XXX_Size

func (m *MsgDelegateNFT) XXX_Size() int

func (*MsgDelegateNFT) XXX_Unmarshal

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

type MsgDelegateNFTResponse

type MsgDelegateNFTResponse struct {
}

MsgDelegateNFTResponse defines the Msg/DelegateNFT response type.

func (*MsgDelegateNFTResponse) Descriptor

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

func (*MsgDelegateNFTResponse) Marshal

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

func (*MsgDelegateNFTResponse) MarshalTo

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

func (*MsgDelegateNFTResponse) MarshalToSizedBuffer

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

func (*MsgDelegateNFTResponse) ProtoMessage

func (*MsgDelegateNFTResponse) ProtoMessage()

func (*MsgDelegateNFTResponse) Reset

func (m *MsgDelegateNFTResponse) Reset()

func (*MsgDelegateNFTResponse) Size

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

func (*MsgDelegateNFTResponse) String

func (m *MsgDelegateNFTResponse) String() string

func (*MsgDelegateNFTResponse) Unmarshal

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

func (*MsgDelegateNFTResponse) XXX_DiscardUnknown

func (m *MsgDelegateNFTResponse) XXX_DiscardUnknown()

func (*MsgDelegateNFTResponse) XXX_Marshal

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

func (*MsgDelegateNFTResponse) XXX_Merge

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

func (*MsgDelegateNFTResponse) XXX_Size

func (m *MsgDelegateNFTResponse) XXX_Size() int

func (*MsgDelegateNFTResponse) XXX_Unmarshal

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

type MsgDelegateResponse

type MsgDelegateResponse struct {
}

MsgDelegateResponse defines the Msg/Delegate response type.

func (*MsgDelegateResponse) Descriptor

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

func (*MsgDelegateResponse) Marshal

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

func (*MsgDelegateResponse) MarshalTo

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

func (*MsgDelegateResponse) MarshalToSizedBuffer

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

func (*MsgDelegateResponse) ProtoMessage

func (*MsgDelegateResponse) ProtoMessage()

func (*MsgDelegateResponse) Reset

func (m *MsgDelegateResponse) Reset()

func (*MsgDelegateResponse) Size

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

func (*MsgDelegateResponse) String

func (m *MsgDelegateResponse) String() string

func (*MsgDelegateResponse) Unmarshal

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

func (*MsgDelegateResponse) XXX_DiscardUnknown

func (m *MsgDelegateResponse) XXX_DiscardUnknown()

func (*MsgDelegateResponse) XXX_Marshal

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

func (*MsgDelegateResponse) XXX_Merge

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

func (*MsgDelegateResponse) XXX_Size

func (m *MsgDelegateResponse) XXX_Size() int

func (*MsgDelegateResponse) XXX_Unmarshal

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

type MsgEditValidator added in v0.0.8

type MsgEditValidator struct {
	OperatorAddress string      `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	RewardAddress   string      `protobuf:"bytes,2,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
	Description     Description `protobuf:"bytes,3,opt,name=description,proto3" json:"description"`
}

MsgEditValidator defines a SDK message for editing an existing validator.

func NewMsgEditValidator added in v0.0.8

func NewMsgEditValidator(
	operatorAddr sdk.ValAddress,
	rewardAddr sdk.AccAddress,
	description Description,
) *MsgEditValidator

NewMsgEditValidator creates a new instance of MsgEditValidator.

func (*MsgEditValidator) Descriptor added in v0.0.8

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

func (*MsgEditValidator) GetSignBytes added in v0.0.8

func (msg *MsgEditValidator) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgEditValidator) GetSigners added in v0.0.8

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

GetSigners defines whose signature is required.

func (*MsgEditValidator) Marshal added in v0.0.8

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

func (*MsgEditValidator) MarshalTo added in v0.0.8

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

func (*MsgEditValidator) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgEditValidator) ProtoMessage added in v0.0.8

func (*MsgEditValidator) ProtoMessage()

func (*MsgEditValidator) Reset added in v0.0.8

func (m *MsgEditValidator) Reset()

func (*MsgEditValidator) Route added in v0.0.8

func (msg *MsgEditValidator) Route() string

Route should return the name of the module.

func (*MsgEditValidator) Size added in v0.0.8

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

func (*MsgEditValidator) String added in v0.0.8

func (m *MsgEditValidator) String() string

func (*MsgEditValidator) Type added in v0.0.8

func (msg *MsgEditValidator) Type() string

Type should return the action.

func (*MsgEditValidator) Unmarshal added in v0.0.8

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

func (*MsgEditValidator) ValidateBasic added in v0.0.8

func (msg *MsgEditValidator) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgEditValidator) XXX_DiscardUnknown added in v0.0.8

func (m *MsgEditValidator) XXX_DiscardUnknown()

func (*MsgEditValidator) XXX_Marshal added in v0.0.8

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

func (*MsgEditValidator) XXX_Merge added in v0.0.8

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

func (*MsgEditValidator) XXX_Size added in v0.0.8

func (m *MsgEditValidator) XXX_Size() int

func (*MsgEditValidator) XXX_Unmarshal added in v0.0.8

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

type MsgEditValidatorResponse added in v0.0.8

type MsgEditValidatorResponse struct {
}

MsgEditValidatorResponse defines the Msg/EditValidator response type.

func (*MsgEditValidatorResponse) Descriptor added in v0.0.8

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

func (*MsgEditValidatorResponse) Marshal added in v0.0.8

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

func (*MsgEditValidatorResponse) MarshalTo added in v0.0.8

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

func (*MsgEditValidatorResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgEditValidatorResponse) ProtoMessage added in v0.0.8

func (*MsgEditValidatorResponse) ProtoMessage()

func (*MsgEditValidatorResponse) Reset added in v0.0.8

func (m *MsgEditValidatorResponse) Reset()

func (*MsgEditValidatorResponse) Size added in v0.0.8

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

func (*MsgEditValidatorResponse) String added in v0.0.8

func (m *MsgEditValidatorResponse) String() string

func (*MsgEditValidatorResponse) Unmarshal added in v0.0.8

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

func (*MsgEditValidatorResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgEditValidatorResponse) XXX_DiscardUnknown()

func (*MsgEditValidatorResponse) XXX_Marshal added in v0.0.8

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

func (*MsgEditValidatorResponse) XXX_Merge added in v0.0.8

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

func (*MsgEditValidatorResponse) XXX_Size added in v0.0.8

func (m *MsgEditValidatorResponse) XXX_Size() int

func (*MsgEditValidatorResponse) XXX_Unmarshal added in v0.0.8

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

type MsgRedelegate added in v0.0.8

type MsgRedelegate struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator_src is the bech32-encoded address of the source validator.
	ValidatorSrc string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	// validator_dst is the bech32-encoded address of the destination validator.
	ValidatorDst string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	// coin defines amount of the coin to redelegate.
	Coin types1.Coin `protobuf:"bytes,4,opt,name=coin,proto3" json:"coin"`
}

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

func NewMsgRedelegate added in v0.0.8

func NewMsgRedelegate(
	delegatorAddr sdk.AccAddress,
	validatorSrcAddr sdk.ValAddress,
	validatorDstAddr sdk.ValAddress,
	coin sdk.Coin,
) *MsgRedelegate

NewMsgRedelegate creates a new instance of MsgRedelegate.

func (*MsgRedelegate) Descriptor added in v0.0.8

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

func (*MsgRedelegate) GetSignBytes added in v0.0.8

func (msg *MsgRedelegate) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgRedelegate) GetSigners added in v0.0.8

func (msg *MsgRedelegate) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgRedelegate) Marshal added in v0.0.8

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

func (*MsgRedelegate) MarshalTo added in v0.0.8

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

func (*MsgRedelegate) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgRedelegate) ProtoMessage added in v0.0.8

func (*MsgRedelegate) ProtoMessage()

func (*MsgRedelegate) Reset added in v0.0.8

func (m *MsgRedelegate) Reset()

func (*MsgRedelegate) Route added in v0.0.8

func (msg *MsgRedelegate) Route() string

Route should return the name of the module.

func (*MsgRedelegate) Size added in v0.0.8

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

func (*MsgRedelegate) String added in v0.0.8

func (m *MsgRedelegate) String() string

func (*MsgRedelegate) Type added in v0.0.8

func (msg *MsgRedelegate) Type() string

Type should return the action.

func (*MsgRedelegate) Unmarshal added in v0.0.8

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

func (*MsgRedelegate) ValidateBasic added in v0.0.8

func (msg *MsgRedelegate) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgRedelegate) XXX_DiscardUnknown added in v0.0.8

func (m *MsgRedelegate) XXX_DiscardUnknown()

func (*MsgRedelegate) XXX_Marshal added in v0.0.8

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

func (*MsgRedelegate) XXX_Merge added in v0.0.8

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

func (*MsgRedelegate) XXX_Size added in v0.0.8

func (m *MsgRedelegate) XXX_Size() int

func (*MsgRedelegate) XXX_Unmarshal added in v0.0.8

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

type MsgRedelegateNFT added in v0.0.8

type MsgRedelegateNFT struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator_src is the bech32-encoded address of the source validator.
	ValidatorSrc string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	// validator_dst is the bech32-encoded address of the destination validator.
	ValidatorDst string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	// token_id defines the NFT token ID.
	TokenID string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// sub_token_ids defines list of NFT sub-token IDs.
	SubTokenIDs []uint32 `protobuf:"varint,5,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"`
}

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

func NewMsgRedelegateNFT added in v0.0.8

func NewMsgRedelegateNFT(
	delegatorAddr sdk.AccAddress,
	validatorSrcAddr sdk.ValAddress,
	validatorDstAddr sdk.ValAddress,
	tokenID string,
	subTokenIDs []uint32,
) *MsgRedelegateNFT

NewMsgRedelegateNFT creates a new instance of MsgRedelegateNFT.

func (*MsgRedelegateNFT) Descriptor added in v0.0.8

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

func (*MsgRedelegateNFT) GetSignBytes added in v0.0.8

func (msg *MsgRedelegateNFT) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgRedelegateNFT) GetSigners added in v0.0.8

func (msg *MsgRedelegateNFT) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgRedelegateNFT) Marshal added in v0.0.8

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

func (*MsgRedelegateNFT) MarshalTo added in v0.0.8

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

func (*MsgRedelegateNFT) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgRedelegateNFT) ProtoMessage added in v0.0.8

func (*MsgRedelegateNFT) ProtoMessage()

func (*MsgRedelegateNFT) Reset added in v0.0.8

func (m *MsgRedelegateNFT) Reset()

func (*MsgRedelegateNFT) Route added in v0.0.8

func (msg *MsgRedelegateNFT) Route() string

Route should return the name of the module.

func (*MsgRedelegateNFT) Size added in v0.0.8

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

func (*MsgRedelegateNFT) String added in v0.0.8

func (m *MsgRedelegateNFT) String() string

func (*MsgRedelegateNFT) Type added in v0.0.8

func (msg *MsgRedelegateNFT) Type() string

Type should return the action.

func (*MsgRedelegateNFT) Unmarshal added in v0.0.8

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

func (*MsgRedelegateNFT) ValidateBasic added in v0.0.8

func (msg *MsgRedelegateNFT) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgRedelegateNFT) XXX_DiscardUnknown added in v0.0.8

func (m *MsgRedelegateNFT) XXX_DiscardUnknown()

func (*MsgRedelegateNFT) XXX_Marshal added in v0.0.8

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

func (*MsgRedelegateNFT) XXX_Merge added in v0.0.8

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

func (*MsgRedelegateNFT) XXX_Size added in v0.0.8

func (m *MsgRedelegateNFT) XXX_Size() int

func (*MsgRedelegateNFT) XXX_Unmarshal added in v0.0.8

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

type MsgRedelegateNFTResponse added in v0.0.8

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

MsgRedelegateNFTResponse defines the Msg/RedelegateNFT response type.

func (*MsgRedelegateNFTResponse) Descriptor added in v0.0.8

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

func (*MsgRedelegateNFTResponse) GetCompletionTime added in v0.0.8

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

func (*MsgRedelegateNFTResponse) Marshal added in v0.0.8

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

func (*MsgRedelegateNFTResponse) MarshalTo added in v0.0.8

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

func (*MsgRedelegateNFTResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgRedelegateNFTResponse) ProtoMessage added in v0.0.8

func (*MsgRedelegateNFTResponse) ProtoMessage()

func (*MsgRedelegateNFTResponse) Reset added in v0.0.8

func (m *MsgRedelegateNFTResponse) Reset()

func (*MsgRedelegateNFTResponse) Size added in v0.0.8

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

func (*MsgRedelegateNFTResponse) String added in v0.0.8

func (m *MsgRedelegateNFTResponse) String() string

func (*MsgRedelegateNFTResponse) Unmarshal added in v0.0.8

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

func (*MsgRedelegateNFTResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgRedelegateNFTResponse) XXX_DiscardUnknown()

func (*MsgRedelegateNFTResponse) XXX_Marshal added in v0.0.8

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

func (*MsgRedelegateNFTResponse) XXX_Merge added in v0.0.8

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

func (*MsgRedelegateNFTResponse) XXX_Size added in v0.0.8

func (m *MsgRedelegateNFTResponse) XXX_Size() int

func (*MsgRedelegateNFTResponse) XXX_Unmarshal added in v0.0.8

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

type MsgRedelegateResponse added in v0.0.8

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

MsgRedelegateResponse defines the Msg/Redelegate response type.

func (*MsgRedelegateResponse) Descriptor added in v0.0.8

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

func (*MsgRedelegateResponse) GetCompletionTime added in v0.0.8

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

func (*MsgRedelegateResponse) Marshal added in v0.0.8

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

func (*MsgRedelegateResponse) MarshalTo added in v0.0.8

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

func (*MsgRedelegateResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgRedelegateResponse) ProtoMessage added in v0.0.8

func (*MsgRedelegateResponse) ProtoMessage()

func (*MsgRedelegateResponse) Reset added in v0.0.8

func (m *MsgRedelegateResponse) Reset()

func (*MsgRedelegateResponse) Size added in v0.0.8

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

func (*MsgRedelegateResponse) String added in v0.0.8

func (m *MsgRedelegateResponse) String() string

func (*MsgRedelegateResponse) Unmarshal added in v0.0.8

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

func (*MsgRedelegateResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgRedelegateResponse) XXX_DiscardUnknown()

func (*MsgRedelegateResponse) XXX_Marshal added in v0.0.8

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

func (*MsgRedelegateResponse) XXX_Merge added in v0.0.8

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

func (*MsgRedelegateResponse) XXX_Size added in v0.0.8

func (m *MsgRedelegateResponse) XXX_Size() int

func (*MsgRedelegateResponse) XXX_Unmarshal added in v0.0.8

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

type MsgServer

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)
	// SetOnline defines a method for turning on a validator into the blockchain consensus.
	SetOnline(context.Context, *MsgSetOnline) (*MsgSetOnlineResponse, error)
	// SetOffline defines a method for turning off a validator from the blockchain consensus.
	SetOffline(context.Context, *MsgSetOffline) (*MsgSetOfflineResponse, error)
	// Delegate defines a method for performing a delegation of coins from a delegator to a validator.
	Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
	// DelegateNFT defines a method for performing a delegation of NFTs from a delegator to a validator.
	DelegateNFT(context.Context, *MsgDelegateNFT) (*MsgDelegateNFTResponse, error)
	// Redelegate defines a method for performing a redelegation of coins from a source validator to destination one.
	Redelegate(context.Context, *MsgRedelegate) (*MsgRedelegateResponse, error)
	// RedelegateNFT defines a method for performing a redelegation of NFTs from a source validator to destination one.
	RedelegateNFT(context.Context, *MsgRedelegateNFT) (*MsgRedelegateNFTResponse, error)
	// Undelegate defines a method for performing an undelegation of coins from a validator.
	Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
	// UndelegateNFT defines a method for performing an undelegation of NFTs from a validator.
	UndelegateNFT(context.Context, *MsgUndelegateNFT) (*MsgUndelegateNFTResponse, error)
	// CancelRedelegation defines a method for canceling the redelegation and delegate back the validator.
	CancelRedelegation(context.Context, *MsgCancelRedelegation) (*MsgCancelRedelegationResponse, error)
	// CancelRedelegationNFT defines a method for canceling the redelegation and delegate back the validator.
	CancelRedelegationNFT(context.Context, *MsgCancelRedelegationNFT) (*MsgCancelRedelegationNFTResponse, error)
	// CancelUndelegation defines a method for canceling the undelegation and delegate back to the validator.
	CancelUndelegation(context.Context, *MsgCancelUndelegation) (*MsgCancelUndelegationResponse, error)
	// CancelUndelegationNFT defines a method for canceling the undelegation and delegate back to the validator.
	CancelUndelegationNFT(context.Context, *MsgCancelUndelegationNFT) (*MsgCancelUndelegationNFTResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetOffline

type MsgSetOffline struct {
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
}

MsgSetOffline defines a SDK message for turning off a validator from the blockchain consensus.

func NewMsgSetOffline added in v0.0.8

func NewMsgSetOffline(operatorAddr sdk.ValAddress) *MsgSetOffline

NewMsgSetOffline creates a new instance of MsgSetOffline.

func (*MsgSetOffline) Descriptor

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

func (*MsgSetOffline) GetSignBytes added in v0.0.8

func (msg *MsgSetOffline) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgSetOffline) GetSigners added in v0.0.8

func (msg *MsgSetOffline) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgSetOffline) Marshal

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

func (*MsgSetOffline) MarshalTo

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

func (*MsgSetOffline) MarshalToSizedBuffer

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

func (*MsgSetOffline) ProtoMessage

func (*MsgSetOffline) ProtoMessage()

func (*MsgSetOffline) Reset

func (m *MsgSetOffline) Reset()

func (*MsgSetOffline) Route added in v0.0.8

func (msg *MsgSetOffline) Route() string

Route should return the name of the module.

func (*MsgSetOffline) Size

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

func (*MsgSetOffline) String

func (m *MsgSetOffline) String() string

func (*MsgSetOffline) Type added in v0.0.8

func (msg *MsgSetOffline) Type() string

Type should return the action.

func (*MsgSetOffline) Unmarshal

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

func (*MsgSetOffline) ValidateBasic added in v0.0.8

func (msg *MsgSetOffline) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgSetOffline) XXX_DiscardUnknown

func (m *MsgSetOffline) XXX_DiscardUnknown()

func (*MsgSetOffline) XXX_Marshal

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

func (*MsgSetOffline) XXX_Merge

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

func (*MsgSetOffline) XXX_Size

func (m *MsgSetOffline) XXX_Size() int

func (*MsgSetOffline) XXX_Unmarshal

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

type MsgSetOfflineResponse

type MsgSetOfflineResponse struct {
}

MsgSetOfflineResponse defines the Msg/SetOffline response type.

func (*MsgSetOfflineResponse) Descriptor

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

func (*MsgSetOfflineResponse) Marshal

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

func (*MsgSetOfflineResponse) MarshalTo

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

func (*MsgSetOfflineResponse) MarshalToSizedBuffer

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

func (*MsgSetOfflineResponse) ProtoMessage

func (*MsgSetOfflineResponse) ProtoMessage()

func (*MsgSetOfflineResponse) Reset

func (m *MsgSetOfflineResponse) Reset()

func (*MsgSetOfflineResponse) Size

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

func (*MsgSetOfflineResponse) String

func (m *MsgSetOfflineResponse) String() string

func (*MsgSetOfflineResponse) Unmarshal

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

func (*MsgSetOfflineResponse) XXX_DiscardUnknown

func (m *MsgSetOfflineResponse) XXX_DiscardUnknown()

func (*MsgSetOfflineResponse) XXX_Marshal

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

func (*MsgSetOfflineResponse) XXX_Merge

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

func (*MsgSetOfflineResponse) XXX_Size

func (m *MsgSetOfflineResponse) XXX_Size() int

func (*MsgSetOfflineResponse) XXX_Unmarshal

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

type MsgSetOnline

type MsgSetOnline struct {
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
}

MsgSetOnline defines a SDK message for turning on a validator into the blockchain consensus.

func NewMsgSetOnline added in v0.0.8

func NewMsgSetOnline(operatorAddr sdk.ValAddress) *MsgSetOnline

NewMsgSetOnline creates a new instance of MsgSetOnline.

func (*MsgSetOnline) Descriptor

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

func (*MsgSetOnline) GetSignBytes added in v0.0.8

func (msg *MsgSetOnline) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgSetOnline) GetSigners added in v0.0.8

func (msg *MsgSetOnline) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgSetOnline) Marshal

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

func (*MsgSetOnline) MarshalTo

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

func (*MsgSetOnline) MarshalToSizedBuffer

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

func (*MsgSetOnline) ProtoMessage

func (*MsgSetOnline) ProtoMessage()

func (*MsgSetOnline) Reset

func (m *MsgSetOnline) Reset()

func (*MsgSetOnline) Route added in v0.0.8

func (msg *MsgSetOnline) Route() string

Route should return the name of the module.

func (*MsgSetOnline) Size

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

func (*MsgSetOnline) String

func (m *MsgSetOnline) String() string

func (*MsgSetOnline) Type added in v0.0.8

func (msg *MsgSetOnline) Type() string

Type should return the action.

func (*MsgSetOnline) Unmarshal

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

func (*MsgSetOnline) ValidateBasic added in v0.0.8

func (msg *MsgSetOnline) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgSetOnline) XXX_DiscardUnknown

func (m *MsgSetOnline) XXX_DiscardUnknown()

func (*MsgSetOnline) XXX_Marshal

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

func (*MsgSetOnline) XXX_Merge

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

func (*MsgSetOnline) XXX_Size

func (m *MsgSetOnline) XXX_Size() int

func (*MsgSetOnline) XXX_Unmarshal

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

type MsgSetOnlineResponse

type MsgSetOnlineResponse struct {
}

MsgSetOnlineResponse defines the Msg/SetOnline response type.

func (*MsgSetOnlineResponse) Descriptor

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

func (*MsgSetOnlineResponse) Marshal

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

func (*MsgSetOnlineResponse) MarshalTo

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

func (*MsgSetOnlineResponse) MarshalToSizedBuffer

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

func (*MsgSetOnlineResponse) ProtoMessage

func (*MsgSetOnlineResponse) ProtoMessage()

func (*MsgSetOnlineResponse) Reset

func (m *MsgSetOnlineResponse) Reset()

func (*MsgSetOnlineResponse) Size

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

func (*MsgSetOnlineResponse) String

func (m *MsgSetOnlineResponse) String() string

func (*MsgSetOnlineResponse) Unmarshal

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

func (*MsgSetOnlineResponse) XXX_DiscardUnknown

func (m *MsgSetOnlineResponse) XXX_DiscardUnknown()

func (*MsgSetOnlineResponse) XXX_Marshal

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

func (*MsgSetOnlineResponse) XXX_Merge

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

func (*MsgSetOnlineResponse) XXX_Size

func (m *MsgSetOnlineResponse) XXX_Size() int

func (*MsgSetOnlineResponse) XXX_Unmarshal

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

type MsgUndelegate added in v0.0.8

type MsgUndelegate struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// coin defines amount of the coin to undelegate.
	Coin types1.Coin `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin"`
}

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

func NewMsgUndelegate added in v0.0.8

func NewMsgUndelegate(
	delegatorAddr sdk.AccAddress,
	validatorAddr sdk.ValAddress,
	coin sdk.Coin,
) *MsgUndelegate

NewMsgUndelegate creates a new instance of MsgUndelegate.

func (*MsgUndelegate) Descriptor added in v0.0.8

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

func (*MsgUndelegate) GetSignBytes added in v0.0.8

func (msg *MsgUndelegate) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgUndelegate) GetSigners added in v0.0.8

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

GetSigners defines whose signature is required.

func (*MsgUndelegate) Marshal added in v0.0.8

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

func (*MsgUndelegate) MarshalTo added in v0.0.8

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

func (*MsgUndelegate) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgUndelegate) ProtoMessage added in v0.0.8

func (*MsgUndelegate) ProtoMessage()

func (*MsgUndelegate) Reset added in v0.0.8

func (m *MsgUndelegate) Reset()

func (*MsgUndelegate) Route added in v0.0.8

func (msg *MsgUndelegate) Route() string

Route should return the name of the module.

func (*MsgUndelegate) Size added in v0.0.8

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

func (*MsgUndelegate) String added in v0.0.8

func (m *MsgUndelegate) String() string

func (*MsgUndelegate) Type added in v0.0.8

func (msg *MsgUndelegate) Type() string

Type should return the action.

func (*MsgUndelegate) Unmarshal added in v0.0.8

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

func (*MsgUndelegate) ValidateBasic added in v0.0.8

func (msg *MsgUndelegate) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgUndelegate) XXX_DiscardUnknown added in v0.0.8

func (m *MsgUndelegate) XXX_DiscardUnknown()

func (*MsgUndelegate) XXX_Marshal added in v0.0.8

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

func (*MsgUndelegate) XXX_Merge added in v0.0.8

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

func (*MsgUndelegate) XXX_Size added in v0.0.8

func (m *MsgUndelegate) XXX_Size() int

func (*MsgUndelegate) XXX_Unmarshal added in v0.0.8

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

type MsgUndelegateNFT added in v0.0.8

type MsgUndelegateNFT struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// token_id defines the NFT token ID.
	TokenID string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// sub_token_ids defines list of NFT sub-token IDs.
	SubTokenIDs []uint32 `protobuf:"varint,4,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"`
}

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

func NewMsgUndelegateNFT added in v0.0.8

func NewMsgUndelegateNFT(
	delegatorAddr sdk.AccAddress,
	validatorAddr sdk.ValAddress,
	tokenID string,
	subTokenIDs []uint32,
) *MsgUndelegateNFT

NewMsgUndelegateNFT creates a new instance of MsgUndelegateNFT.

func (*MsgUndelegateNFT) Descriptor added in v0.0.8

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

func (*MsgUndelegateNFT) GetSignBytes added in v0.0.8

func (msg *MsgUndelegateNFT) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (*MsgUndelegateNFT) GetSigners added in v0.0.8

func (msg *MsgUndelegateNFT) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (*MsgUndelegateNFT) Marshal added in v0.0.8

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

func (*MsgUndelegateNFT) MarshalTo added in v0.0.8

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

func (*MsgUndelegateNFT) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgUndelegateNFT) ProtoMessage added in v0.0.8

func (*MsgUndelegateNFT) ProtoMessage()

func (*MsgUndelegateNFT) Reset added in v0.0.8

func (m *MsgUndelegateNFT) Reset()

func (*MsgUndelegateNFT) Route added in v0.0.8

func (msg *MsgUndelegateNFT) Route() string

Route should return the name of the module.

func (*MsgUndelegateNFT) Size added in v0.0.8

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

func (*MsgUndelegateNFT) String added in v0.0.8

func (m *MsgUndelegateNFT) String() string

func (*MsgUndelegateNFT) Type added in v0.0.8

func (msg *MsgUndelegateNFT) Type() string

Type should return the action.

func (*MsgUndelegateNFT) Unmarshal added in v0.0.8

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

func (*MsgUndelegateNFT) ValidateBasic added in v0.0.8

func (msg *MsgUndelegateNFT) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgUndelegateNFT) XXX_DiscardUnknown added in v0.0.8

func (m *MsgUndelegateNFT) XXX_DiscardUnknown()

func (*MsgUndelegateNFT) XXX_Marshal added in v0.0.8

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

func (*MsgUndelegateNFT) XXX_Merge added in v0.0.8

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

func (*MsgUndelegateNFT) XXX_Size added in v0.0.8

func (m *MsgUndelegateNFT) XXX_Size() int

func (*MsgUndelegateNFT) XXX_Unmarshal added in v0.0.8

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

type MsgUndelegateNFTResponse added in v0.0.8

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

MsgUndelegateNFTResponse defines the Msg/UndelegateNFT response type.

func (*MsgUndelegateNFTResponse) Descriptor added in v0.0.8

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

func (*MsgUndelegateNFTResponse) GetCompletionTime added in v0.0.8

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

func (*MsgUndelegateNFTResponse) Marshal added in v0.0.8

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

func (*MsgUndelegateNFTResponse) MarshalTo added in v0.0.8

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

func (*MsgUndelegateNFTResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgUndelegateNFTResponse) ProtoMessage added in v0.0.8

func (*MsgUndelegateNFTResponse) ProtoMessage()

func (*MsgUndelegateNFTResponse) Reset added in v0.0.8

func (m *MsgUndelegateNFTResponse) Reset()

func (*MsgUndelegateNFTResponse) Size added in v0.0.8

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

func (*MsgUndelegateNFTResponse) String added in v0.0.8

func (m *MsgUndelegateNFTResponse) String() string

func (*MsgUndelegateNFTResponse) Unmarshal added in v0.0.8

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

func (*MsgUndelegateNFTResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgUndelegateNFTResponse) XXX_DiscardUnknown()

func (*MsgUndelegateNFTResponse) XXX_Marshal added in v0.0.8

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

func (*MsgUndelegateNFTResponse) XXX_Merge added in v0.0.8

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

func (*MsgUndelegateNFTResponse) XXX_Size added in v0.0.8

func (m *MsgUndelegateNFTResponse) XXX_Size() int

func (*MsgUndelegateNFTResponse) XXX_Unmarshal added in v0.0.8

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

type MsgUndelegateResponse added in v0.0.8

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

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

func (*MsgUndelegateResponse) GetCompletionTime added in v0.0.8

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

func (*MsgUndelegateResponse) Marshal added in v0.0.8

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

func (*MsgUndelegateResponse) MarshalTo added in v0.0.8

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

func (*MsgUndelegateResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgUndelegateResponse) ProtoMessage added in v0.0.8

func (*MsgUndelegateResponse) ProtoMessage()

func (*MsgUndelegateResponse) Reset added in v0.0.8

func (m *MsgUndelegateResponse) Reset()

func (*MsgUndelegateResponse) Size added in v0.0.8

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

func (*MsgUndelegateResponse) String added in v0.0.8

func (m *MsgUndelegateResponse) String() string

func (*MsgUndelegateResponse) Unmarshal added in v0.0.8

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

func (*MsgUndelegateResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgUndelegateResponse) XXX_DiscardUnknown()

func (*MsgUndelegateResponse) XXX_Marshal added in v0.0.8

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

func (*MsgUndelegateResponse) XXX_Merge added in v0.0.8

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

func (*MsgUndelegateResponse) XXX_Size added in v0.0.8

func (m *MsgUndelegateResponse) XXX_Size() int

func (*MsgUndelegateResponse) XXX_Unmarshal added in v0.0.8

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

type MultiStakingHooks added in v0.0.8

type MultiStakingHooks []StakingHooks

func NewMultiStakingHooks added in v0.0.8

func NewMultiStakingHooks(hooks ...StakingHooks) MultiStakingHooks

func (MultiStakingHooks) AfterDelegationModified added in v0.0.8

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

func (MultiStakingHooks) AfterValidatorBeginUnbonding added in v0.0.8

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

func (MultiStakingHooks) AfterValidatorBonded added in v0.0.8

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

func (MultiStakingHooks) AfterValidatorCreated added in v0.0.8

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

func (MultiStakingHooks) AfterValidatorRemoved added in v0.0.8

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

func (MultiStakingHooks) BeforeDelegationCreated added in v0.0.8

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

func (MultiStakingHooks) BeforeDelegationRemoved added in v0.0.8

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

func (MultiStakingHooks) BeforeDelegationSharesModified added in v0.0.8

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

func (MultiStakingHooks) BeforeValidatorModified added in v0.0.8

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

func (MultiStakingHooks) BeforeValidatorSlashed added in v0.0.8

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

type MultisigKeeper added in v0.0.8

type MultisigKeeper interface {
	GetWallet(ctx sdk.Context, address string) (wallet types.Wallet, err error)
	SetWallet(ctx sdk.Context, wallet types.Wallet)
}

type NFTKeeper added in v0.0.8

type NFTKeeper interface {
	GetToken(ctx sdk.Context, id string) (token nftypes.Token, found bool)
	GetSubToken(ctx sdk.Context, id string, index uint32) (subToken nftypes.SubToken, found bool)
	SetSubToken(ctx sdk.Context, id string, subToken nftypes.SubToken)
	TransferSubTokens(ctx sdk.Context, sender, recipient sdk.AccAddress, tokenID string, subTokenIDs []uint32) error
}

type Params

type Params struct {
	// max_validators defines the maximum number of validators can be bounded at the same time.
	MaxValidators uint32 `protobuf:"varint,1,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty"`
	// max_delegations defines the maximum number of delegations per validator at be bounded at the same time.
	MaxDelegations uint32 `protobuf:"varint,2,opt,name=max_delegations,json=maxDelegations,proto3" json:"max_delegations,omitempty"`
	// max_entries defines the max entries for single undelegation/redelegation (per pair/trio).
	MaxEntries uint32 `protobuf:"varint,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
	// historical_entries defines the number of historical entries to persist.
	HistoricalEntries uint32 `protobuf:"varint,4,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"`
	// redelegation_time defines the time duration of redelegation a stake (moving to the other validator).
	RedelegationTime time.Duration `protobuf:"bytes,5,opt,name=redelegation_time,json=redelegationTime,proto3,stdduration" json:"redelegation_time"`
	// undelegation_time defines the time duration of undelegation a stake (unbonding from the validator).
	UndelegationTime time.Duration `protobuf:"bytes,6,opt,name=undelegation_time,json=undelegationTime,proto3,stdduration" json:"undelegation_time"`
	// base_denom is base denom on the basis of which power is calculated
	BaseDenom string `protobuf:"bytes,7,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
	// width of sliding window for downtime slashing
	SignedBlocksWindow int64 `protobuf:"varint,10,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
	// minimum blocks signed per window
	MinSignedPerWindow github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */
	// downtime jail duration
	DowntimeJailDuration time.Duration `` /* 126-byte string literal not displayed */
	// fraction of power slashed in case of double sign
	SlashFractionDoubleSign github_com_cosmos_cosmos_sdk_types.Dec `` /* 175-byte string literal not displayed */
	// fraction of power slashed for downtime
	SlashFractionDowntime github_com_cosmos_cosmos_sdk_types.Dec `` /* 167-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams added in v0.0.8

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams added in v0.0.8

func NewParams(
	maxValidators uint32,
	maxDelegations uint32,
	maxEntries uint32,
	historicalEntries uint32,
	redelegationTime time.Duration,
	undelegationTime time.Duration,
	baseDenom string,
	signedBlockWindow int64,
	minSignedPerWindow sdk.Dec,
	slashFractionDowntime sdk.Dec,
	slashFractionDoubleSign sdk.Dec,
) Params

NewParams creates a new Params instance.

func (*Params) Descriptor

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

func (*Params) Equal

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

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 added in v0.0.8

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

ParamSetPairs returns the parameter set pairs.

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 (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate added in v0.0.8

func (p Params) Validate() (err error)

Validate validates the 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 Pool added in v0.0.8

type Pool struct {
	// bonded defines complete list of coins delegated and currently bonded.
	Bonded github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=bonded,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"bonded"`
	// not_bonded defines complete list of coins delegated but not bonded (redelegating or undelegating).
	NotBonded github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

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

func NewPool added in v0.0.8

func NewPool(bonded sdk.Coins, notBonded sdk.Coins) Pool

NewPool creates a new Pool instance used for queries.

func (*Pool) Descriptor added in v0.0.8

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

func (*Pool) Marshal added in v0.0.8

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

func (*Pool) MarshalTo added in v0.0.8

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

func (*Pool) MarshalToSizedBuffer added in v0.0.8

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

func (*Pool) ProtoMessage added in v0.0.8

func (*Pool) ProtoMessage()

func (*Pool) Reset added in v0.0.8

func (m *Pool) Reset()

func (*Pool) Size added in v0.0.8

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

func (*Pool) String added in v0.0.8

func (m *Pool) String() string

func (*Pool) Unmarshal added in v0.0.8

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

func (*Pool) XXX_DiscardUnknown added in v0.0.8

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal added in v0.0.8

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

func (*Pool) XXX_Merge added in v0.0.8

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

func (*Pool) XXX_Size added in v0.0.8

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal added in v0.0.8

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

type QueryClient added in v0.0.8

type QueryClient interface {
	// Validators queries all validators that match the given status.
	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.
	ValidatorDelegations(ctx context.Context, in *QueryValidatorDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationsResponse, error)
	// ValidatorRedelegations queries redelegations of a validator.
	ValidatorRedelegations(ctx context.Context, in *QueryValidatorRedelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorRedelegationsResponse, error)
	// ValidatorUndelegations queries undelegations of a validator.
	ValidatorUndelegations(ctx context.Context, in *QueryValidatorUndelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUndelegationsResponse, error)
	// Delegations queries delegations info for given validator delegator pair.
	Delegations(ctx context.Context, in *QueryDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegationsResponse, error)
	// Redelegations queries redelegations info for given validator delegator pair.
	Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error)
	// Undelegation queries undelegation info for given validator delegator pair.
	Undelegation(ctx context.Context, in *QueryUndelegationRequest, opts ...grpc.CallOption) (*QueryUndelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorRedelegations queries all redelegations of a given delegator address.
	DelegatorRedelegations(ctx context.Context, in *QueryDelegatorRedelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorRedelegationsResponse, error)
	// DelegatorUndelegations queries all undelegations of a given delegator address.
	DelegatorUndelegations(ctx context.Context, in *QueryDelegatorUndelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUndelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator address.
	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)
	// 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)
	// CustomCoinPrice queries the custom coin price for delegation.
	CustomCoinPrice(ctx context.Context, in *QueryCustomCoinPriceRequest, opts ...grpc.CallOption) (*QueryCustomCoinPriceResponse, error)
	// TotalCustomCoin queries the total amount bonded custom coins.
	TotalCustomCoin(ctx context.Context, in *QueryTotalCustomCoinRequest, opts ...grpc.CallOption) (*QueryTotalCustomCoinResponse, error)
	// Params queries the module params.
	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.0.8

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCustomCoinPriceRequest added in v0.1.0

type QueryCustomCoinPriceRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryCustomCoinPriceRequest) Descriptor added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) GetDenom added in v0.1.0

func (m *QueryCustomCoinPriceRequest) GetDenom() string

func (*QueryCustomCoinPriceRequest) Marshal added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) MarshalTo added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) ProtoMessage added in v0.1.0

func (*QueryCustomCoinPriceRequest) ProtoMessage()

func (*QueryCustomCoinPriceRequest) Reset added in v0.1.0

func (m *QueryCustomCoinPriceRequest) Reset()

func (*QueryCustomCoinPriceRequest) Size added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) String added in v0.1.0

func (m *QueryCustomCoinPriceRequest) String() string

func (*QueryCustomCoinPriceRequest) Unmarshal added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) XXX_DiscardUnknown added in v0.1.0

func (m *QueryCustomCoinPriceRequest) XXX_DiscardUnknown()

func (*QueryCustomCoinPriceRequest) XXX_Marshal added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) XXX_Merge added in v0.1.0

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

func (*QueryCustomCoinPriceRequest) XXX_Size added in v0.1.0

func (m *QueryCustomCoinPriceRequest) XXX_Size() int

func (*QueryCustomCoinPriceRequest) XXX_Unmarshal added in v0.1.0

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

type QueryCustomCoinPriceResponse added in v0.1.0

type QueryCustomCoinPriceResponse struct {
	Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"`
}

func (*QueryCustomCoinPriceResponse) Descriptor added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) Marshal added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) MarshalTo added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) ProtoMessage added in v0.1.0

func (*QueryCustomCoinPriceResponse) ProtoMessage()

func (*QueryCustomCoinPriceResponse) Reset added in v0.1.0

func (m *QueryCustomCoinPriceResponse) Reset()

func (*QueryCustomCoinPriceResponse) Size added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) String added in v0.1.0

func (*QueryCustomCoinPriceResponse) Unmarshal added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) XXX_DiscardUnknown added in v0.1.0

func (m *QueryCustomCoinPriceResponse) XXX_DiscardUnknown()

func (*QueryCustomCoinPriceResponse) XXX_Marshal added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) XXX_Merge added in v0.1.0

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

func (*QueryCustomCoinPriceResponse) XXX_Size added in v0.1.0

func (m *QueryCustomCoinPriceResponse) XXX_Size() int

func (*QueryCustomCoinPriceResponse) XXX_Unmarshal added in v0.1.0

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

type QueryDelegationsRequest added in v0.0.8

type QueryDelegationsRequest struct {
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// delegator defines the delegator address to query for.
	Delegator string `protobuf:"bytes,2,opt,name=delegator,proto3" json:"delegator,omitempty"`
}

QueryDelegationsRequest is request type for the Query/Delegations RPC method.

func (*QueryDelegationsRequest) Descriptor added in v0.0.8

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

func (*QueryDelegationsRequest) Marshal added in v0.0.8

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

func (*QueryDelegationsRequest) MarshalTo added in v0.0.8

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

func (*QueryDelegationsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryDelegationsRequest) ProtoMessage()

func (*QueryDelegationsRequest) Reset added in v0.0.8

func (m *QueryDelegationsRequest) Reset()

func (*QueryDelegationsRequest) Size added in v0.0.8

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

func (*QueryDelegationsRequest) String added in v0.0.8

func (m *QueryDelegationsRequest) String() string

func (*QueryDelegationsRequest) Unmarshal added in v0.0.8

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

func (*QueryDelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegationsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryDelegationsRequest) XXX_Merge added in v0.0.8

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

func (*QueryDelegationsRequest) XXX_Size added in v0.0.8

func (m *QueryDelegationsRequest) XXX_Size() int

func (*QueryDelegationsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryDelegationsResponse added in v0.0.8

type QueryDelegationsResponse struct {
	// delegations defines the delegations list.
	Delegations []Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
}

QueryDelegationsResponse is response type for the Query/Delegations RPC method.

func (*QueryDelegationsResponse) Descriptor added in v0.0.8

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

func (*QueryDelegationsResponse) GetDelegations added in v0.0.8

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

func (*QueryDelegationsResponse) Marshal added in v0.0.8

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

func (*QueryDelegationsResponse) MarshalTo added in v0.0.8

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

func (*QueryDelegationsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryDelegationsResponse) ProtoMessage()

func (*QueryDelegationsResponse) Reset added in v0.0.8

func (m *QueryDelegationsResponse) Reset()

func (*QueryDelegationsResponse) Size added in v0.0.8

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

func (*QueryDelegationsResponse) String added in v0.0.8

func (m *QueryDelegationsResponse) String() string

func (*QueryDelegationsResponse) Unmarshal added in v0.0.8

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

func (*QueryDelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegationsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryDelegationsResponse) XXX_Merge added in v0.0.8

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

func (*QueryDelegationsResponse) XXX_Size added in v0.0.8

func (m *QueryDelegationsResponse) XXX_Size() int

func (*QueryDelegationsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorDelegationsRequest added in v0.0.8

type QueryDelegatorDelegationsRequest struct {
	// delegator defines the delegator address to query for.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,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.0.8

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

func (*QueryDelegatorDelegationsRequest) Marshal added in v0.0.8

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

func (*QueryDelegatorDelegationsRequest) MarshalTo added in v0.0.8

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

func (*QueryDelegatorDelegationsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorDelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryDelegatorDelegationsRequest) ProtoMessage()

func (*QueryDelegatorDelegationsRequest) Reset added in v0.0.8

func (*QueryDelegatorDelegationsRequest) Size added in v0.0.8

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

func (*QueryDelegatorDelegationsRequest) String added in v0.0.8

func (*QueryDelegatorDelegationsRequest) Unmarshal added in v0.0.8

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

func (*QueryDelegatorDelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorDelegationsRequest) XXX_Merge added in v0.0.8

func (*QueryDelegatorDelegationsRequest) XXX_Size added in v0.0.8

func (m *QueryDelegatorDelegationsRequest) XXX_Size() int

func (*QueryDelegatorDelegationsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorDelegationsResponse added in v0.0.8

type QueryDelegatorDelegationsResponse struct {
	// delegations defines all the delegations' info of a delegator.
	Delegations []Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// 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.0.8

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

func (*QueryDelegatorDelegationsResponse) GetDelegations added in v0.0.8

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

func (*QueryDelegatorDelegationsResponse) GetPagination added in v0.0.8

func (*QueryDelegatorDelegationsResponse) Marshal added in v0.0.8

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

func (*QueryDelegatorDelegationsResponse) MarshalTo added in v0.0.8

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

func (*QueryDelegatorDelegationsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorDelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryDelegatorDelegationsResponse) ProtoMessage()

func (*QueryDelegatorDelegationsResponse) Reset added in v0.0.8

func (*QueryDelegatorDelegationsResponse) Size added in v0.0.8

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

func (*QueryDelegatorDelegationsResponse) String added in v0.0.8

func (*QueryDelegatorDelegationsResponse) Unmarshal added in v0.0.8

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

func (*QueryDelegatorDelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorDelegationsResponse) XXX_Merge added in v0.0.8

func (*QueryDelegatorDelegationsResponse) XXX_Size added in v0.0.8

func (m *QueryDelegatorDelegationsResponse) XXX_Size() int

func (*QueryDelegatorDelegationsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorParams added in v0.0.8

type QueryDelegatorParams struct {
	DelegatorAddr sdk.AccAddress
}

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

func NewQueryDelegatorParams added in v0.0.8

func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams

type QueryDelegatorRedelegationsRequest added in v0.0.8

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

QueryDelegatorRedelegationsRequest is request type for the Query/DelegatorRedelegations RPC method.

func (*QueryDelegatorRedelegationsRequest) Descriptor added in v0.0.8

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

func (*QueryDelegatorRedelegationsRequest) Marshal added in v0.0.8

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

func (*QueryDelegatorRedelegationsRequest) MarshalTo added in v0.0.8

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

func (*QueryDelegatorRedelegationsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorRedelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryDelegatorRedelegationsRequest) ProtoMessage()

func (*QueryDelegatorRedelegationsRequest) Reset added in v0.0.8

func (*QueryDelegatorRedelegationsRequest) Size added in v0.0.8

func (*QueryDelegatorRedelegationsRequest) String added in v0.0.8

func (*QueryDelegatorRedelegationsRequest) Unmarshal added in v0.0.8

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

func (*QueryDelegatorRedelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorRedelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorRedelegationsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorRedelegationsRequest) XXX_Merge added in v0.0.8

func (*QueryDelegatorRedelegationsRequest) XXX_Size added in v0.0.8

func (*QueryDelegatorRedelegationsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorRedelegationsResponse added in v0.0.8

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

QueryDelegatorRedelegationsResponse is response type for the Query/DelegatorRedelegations RPC method.

func (*QueryDelegatorRedelegationsResponse) Descriptor added in v0.0.8

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

func (*QueryDelegatorRedelegationsResponse) GetPagination added in v0.0.8

func (*QueryDelegatorRedelegationsResponse) GetRedelegations added in v0.0.8

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

func (*QueryDelegatorRedelegationsResponse) Marshal added in v0.0.8

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

func (*QueryDelegatorRedelegationsResponse) MarshalTo added in v0.0.8

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

func (*QueryDelegatorRedelegationsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorRedelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryDelegatorRedelegationsResponse) ProtoMessage()

func (*QueryDelegatorRedelegationsResponse) Reset added in v0.0.8

func (*QueryDelegatorRedelegationsResponse) Size added in v0.0.8

func (*QueryDelegatorRedelegationsResponse) String added in v0.0.8

func (*QueryDelegatorRedelegationsResponse) Unmarshal added in v0.0.8

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

func (*QueryDelegatorRedelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorRedelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorRedelegationsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorRedelegationsResponse) XXX_Merge added in v0.0.8

func (*QueryDelegatorRedelegationsResponse) XXX_Size added in v0.0.8

func (*QueryDelegatorRedelegationsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorUndelegationsRequest added in v0.0.8

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

QueryDelegatorUndelegationsRequest is request type for the Query/DelegatorUndelegations RPC method.

func (*QueryDelegatorUndelegationsRequest) Descriptor added in v0.0.8

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

func (*QueryDelegatorUndelegationsRequest) Marshal added in v0.0.8

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

func (*QueryDelegatorUndelegationsRequest) MarshalTo added in v0.0.8

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

func (*QueryDelegatorUndelegationsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorUndelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryDelegatorUndelegationsRequest) ProtoMessage()

func (*QueryDelegatorUndelegationsRequest) Reset added in v0.0.8

func (*QueryDelegatorUndelegationsRequest) Size added in v0.0.8

func (*QueryDelegatorUndelegationsRequest) String added in v0.0.8

func (*QueryDelegatorUndelegationsRequest) Unmarshal added in v0.0.8

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

func (*QueryDelegatorUndelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorUndelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorUndelegationsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorUndelegationsRequest) XXX_Merge added in v0.0.8

func (*QueryDelegatorUndelegationsRequest) XXX_Size added in v0.0.8

func (*QueryDelegatorUndelegationsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorUndelegationsResponse added in v0.0.8

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

QueryDelegatorUndelegationsResponse is response type for the Query/DelegatorUndelegations RPC method.

func (*QueryDelegatorUndelegationsResponse) Descriptor added in v0.0.8

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

func (*QueryDelegatorUndelegationsResponse) GetPagination added in v0.0.8

func (*QueryDelegatorUndelegationsResponse) GetUndelegations added in v0.0.8

func (m *QueryDelegatorUndelegationsResponse) GetUndelegations() []Undelegation

func (*QueryDelegatorUndelegationsResponse) Marshal added in v0.0.8

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

func (*QueryDelegatorUndelegationsResponse) MarshalTo added in v0.0.8

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

func (*QueryDelegatorUndelegationsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorUndelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryDelegatorUndelegationsResponse) ProtoMessage()

func (*QueryDelegatorUndelegationsResponse) Reset added in v0.0.8

func (*QueryDelegatorUndelegationsResponse) Size added in v0.0.8

func (*QueryDelegatorUndelegationsResponse) String added in v0.0.8

func (*QueryDelegatorUndelegationsResponse) Unmarshal added in v0.0.8

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

func (*QueryDelegatorUndelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorUndelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorUndelegationsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorUndelegationsResponse) XXX_Merge added in v0.0.8

func (*QueryDelegatorUndelegationsResponse) XXX_Size added in v0.0.8

func (*QueryDelegatorUndelegationsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorValidatorRequest added in v0.0.8

type QueryDelegatorValidatorRequest struct {
	// delegator defines the delegator address to query for.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
}

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

func (*QueryDelegatorValidatorRequest) Descriptor added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) MarshalTo added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) ProtoMessage added in v0.0.8

func (*QueryDelegatorValidatorRequest) ProtoMessage()

func (*QueryDelegatorValidatorRequest) Reset added in v0.0.8

func (m *QueryDelegatorValidatorRequest) Reset()

func (*QueryDelegatorValidatorRequest) Size added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) String added in v0.0.8

func (*QueryDelegatorValidatorRequest) Unmarshal added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorValidatorRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorRequest) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) XXX_Merge added in v0.0.8

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

func (*QueryDelegatorValidatorRequest) XXX_Size added in v0.0.8

func (m *QueryDelegatorValidatorRequest) XXX_Size() int

func (*QueryDelegatorValidatorRequest) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorValidatorResponse added in v0.0.8

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

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

func (*QueryDelegatorValidatorResponse) GetValidator added in v0.0.8

func (m *QueryDelegatorValidatorResponse) GetValidator() Validator

func (*QueryDelegatorValidatorResponse) Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorResponse) MarshalTo added in v0.0.8

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

func (*QueryDelegatorValidatorResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorValidatorResponse) ProtoMessage added in v0.0.8

func (*QueryDelegatorValidatorResponse) ProtoMessage()

func (*QueryDelegatorValidatorResponse) Reset added in v0.0.8

func (*QueryDelegatorValidatorResponse) Size added in v0.0.8

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

func (*QueryDelegatorValidatorResponse) String added in v0.0.8

func (*QueryDelegatorValidatorResponse) Unmarshal added in v0.0.8

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

func (*QueryDelegatorValidatorResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorValidatorResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorResponse) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorResponse) XXX_Merge added in v0.0.8

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

func (*QueryDelegatorValidatorResponse) XXX_Size added in v0.0.8

func (m *QueryDelegatorValidatorResponse) XXX_Size() int

func (*QueryDelegatorValidatorResponse) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorValidatorsRequest added in v0.0.8

type QueryDelegatorValidatorsRequest struct {
	// delegator defines the delegator address to query for.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,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.0.8

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

func (*QueryDelegatorValidatorsRequest) Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorsRequest) MarshalTo added in v0.0.8

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

func (*QueryDelegatorValidatorsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorValidatorsRequest) ProtoMessage added in v0.0.8

func (*QueryDelegatorValidatorsRequest) ProtoMessage()

func (*QueryDelegatorValidatorsRequest) Reset added in v0.0.8

func (*QueryDelegatorValidatorsRequest) Size added in v0.0.8

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

func (*QueryDelegatorValidatorsRequest) String added in v0.0.8

func (*QueryDelegatorValidatorsRequest) Unmarshal added in v0.0.8

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

func (*QueryDelegatorValidatorsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorsRequest) XXX_Merge added in v0.0.8

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

func (*QueryDelegatorValidatorsRequest) XXX_Size added in v0.0.8

func (m *QueryDelegatorValidatorsRequest) XXX_Size() int

func (*QueryDelegatorValidatorsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryDelegatorValidatorsResponse added in v0.0.8

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

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

func (*QueryDelegatorValidatorsResponse) GetPagination added in v0.0.8

func (*QueryDelegatorValidatorsResponse) GetValidators added in v0.0.8

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

func (*QueryDelegatorValidatorsResponse) Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorsResponse) MarshalTo added in v0.0.8

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

func (*QueryDelegatorValidatorsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryDelegatorValidatorsResponse) ProtoMessage added in v0.0.8

func (*QueryDelegatorValidatorsResponse) ProtoMessage()

func (*QueryDelegatorValidatorsResponse) Reset added in v0.0.8

func (*QueryDelegatorValidatorsResponse) Size added in v0.0.8

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

func (*QueryDelegatorValidatorsResponse) String added in v0.0.8

func (*QueryDelegatorValidatorsResponse) Unmarshal added in v0.0.8

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

func (*QueryDelegatorValidatorsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryDelegatorValidatorsResponse) XXX_Merge added in v0.0.8

func (*QueryDelegatorValidatorsResponse) XXX_Size added in v0.0.8

func (m *QueryDelegatorValidatorsResponse) XXX_Size() int

func (*QueryDelegatorValidatorsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryHistoricalInfoRequest added in v0.0.8

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

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

func (*QueryHistoricalInfoRequest) GetHeight added in v0.0.8

func (m *QueryHistoricalInfoRequest) GetHeight() int64

func (*QueryHistoricalInfoRequest) Marshal added in v0.0.8

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

func (*QueryHistoricalInfoRequest) MarshalTo added in v0.0.8

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

func (*QueryHistoricalInfoRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryHistoricalInfoRequest) ProtoMessage added in v0.0.8

func (*QueryHistoricalInfoRequest) ProtoMessage()

func (*QueryHistoricalInfoRequest) Reset added in v0.0.8

func (m *QueryHistoricalInfoRequest) Reset()

func (*QueryHistoricalInfoRequest) Size added in v0.0.8

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

func (*QueryHistoricalInfoRequest) String added in v0.0.8

func (m *QueryHistoricalInfoRequest) String() string

func (*QueryHistoricalInfoRequest) Unmarshal added in v0.0.8

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

func (*QueryHistoricalInfoRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()

func (*QueryHistoricalInfoRequest) XXX_Marshal added in v0.0.8

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

func (*QueryHistoricalInfoRequest) XXX_Merge added in v0.0.8

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

func (*QueryHistoricalInfoRequest) XXX_Size added in v0.0.8

func (m *QueryHistoricalInfoRequest) XXX_Size() int

func (*QueryHistoricalInfoRequest) XXX_Unmarshal added in v0.0.8

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

type QueryHistoricalInfoResponse added in v0.0.8

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

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

func (*QueryHistoricalInfoResponse) GetHist added in v0.0.8

func (*QueryHistoricalInfoResponse) Marshal added in v0.0.8

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

func (*QueryHistoricalInfoResponse) MarshalTo added in v0.0.8

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

func (*QueryHistoricalInfoResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryHistoricalInfoResponse) ProtoMessage added in v0.0.8

func (*QueryHistoricalInfoResponse) ProtoMessage()

func (*QueryHistoricalInfoResponse) Reset added in v0.0.8

func (m *QueryHistoricalInfoResponse) Reset()

func (*QueryHistoricalInfoResponse) Size added in v0.0.8

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

func (*QueryHistoricalInfoResponse) String added in v0.0.8

func (m *QueryHistoricalInfoResponse) String() string

func (*QueryHistoricalInfoResponse) Unmarshal added in v0.0.8

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

func (*QueryHistoricalInfoResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()

func (*QueryHistoricalInfoResponse) XXX_Marshal added in v0.0.8

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

func (*QueryHistoricalInfoResponse) XXX_Merge added in v0.0.8

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

func (*QueryHistoricalInfoResponse) XXX_Size added in v0.0.8

func (m *QueryHistoricalInfoResponse) XXX_Size() int

func (*QueryHistoricalInfoResponse) XXX_Unmarshal added in v0.0.8

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

type QueryParamsRequest added in v0.0.8

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor added in v0.0.8

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

func (*QueryParamsRequest) Marshal added in v0.0.8

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

func (*QueryParamsRequest) MarshalTo added in v0.0.8

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryParamsRequest) ProtoMessage added in v0.0.8

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.0.8

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.0.8

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

func (*QueryParamsRequest) String added in v0.0.8

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.0.8

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryParamsRequest) XXX_Merge added in v0.0.8

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

func (*QueryParamsRequest) XXX_Size added in v0.0.8

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryParamsResponse added in v0.0.8

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

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

func (*QueryParamsResponse) GetParams added in v0.0.8

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.0.8

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

func (*QueryParamsResponse) MarshalTo added in v0.0.8

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryParamsResponse) ProtoMessage added in v0.0.8

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.0.8

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.0.8

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

func (*QueryParamsResponse) String added in v0.0.8

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.0.8

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryParamsResponse) XXX_Merge added in v0.0.8

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

func (*QueryParamsResponse) XXX_Size added in v0.0.8

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryPoolRequest added in v0.0.8

type QueryPoolRequest struct {
}

QueryPoolRequest is request type for the Query/Pool RPC method.

func (*QueryPoolRequest) Descriptor added in v0.0.8

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

func (*QueryPoolRequest) Marshal added in v0.0.8

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

func (*QueryPoolRequest) MarshalTo added in v0.0.8

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

func (*QueryPoolRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryPoolRequest) ProtoMessage added in v0.0.8

func (*QueryPoolRequest) ProtoMessage()

func (*QueryPoolRequest) Reset added in v0.0.8

func (m *QueryPoolRequest) Reset()

func (*QueryPoolRequest) Size added in v0.0.8

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

func (*QueryPoolRequest) String added in v0.0.8

func (m *QueryPoolRequest) String() string

func (*QueryPoolRequest) Unmarshal added in v0.0.8

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

func (*QueryPoolRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryPoolRequest) XXX_DiscardUnknown()

func (*QueryPoolRequest) XXX_Marshal added in v0.0.8

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

func (*QueryPoolRequest) XXX_Merge added in v0.0.8

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

func (*QueryPoolRequest) XXX_Size added in v0.0.8

func (m *QueryPoolRequest) XXX_Size() int

func (*QueryPoolRequest) XXX_Unmarshal added in v0.0.8

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

type QueryPoolResponse added in v0.0.8

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

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

func (*QueryPoolResponse) GetPool added in v0.0.8

func (m *QueryPoolResponse) GetPool() Pool

func (*QueryPoolResponse) Marshal added in v0.0.8

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

func (*QueryPoolResponse) MarshalTo added in v0.0.8

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

func (*QueryPoolResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryPoolResponse) ProtoMessage added in v0.0.8

func (*QueryPoolResponse) ProtoMessage()

func (*QueryPoolResponse) Reset added in v0.0.8

func (m *QueryPoolResponse) Reset()

func (*QueryPoolResponse) Size added in v0.0.8

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

func (*QueryPoolResponse) String added in v0.0.8

func (m *QueryPoolResponse) String() string

func (*QueryPoolResponse) Unmarshal added in v0.0.8

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

func (*QueryPoolResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryPoolResponse) XXX_DiscardUnknown()

func (*QueryPoolResponse) XXX_Marshal added in v0.0.8

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

func (*QueryPoolResponse) XXX_Merge added in v0.0.8

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

func (*QueryPoolResponse) XXX_Size added in v0.0.8

func (m *QueryPoolResponse) XXX_Size() int

func (*QueryPoolResponse) XXX_Unmarshal added in v0.0.8

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

type QueryRedelegationParams added in v0.0.8

type QueryRedelegationParams struct {
	DelegatorAddr    sdk.AccAddress
	SrcValidatorAddr sdk.ValAddress
	DstValidatorAddr sdk.ValAddress
}

defines the params for the following queries: - 'custom/staking/redelegation'

func NewQueryRedelegationParams added in v0.0.8

func NewQueryRedelegationParams(delegatorAddr sdk.AccAddress, srcValidatorAddr, dstValidatorAddr sdk.ValAddress) QueryRedelegationParams

type QueryRedelegationsRequest added in v0.0.8

type QueryRedelegationsRequest struct {
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// delegator defines the delegator address to query for.
	Delegator string `protobuf:"bytes,2,opt,name=delegator,proto3" json:"delegator,omitempty"`
}

QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.

func (*QueryRedelegationsRequest) Descriptor added in v0.0.8

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

func (*QueryRedelegationsRequest) Marshal added in v0.0.8

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

func (*QueryRedelegationsRequest) MarshalTo added in v0.0.8

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

func (*QueryRedelegationsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryRedelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryRedelegationsRequest) ProtoMessage()

func (*QueryRedelegationsRequest) Reset added in v0.0.8

func (m *QueryRedelegationsRequest) Reset()

func (*QueryRedelegationsRequest) Size added in v0.0.8

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

func (*QueryRedelegationsRequest) String added in v0.0.8

func (m *QueryRedelegationsRequest) String() string

func (*QueryRedelegationsRequest) Unmarshal added in v0.0.8

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

func (*QueryRedelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryRedelegationsRequest) XXX_DiscardUnknown()

func (*QueryRedelegationsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryRedelegationsRequest) XXX_Merge added in v0.0.8

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

func (*QueryRedelegationsRequest) XXX_Size added in v0.0.8

func (m *QueryRedelegationsRequest) XXX_Size() int

func (*QueryRedelegationsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryRedelegationsResponse added in v0.0.8

type QueryRedelegationsResponse struct {
	// redelegations defines the redelegations list for given delegator validator pair.
	Redelegations []Redelegation `protobuf:"bytes,1,rep,name=redelegations,proto3" json:"redelegations"`
}

QueryDelegationsResponse is response type for the Query/Redelegations RPC method.

func (*QueryRedelegationsResponse) Descriptor added in v0.0.8

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

func (*QueryRedelegationsResponse) GetRedelegations added in v0.0.8

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

func (*QueryRedelegationsResponse) Marshal added in v0.0.8

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

func (*QueryRedelegationsResponse) MarshalTo added in v0.0.8

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

func (*QueryRedelegationsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryRedelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryRedelegationsResponse) ProtoMessage()

func (*QueryRedelegationsResponse) Reset added in v0.0.8

func (m *QueryRedelegationsResponse) Reset()

func (*QueryRedelegationsResponse) Size added in v0.0.8

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

func (*QueryRedelegationsResponse) String added in v0.0.8

func (m *QueryRedelegationsResponse) String() string

func (*QueryRedelegationsResponse) Unmarshal added in v0.0.8

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

func (*QueryRedelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryRedelegationsResponse) XXX_DiscardUnknown()

func (*QueryRedelegationsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryRedelegationsResponse) XXX_Merge added in v0.0.8

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

func (*QueryRedelegationsResponse) XXX_Size added in v0.0.8

func (m *QueryRedelegationsResponse) XXX_Size() int

func (*QueryRedelegationsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryServer added in v0.0.8

type QueryServer interface {
	// Validators queries all validators that match the given status.
	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.
	ValidatorDelegations(context.Context, *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
	// ValidatorRedelegations queries redelegations of a validator.
	ValidatorRedelegations(context.Context, *QueryValidatorRedelegationsRequest) (*QueryValidatorRedelegationsResponse, error)
	// ValidatorUndelegations queries undelegations of a validator.
	ValidatorUndelegations(context.Context, *QueryValidatorUndelegationsRequest) (*QueryValidatorUndelegationsResponse, error)
	// Delegations queries delegations info for given validator delegator pair.
	Delegations(context.Context, *QueryDelegationsRequest) (*QueryDelegationsResponse, error)
	// Redelegations queries redelegations info for given validator delegator pair.
	Redelegations(context.Context, *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
	// Undelegation queries undelegation info for given validator delegator pair.
	Undelegation(context.Context, *QueryUndelegationRequest) (*QueryUndelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorRedelegations queries all redelegations of a given delegator address.
	DelegatorRedelegations(context.Context, *QueryDelegatorRedelegationsRequest) (*QueryDelegatorRedelegationsResponse, error)
	// DelegatorUndelegations queries all undelegations of a given delegator address.
	DelegatorUndelegations(context.Context, *QueryDelegatorUndelegationsRequest) (*QueryDelegatorUndelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator address.
	DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorValidator queries validator info for given delegator validator pair.
	DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, 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)
	// CustomCoinPrice queries the custom coin price for delegation.
	CustomCoinPrice(context.Context, *QueryCustomCoinPriceRequest) (*QueryCustomCoinPriceResponse, error)
	// TotalCustomCoin queries the total amount bonded custom coins.
	TotalCustomCoin(context.Context, *QueryTotalCustomCoinRequest) (*QueryTotalCustomCoinResponse, error)
	// Params queries the module params.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalCustomCoinRequest added in v0.1.0

type QueryTotalCustomCoinRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryTotalCustomCoinRequest) Descriptor added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) GetDenom added in v0.1.0

func (m *QueryTotalCustomCoinRequest) GetDenom() string

func (*QueryTotalCustomCoinRequest) Marshal added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) MarshalTo added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) ProtoMessage added in v0.1.0

func (*QueryTotalCustomCoinRequest) ProtoMessage()

func (*QueryTotalCustomCoinRequest) Reset added in v0.1.0

func (m *QueryTotalCustomCoinRequest) Reset()

func (*QueryTotalCustomCoinRequest) Size added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) String added in v0.1.0

func (m *QueryTotalCustomCoinRequest) String() string

func (*QueryTotalCustomCoinRequest) Unmarshal added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) XXX_DiscardUnknown added in v0.1.0

func (m *QueryTotalCustomCoinRequest) XXX_DiscardUnknown()

func (*QueryTotalCustomCoinRequest) XXX_Marshal added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) XXX_Merge added in v0.1.0

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

func (*QueryTotalCustomCoinRequest) XXX_Size added in v0.1.0

func (m *QueryTotalCustomCoinRequest) XXX_Size() int

func (*QueryTotalCustomCoinRequest) XXX_Unmarshal added in v0.1.0

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

type QueryTotalCustomCoinResponse added in v0.1.0

type QueryTotalCustomCoinResponse struct {
	TotalAmount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_amount,json=totalAmount,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount"`
}

func (*QueryTotalCustomCoinResponse) Descriptor added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) Marshal added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) MarshalTo added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) MarshalToSizedBuffer added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) ProtoMessage added in v0.1.0

func (*QueryTotalCustomCoinResponse) ProtoMessage()

func (*QueryTotalCustomCoinResponse) Reset added in v0.1.0

func (m *QueryTotalCustomCoinResponse) Reset()

func (*QueryTotalCustomCoinResponse) Size added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) String added in v0.1.0

func (*QueryTotalCustomCoinResponse) Unmarshal added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) XXX_DiscardUnknown added in v0.1.0

func (m *QueryTotalCustomCoinResponse) XXX_DiscardUnknown()

func (*QueryTotalCustomCoinResponse) XXX_Marshal added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) XXX_Merge added in v0.1.0

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

func (*QueryTotalCustomCoinResponse) XXX_Size added in v0.1.0

func (m *QueryTotalCustomCoinResponse) XXX_Size() int

func (*QueryTotalCustomCoinResponse) XXX_Unmarshal added in v0.1.0

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

type QueryUndelegationRequest added in v0.0.8

type QueryUndelegationRequest struct {
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// delegator defines the delegator address to query for.
	Delegator string `protobuf:"bytes,2,opt,name=delegator,proto3" json:"delegator,omitempty"`
}

QueryUndelegationRequest is request type for the Query/Undelegation RPC method.

func (*QueryUndelegationRequest) Descriptor added in v0.0.8

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

func (*QueryUndelegationRequest) Marshal added in v0.0.8

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

func (*QueryUndelegationRequest) MarshalTo added in v0.0.8

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

func (*QueryUndelegationRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryUndelegationRequest) ProtoMessage added in v0.0.8

func (*QueryUndelegationRequest) ProtoMessage()

func (*QueryUndelegationRequest) Reset added in v0.0.8

func (m *QueryUndelegationRequest) Reset()

func (*QueryUndelegationRequest) Size added in v0.0.8

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

func (*QueryUndelegationRequest) String added in v0.0.8

func (m *QueryUndelegationRequest) String() string

func (*QueryUndelegationRequest) Unmarshal added in v0.0.8

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

func (*QueryUndelegationRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryUndelegationRequest) XXX_DiscardUnknown()

func (*QueryUndelegationRequest) XXX_Marshal added in v0.0.8

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

func (*QueryUndelegationRequest) XXX_Merge added in v0.0.8

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

func (*QueryUndelegationRequest) XXX_Size added in v0.0.8

func (m *QueryUndelegationRequest) XXX_Size() int

func (*QueryUndelegationRequest) XXX_Unmarshal added in v0.0.8

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

type QueryUndelegationResponse added in v0.0.8

type QueryUndelegationResponse struct {
	// undelegations defines the undelegation for given delegator validator pair.
	Undelegation Undelegation `protobuf:"bytes,1,opt,name=undelegation,proto3" json:"undelegation"`
}

QueryDelegationsResponse is response type for the Query/Undelegations RPC method.

func (*QueryUndelegationResponse) Descriptor added in v0.0.8

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

func (*QueryUndelegationResponse) GetUndelegation added in v0.0.8

func (m *QueryUndelegationResponse) GetUndelegation() Undelegation

func (*QueryUndelegationResponse) Marshal added in v0.0.8

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

func (*QueryUndelegationResponse) MarshalTo added in v0.0.8

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

func (*QueryUndelegationResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryUndelegationResponse) ProtoMessage added in v0.0.8

func (*QueryUndelegationResponse) ProtoMessage()

func (*QueryUndelegationResponse) Reset added in v0.0.8

func (m *QueryUndelegationResponse) Reset()

func (*QueryUndelegationResponse) Size added in v0.0.8

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

func (*QueryUndelegationResponse) String added in v0.0.8

func (m *QueryUndelegationResponse) String() string

func (*QueryUndelegationResponse) Unmarshal added in v0.0.8

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

func (*QueryUndelegationResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryUndelegationResponse) XXX_DiscardUnknown()

func (*QueryUndelegationResponse) XXX_Marshal added in v0.0.8

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

func (*QueryUndelegationResponse) XXX_Merge added in v0.0.8

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

func (*QueryUndelegationResponse) XXX_Size added in v0.0.8

func (m *QueryUndelegationResponse) XXX_Size() int

func (*QueryUndelegationResponse) XXX_Unmarshal added in v0.0.8

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

type QueryValidatorDelegationsRequest added in v0.0.8

type QueryValidatorDelegationsRequest struct {
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,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.0.8

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

func (*QueryValidatorDelegationsRequest) GetPagination added in v0.0.8

func (*QueryValidatorDelegationsRequest) GetValidator added in v0.0.8

func (m *QueryValidatorDelegationsRequest) GetValidator() string

func (*QueryValidatorDelegationsRequest) Marshal added in v0.0.8

func (m *QueryValidatorDelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorDelegationsRequest) MarshalTo added in v0.0.8

func (m *QueryValidatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsRequest) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryValidatorDelegationsRequest) ProtoMessage()

func (*QueryValidatorDelegationsRequest) Reset added in v0.0.8

func (*QueryValidatorDelegationsRequest) Size added in v0.0.8

func (m *QueryValidatorDelegationsRequest) Size() (n int)

func (*QueryValidatorDelegationsRequest) String added in v0.0.8

func (*QueryValidatorDelegationsRequest) Unmarshal added in v0.0.8

func (m *QueryValidatorDelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorDelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsRequest) XXX_Marshal added in v0.0.8

func (m *QueryValidatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorDelegationsRequest) XXX_Merge added in v0.0.8

func (*QueryValidatorDelegationsRequest) XXX_Size added in v0.0.8

func (m *QueryValidatorDelegationsRequest) XXX_Size() int

func (*QueryValidatorDelegationsRequest) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorDelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorDelegationsResponse added in v0.0.8

type QueryValidatorDelegationsResponse struct {
	Delegations []Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// 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.0.8

func (*QueryValidatorDelegationsResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorDelegationsResponse) GetDelegations added in v0.0.8

func (m *QueryValidatorDelegationsResponse) GetDelegations() []Delegation

func (*QueryValidatorDelegationsResponse) GetPagination added in v0.0.8

func (*QueryValidatorDelegationsResponse) Marshal added in v0.0.8

func (m *QueryValidatorDelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorDelegationsResponse) MarshalTo added in v0.0.8

func (m *QueryValidatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsResponse) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorDelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryValidatorDelegationsResponse) ProtoMessage()

func (*QueryValidatorDelegationsResponse) Reset added in v0.0.8

func (*QueryValidatorDelegationsResponse) Size added in v0.0.8

func (m *QueryValidatorDelegationsResponse) Size() (n int)

func (*QueryValidatorDelegationsResponse) String added in v0.0.8

func (*QueryValidatorDelegationsResponse) Unmarshal added in v0.0.8

func (m *QueryValidatorDelegationsResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorDelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsResponse) XXX_Marshal added in v0.0.8

func (m *QueryValidatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorDelegationsResponse) XXX_Merge added in v0.0.8

func (*QueryValidatorDelegationsResponse) XXX_Size added in v0.0.8

func (m *QueryValidatorDelegationsResponse) XXX_Size() int

func (*QueryValidatorDelegationsResponse) XXX_Unmarshal added in v0.0.8

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/validatorUndelegations'

func NewQueryValidatorParams added in v0.0.8

func NewQueryValidatorParams(validatorAddr sdk.ValAddress, page, limit int) QueryValidatorParams

type QueryValidatorRedelegationsRequest added in v0.0.8

type QueryValidatorRedelegationsRequest struct {
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorRedelegationsRequest is required type for the Query/ValidatorRedelegations RPC method.

func (*QueryValidatorRedelegationsRequest) Descriptor added in v0.0.8

func (*QueryValidatorRedelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorRedelegationsRequest) GetPagination added in v0.0.8

func (*QueryValidatorRedelegationsRequest) GetValidator added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) GetValidator() string

func (*QueryValidatorRedelegationsRequest) Marshal added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorRedelegationsRequest) MarshalTo added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorRedelegationsRequest) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorRedelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryValidatorRedelegationsRequest) ProtoMessage()

func (*QueryValidatorRedelegationsRequest) Reset added in v0.0.8

func (*QueryValidatorRedelegationsRequest) Size added in v0.0.8

func (*QueryValidatorRedelegationsRequest) String added in v0.0.8

func (*QueryValidatorRedelegationsRequest) Unmarshal added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorRedelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorRedelegationsRequest) XXX_Marshal added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorRedelegationsRequest) XXX_Merge added in v0.0.8

func (*QueryValidatorRedelegationsRequest) XXX_Size added in v0.0.8

func (*QueryValidatorRedelegationsRequest) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorRedelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorRedelegationsResponse added in v0.0.8

type QueryValidatorRedelegationsResponse struct {
	Redelegations []Redelegation `protobuf:"bytes,1,rep,name=redelegations,proto3" json:"redelegations"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorRedelegationsResponse is response type for the Query/ValidatorRedelegations RPC method.

func (*QueryValidatorRedelegationsResponse) Descriptor added in v0.0.8

func (*QueryValidatorRedelegationsResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorRedelegationsResponse) GetPagination added in v0.0.8

func (*QueryValidatorRedelegationsResponse) GetRedelegations added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) GetRedelegations() []Redelegation

func (*QueryValidatorRedelegationsResponse) Marshal added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorRedelegationsResponse) MarshalTo added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorRedelegationsResponse) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorRedelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryValidatorRedelegationsResponse) ProtoMessage()

func (*QueryValidatorRedelegationsResponse) Reset added in v0.0.8

func (*QueryValidatorRedelegationsResponse) Size added in v0.0.8

func (*QueryValidatorRedelegationsResponse) String added in v0.0.8

func (*QueryValidatorRedelegationsResponse) Unmarshal added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorRedelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorRedelegationsResponse) XXX_Marshal added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorRedelegationsResponse) XXX_Merge added in v0.0.8

func (*QueryValidatorRedelegationsResponse) XXX_Size added in v0.0.8

func (*QueryValidatorRedelegationsResponse) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorRedelegationsResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorRequest added in v0.0.8

type QueryValidatorRequest struct {
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
}

QueryValidatorRequest is response type for the Query/Validator RPC method.

func (*QueryValidatorRequest) Descriptor added in v0.0.8

func (*QueryValidatorRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorRequest) GetValidator added in v0.0.8

func (m *QueryValidatorRequest) GetValidator() string

func (*QueryValidatorRequest) Marshal added in v0.0.8

func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorRequest) MarshalTo added in v0.0.8

func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorRequest) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorRequest) ProtoMessage added in v0.0.8

func (*QueryValidatorRequest) ProtoMessage()

func (*QueryValidatorRequest) Reset added in v0.0.8

func (m *QueryValidatorRequest) Reset()

func (*QueryValidatorRequest) Size added in v0.0.8

func (m *QueryValidatorRequest) Size() (n int)

func (*QueryValidatorRequest) String added in v0.0.8

func (m *QueryValidatorRequest) String() string

func (*QueryValidatorRequest) Unmarshal added in v0.0.8

func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorRequest) XXX_DiscardUnknown()

func (*QueryValidatorRequest) XXX_Marshal added in v0.0.8

func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorRequest) XXX_Merge added in v0.0.8

func (m *QueryValidatorRequest) XXX_Merge(src proto.Message)

func (*QueryValidatorRequest) XXX_Size added in v0.0.8

func (m *QueryValidatorRequest) XXX_Size() int

func (*QueryValidatorRequest) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorResponse added in v0.0.8

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.0.8

func (*QueryValidatorResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorResponse) GetValidator added in v0.0.8

func (m *QueryValidatorResponse) GetValidator() Validator

func (*QueryValidatorResponse) Marshal added in v0.0.8

func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorResponse) MarshalTo added in v0.0.8

func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorResponse) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorResponse) ProtoMessage added in v0.0.8

func (*QueryValidatorResponse) ProtoMessage()

func (*QueryValidatorResponse) Reset added in v0.0.8

func (m *QueryValidatorResponse) Reset()

func (*QueryValidatorResponse) Size added in v0.0.8

func (m *QueryValidatorResponse) Size() (n int)

func (*QueryValidatorResponse) String added in v0.0.8

func (m *QueryValidatorResponse) String() string

func (*QueryValidatorResponse) Unmarshal added in v0.0.8

func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorResponse) XXX_DiscardUnknown()

func (*QueryValidatorResponse) XXX_Marshal added in v0.0.8

func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorResponse) XXX_Merge added in v0.0.8

func (m *QueryValidatorResponse) XXX_Merge(src proto.Message)

func (*QueryValidatorResponse) XXX_Size added in v0.0.8

func (m *QueryValidatorResponse) XXX_Size() int

func (*QueryValidatorResponse) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorUndelegationsRequest added in v0.0.8

type QueryValidatorUndelegationsRequest struct {
	// validator defines the validator address to query for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUndelegationsRequest is required type for the Query/ValidatorUndelegations RPC method.

func (*QueryValidatorUndelegationsRequest) Descriptor added in v0.0.8

func (*QueryValidatorUndelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorUndelegationsRequest) GetPagination added in v0.0.8

func (*QueryValidatorUndelegationsRequest) GetValidator added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) GetValidator() string

func (*QueryValidatorUndelegationsRequest) Marshal added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorUndelegationsRequest) MarshalTo added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorUndelegationsRequest) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorUndelegationsRequest) ProtoMessage added in v0.0.8

func (*QueryValidatorUndelegationsRequest) ProtoMessage()

func (*QueryValidatorUndelegationsRequest) Reset added in v0.0.8

func (*QueryValidatorUndelegationsRequest) Size added in v0.0.8

func (*QueryValidatorUndelegationsRequest) String added in v0.0.8

func (*QueryValidatorUndelegationsRequest) Unmarshal added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorUndelegationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorUndelegationsRequest) XXX_Marshal added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorUndelegationsRequest) XXX_Merge added in v0.0.8

func (*QueryValidatorUndelegationsRequest) XXX_Size added in v0.0.8

func (*QueryValidatorUndelegationsRequest) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorUndelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorUndelegationsResponse added in v0.0.8

type QueryValidatorUndelegationsResponse struct {
	Undelegations []Undelegation `protobuf:"bytes,1,rep,name=undelegations,proto3" json:"undelegations"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUndelegationsResponse is response type for the Query/ValidatorUndelegations RPC method.

func (*QueryValidatorUndelegationsResponse) Descriptor added in v0.0.8

func (*QueryValidatorUndelegationsResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorUndelegationsResponse) GetPagination added in v0.0.8

func (*QueryValidatorUndelegationsResponse) GetUndelegations added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) GetUndelegations() []Undelegation

func (*QueryValidatorUndelegationsResponse) Marshal added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorUndelegationsResponse) MarshalTo added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorUndelegationsResponse) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorUndelegationsResponse) ProtoMessage added in v0.0.8

func (*QueryValidatorUndelegationsResponse) ProtoMessage()

func (*QueryValidatorUndelegationsResponse) Reset added in v0.0.8

func (*QueryValidatorUndelegationsResponse) Size added in v0.0.8

func (*QueryValidatorUndelegationsResponse) String added in v0.0.8

func (*QueryValidatorUndelegationsResponse) Unmarshal added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorUndelegationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorUndelegationsResponse) XXX_Marshal added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorUndelegationsResponse) XXX_Merge added in v0.0.8

func (*QueryValidatorUndelegationsResponse) XXX_Size added in v0.0.8

func (*QueryValidatorUndelegationsResponse) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorUndelegationsResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorsParams

type QueryValidatorsParams struct {
	Page, Limit int
	Status      string
}

QueryValidatorsParams defines the params for the following queries: - 'custom/staking/validators'

func NewQueryValidatorsParams added in v0.0.8

func NewQueryValidatorsParams(page, limit int, status string) QueryValidatorsParams

type QueryValidatorsRequest added in v0.0.8

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 the Query/Validators RPC method.

func (*QueryValidatorsRequest) Descriptor added in v0.0.8

func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorsRequest) GetPagination added in v0.0.8

func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest

func (*QueryValidatorsRequest) GetStatus added in v0.0.8

func (m *QueryValidatorsRequest) GetStatus() string

func (*QueryValidatorsRequest) Marshal added in v0.0.8

func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorsRequest) MarshalTo added in v0.0.8

func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorsRequest) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorsRequest) ProtoMessage added in v0.0.8

func (*QueryValidatorsRequest) ProtoMessage()

func (*QueryValidatorsRequest) Reset added in v0.0.8

func (m *QueryValidatorsRequest) Reset()

func (*QueryValidatorsRequest) Size added in v0.0.8

func (m *QueryValidatorsRequest) Size() (n int)

func (*QueryValidatorsRequest) String added in v0.0.8

func (m *QueryValidatorsRequest) String() string

func (*QueryValidatorsRequest) Unmarshal added in v0.0.8

func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorsRequest) XXX_DiscardUnknown()

func (*QueryValidatorsRequest) XXX_Marshal added in v0.0.8

func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorsRequest) XXX_Merge added in v0.0.8

func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message)

func (*QueryValidatorsRequest) XXX_Size added in v0.0.8

func (m *QueryValidatorsRequest) XXX_Size() int

func (*QueryValidatorsRequest) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorsResponse added in v0.0.8

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.0.8

func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorsResponse) GetPagination added in v0.0.8

func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse

func (*QueryValidatorsResponse) GetValidators added in v0.0.8

func (m *QueryValidatorsResponse) GetValidators() []Validator

func (*QueryValidatorsResponse) Marshal added in v0.0.8

func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorsResponse) MarshalTo added in v0.0.8

func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorsResponse) MarshalToSizedBuffer added in v0.0.8

func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorsResponse) ProtoMessage added in v0.0.8

func (*QueryValidatorsResponse) ProtoMessage()

func (*QueryValidatorsResponse) Reset added in v0.0.8

func (m *QueryValidatorsResponse) Reset()

func (*QueryValidatorsResponse) Size added in v0.0.8

func (m *QueryValidatorsResponse) Size() (n int)

func (*QueryValidatorsResponse) String added in v0.0.8

func (m *QueryValidatorsResponse) String() string

func (*QueryValidatorsResponse) Unmarshal added in v0.0.8

func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryValidatorsResponse) XXX_DiscardUnknown()

func (*QueryValidatorsResponse) XXX_Marshal added in v0.0.8

func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorsResponse) XXX_Merge added in v0.0.8

func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message)

func (*QueryValidatorsResponse) XXX_Size added in v0.0.8

func (m *QueryValidatorsResponse) XXX_Size() int

func (*QueryValidatorsResponse) XXX_Unmarshal added in v0.0.8

func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error

type RedelegateSlash added in v0.0.8

type RedelegateSlash struct {
	Delegator    string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	ValidatorSrc string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	ValidatorDst string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	// coins is the list of coin slashes.
	Coins []SlashCoin `protobuf:"bytes,4,rep,name=coins,proto3" json:"coins"`
	// nfts is the list of NFT slashes.
	NFTs []SlashNFT `protobuf:"bytes,5,rep,name=nfts,proto3" json:"nfts"`
}

RedelegateSlash defines event emitted when some redelegation is slashed.

func (*RedelegateSlash) Descriptor added in v0.0.8

func (*RedelegateSlash) Descriptor() ([]byte, []int)

func (*RedelegateSlash) GetCoins added in v0.0.8

func (m *RedelegateSlash) GetCoins() []SlashCoin

func (*RedelegateSlash) GetDelegator added in v0.0.8

func (m *RedelegateSlash) GetDelegator() string

func (*RedelegateSlash) GetNFTs added in v0.0.8

func (m *RedelegateSlash) GetNFTs() []SlashNFT

func (*RedelegateSlash) GetValidatorDst added in v0.0.8

func (m *RedelegateSlash) GetValidatorDst() string

func (*RedelegateSlash) GetValidatorSrc added in v0.0.8

func (m *RedelegateSlash) GetValidatorSrc() string

func (*RedelegateSlash) Marshal added in v0.0.8

func (m *RedelegateSlash) Marshal() (dAtA []byte, err error)

func (*RedelegateSlash) MarshalTo added in v0.0.8

func (m *RedelegateSlash) MarshalTo(dAtA []byte) (int, error)

func (*RedelegateSlash) MarshalToSizedBuffer added in v0.0.8

func (m *RedelegateSlash) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RedelegateSlash) ProtoMessage added in v0.0.8

func (*RedelegateSlash) ProtoMessage()

func (*RedelegateSlash) Reset added in v0.0.8

func (m *RedelegateSlash) Reset()

func (*RedelegateSlash) Size added in v0.0.8

func (m *RedelegateSlash) Size() (n int)

func (*RedelegateSlash) String added in v0.0.8

func (m *RedelegateSlash) String() string

func (*RedelegateSlash) Unmarshal added in v0.0.8

func (m *RedelegateSlash) Unmarshal(dAtA []byte) error

func (*RedelegateSlash) XXX_DiscardUnknown added in v0.0.8

func (m *RedelegateSlash) XXX_DiscardUnknown()

func (*RedelegateSlash) XXX_Marshal added in v0.0.8

func (m *RedelegateSlash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedelegateSlash) XXX_Merge added in v0.0.8

func (m *RedelegateSlash) XXX_Merge(src proto.Message)

func (*RedelegateSlash) XXX_Size added in v0.0.8

func (m *RedelegateSlash) XXX_Size() int

func (*RedelegateSlash) XXX_Unmarshal added in v0.0.8

func (m *RedelegateSlash) XXX_Unmarshal(b []byte) error

type Redelegation added in v0.0.8

type Redelegation struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator_src is the validator redelegation source operator address.
	ValidatorSrc string `protobuf:"bytes,2,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	// validator_dst is the validator redelegation destination operator address.
	ValidatorDst string `protobuf:"bytes,3,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,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 added in v0.0.8

func MustUnmarshalRED(cdc codec.BinaryCodec, value []byte) Redelegation

MustUnmarshalRED returns the unmarshaled redelegation from bytes. Panics if fails.

func NewRedelegation added in v0.0.8

func NewRedelegation(
	delegator sdk.AccAddress,
	validatorSrc sdk.ValAddress,
	validatorDst sdk.ValAddress,
	creationHeight int64,
	minTime time.Time,
	stake Stake,
) Redelegation

NewRedelegation creates a new redelegation object.

func UnmarshalRED added in v0.0.8

func UnmarshalRED(cdc codec.BinaryCodec, value []byte) (red Redelegation, err error)

UnmarshalRED returns the unmarshaled redelegation from bytes.

func (*Redelegation) AddEntry added in v0.0.8

func (red *Redelegation) AddEntry(creationHeight int64, minTime time.Time, stake Stake)

AddEntry appends new entry to the redelegation.

func (*Redelegation) Descriptor added in v0.0.8

func (*Redelegation) Descriptor() ([]byte, []int)

func (*Redelegation) Equal added in v0.0.8

func (this *Redelegation) Equal(that interface{}) bool

func (Redelegation) GetDelegator added in v0.0.8

func (red Redelegation) GetDelegator() sdk.AccAddress

GetDelegator returns delegator address.

func (Redelegation) GetEntries added in v0.0.8

func (red Redelegation) GetEntries() []RedelegationEntry

GetEntries returns redelegation entries.

func (Redelegation) GetValidatorDst added in v0.0.8

func (red Redelegation) GetValidatorDst() sdk.ValAddress

GetValidatorDst returns destination validator address.

func (Redelegation) GetValidatorSrc added in v0.0.8

func (red Redelegation) GetValidatorSrc() sdk.ValAddress

GetValidatorSrc returns source validator address.

func (*Redelegation) Marshal added in v0.0.8

func (m *Redelegation) Marshal() (dAtA []byte, err error)

func (*Redelegation) MarshalTo added in v0.0.8

func (m *Redelegation) MarshalTo(dAtA []byte) (int, error)

func (*Redelegation) MarshalToSizedBuffer added in v0.0.8

func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Redelegation) ProtoMessage added in v0.0.8

func (*Redelegation) ProtoMessage()

func (*Redelegation) RemoveEntry added in v0.0.8

func (red *Redelegation) RemoveEntry(i int64)

RemoveEntry removes existing entry at index i from the redelegation.

func (*Redelegation) Reset added in v0.0.8

func (m *Redelegation) Reset()

func (*Redelegation) Size added in v0.0.8

func (m *Redelegation) Size() (n int)

func (*Redelegation) String added in v0.0.8

func (m *Redelegation) String() string

func (*Redelegation) Unmarshal added in v0.0.8

func (m *Redelegation) Unmarshal(dAtA []byte) error

func (*Redelegation) XXX_DiscardUnknown added in v0.0.8

func (m *Redelegation) XXX_DiscardUnknown()

func (*Redelegation) XXX_Marshal added in v0.0.8

func (m *Redelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Redelegation) XXX_Merge added in v0.0.8

func (m *Redelegation) XXX_Merge(src proto.Message)

func (*Redelegation) XXX_Size added in v0.0.8

func (m *Redelegation) XXX_Size() int

func (*Redelegation) XXX_Unmarshal added in v0.0.8

func (m *Redelegation) XXX_Unmarshal(b []byte) error

type RedelegationEntry added in v0.0.8

type RedelegationEntry struct {
	// creation_height defines the height at 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"`
	// stake defines the object describing the stake completely.
	Stake Stake `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
}

RedelegationEntry defines a redelegation object with relevant metadata.

func NewRedelegationEntry added in v0.0.8

func NewRedelegationEntry(creationHeight int64, completionTime time.Time, stake Stake) RedelegationEntry

NewRedelegationEntry creates a new redelegation entry object.

func (*RedelegationEntry) Descriptor added in v0.0.8

func (*RedelegationEntry) Descriptor() ([]byte, []int)

func (*RedelegationEntry) Equal added in v0.0.8

func (this *RedelegationEntry) Equal(that interface{}) bool

func (RedelegationEntry) IsMature added in v0.0.8

func (e RedelegationEntry) IsMature(now time.Time) bool

IsMature returns true if the entry is mature currently (redelegation is ready to be completed).

func (*RedelegationEntry) Marshal added in v0.0.8

func (m *RedelegationEntry) Marshal() (dAtA []byte, err error)

func (*RedelegationEntry) MarshalTo added in v0.0.8

func (m *RedelegationEntry) MarshalTo(dAtA []byte) (int, error)

func (*RedelegationEntry) MarshalToSizedBuffer added in v0.0.8

func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RedelegationEntry) ProtoMessage added in v0.0.8

func (*RedelegationEntry) ProtoMessage()

func (*RedelegationEntry) Reset added in v0.0.8

func (m *RedelegationEntry) Reset()

func (*RedelegationEntry) Size added in v0.0.8

func (m *RedelegationEntry) Size() (n int)

func (*RedelegationEntry) String added in v0.0.8

func (m *RedelegationEntry) String() string

func (*RedelegationEntry) Unmarshal added in v0.0.8

func (m *RedelegationEntry) Unmarshal(dAtA []byte) error

func (*RedelegationEntry) XXX_DiscardUnknown added in v0.0.8

func (m *RedelegationEntry) XXX_DiscardUnknown()

func (*RedelegationEntry) XXX_Marshal added in v0.0.8

func (m *RedelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedelegationEntry) XXX_Merge added in v0.0.8

func (m *RedelegationEntry) XXX_Merge(src proto.Message)

func (*RedelegationEntry) XXX_Size added in v0.0.8

func (m *RedelegationEntry) XXX_Size() int

func (*RedelegationEntry) XXX_Unmarshal added in v0.0.8

func (m *RedelegationEntry) XXX_Unmarshal(b []byte) error

type RedelegationI added in v0.0.8

type RedelegationI interface {
	GetDelegator() sdk.AccAddress
	GetValidatorSrc() sdk.ValAddress
	GetValidatorDst() sdk.ValAddress
	GetEntries() []RedelegationEntry
}

RedelegationI defines interface for a redelegation from one validator to another.

type Redelegations added in v0.0.8

type Redelegations []Redelegation

Redelegations is a collection of redelegations.

func (Redelegations) String added in v0.0.8

func (d Redelegations) String() (out string)

type SlashCoin added in v0.0.8

type SlashCoin struct {
	// slash is the slashed coin.
	Slash types.Coin `protobuf:"bytes,1,opt,name=slash,proto3" json:"slash"`
}

SlashCoin contains coin slash info.

func (*SlashCoin) Descriptor added in v0.0.8

func (*SlashCoin) Descriptor() ([]byte, []int)

func (*SlashCoin) Marshal added in v0.0.8

func (m *SlashCoin) Marshal() (dAtA []byte, err error)

func (*SlashCoin) MarshalTo added in v0.0.8

func (m *SlashCoin) MarshalTo(dAtA []byte) (int, error)

func (*SlashCoin) MarshalToSizedBuffer added in v0.0.8

func (m *SlashCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SlashCoin) ProtoMessage added in v0.0.8

func (*SlashCoin) ProtoMessage()

func (*SlashCoin) Reset added in v0.0.8

func (m *SlashCoin) Reset()

func (*SlashCoin) Size added in v0.0.8

func (m *SlashCoin) Size() (n int)

func (*SlashCoin) String added in v0.0.8

func (m *SlashCoin) String() string

func (*SlashCoin) Unmarshal added in v0.0.8

func (m *SlashCoin) Unmarshal(dAtA []byte) error

func (*SlashCoin) XXX_DiscardUnknown added in v0.0.8

func (m *SlashCoin) XXX_DiscardUnknown()

func (*SlashCoin) XXX_Marshal added in v0.0.8

func (m *SlashCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SlashCoin) XXX_Merge added in v0.0.8

func (m *SlashCoin) XXX_Merge(src proto.Message)

func (*SlashCoin) XXX_Size added in v0.0.8

func (m *SlashCoin) XXX_Size() int

func (*SlashCoin) XXX_Unmarshal added in v0.0.8

func (m *SlashCoin) XXX_Unmarshal(b []byte) error

type SlashNFT added in v0.0.8

type SlashNFT struct {
	// id defines the slashed NFT token ID.
	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// sub_tokens defines the slashed NFT sub-tokens.
	SubTokens []SlashNFTSubToken `protobuf:"bytes,2,rep,name=sub_tokens,json=subTokens,proto3" json:"sub_tokens"`
}

SlashNFT contains NFT slash info.

func (*SlashNFT) Descriptor added in v0.0.8

func (*SlashNFT) Descriptor() ([]byte, []int)

func (*SlashNFT) Marshal added in v0.0.8

func (m *SlashNFT) Marshal() (dAtA []byte, err error)

func (*SlashNFT) MarshalTo added in v0.0.8

func (m *SlashNFT) MarshalTo(dAtA []byte) (int, error)

func (*SlashNFT) MarshalToSizedBuffer added in v0.0.8

func (m *SlashNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SlashNFT) ProtoMessage added in v0.0.8

func (*SlashNFT) ProtoMessage()

func (*SlashNFT) Reset added in v0.0.8

func (m *SlashNFT) Reset()

func (*SlashNFT) Size added in v0.0.8

func (m *SlashNFT) Size() (n int)

func (*SlashNFT) String added in v0.0.8

func (m *SlashNFT) String() string

func (*SlashNFT) Unmarshal added in v0.0.8

func (m *SlashNFT) Unmarshal(dAtA []byte) error

func (*SlashNFT) XXX_DiscardUnknown added in v0.0.8

func (m *SlashNFT) XXX_DiscardUnknown()

func (*SlashNFT) XXX_Marshal added in v0.0.8

func (m *SlashNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SlashNFT) XXX_Merge added in v0.0.8

func (m *SlashNFT) XXX_Merge(src proto.Message)

func (*SlashNFT) XXX_Size added in v0.0.8

func (m *SlashNFT) XXX_Size() int

func (*SlashNFT) XXX_Unmarshal added in v0.0.8

func (m *SlashNFT) XXX_Unmarshal(b []byte) error

type SlashNFTSubToken added in v0.0.8

type SlashNFTSubToken struct {
	// id defines the NFT sub-token ID.
	ID uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// slash is the slashed NFT sub-token reserve.
	Slash types.Coin `protobuf:"bytes,2,opt,name=slash,proto3" json:"slash"`
}

SlashNFTSubToken contains NFT sub-token slash info.

func (*SlashNFTSubToken) Descriptor added in v0.0.8

func (*SlashNFTSubToken) Descriptor() ([]byte, []int)

func (*SlashNFTSubToken) Marshal added in v0.0.8

func (m *SlashNFTSubToken) Marshal() (dAtA []byte, err error)

func (*SlashNFTSubToken) MarshalTo added in v0.0.8

func (m *SlashNFTSubToken) MarshalTo(dAtA []byte) (int, error)

func (*SlashNFTSubToken) MarshalToSizedBuffer added in v0.0.8

func (m *SlashNFTSubToken) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SlashNFTSubToken) ProtoMessage added in v0.0.8

func (*SlashNFTSubToken) ProtoMessage()

func (*SlashNFTSubToken) Reset added in v0.0.8

func (m *SlashNFTSubToken) Reset()

func (*SlashNFTSubToken) Size added in v0.0.8

func (m *SlashNFTSubToken) Size() (n int)

func (*SlashNFTSubToken) String added in v0.0.8

func (m *SlashNFTSubToken) String() string

func (*SlashNFTSubToken) Unmarshal added in v0.0.8

func (m *SlashNFTSubToken) Unmarshal(dAtA []byte) error

func (*SlashNFTSubToken) XXX_DiscardUnknown added in v0.0.8

func (m *SlashNFTSubToken) XXX_DiscardUnknown()

func (*SlashNFTSubToken) XXX_Marshal added in v0.0.8

func (m *SlashNFTSubToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SlashNFTSubToken) XXX_Merge added in v0.0.8

func (m *SlashNFTSubToken) XXX_Merge(src proto.Message)

func (*SlashNFTSubToken) XXX_Size added in v0.0.8

func (m *SlashNFTSubToken) XXX_Size() int

func (*SlashNFTSubToken) XXX_Unmarshal added in v0.0.8

func (m *SlashNFTSubToken) XXX_Unmarshal(b []byte) error

type Stake added in v0.0.8

type Stake struct {
	// type defines type of the stake.
	Type StakeType `protobuf:"varint,1,opt,name=type,proto3,enum=decimal.validator.v1.StakeType" json:"type,omitempty"`
	// id defines the stake ID.
	// For stake in Coin: contains coin denom value.
	// For stake in NFT: contains NFT token ID value.
	ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// stake defines amount of the coin delegated.
	// For stake in Coin: contains actually delegated coin.
	// For stake in NFT: contains total reserve of delegated NFT sub-tokens.
	Stake types1.Coin `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
	// sub_token_ids defines list of NFT sub-token IDs.
	SubTokenIDs []uint32 `protobuf:"varint,4,rep,packed,name=sub_token_ids,json=subTokenIds,proto3" json:"sub_token_ids,omitempty"`
}

Stake contains all necessary info about a delegation stake.

func NewStakeCoin added in v0.0.8

func NewStakeCoin(stake sdk.Coin) Stake

NewStakeCoin creates a new Stake instance for stake in the coin.

func NewStakeNFT added in v0.0.8

func NewStakeNFT(tokenID string, subTokenIDs []uint32, reserve sdk.Coin) Stake

NewStakeNFT creates a new Stake instance for stake in the NFT token.

func (Stake) Add added in v0.0.8

func (s Stake) Add(a Stake) (Stake, error)

func (Stake) AddSubTokens added in v0.0.8

func (s Stake) AddSubTokens(newSubTokens []uint32) ([]uint32, error)

func (*Stake) Descriptor added in v0.0.8

func (*Stake) Descriptor() ([]byte, []int)

func (Stake) Equal added in v0.0.8

func (s Stake) Equal(a *Stake) bool

func (Stake) GetID added in v0.0.8

func (s Stake) GetID() string

GetID returns the stake ID. For stake in Coin: contains coin denom value. For stake in NFT: contains NFT token ID value.

func (Stake) GetStake added in v0.0.8

func (s Stake) GetStake() sdk.Coin

GetStake returns amount of the coin staked. For stake in Coin: contains actually staked coin. For stake in NFT: contains total reserve of staked NFT sub-tokens.

func (Stake) GetSubTokenIDs added in v0.0.8

func (s Stake) GetSubTokenIDs() []uint32

GetSubTokenIDs returns the list of staked NFT sub-token IDs.

func (Stake) GetType added in v0.0.8

func (s Stake) GetType() StakeType

GetType returns the stake type.

func (Stake) IsEmpty added in v0.0.8

func (s Stake) IsEmpty() bool

func (*Stake) Marshal added in v0.0.8

func (m *Stake) Marshal() (dAtA []byte, err error)

func (*Stake) MarshalTo added in v0.0.8

func (m *Stake) MarshalTo(dAtA []byte) (int, error)

func (*Stake) MarshalToSizedBuffer added in v0.0.8

func (m *Stake) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Stake) ProtoMessage added in v0.0.8

func (*Stake) ProtoMessage()

func (*Stake) Reset added in v0.0.8

func (m *Stake) Reset()

func (*Stake) Size added in v0.0.8

func (m *Stake) Size() (n int)

func (*Stake) String added in v0.0.8

func (m *Stake) String() string

func (*Stake) Unmarshal added in v0.0.8

func (m *Stake) Unmarshal(dAtA []byte) error

func (*Stake) XXX_DiscardUnknown added in v0.0.8

func (m *Stake) XXX_DiscardUnknown()

func (*Stake) XXX_Marshal added in v0.0.8

func (m *Stake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stake) XXX_Merge added in v0.0.8

func (m *Stake) XXX_Merge(src proto.Message)

func (*Stake) XXX_Size added in v0.0.8

func (m *Stake) XXX_Size() int

func (*Stake) XXX_Unmarshal added in v0.0.8

func (m *Stake) XXX_Unmarshal(b []byte) error

type StakeI added in v0.0.8

type StakeI interface {
	GetType() StakeType
	GetID() string
	GetStake() sdk.Coin
	GetSubTokenIDs() []uint32
}

StakeI defines interface for a delegation stake.

type StakeReward added in v0.0.8

type StakeReward struct {
	// id defines the stake ID.
	// For stake in Coin: contains coin denom value.
	// For stake in NFT: contains NFT token ID value.
	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// reward is the amount of the reward in base coin.
	Reward cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=reward,proto3,customtype=cosmossdk.io/math.Int" json:"reward"`
}

StakeReward contains delegator stake ID and amount of a reward in base coin.

func (*StakeReward) Descriptor added in v0.0.8

func (*StakeReward) Descriptor() ([]byte, []int)

func (*StakeReward) Marshal added in v0.0.8

func (m *StakeReward) Marshal() (dAtA []byte, err error)

func (*StakeReward) MarshalTo added in v0.0.8

func (m *StakeReward) MarshalTo(dAtA []byte) (int, error)

func (*StakeReward) MarshalToSizedBuffer added in v0.0.8

func (m *StakeReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StakeReward) ProtoMessage added in v0.0.8

func (*StakeReward) ProtoMessage()

func (*StakeReward) Reset added in v0.0.8

func (m *StakeReward) Reset()

func (*StakeReward) Size added in v0.0.8

func (m *StakeReward) Size() (n int)

func (*StakeReward) String added in v0.0.8

func (m *StakeReward) String() string

func (*StakeReward) Unmarshal added in v0.0.8

func (m *StakeReward) Unmarshal(dAtA []byte) error

func (*StakeReward) XXX_DiscardUnknown added in v0.0.8

func (m *StakeReward) XXX_DiscardUnknown()

func (*StakeReward) XXX_Marshal added in v0.0.8

func (m *StakeReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StakeReward) XXX_Merge added in v0.0.8

func (m *StakeReward) XXX_Merge(src proto.Message)

func (*StakeReward) XXX_Size added in v0.0.8

func (m *StakeReward) XXX_Size() int

func (*StakeReward) XXX_Unmarshal added in v0.0.8

func (m *StakeReward) XXX_Unmarshal(b []byte) error

type StakeType added in v0.0.8

type StakeType int32

StakeType is the type of a delegation stake.

const (
	// UNSPECIFIED defines an invalid stake type.
	StakeType_Unspecified StakeType = 0
	// COIN defines the type for stakes in coin.
	StakeType_Coin StakeType = 1
	// NFT defines the type for stakes in NFT.
	StakeType_NFT StakeType = 2
)

func (StakeType) EnumDescriptor added in v0.0.8

func (StakeType) EnumDescriptor() ([]byte, []int)

func (StakeType) String added in v0.0.8

func (x StakeType) String() string

type StakingHooks added in v0.0.8

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
}

StakingHooks event hooks for staking validator object (noalias)

type UndelegateSlash added in v0.0.8

type UndelegateSlash struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// coins is the list of coin slashes.
	Coins []SlashCoin `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins"`
	// nfts is the list of NFT slashes.
	NFTs []SlashNFT `protobuf:"bytes,4,rep,name=nfts,proto3" json:"nfts"`
}

UndelegateSlash defines event emitted when some undelegation is slashed.

func (*UndelegateSlash) Descriptor added in v0.0.8

func (*UndelegateSlash) Descriptor() ([]byte, []int)

func (*UndelegateSlash) Marshal added in v0.0.8

func (m *UndelegateSlash) Marshal() (dAtA []byte, err error)

func (*UndelegateSlash) MarshalTo added in v0.0.8

func (m *UndelegateSlash) MarshalTo(dAtA []byte) (int, error)

func (*UndelegateSlash) MarshalToSizedBuffer added in v0.0.8

func (m *UndelegateSlash) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UndelegateSlash) ProtoMessage added in v0.0.8

func (*UndelegateSlash) ProtoMessage()

func (*UndelegateSlash) Reset added in v0.0.8

func (m *UndelegateSlash) Reset()

func (*UndelegateSlash) Size added in v0.0.8

func (m *UndelegateSlash) Size() (n int)

func (*UndelegateSlash) String added in v0.0.8

func (m *UndelegateSlash) String() string

func (*UndelegateSlash) Unmarshal added in v0.0.8

func (m *UndelegateSlash) Unmarshal(dAtA []byte) error

func (*UndelegateSlash) XXX_DiscardUnknown added in v0.0.8

func (m *UndelegateSlash) XXX_DiscardUnknown()

func (*UndelegateSlash) XXX_Marshal added in v0.0.8

func (m *UndelegateSlash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndelegateSlash) XXX_Merge added in v0.0.8

func (m *UndelegateSlash) XXX_Merge(src proto.Message)

func (*UndelegateSlash) XXX_Size added in v0.0.8

func (m *UndelegateSlash) XXX_Size() int

func (*UndelegateSlash) XXX_Unmarshal added in v0.0.8

func (m *UndelegateSlash) XXX_Unmarshal(b []byte) error

type Undelegation added in v0.0.8

type Undelegation struct {
	// delegator is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// entries are the unbonding delegation entries.
	Entries []UndelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"`
}

Undelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.

func MustUnmarshalUBD added in v0.0.8

func MustUnmarshalUBD(cdc codec.BinaryCodec, value []byte) Undelegation

MustUnmarshalUBD returns the unmarshaled undelegation from bytes. Panics if fails.

func NewUndelegation added in v0.0.8

func NewUndelegation(
	delegator sdk.AccAddress,
	validator sdk.ValAddress,
	creationHeight int64,
	minTime time.Time,
	stake Stake,
) Undelegation

NewUndelegation creates a new undelegation object.

func UnmarshalUBD added in v0.0.8

func UnmarshalUBD(cdc codec.BinaryCodec, value []byte) (ubd Undelegation, err error)

UnmarshalUBD returns the unmarshaled undelegation from bytes.

func (*Undelegation) AddEntry added in v0.0.8

func (ubd *Undelegation) AddEntry(creationHeight int64, minTime time.Time, stake Stake)

AddEntry appends new entry to the undelegation.

func (*Undelegation) Descriptor added in v0.0.8

func (*Undelegation) Descriptor() ([]byte, []int)

func (*Undelegation) Equal added in v0.0.8

func (this *Undelegation) Equal(that interface{}) bool

func (Undelegation) GetDelegator added in v0.0.8

func (ubd Undelegation) GetDelegator() sdk.AccAddress

GetDelegator returns delegator address.

func (Undelegation) GetEntries added in v0.0.8

func (ubd Undelegation) GetEntries() []UndelegationEntry

GetEntries returns undelegation entries.

func (Undelegation) GetValidator added in v0.0.8

func (ubd Undelegation) GetValidator() sdk.ValAddress

GetValidator returns validator address.

func (*Undelegation) Marshal added in v0.0.8

func (m *Undelegation) Marshal() (dAtA []byte, err error)

func (*Undelegation) MarshalTo added in v0.0.8

func (m *Undelegation) MarshalTo(dAtA []byte) (int, error)

func (*Undelegation) MarshalToSizedBuffer added in v0.0.8

func (m *Undelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Undelegation) ProtoMessage added in v0.0.8

func (*Undelegation) ProtoMessage()

func (*Undelegation) RemoveEntry added in v0.0.8

func (ubd *Undelegation) RemoveEntry(i int64)

RemoveEntry removes existing entry at index i from the undelegation.

func (*Undelegation) Reset added in v0.0.8

func (m *Undelegation) Reset()

func (*Undelegation) Size added in v0.0.8

func (m *Undelegation) Size() (n int)

func (*Undelegation) String added in v0.0.8

func (m *Undelegation) String() string

func (*Undelegation) Unmarshal added in v0.0.8

func (m *Undelegation) Unmarshal(dAtA []byte) error

func (*Undelegation) XXX_DiscardUnknown added in v0.0.8

func (m *Undelegation) XXX_DiscardUnknown()

func (*Undelegation) XXX_Marshal added in v0.0.8

func (m *Undelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Undelegation) XXX_Merge added in v0.0.8

func (m *Undelegation) XXX_Merge(src proto.Message)

func (*Undelegation) XXX_Size added in v0.0.8

func (m *Undelegation) XXX_Size() int

func (*Undelegation) XXX_Unmarshal added in v0.0.8

func (m *Undelegation) XXX_Unmarshal(b []byte) error

type UndelegationEntry added in v0.0.8

type UndelegationEntry struct {
	// creation_height defines the height at which the undelegation 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 undelegation completion.
	CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	// stake defines the object describing the stake completely.
	Stake Stake `protobuf:"bytes,3,opt,name=stake,proto3" json:"stake"`
}

UndelegationEntry defines an undelegation object with relevant metadata.

func NewUndelegationEntry added in v0.0.8

func NewUndelegationEntry(creationHeight int64, completionTime time.Time, stake Stake) UndelegationEntry

NewUndelegationEntry creates a new undelegation entry object.

func (*UndelegationEntry) Descriptor added in v0.0.8

func (*UndelegationEntry) Descriptor() ([]byte, []int)

func (*UndelegationEntry) Equal added in v0.0.8

func (this *UndelegationEntry) Equal(that interface{}) bool

func (UndelegationEntry) IsMature added in v0.0.8

func (e UndelegationEntry) IsMature(now time.Time) bool

IsMature returns true if the entry is mature currently (undelegation is ready to be completed).

func (*UndelegationEntry) Marshal added in v0.0.8

func (m *UndelegationEntry) Marshal() (dAtA []byte, err error)

func (*UndelegationEntry) MarshalTo added in v0.0.8

func (m *UndelegationEntry) MarshalTo(dAtA []byte) (int, error)

func (*UndelegationEntry) MarshalToSizedBuffer added in v0.0.8

func (m *UndelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UndelegationEntry) ProtoMessage added in v0.0.8

func (*UndelegationEntry) ProtoMessage()

func (*UndelegationEntry) Reset added in v0.0.8

func (m *UndelegationEntry) Reset()

func (*UndelegationEntry) Size added in v0.0.8

func (m *UndelegationEntry) Size() (n int)

func (*UndelegationEntry) String added in v0.0.8

func (m *UndelegationEntry) String() string

func (*UndelegationEntry) Unmarshal added in v0.0.8

func (m *UndelegationEntry) Unmarshal(dAtA []byte) error

func (*UndelegationEntry) XXX_DiscardUnknown added in v0.0.8

func (m *UndelegationEntry) XXX_DiscardUnknown()

func (*UndelegationEntry) XXX_Marshal added in v0.0.8

func (m *UndelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndelegationEntry) XXX_Merge added in v0.0.8

func (m *UndelegationEntry) XXX_Merge(src proto.Message)

func (*UndelegationEntry) XXX_Size added in v0.0.8

func (m *UndelegationEntry) XXX_Size() int

func (*UndelegationEntry) XXX_Unmarshal added in v0.0.8

func (m *UndelegationEntry) XXX_Unmarshal(b []byte) error

type UndelegationI added in v0.0.8

type UndelegationI interface {
	GetDelegator() sdk.AccAddress
	GetValidator() sdk.ValAddress
	GetEntries() []UndelegationEntry
}

UndelegationI defines interface for a undelegation from a validator.

type Undelegations added in v0.0.8

type Undelegations []Undelegation

Undelegations is a collection of undelegations.

func (Undelegations) String added in v0.0.8

func (ubds Undelegations) String() (out string)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CancelRedelegation added in v0.0.8

func (*UnimplementedMsgServer) CancelRedelegationNFT added in v0.0.8

func (*UnimplementedMsgServer) CancelUndelegation added in v0.0.8

func (*UnimplementedMsgServer) CancelUndelegationNFT added in v0.0.8

func (*UnimplementedMsgServer) CreateValidator added in v0.0.8

func (*UnimplementedMsgServer) Delegate

func (*UnimplementedMsgServer) DelegateNFT

func (*UnimplementedMsgServer) EditValidator added in v0.0.8

func (*UnimplementedMsgServer) Redelegate added in v0.0.8

func (*UnimplementedMsgServer) RedelegateNFT added in v0.0.8

func (*UnimplementedMsgServer) SetOffline

func (*UnimplementedMsgServer) SetOnline

func (*UnimplementedMsgServer) Undelegate added in v0.0.8

func (*UnimplementedMsgServer) UndelegateNFT added in v0.0.8

type UnimplementedQueryServer added in v0.0.8

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CustomCoinPrice added in v0.1.0

func (*UnimplementedQueryServer) Delegations added in v0.0.8

func (*UnimplementedQueryServer) DelegatorDelegations added in v0.0.8

func (*UnimplementedQueryServer) DelegatorRedelegations added in v0.0.8

func (*UnimplementedQueryServer) DelegatorUndelegations added in v0.0.8

func (*UnimplementedQueryServer) DelegatorValidator added in v0.0.8

func (*UnimplementedQueryServer) DelegatorValidators added in v0.0.8

func (*UnimplementedQueryServer) HistoricalInfo added in v0.0.8

func (*UnimplementedQueryServer) Params added in v0.0.8

func (*UnimplementedQueryServer) Pool added in v0.0.8

func (*UnimplementedQueryServer) Redelegations added in v0.0.8

func (*UnimplementedQueryServer) TotalCustomCoin added in v0.1.0

func (*UnimplementedQueryServer) Undelegation added in v0.0.8

func (*UnimplementedQueryServer) Validator added in v0.0.8

func (*UnimplementedQueryServer) ValidatorDelegations added in v0.0.8

func (*UnimplementedQueryServer) ValidatorRedelegations added in v0.0.8

func (*UnimplementedQueryServer) ValidatorUndelegations added in v0.0.8

func (*UnimplementedQueryServer) Validators added in v0.0.8

type ValAddresses added in v0.0.8

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.0.8

func (*ValAddresses) Descriptor() ([]byte, []int)

func (*ValAddresses) GetAddresses added in v0.0.8

func (m *ValAddresses) GetAddresses() []string

func (*ValAddresses) Marshal added in v0.0.8

func (m *ValAddresses) Marshal() (dAtA []byte, err error)

func (*ValAddresses) MarshalTo added in v0.0.8

func (m *ValAddresses) MarshalTo(dAtA []byte) (int, error)

func (*ValAddresses) MarshalToSizedBuffer added in v0.0.8

func (m *ValAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValAddresses) ProtoMessage added in v0.0.8

func (*ValAddresses) ProtoMessage()

func (*ValAddresses) Reset added in v0.0.8

func (m *ValAddresses) Reset()

func (*ValAddresses) Size added in v0.0.8

func (m *ValAddresses) Size() (n int)

func (*ValAddresses) String added in v0.0.8

func (this *ValAddresses) String() string

func (*ValAddresses) Unmarshal added in v0.0.8

func (m *ValAddresses) Unmarshal(dAtA []byte) error

func (*ValAddresses) XXX_DiscardUnknown added in v0.0.8

func (m *ValAddresses) XXX_DiscardUnknown()

func (*ValAddresses) XXX_Marshal added in v0.0.8

func (m *ValAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValAddresses) XXX_Merge added in v0.0.8

func (m *ValAddresses) XXX_Merge(src proto.Message)

func (*ValAddresses) XXX_Size added in v0.0.8

func (m *ValAddresses) XXX_Size() int

func (*ValAddresses) XXX_Unmarshal added in v0.0.8

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"`
	// reward_address defines the address of the account for withdrawing rewards (bech encoded in JSON).
	RewardAddress string `protobuf:"bytes,2,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
	// consensus_pubkey is the consensus public key of the validator (as google.protobuf.Any).
	ConsensusPubkey *types.Any `protobuf:"bytes,3,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
	// description defines the description terms for the validator.
	Description Description `protobuf:"bytes,4,opt,name=description,proto3" json:"description"`
	// commission defines the commission rate, as a fraction.
	Commission github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=commission,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission"`
	// status is the validator status (bonded/unbonding/unbonded).
	Status BondStatus `protobuf:"varint,6,opt,name=status,proto3,enum=decimal.validator.v1.BondStatus" json:"status,omitempty"`
	// online is true if the validator participates in the consensus (validator is bonded).
	Online bool `protobuf:"varint,7,opt,name=online,proto3" json:"online,omitempty"`
	// jailed defined whether the validator has been jailed from bonded status or not.
	Jailed bool `protobuf:"varint,8,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
	UnbondingHeight int64 `protobuf:"varint,9,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,10,opt,name=unbonding_time,json=unbondingTime,proto3,stdtime" json:"unbonding_time"`
	// rewards defines accumulated amount of collected rewards that are not yet distributed to a delegators.
	// NOTE: It is stored separately in the KVStore.
	Rewards cosmossdk_io_math.Int `protobuf:"bytes,11,opt,name=rewards,proto3,customtype=cosmossdk.io/math.Int" json:"rewards"`
	// total_rewards defines total amount of all collected rewards.
	// NOTE: It is stored separately in the KVStore.
	TotalRewards cosmossdk_io_math.Int `protobuf:"bytes,12,opt,name=total_rewards,json=totalRewards,proto3,customtype=cosmossdk.io/math.Int" json:"total_rewards"`
	// stake is power of all delegations stake
	// NOTE: It is stored separately in the KVStore.
	Stake int64 `protobuf:"varint,13,opt,name=stake,proto3" json:"stake,omitempty"`
}

Validator defines a validator.

func MustUnmarshalValidator added in v0.0.8

func MustUnmarshalValidator(cdc codec.BinaryCodec, value []byte) Validator

func NewValidator added in v0.0.8

func NewValidator(
	operatorAddress sdk.ValAddress,
	rewardAddress sdk.AccAddress,
	pubKey cryptotypes.PubKey,
	description Description,
	commission sdk.Dec,
) (Validator, error)

NewValidator creates new Validator instance.

func UnmarshalValidator added in v0.0.8

func UnmarshalValidator(cdc codec.BinaryCodec, value []byte) (v Validator, err error)

unmarshal a redelegation from a store value

func (Validator) ABCIValidatorUpdate added in v0.0.8

func (v Validator) ABCIValidatorUpdate(r sdkmath.Int) abci.ValidatorUpdate

ABCIValidatorUpdate returns an abci.ValidatorUpdate from a staking validator type with the full validator power.

func (Validator) ABCIValidatorUpdateZero added in v0.0.8

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) ConsPubKey added in v0.0.8

func (v Validator) ConsPubKey() (cryptotypes.PubKey, error)

ConsPubKey returns the validator PubKey as a cryptotypes.PubKey.

func (Validator) ConsensusPower added in v0.0.8

func (v Validator) ConsensusPower() 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 added in v0.0.8

func (v *Validator) Equal(v2 *Validator) bool

Equal checks if the receiver equals the parameter.

func (Validator) GetBondedTokens added in v0.0.8

func (v Validator) GetBondedTokens() sdk.Int

func (Validator) GetCommission added in v0.0.8

func (v Validator) GetCommission() sdk.Dec

func (Validator) GetConsAddr added in v0.0.8

func (v Validator) GetConsAddr() (sdk.ConsAddress, error)

GetConsAddr extracts Consensus key address

func (Validator) GetConsensusPower added in v0.0.8

func (v Validator) GetConsensusPower(sdk.Int) int64

func (Validator) GetMoniker added in v0.0.8

func (v Validator) GetMoniker() string

func (Validator) GetOperator added in v0.0.8

func (v Validator) GetOperator() sdk.ValAddress

func (Validator) GetStatus

func (v Validator) GetStatus() BondStatus

func (Validator) IsBonded added in v0.0.8

func (v Validator) IsBonded() bool

IsBonded checks if the validator status equals Bonded

func (Validator) IsJailed added in v0.0.8

func (v Validator) IsJailed() bool

func (Validator) IsUnbonded added in v0.0.8

func (v Validator) IsUnbonded() bool

IsUnbonded checks if the validator status equals Unbonded

func (Validator) IsUnbonding added in v0.0.8

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 added in v0.0.8

func (v *Validator) MinEqual(other *Validator) bool

MinEqual defines a more minimum set of equality conditions when comparing two validators.

func (Validator) PotentialConsensusPower added in v0.0.8

func (v Validator) PotentialConsensusPower() int64

PotentialConsensusPower returns the potential consensus-engine power.

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

func (m *Validator) Size() (n int)

func (*Validator) String

func (m *Validator) String() string

func (Validator) TmConsPublicKey added in v0.0.8

func (v Validator) TmConsPublicKey() (tmprotocrypto.PublicKey, error)

TmConsPublicKey casts Validator.ConsensusPubkey to tmprotocrypto.PubKey.

func (*Validator) Unmarshal

func (m *Validator) Unmarshal(dAtA []byte) error

func (Validator) UnpackInterfaces added in v0.0.8

func (v Validator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces.

func (Validator) UpdateStatus added in v0.0.8

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.0.8

type ValidatorI interface {
	GetOperator() sdk.ValAddress                       // operator address to receive/return validators coins
	GetConsAddr() (sdk.ConsAddress, error)             // validation consensus address
	GetMoniker() string                                // moniker of the validator
	GetCommission() sdk.Dec                            // validator commission rate
	GetStatus() BondStatus                             // status of the validator
	IsJailed() bool                                    // whether the validator is jailed
	IsBonded() bool                                    // check if has a bonded status
	IsUnbonded() bool                                  // check if has status unbonded
	IsUnbonding() bool                                 // check if has status unbonding
	ConsPubKey() (cryptotypes.PubKey, error)           // validation consensus pubkey (cryptotypes.PubKey)
	TmConsPublicKey() (tmprotocrypto.PublicKey, error) // validation consensus pubkey (Tendermint)
	ConsensusPower() int64                             // validation power in tendermint
}

ValidatorI defines interface for a validator.

type ValidatorRS added in v0.0.8

type ValidatorRS struct {
	// rewards defines accumulated amount of collected rewards that are not yet distributed to a delegators.
	Rewards cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=rewards,proto3,customtype=cosmossdk.io/math.Int" json:"rewards"`
	// total_rewards defines total amount of all collected rewards.
	TotalRewards cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_rewards,json=totalRewards,proto3,customtype=cosmossdk.io/math.Int" json:"total_rewards"`
	// stake is power of all delegations stake
	Stake int64 `protobuf:"varint,3,opt,name=stake,proto3" json:"stake,omitempty"`
}

ValidatorRS defines internal object containing dynamic validator's info like rewards or stakes.

func MustUnmarshalValidatorRewards added in v0.0.8

func MustUnmarshalValidatorRewards(cdc codec.BinaryCodec, value []byte) ValidatorRS

func UnmarshalValidatorRewards added in v0.0.8

func UnmarshalValidatorRewards(cdc codec.BinaryCodec, value []byte) (v ValidatorRS, err error)

unmarshal a redelegation from a store value

func (*ValidatorRS) Descriptor added in v0.0.8

func (*ValidatorRS) Descriptor() ([]byte, []int)

func (*ValidatorRS) GetStake added in v0.0.8

func (m *ValidatorRS) GetStake() int64

func (*ValidatorRS) Marshal added in v0.0.8

func (m *ValidatorRS) Marshal() (dAtA []byte, err error)

func (*ValidatorRS) MarshalTo added in v0.0.8

func (m *ValidatorRS) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorRS) MarshalToSizedBuffer added in v0.0.8

func (m *ValidatorRS) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorRS) ProtoMessage added in v0.0.8

func (*ValidatorRS) ProtoMessage()

func (*ValidatorRS) Reset added in v0.0.8

func (m *ValidatorRS) Reset()

func (*ValidatorRS) Size added in v0.0.8

func (m *ValidatorRS) Size() (n int)

func (*ValidatorRS) String added in v0.0.8

func (m *ValidatorRS) String() string

func (*ValidatorRS) Unmarshal added in v0.0.8

func (m *ValidatorRS) Unmarshal(dAtA []byte) error

func (*ValidatorRS) XXX_DiscardUnknown added in v0.0.8

func (m *ValidatorRS) XXX_DiscardUnknown()

func (*ValidatorRS) XXX_Marshal added in v0.0.8

func (m *ValidatorRS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorRS) XXX_Merge added in v0.0.8

func (m *ValidatorRS) XXX_Merge(src proto.Message)

func (*ValidatorRS) XXX_Size added in v0.0.8

func (m *ValidatorRS) XXX_Size() int

func (*ValidatorRS) XXX_Unmarshal added in v0.0.8

func (m *ValidatorRS) XXX_Unmarshal(b []byte) error

type ValidatorReward added in v0.0.8

type ValidatorReward struct {
	// validator is the bech32-encoded address of the validator.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// dao is the amount of the reward in base coin sent to the DAO.
	Dao cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=dao,proto3,customtype=cosmossdk.io/math.Int" json:"dao"`
	// develop is the amount of the reward in base coin sent to the Develop.
	Develop cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=develop,proto3,customtype=cosmossdk.io/math.Int" json:"develop"`
	// commission is the amount of the reward in base coin sent to the validator as it's commission.
	Commission cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=commission,proto3,customtype=cosmossdk.io/math.Int" json:"commission"`
	// accumulated is the total amount of the reward in base coin accumulated for the validator.
	Accumulated cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=accumulated,proto3,customtype=cosmossdk.io/math.Int" json:"accumulated"`
	// delegators is the complete list of delegator rewards.
	Delegators []DelegatorReward `protobuf:"bytes,6,rep,name=delegators,proto3" json:"delegators"`
}

ValidatorReward contains the detailed validator rewards.

func (*ValidatorReward) Descriptor added in v0.0.8

func (*ValidatorReward) Descriptor() ([]byte, []int)

func (*ValidatorReward) Marshal added in v0.0.8

func (m *ValidatorReward) Marshal() (dAtA []byte, err error)

func (*ValidatorReward) MarshalTo added in v0.0.8

func (m *ValidatorReward) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorReward) MarshalToSizedBuffer added in v0.0.8

func (m *ValidatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorReward) ProtoMessage added in v0.0.8

func (*ValidatorReward) ProtoMessage()

func (*ValidatorReward) Reset added in v0.0.8

func (m *ValidatorReward) Reset()

func (*ValidatorReward) Size added in v0.0.8

func (m *ValidatorReward) Size() (n int)

func (*ValidatorReward) String added in v0.0.8

func (m *ValidatorReward) String() string

func (*ValidatorReward) Unmarshal added in v0.0.8

func (m *ValidatorReward) Unmarshal(dAtA []byte) error

func (*ValidatorReward) XXX_DiscardUnknown added in v0.0.8

func (m *ValidatorReward) XXX_DiscardUnknown()

func (*ValidatorReward) XXX_Marshal added in v0.0.8

func (m *ValidatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorReward) XXX_Merge added in v0.0.8

func (m *ValidatorReward) XXX_Merge(src proto.Message)

func (*ValidatorReward) XXX_Size added in v0.0.8

func (m *ValidatorReward) XXX_Size() int

func (*ValidatorReward) XXX_Unmarshal added in v0.0.8

func (m *ValidatorReward) XXX_Unmarshal(b []byte) error

type ValidatorSet added in v0.0.8

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 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
	BondedTotal(sdk.Context, string) sdkmath.Int                 // total bonded coins within the validator set for the specific coin
	BondedRatio(sdk.Context, string) sdk.Dec                     // total bonded ratio within the validator set for the specific coin

	// slash the validator and delegators of the validator, specifying offence height, offence power, and slash fraction
	Slash(ctx sdk.Context, consAddr sdk.ConsAddress, infractionHeight int64, power int64, slashFactor sdk.Dec)
	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, string) DelegationI

	// MaxValidators returns the maximum amount of bonded validators
	MaxValidators(sdk.Context) uint32
}

ValidatorSet expected properties for the set of all validators (noalias)ю

type ValidatorSigningInfo added in v0.0.8

type ValidatorSigningInfo struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Height at which validator become online, -1 for offline validator
	StartHeight int64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	// A counter of missed blocks
	MissedBlocksCounter int64 `protobuf:"varint,3,opt,name=missed_blocks_counter,json=missedBlocksCounter,proto3" json:"missed_blocks_counter,omitempty"`
	// TODO: do we need that? Timestamp until which the validator is jailed due to liveness downtime.
	JailedUntil time.Time `protobuf:"bytes,4,opt,name=jailed_until,json=jailedUntil,proto3,stdtime" json:"jailed_until"`
	// TODO: do we need that? Whether or not a validator has been tombstoned (killed out of validator set). It is set
	// once the validator commits an equivocation or for any other configured misbehiavor.
	Tombstoned bool `protobuf:"varint,5,opt,name=tombstoned,proto3" json:"tombstoned,omitempty"`
}

ValidatorSigningInfo defines a validator's signing info for monitoring their liveness activity. To decrease storage space this structure never be stored directly

func (*ValidatorSigningInfo) Descriptor added in v0.0.8

func (*ValidatorSigningInfo) Descriptor() ([]byte, []int)

func (*ValidatorSigningInfo) Equal added in v0.0.8

func (this *ValidatorSigningInfo) Equal(that interface{}) bool

func (*ValidatorSigningInfo) GetAddress added in v0.0.8

func (m *ValidatorSigningInfo) GetAddress() string

func (*ValidatorSigningInfo) GetJailedUntil added in v0.0.8

func (m *ValidatorSigningInfo) GetJailedUntil() time.Time

func (*ValidatorSigningInfo) GetMissedBlocksCounter added in v0.0.8

func (m *ValidatorSigningInfo) GetMissedBlocksCounter() int64

func (*ValidatorSigningInfo) GetStartHeight added in v0.0.8

func (m *ValidatorSigningInfo) GetStartHeight() int64

func (*ValidatorSigningInfo) GetTombstoned added in v0.0.8

func (m *ValidatorSigningInfo) GetTombstoned() bool

func (*ValidatorSigningInfo) Marshal added in v0.0.8

func (m *ValidatorSigningInfo) Marshal() (dAtA []byte, err error)

func (*ValidatorSigningInfo) MarshalTo added in v0.0.8

func (m *ValidatorSigningInfo) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSigningInfo) MarshalToSizedBuffer added in v0.0.8

func (m *ValidatorSigningInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorSigningInfo) ProtoMessage added in v0.0.8

func (*ValidatorSigningInfo) ProtoMessage()

func (*ValidatorSigningInfo) Reset added in v0.0.8

func (m *ValidatorSigningInfo) Reset()

func (*ValidatorSigningInfo) Size added in v0.0.8

func (m *ValidatorSigningInfo) Size() (n int)

func (*ValidatorSigningInfo) String added in v0.0.8

func (m *ValidatorSigningInfo) String() string

func (*ValidatorSigningInfo) Unmarshal added in v0.0.8

func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error

func (*ValidatorSigningInfo) XXX_DiscardUnknown added in v0.0.8

func (m *ValidatorSigningInfo) XXX_DiscardUnknown()

func (*ValidatorSigningInfo) XXX_Marshal added in v0.0.8

func (m *ValidatorSigningInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSigningInfo) XXX_Merge added in v0.0.8

func (m *ValidatorSigningInfo) XXX_Merge(src proto.Message)

func (*ValidatorSigningInfo) XXX_Size added in v0.0.8

func (m *ValidatorSigningInfo) XXX_Size() int

func (*ValidatorSigningInfo) XXX_Unmarshal added in v0.0.8

func (m *ValidatorSigningInfo) XXX_Unmarshal(b []byte) error

type Validators added in v0.0.8

type Validators []Validator

Validators is a collection of Validator

func (Validators) Len added in v0.0.8

func (v Validators) Len() int

Implements sort interface

func (Validators) Less added in v0.0.8

func (v Validators) Less(i, j int) bool

Implements sort interface

func (Validators) Sort added in v0.0.8

func (v Validators) Sort()

Sort Validators sorts validator array in ascending operator address order

func (Validators) String added in v0.0.8

func (v Validators) String() (out string)

func (Validators) Swap added in v0.0.8

func (v Validators) Swap(i, j int)

Implements sort interface

func (Validators) ToSDKValidators added in v0.0.8

func (v Validators) ToSDKValidators() (validators []ValidatorI)

ToSDKValidators - convenience function convert []Validator to []sdk.ValidatorI

func (Validators) UnpackInterfaces added in v0.0.8

func (v Validators) UnpackInterfaces(c codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

type ValidatorsByVotingPower added in v0.0.8

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.0.8

func (valz ValidatorsByVotingPower) Len() int

func (ValidatorsByVotingPower) Less added in v0.0.8

func (valz ValidatorsByVotingPower) Less(i, j int) bool

func (ValidatorsByVotingPower) Swap added in v0.0.8

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