cosmos-sdk: github.com/cosmos/cosmos-sdk/x/staking/types Index | Files

package types

import "github.com/cosmos/cosmos-sdk/x/staking/types"

Index

Package Files

codec.go commission.go delegation.go errors.go events.go expected_keepers.go genesis.go genesis.pb.go historical_info.go hooks.go keys.go msg.go params.go pool.go querier.go query.pb.go staking.pb.go test_utils.go tx.pb.go validator.go

Constants

const (
    EventTypeCompleteUnbonding    = "complete_unbonding"
    EventTypeCompleteRedelegation = "complete_redelegation"
    EventTypeCreateValidator      = "create_validator"
    EventTypeEditValidator        = "edit_validator"
    EventTypeDelegate             = "delegate"
    EventTypeUnbond               = "unbond"
    EventTypeRedelegate           = "redelegate"

    AttributeKeyValidator         = "validator"
    AttributeKeyCommissionRate    = "commission_rate"
    AttributeKeyMinSelfDelegation = "min_self_delegation"
    AttributeKeySrcValidator      = "source_validator"
    AttributeKeyDstValidator      = "destination_validator"
    AttributeKeyDelegator         = "delegator"
    AttributeKeyCompletionTime    = "completion_time"
    AttributeValueCategory        = ModuleName
)

staking module event types

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

    // StoreKey is the string store representation
    StoreKey = ModuleName

    // QuerierRoute is the querier route for the staking module
    QuerierRoute = ModuleName

    // RouterKey is the msg router key for the staking module
    RouterKey = ModuleName
)
const (
    TypeMsgUndelegate      = "begin_unbonding"
    TypeMsgEditValidator   = "edit_validator"
    TypeMsgCreateValidator = "create_validator"
    TypeMsgDelegate        = "delegate"
    TypeMsgBeginRedelegate = "begin_redelegate"
)

staking message types

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

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

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

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

Staking params default values

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

names used as root for pool module accounts:

- NotBondedPool -> "not_bonded_tokens_pool"

- BondedPool -> "bonded_tokens_pool"

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

query endpoints supported by the staking Querier

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

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

Variables

var (
    ErrEmptyValidatorAddr              = sdkerrors.Register(ModuleName, 2, "empty validator address")
    ErrBadValidatorAddr                = sdkerrors.Register(ModuleName, 3, "validator address is invalid")
    ErrNoValidatorFound                = sdkerrors.Register(ModuleName, 4, "validator does not exist")
    ErrValidatorOwnerExists            = sdkerrors.Register(ModuleName, 5, "validator already exist for this operator address; must use new validator operator address")
    ErrValidatorPubKeyExists           = sdkerrors.Register(ModuleName, 6, "validator already exist for this pubkey; must use new validator pubkey")
    ErrValidatorPubKeyTypeNotSupported = sdkerrors.Register(ModuleName, 7, "validator pubkey type is not supported")
    ErrValidatorJailed                 = sdkerrors.Register(ModuleName, 8, "validator for this address is currently jailed")
    ErrBadRemoveValidator              = sdkerrors.Register(ModuleName, 9, "failed to remove validator")
    ErrCommissionNegative              = sdkerrors.Register(ModuleName, 10, "commission must be positive")
    ErrCommissionHuge                  = sdkerrors.Register(ModuleName, 11, "commission cannot be more than 100%")
    ErrCommissionGTMaxRate             = sdkerrors.Register(ModuleName, 12, "commission cannot be more than the max rate")
    ErrCommissionUpdateTime            = sdkerrors.Register(ModuleName, 13, "commission cannot be changed more than once in 24h")
    ErrCommissionChangeRateNegative    = sdkerrors.Register(ModuleName, 14, "commission change rate must be positive")
    ErrCommissionChangeRateGTMaxRate   = sdkerrors.Register(ModuleName, 15, "commission change rate cannot be more than the max rate")
    ErrCommissionGTMaxChangeRate       = sdkerrors.Register(ModuleName, 16, "commission cannot be changed more than max change rate")
    ErrSelfDelegationBelowMinimum      = sdkerrors.Register(ModuleName, 17, "validator's self delegation must be greater than their minimum self delegation")
    ErrMinSelfDelegationInvalid        = sdkerrors.Register(ModuleName, 18, "minimum self delegation must be a positive integer")
    ErrMinSelfDelegationDecreased      = sdkerrors.Register(ModuleName, 19, "minimum self delegation cannot be decrease")
    ErrEmptyDelegatorAddr              = sdkerrors.Register(ModuleName, 20, "empty delegator address")
    ErrBadDenom                        = sdkerrors.Register(ModuleName, 21, "invalid coin denomination")
    ErrBadDelegationAddr               = sdkerrors.Register(ModuleName, 22, "invalid address for (address, validator) tuple")
    ErrBadDelegationAmount             = sdkerrors.Register(ModuleName, 23, "invalid delegation amount")
    ErrNoDelegation                    = sdkerrors.Register(ModuleName, 24, "no delegation for (address, validator) tuple")
    ErrBadDelegatorAddr                = sdkerrors.Register(ModuleName, 25, "delegator does not exist with address")
    ErrNoDelegatorForAddress           = sdkerrors.Register(ModuleName, 26, "delegator does not contain delegation")
    ErrInsufficientShares              = sdkerrors.Register(ModuleName, 27, "insufficient delegation shares")
    ErrDelegationValidatorEmpty        = sdkerrors.Register(ModuleName, 28, "cannot delegate to an empty validator")
    ErrNotEnoughDelegationShares       = sdkerrors.Register(ModuleName, 29, "not enough delegation shares")
    ErrBadSharesAmount                 = sdkerrors.Register(ModuleName, 30, "invalid shares amount")
    ErrBadSharesPercent                = sdkerrors.Register(ModuleName, 31, "Invalid shares percent")
    ErrNotMature                       = sdkerrors.Register(ModuleName, 32, "entry not mature")
    ErrNoUnbondingDelegation           = sdkerrors.Register(ModuleName, 33, "no unbonding delegation found")
    ErrMaxUnbondingDelegationEntries   = sdkerrors.Register(ModuleName, 34, "too many unbonding delegation entries for (delegator, validator) tuple")
    ErrBadRedelegationAddr             = sdkerrors.Register(ModuleName, 35, "invalid address for (address, src-validator, dst-validator) tuple")
    ErrNoRedelegation                  = sdkerrors.Register(ModuleName, 36, "no redelegation found")
    ErrSelfRedelegation                = sdkerrors.Register(ModuleName, 37, "cannot redelegate to the same validator")
    ErrTinyRedelegationAmount          = sdkerrors.Register(ModuleName, 38, "too few tokens to redelegate (truncates to zero tokens)")
    ErrBadRedelegationDst              = sdkerrors.Register(ModuleName, 39, "redelegation destination validator not found")
    ErrTransitiveRedelegation          = sdkerrors.Register(ModuleName, 40, "" /* 129 byte string literal not displayed */)
    ErrMaxRedelegationEntries          = sdkerrors.Register(ModuleName, 41, "too many redelegation entries for (delegator, src-validator, dst-validator) tuple")
    ErrDelegatorShareExRateInvalid     = sdkerrors.Register(ModuleName, 42, "cannot delegate to validators with invalid (zero) ex-rate")
    ErrBothShareMsgsGiven              = sdkerrors.Register(ModuleName, 43, "both shares amount and shares percent provided")
    ErrNeitherShareMsgsGiven           = sdkerrors.Register(ModuleName, 44, "neither shares amount nor shares percent provided")
    ErrInvalidHistoricalInfo           = sdkerrors.Register(ModuleName, 45, "invalid historical info")
    ErrNoHistoricalInfo                = sdkerrors.Register(ModuleName, 46, "no historical info found")
    ErrEmptyValidatorPubKey            = sdkerrors.Register(ModuleName, 47, "empty validator public key")
)

x/staking module sentinel errors

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

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

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

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

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

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

    HistoricalInfoKey = []byte{0x50} // prefix for the historical info
)
var (
    KeyUnbondingTime     = []byte("UnbondingTime")
    KeyMaxValidators     = []byte("MaxValidators")
    KeyMaxEntries        = []byte("MaxEntries")
    KeyBondDenom         = []byte("BondDenom")
    KeyHistoricalEntries = []byte("HistoricalEntries")
)
var (
    ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
var (
    ErrInvalidLengthStaking        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowStaking          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupStaking = fmt.Errorf("proto: unexpected end of group")
)
var (
    ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
var (

    // ModuleCdc references the global x/staking module codec. Note, the codec should
    // ONLY be used in certain instances of tests and for JSON encoding as Amino is
    // still used for that purpose.
    //
    // The actual codec used for serialization should be provided to x/staking and
    // defined at the application level.
    ModuleCdc = codec.NewAminoCodec(amino)
)

func AddressFromLastValidatorPowerKey Uses

func AddressFromLastValidatorPowerKey(key []byte) []byte

Get the validator operator address from LastValidatorPowerKey

func GetDelegationKey Uses

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

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

func GetDelegationsKey Uses

func GetDelegationsKey(delAddr sdk.AccAddress) []byte

gets the prefix for a delegator for all validators

func GetHistoricalInfoKey Uses

func GetHistoricalInfoKey(height int64) []byte

GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.

func GetLastValidatorPowerKey Uses

func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte

get the bonded validator index key for an operator address

func GetREDByValDstIndexKey Uses

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

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

func GetREDByValSrcIndexKey Uses

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

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

func GetREDKey Uses

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

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

func GetREDKeyFromValDstIndexKey Uses

func GetREDKeyFromValDstIndexKey(indexKey []byte) []byte

GetREDKeyFromValDstIndexKey rearranges the ValDstIndexKey to get the REDKey

func GetREDKeyFromValSrcIndexKey Uses

func GetREDKeyFromValSrcIndexKey(indexKey []byte) []byte

GetREDKeyFromValSrcIndexKey rearranges the ValSrcIndexKey to get the REDKey

func GetREDsByDelToValDstIndexKey Uses

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

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

func GetREDsFromValSrcIndexKey Uses

func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte

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

func GetREDsKey Uses

func GetREDsKey(delAddr sdk.AccAddress) []byte

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

func GetREDsToValDstIndexKey Uses

func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte

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

func GetRedelegationTimeKey Uses

func GetRedelegationTimeKey(timestamp time.Time) []byte

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

func GetUBDByValIndexKey Uses

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

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

func GetUBDKey Uses

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

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

func GetUBDKeyFromValIndexKey Uses

func GetUBDKeyFromValIndexKey(indexKey []byte) []byte

rearranges the ValIndexKey to get the UBDKey

func GetUBDsByValIndexKey Uses

func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte

gets the prefix keyspace for the indexes of unbonding delegations for a validator

func GetUBDsKey Uses

func GetUBDsKey(delAddr sdk.AccAddress) []byte

gets the prefix for all unbonding delegations from a delegator

func GetUnbondingDelegationTimeKey Uses

func GetUnbondingDelegationTimeKey(timestamp time.Time) []byte

gets the prefix for all unbonding delegations from a delegator

func GetValidatorByConsAddrKey Uses

func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte

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

func GetValidatorKey Uses

func GetValidatorKey(operatorAddr sdk.ValAddress) []byte

gets the key for the validator with address VALUE: staking/Validator

func GetValidatorQueueKey Uses

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

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

func GetValidatorsByPowerIndexKey Uses

func GetValidatorsByPowerIndexKey(validator Validator) []byte

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

func MustMarshalDelegation Uses

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

MustMarshalDelegation returns the delegation bytes. Panics if fails

func MustMarshalHistoricalInfo Uses

func MustMarshalHistoricalInfo(cdc codec.BinaryMarshaler, hi HistoricalInfo) []byte

MustMarshalHistoricalInfo wll marshal historical info and panic on error

func MustMarshalRED Uses

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

MustMarshalRED returns the Redelegation bytes. Panics if fails.

func MustMarshalUBD Uses

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

return the unbonding delegation

func MustMarshalValidator Uses

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

return the redelegation

func ParamKeyTable Uses

func ParamKeyTable() paramtypes.KeyTable

ParamTable for staking module

func ParseValidatorPowerRankKey Uses

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

parse the validators operator address from power rank key

func ParseValidatorQueueKey Uses

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

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

func RegisterCodec Uses

func RegisterCodec(cdc *codec.LegacyAmino)

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

func RegisterInterfaces Uses

func RegisterInterfaces(registry types.InterfaceRegistry)

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

func RegisterQueryServer Uses

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func StakingDescription Uses

func StakingDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)

func ValidateBasic Uses

func ValidateBasic(hi HistoricalInfo) error

ValidateBasic will ensure HistoricalInfo is not nil and sorted

type AccountKeeper Uses

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 Uses

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

    GetSupply(ctx sdk.Context) bankexported.SupplyI

    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
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Commission Uses

type Commission struct {
    CommissionRates `protobuf:"bytes,1,opt,name=commission_rates,json=commissionRates,proto3,embedded=commission_rates" json:"commission_rates"`
    UpdateTime      time.Time `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,stdtime" json:"update_time" yaml:"update_time"`
}

Commission defines a commission parameters for a given validator.

func NewCommission Uses

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

NewCommission returns an initialized validator commission.

func NewCommissionWithTime Uses

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

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

func (*Commission) Descriptor Uses

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

func (*Commission) Equal Uses

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

func (*Commission) GetUpdateTime Uses

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

func (*Commission) Marshal Uses

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

func (*Commission) MarshalTo Uses

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

func (*Commission) MarshalToSizedBuffer Uses

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

func (*Commission) ProtoMessage Uses

func (*Commission) ProtoMessage()

func (*Commission) Reset Uses

func (m *Commission) Reset()

func (*Commission) Size Uses

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

func (Commission) String Uses

func (c Commission) String() string

String implements the Stringer interface for a Commission object.

func (*Commission) Unmarshal Uses

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

func (Commission) ValidateNewRate Uses

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

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

func (*Commission) XXX_DiscardUnknown Uses

func (m *Commission) XXX_DiscardUnknown()

func (*Commission) XXX_Marshal Uses

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

func (*Commission) XXX_Merge Uses

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

func (*Commission) XXX_Size Uses

func (m *Commission) XXX_Size() int

func (*Commission) XXX_Unmarshal Uses

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

type CommissionRates Uses

type CommissionRates struct {
    Rate          github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"`
    MaxRate       github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_rate" yaml:"max_rate"`
    MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_change_rate" yaml:"max_change_rate"`
}

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

func NewCommissionRates Uses

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

NewCommissionRates returns an initialized validator commission rates.

func (*CommissionRates) Descriptor Uses

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

func (*CommissionRates) Equal Uses

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

func (*CommissionRates) Marshal Uses

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

func (*CommissionRates) MarshalTo Uses

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

func (*CommissionRates) MarshalToSizedBuffer Uses

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

func (*CommissionRates) ProtoMessage Uses

func (*CommissionRates) ProtoMessage()

func (*CommissionRates) Reset Uses

func (m *CommissionRates) Reset()

func (*CommissionRates) Size Uses

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

func (CommissionRates) String Uses

func (cr CommissionRates) String() string

String implements the Stringer interface for a CommissionRates object.

func (*CommissionRates) Unmarshal Uses

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

func (CommissionRates) Validate Uses

func (cr CommissionRates) Validate() error

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

func (*CommissionRates) XXX_DiscardUnknown Uses

func (m *CommissionRates) XXX_DiscardUnknown()

func (*CommissionRates) XXX_Marshal Uses

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

func (*CommissionRates) XXX_Merge Uses

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

func (*CommissionRates) XXX_Size Uses

func (m *CommissionRates) XXX_Size() int

func (*CommissionRates) XXX_Unmarshal Uses

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

type DVPair Uses

type DVPair struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
}

DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.

func (*DVPair) Descriptor Uses

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

func (*DVPair) Equal Uses

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

func (*DVPair) GetDelegatorAddress Uses

func (m *DVPair) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*DVPair) GetValidatorAddress Uses

func (m *DVPair) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*DVPair) Marshal Uses

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

func (*DVPair) MarshalTo Uses

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

func (*DVPair) MarshalToSizedBuffer Uses

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

func (*DVPair) ProtoMessage Uses

func (*DVPair) ProtoMessage()

func (*DVPair) Reset Uses

func (m *DVPair) Reset()

func (*DVPair) Size Uses

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

func (DVPair) String Uses

func (dv DVPair) String() string

String implements the Stringer interface for a DVPair object.

func (*DVPair) Unmarshal Uses

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

func (*DVPair) XXX_DiscardUnknown Uses

func (m *DVPair) XXX_DiscardUnknown()

func (*DVPair) XXX_Marshal Uses

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

func (*DVPair) XXX_Merge Uses

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

func (*DVPair) XXX_Size Uses

func (m *DVPair) XXX_Size() int

func (*DVPair) XXX_Unmarshal Uses

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

type DVPairs Uses

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

DVPairs defines an array of DVPair objects.

func (*DVPairs) Descriptor Uses

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

func (*DVPairs) GetPairs Uses

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

func (*DVPairs) Marshal Uses

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

func (*DVPairs) MarshalTo Uses

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

func (*DVPairs) MarshalToSizedBuffer Uses

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

func (*DVPairs) ProtoMessage Uses

func (*DVPairs) ProtoMessage()

func (*DVPairs) Reset Uses

func (m *DVPairs) Reset()

func (*DVPairs) Size Uses

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

func (*DVPairs) String Uses

func (m *DVPairs) String() string

func (*DVPairs) Unmarshal Uses

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

func (*DVPairs) XXX_DiscardUnknown Uses

func (m *DVPairs) XXX_DiscardUnknown()

func (*DVPairs) XXX_Marshal Uses

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

func (*DVPairs) XXX_Merge Uses

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

func (*DVPairs) XXX_Size Uses

func (m *DVPairs) XXX_Size() int

func (*DVPairs) XXX_Unmarshal Uses

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

type DVVTriplet Uses

type DVVTriplet struct {
    DelegatorAddress    github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorSrcAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_src_address,omitempty" yaml:"validator_src_address"`
    ValidatorDstAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_dst_address,omitempty" yaml:"validator_dst_address"`
}

DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.

func (*DVVTriplet) Descriptor Uses

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

func (*DVVTriplet) Equal Uses

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

func (*DVVTriplet) GetDelegatorAddress Uses

func (m *DVVTriplet) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*DVVTriplet) GetValidatorDstAddress Uses

func (m *DVVTriplet) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*DVVTriplet) GetValidatorSrcAddress Uses

func (m *DVVTriplet) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*DVVTriplet) Marshal Uses

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

func (*DVVTriplet) MarshalTo Uses

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

func (*DVVTriplet) MarshalToSizedBuffer Uses

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

func (*DVVTriplet) ProtoMessage Uses

func (*DVVTriplet) ProtoMessage()

func (*DVVTriplet) Reset Uses

func (m *DVVTriplet) Reset()

func (*DVVTriplet) Size Uses

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

func (DVVTriplet) String Uses

func (dvv DVVTriplet) String() string

String implements the Stringer interface for a DVVTriplet object.

func (*DVVTriplet) Unmarshal Uses

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

func (*DVVTriplet) XXX_DiscardUnknown Uses

func (m *DVVTriplet) XXX_DiscardUnknown()

func (*DVVTriplet) XXX_Marshal Uses

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

func (*DVVTriplet) XXX_Merge Uses

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

func (*DVVTriplet) XXX_Size Uses

func (m *DVVTriplet) XXX_Size() int

func (*DVVTriplet) XXX_Unmarshal Uses

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

type DVVTriplets Uses

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

DVVTriplets defines an array of DVVTriplet objects.

func (*DVVTriplets) Descriptor Uses

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

func (*DVVTriplets) GetTriplets Uses

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

func (*DVVTriplets) Marshal Uses

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

func (*DVVTriplets) MarshalTo Uses

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

func (*DVVTriplets) MarshalToSizedBuffer Uses

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

func (*DVVTriplets) ProtoMessage Uses

func (*DVVTriplets) ProtoMessage()

func (*DVVTriplets) Reset Uses

func (m *DVVTriplets) Reset()

func (*DVVTriplets) Size Uses

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

func (*DVVTriplets) String Uses

func (m *DVVTriplets) String() string

func (*DVVTriplets) Unmarshal Uses

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

func (*DVVTriplets) XXX_DiscardUnknown Uses

func (m *DVVTriplets) XXX_DiscardUnknown()

func (*DVVTriplets) XXX_Marshal Uses

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

func (*DVVTriplets) XXX_Merge Uses

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

func (*DVVTriplets) XXX_Size Uses

func (m *DVVTriplets) XXX_Size() int

func (*DVVTriplets) XXX_Unmarshal Uses

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

type Delegation Uses

type Delegation struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Shares           github_com_cosmos_cosmos_sdk_types.Dec        `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares"`
}

Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.

func MustUnmarshalDelegation Uses

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

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

func NewDelegation Uses

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

NewDelegation creates a new delegation object

func UnmarshalDelegation Uses

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

return the delegation

func (*Delegation) Descriptor Uses

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

func (*Delegation) Equal Uses

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

func (Delegation) GetDelegatorAddr Uses

func (d Delegation) GetDelegatorAddr() sdk.AccAddress

func (*Delegation) GetDelegatorAddress Uses

func (m *Delegation) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (Delegation) GetShares Uses

func (d Delegation) GetShares() sdk.Dec

func (Delegation) GetValidatorAddr Uses

func (d Delegation) GetValidatorAddr() sdk.ValAddress

func (*Delegation) GetValidatorAddress Uses

func (m *Delegation) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*Delegation) Marshal Uses

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

func (*Delegation) MarshalTo Uses

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

func (*Delegation) MarshalToSizedBuffer Uses

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

func (*Delegation) ProtoMessage Uses

func (*Delegation) ProtoMessage()

func (*Delegation) Reset Uses

func (m *Delegation) Reset()

func (*Delegation) Size Uses

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

func (Delegation) String Uses

func (d Delegation) String() string

String returns a human readable string representation of a Delegation.

func (*Delegation) Unmarshal Uses

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

func (*Delegation) XXX_DiscardUnknown Uses

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal Uses

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

func (*Delegation) XXX_Merge Uses

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

func (*Delegation) XXX_Size Uses

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal Uses

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

type DelegationResponse Uses

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

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

func NewDelegationResp Uses

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

NewDelegationResp creates a new DelegationResponse instance

func (*DelegationResponse) Descriptor Uses

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

func (*DelegationResponse) Equal Uses

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

func (*DelegationResponse) GetBalance Uses

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

func (*DelegationResponse) GetDelegation Uses

func (m *DelegationResponse) GetDelegation() Delegation

func (*DelegationResponse) Marshal Uses

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

func (DelegationResponse) MarshalJSON Uses

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

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

func (*DelegationResponse) MarshalTo Uses

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

func (*DelegationResponse) MarshalToSizedBuffer Uses

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

func (*DelegationResponse) ProtoMessage Uses

func (*DelegationResponse) ProtoMessage()

func (*DelegationResponse) Reset Uses

func (m *DelegationResponse) Reset()

func (*DelegationResponse) Size Uses

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

func (DelegationResponse) String Uses

func (d DelegationResponse) String() string

String implements the Stringer interface for DelegationResponse.

func (*DelegationResponse) Unmarshal Uses

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

func (*DelegationResponse) UnmarshalJSON Uses

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

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

func (*DelegationResponse) XXX_DiscardUnknown Uses

func (m *DelegationResponse) XXX_DiscardUnknown()

func (*DelegationResponse) XXX_Marshal Uses

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

func (*DelegationResponse) XXX_Merge Uses

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

func (*DelegationResponse) XXX_Size Uses

func (m *DelegationResponse) XXX_Size() int

func (*DelegationResponse) XXX_Unmarshal Uses

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

type DelegationResponses Uses

type DelegationResponses []DelegationResponse

DelegationResponses is a collection of DelegationResp

func (DelegationResponses) String Uses

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

String implements the Stringer interface for DelegationResponses.

type DelegationSet Uses

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 stakingexported.DelegationI) (stop bool))
}

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

type Delegations Uses

type Delegations []Delegation

Delegations is a collection of delegations

func (Delegations) String Uses

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

type Description Uses

type Description struct {
    Moniker         string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
    Identity        string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
    Website         string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
    SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty" yaml:"security_contact"`
    Details         string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
}

Description defines a validator description.

func NewDescription Uses

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

func (*Description) Descriptor Uses

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

func (Description) EnsureLength Uses

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

EnsureLength ensures the length of a validator's description.

func (*Description) Equal Uses

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

func (*Description) GetDetails Uses

func (m *Description) GetDetails() string

func (*Description) GetIdentity Uses

func (m *Description) GetIdentity() string

func (*Description) GetMoniker Uses

func (m *Description) GetMoniker() string

func (*Description) GetSecurityContact Uses

func (m *Description) GetSecurityContact() string

func (*Description) GetWebsite Uses

func (m *Description) GetWebsite() string

func (*Description) Marshal Uses

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

func (*Description) MarshalTo Uses

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

func (*Description) MarshalToSizedBuffer Uses

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

func (*Description) ProtoMessage Uses

func (*Description) ProtoMessage()

func (*Description) Reset Uses

func (m *Description) Reset()

func (*Description) Size Uses

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

func (Description) String Uses

func (d Description) String() string

String implements the Stringer interface for a Description object.

func (*Description) Unmarshal Uses

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

func (Description) UpdateDescription Uses

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 Uses

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal Uses

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

func (*Description) XXX_Merge Uses

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

func (*Description) XXX_Size Uses

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal Uses

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

type DistributionKeeper Uses

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

DistributionKeeper expected distribution keeper (noalias)

type GenesisState Uses

type GenesisState struct {
    // params defines all the paramaters of related to deposit.
    Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
    // last_total_power tracks the total amounts of bonded tokens recorded during
    // the previous end block.
    LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"`
    // last_validator_powers is a special index that provides a historical list
    // of the last-block's bonded validators.
    LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers" yaml:"last_validator_powers"`
    // delegations defines the validator set at genesis.
    Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"`
    // delegations defines the delegations active at genesis.
    Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`
    // unbonding_delegations defines the unbonding delegations active at genesis.
    UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations" yaml:"unbonding_delegations"`
    // redelegations defines the redelegations active at genesis.
    Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"`
    Exported      bool           `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"`
}

GenesisState defines the staking module's genesis state.

func DefaultGenesisState Uses

func DefaultGenesisState() *GenesisState

DefaultGenesisState gets the raw genesis raw message for testing

func GetGenesisStateFromAppState Uses

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

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

func NewGenesisState Uses

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

NewGenesisState creates a new GenesisState instanc e

func (*GenesisState) Descriptor Uses

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

func (*GenesisState) GetDelegations Uses

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

func (*GenesisState) GetExported Uses

func (m *GenesisState) GetExported() bool

func (*GenesisState) GetLastValidatorPowers Uses

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

func (*GenesisState) GetParams Uses

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRedelegations Uses

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

func (*GenesisState) GetUnbondingDelegations Uses

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

func (*GenesisState) GetValidators Uses

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

func (*GenesisState) Marshal Uses

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

func (*GenesisState) MarshalTo Uses

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

func (*GenesisState) MarshalToSizedBuffer Uses

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

func (*GenesisState) ProtoMessage Uses

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset Uses

func (m *GenesisState) Reset()

func (*GenesisState) Size Uses

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

func (*GenesisState) String Uses

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal Uses

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

func (*GenesisState) XXX_DiscardUnknown Uses

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal Uses

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

func (*GenesisState) XXX_Merge Uses

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

func (*GenesisState) XXX_Size Uses

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal Uses

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

type HistoricalInfo Uses

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

HistoricalInfo contains the historical information that gets stored at each height.

func MustUnmarshalHistoricalInfo Uses

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

MustUnmarshalHistoricalInfo wll unmarshal historical info and panic on error

func NewHistoricalInfo Uses

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

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

func UnmarshalHistoricalInfo Uses

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

UnmarshalHistoricalInfo will unmarshal historical info and return any error

func (*HistoricalInfo) Descriptor Uses

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

func (*HistoricalInfo) Equal Uses

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

func (*HistoricalInfo) GetHeader Uses

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

func (*HistoricalInfo) GetValset Uses

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

func (*HistoricalInfo) Marshal Uses

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

func (*HistoricalInfo) MarshalTo Uses

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

func (*HistoricalInfo) MarshalToSizedBuffer Uses

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

func (*HistoricalInfo) ProtoMessage Uses

func (*HistoricalInfo) ProtoMessage()

func (*HistoricalInfo) Reset Uses

func (m *HistoricalInfo) Reset()

func (*HistoricalInfo) Size Uses

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

func (*HistoricalInfo) String Uses

func (m *HistoricalInfo) String() string

func (*HistoricalInfo) Unmarshal Uses

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

func (*HistoricalInfo) XXX_DiscardUnknown Uses

func (m *HistoricalInfo) XXX_DiscardUnknown()

func (*HistoricalInfo) XXX_Marshal Uses

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

func (*HistoricalInfo) XXX_Merge Uses

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

func (*HistoricalInfo) XXX_Size Uses

func (m *HistoricalInfo) XXX_Size() int

func (*HistoricalInfo) XXX_Unmarshal Uses

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

type LastValidatorPower Uses

type LastValidatorPower struct {
    // address is the address of the validator.
    Address github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"address,omitempty"`
    // power defines the power of the validator.
    Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
}

LastValidatorPower required for validator set update logic.

func (*LastValidatorPower) Descriptor Uses

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

func (*LastValidatorPower) GetAddress Uses

func (m *LastValidatorPower) GetAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*LastValidatorPower) GetPower Uses

func (m *LastValidatorPower) GetPower() int64

func (*LastValidatorPower) Marshal Uses

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

func (*LastValidatorPower) MarshalTo Uses

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

func (*LastValidatorPower) MarshalToSizedBuffer Uses

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

func (*LastValidatorPower) ProtoMessage Uses

func (*LastValidatorPower) ProtoMessage()

func (*LastValidatorPower) Reset Uses

func (m *LastValidatorPower) Reset()

func (*LastValidatorPower) Size Uses

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

func (*LastValidatorPower) String Uses

func (m *LastValidatorPower) String() string

func (*LastValidatorPower) Unmarshal Uses

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

func (*LastValidatorPower) XXX_DiscardUnknown Uses

func (m *LastValidatorPower) XXX_DiscardUnknown()

func (*LastValidatorPower) XXX_Marshal Uses

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

func (*LastValidatorPower) XXX_Merge Uses

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

func (*LastValidatorPower) XXX_Size Uses

func (m *LastValidatorPower) XXX_Size() int

func (*LastValidatorPower) XXX_Unmarshal Uses

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

type MsgBeginRedelegate Uses

type MsgBeginRedelegate struct {
    DelegatorAddress    github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorSrcAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_src_address,omitempty" yaml:"validator_src_address"`
    ValidatorDstAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_dst_address,omitempty" yaml:"validator_dst_address"`
    Amount              types.Coin                                    `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

MsgBeginRedelegate defines an SDK message for performing a redelegation from a delegate and source validator to a destination validator.

func NewMsgBeginRedelegate Uses

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

NewMsgBeginRedelegate creates a new MsgBeginRedelegate instance.

func (*MsgBeginRedelegate) Descriptor Uses

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

func (*MsgBeginRedelegate) Equal Uses

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

func (*MsgBeginRedelegate) GetAmount Uses

func (m *MsgBeginRedelegate) GetAmount() types.Coin

func (*MsgBeginRedelegate) GetDelegatorAddress Uses

func (m *MsgBeginRedelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (MsgBeginRedelegate) GetSignBytes Uses

func (msg MsgBeginRedelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgBeginRedelegate) GetSigners Uses

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

GetSigners implements the sdk.Msg interface

func (*MsgBeginRedelegate) GetValidatorDstAddress Uses

func (m *MsgBeginRedelegate) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgBeginRedelegate) GetValidatorSrcAddress Uses

func (m *MsgBeginRedelegate) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgBeginRedelegate) Marshal Uses

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

func (*MsgBeginRedelegate) MarshalTo Uses

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

func (*MsgBeginRedelegate) MarshalToSizedBuffer Uses

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

func (*MsgBeginRedelegate) ProtoMessage Uses

func (*MsgBeginRedelegate) ProtoMessage()

func (*MsgBeginRedelegate) Reset Uses

func (m *MsgBeginRedelegate) Reset()

func (MsgBeginRedelegate) Route Uses

func (msg MsgBeginRedelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgBeginRedelegate) Size Uses

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

func (*MsgBeginRedelegate) String Uses

func (m *MsgBeginRedelegate) String() string

func (MsgBeginRedelegate) Type Uses

func (msg MsgBeginRedelegate) Type() string

Type implements the sdk.Msg interface

func (*MsgBeginRedelegate) Unmarshal Uses

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

func (MsgBeginRedelegate) ValidateBasic Uses

func (msg MsgBeginRedelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgBeginRedelegate) XXX_DiscardUnknown Uses

func (m *MsgBeginRedelegate) XXX_DiscardUnknown()

func (*MsgBeginRedelegate) XXX_Marshal Uses

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

func (*MsgBeginRedelegate) XXX_Merge Uses

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

func (*MsgBeginRedelegate) XXX_Size Uses

func (m *MsgBeginRedelegate) XXX_Size() int

func (*MsgBeginRedelegate) XXX_Unmarshal Uses

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

type MsgCreateValidator Uses

type MsgCreateValidator struct {
    Description       Description                                   `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
    Commission        CommissionRates                               `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"`
    MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int        `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"`
    DelegatorAddress  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorAddress  github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Pubkey            string                                        `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
    Value             types.Coin                                    `protobuf:"bytes,7,opt,name=value,proto3" json:"value"`
}

MsgCreateValidator defines an SDK message for creating a new validator.

func NewMsgCreateValidator Uses

func NewMsgCreateValidator(
    valAddr sdk.ValAddress, pubKey crypto.PubKey, selfDelegation sdk.Coin,
    description Description, commission CommissionRates, minSelfDelegation sdk.Int,
) *MsgCreateValidator

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

func (*MsgCreateValidator) Descriptor Uses

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

func (*MsgCreateValidator) Equal Uses

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

func (*MsgCreateValidator) GetCommission Uses

func (m *MsgCreateValidator) GetCommission() CommissionRates

func (*MsgCreateValidator) GetDelegatorAddress Uses

func (m *MsgCreateValidator) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*MsgCreateValidator) GetDescription Uses

func (m *MsgCreateValidator) GetDescription() Description

func (*MsgCreateValidator) GetPubkey Uses

func (m *MsgCreateValidator) GetPubkey() string

func (MsgCreateValidator) GetSignBytes Uses

func (msg MsgCreateValidator) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (MsgCreateValidator) GetSigners Uses

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

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

func (*MsgCreateValidator) GetValidatorAddress Uses

func (m *MsgCreateValidator) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgCreateValidator) GetValue Uses

func (m *MsgCreateValidator) GetValue() types.Coin

func (*MsgCreateValidator) Marshal Uses

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

func (*MsgCreateValidator) MarshalTo Uses

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

func (*MsgCreateValidator) MarshalToSizedBuffer Uses

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

func (*MsgCreateValidator) ProtoMessage Uses

func (*MsgCreateValidator) ProtoMessage()

func (*MsgCreateValidator) Reset Uses

func (m *MsgCreateValidator) Reset()

func (MsgCreateValidator) Route Uses

func (msg MsgCreateValidator) Route() string

Route implements the sdk.Msg interface.

func (*MsgCreateValidator) Size Uses

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

func (*MsgCreateValidator) String Uses

func (m *MsgCreateValidator) String() string

func (MsgCreateValidator) Type Uses

func (msg MsgCreateValidator) Type() string

Type implements the sdk.Msg interface.

func (*MsgCreateValidator) Unmarshal Uses

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

func (MsgCreateValidator) ValidateBasic Uses

func (msg MsgCreateValidator) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgCreateValidator) XXX_DiscardUnknown Uses

func (m *MsgCreateValidator) XXX_DiscardUnknown()

func (*MsgCreateValidator) XXX_Marshal Uses

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

func (*MsgCreateValidator) XXX_Merge Uses

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

func (*MsgCreateValidator) XXX_Size Uses

func (m *MsgCreateValidator) XXX_Size() int

func (*MsgCreateValidator) XXX_Unmarshal Uses

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

type MsgDelegate Uses

type MsgDelegate struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Amount           types.Coin                                    `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgDelegate defines an SDK message for performing a delegation from a delegate to a validator.

func NewMsgDelegate Uses

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

NewMsgDelegate creates a new MsgDelegate instance.

func (*MsgDelegate) Descriptor Uses

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

func (*MsgDelegate) Equal Uses

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

func (*MsgDelegate) GetAmount Uses

func (m *MsgDelegate) GetAmount() types.Coin

func (*MsgDelegate) GetDelegatorAddress Uses

func (m *MsgDelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (MsgDelegate) GetSignBytes Uses

func (msg MsgDelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgDelegate) GetSigners Uses

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

GetSigners implements the sdk.Msg interface.

func (*MsgDelegate) GetValidatorAddress Uses

func (m *MsgDelegate) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgDelegate) Marshal Uses

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

func (*MsgDelegate) MarshalTo Uses

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

func (*MsgDelegate) MarshalToSizedBuffer Uses

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

func (*MsgDelegate) ProtoMessage Uses

func (*MsgDelegate) ProtoMessage()

func (*MsgDelegate) Reset Uses

func (m *MsgDelegate) Reset()

func (MsgDelegate) Route Uses

func (msg MsgDelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgDelegate) Size Uses

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

func (*MsgDelegate) String Uses

func (m *MsgDelegate) String() string

func (MsgDelegate) Type Uses

func (msg MsgDelegate) Type() string

Type implements the sdk.Msg interface.

func (*MsgDelegate) Unmarshal Uses

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

func (MsgDelegate) ValidateBasic Uses

func (msg MsgDelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgDelegate) XXX_DiscardUnknown Uses

func (m *MsgDelegate) XXX_DiscardUnknown()

func (*MsgDelegate) XXX_Marshal Uses

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

func (*MsgDelegate) XXX_Merge Uses

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

func (*MsgDelegate) XXX_Size Uses

func (m *MsgDelegate) XXX_Size() int

func (*MsgDelegate) XXX_Unmarshal Uses

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

type MsgEditValidator Uses

type MsgEditValidator struct {
    Description      Description                                   `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"address"`
    // We pass a reference to the new commission rate and min self delegation as
    // it's not mandatory to update. If not updated, the deserialized rate will be
    // zero with no way to distinguish if an update was intended.
    //
    // REF: #2373
    CommissionRate    *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission_rate,omitempty" yaml:"commission_rate"`
    MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation,omitempty" yaml:"min_self_delegation"`
}

MsgEditValidator defines an SDK message for editing an existing validator.

func NewMsgEditValidator Uses

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

NewMsgEditValidator creates a new MsgEditValidator instance

func (*MsgEditValidator) Descriptor Uses

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

func (*MsgEditValidator) Equal Uses

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

func (*MsgEditValidator) GetDescription Uses

func (m *MsgEditValidator) GetDescription() Description

func (MsgEditValidator) GetSignBytes Uses

func (msg MsgEditValidator) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgEditValidator) GetSigners Uses

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

GetSigners implements the sdk.Msg interface.

func (*MsgEditValidator) GetValidatorAddress Uses

func (m *MsgEditValidator) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgEditValidator) Marshal Uses

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

func (*MsgEditValidator) MarshalTo Uses

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

func (*MsgEditValidator) MarshalToSizedBuffer Uses

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

func (*MsgEditValidator) ProtoMessage Uses

func (*MsgEditValidator) ProtoMessage()

func (*MsgEditValidator) Reset Uses

func (m *MsgEditValidator) Reset()

func (MsgEditValidator) Route Uses

func (msg MsgEditValidator) Route() string

Route implements the sdk.Msg interface.

func (*MsgEditValidator) Size Uses

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

func (*MsgEditValidator) String Uses

func (m *MsgEditValidator) String() string

func (MsgEditValidator) Type Uses

func (msg MsgEditValidator) Type() string

Type implements the sdk.Msg interface.

func (*MsgEditValidator) Unmarshal Uses

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

func (MsgEditValidator) ValidateBasic Uses

func (msg MsgEditValidator) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgEditValidator) XXX_DiscardUnknown Uses

func (m *MsgEditValidator) XXX_DiscardUnknown()

func (*MsgEditValidator) XXX_Marshal Uses

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

func (*MsgEditValidator) XXX_Merge Uses

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

func (*MsgEditValidator) XXX_Size Uses

func (m *MsgEditValidator) XXX_Size() int

func (*MsgEditValidator) XXX_Unmarshal Uses

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

type MsgUndelegate Uses

type MsgUndelegate struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Amount           types.Coin                                    `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

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

func NewMsgUndelegate Uses

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

NewMsgUndelegate creates a new MsgUndelegate instance.

func (*MsgUndelegate) Descriptor Uses

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

func (*MsgUndelegate) Equal Uses

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

func (*MsgUndelegate) GetAmount Uses

func (m *MsgUndelegate) GetAmount() types.Coin

func (*MsgUndelegate) GetDelegatorAddress Uses

func (m *MsgUndelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (MsgUndelegate) GetSignBytes Uses

func (msg MsgUndelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgUndelegate) GetSigners Uses

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

GetSigners implements the sdk.Msg interface.

func (*MsgUndelegate) GetValidatorAddress Uses

func (m *MsgUndelegate) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgUndelegate) Marshal Uses

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

func (*MsgUndelegate) MarshalTo Uses

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

func (*MsgUndelegate) MarshalToSizedBuffer Uses

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

func (*MsgUndelegate) ProtoMessage Uses

func (*MsgUndelegate) ProtoMessage()

func (*MsgUndelegate) Reset Uses

func (m *MsgUndelegate) Reset()

func (MsgUndelegate) Route Uses

func (msg MsgUndelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgUndelegate) Size Uses

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

func (*MsgUndelegate) String Uses

func (m *MsgUndelegate) String() string

func (MsgUndelegate) Type Uses

func (msg MsgUndelegate) Type() string

Type implements the sdk.Msg interface.

func (*MsgUndelegate) Unmarshal Uses

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

func (MsgUndelegate) ValidateBasic Uses

func (msg MsgUndelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgUndelegate) XXX_DiscardUnknown Uses

func (m *MsgUndelegate) XXX_DiscardUnknown()

func (*MsgUndelegate) XXX_Marshal Uses

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

func (*MsgUndelegate) XXX_Merge Uses

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

func (*MsgUndelegate) XXX_Size Uses

func (m *MsgUndelegate) XXX_Size() int

func (*MsgUndelegate) XXX_Unmarshal Uses

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

type MultiStakingHooks Uses

type MultiStakingHooks []StakingHooks

combine multiple staking hooks, all hook functions are run in array sequence

func NewMultiStakingHooks Uses

func NewMultiStakingHooks(hooks ...StakingHooks) MultiStakingHooks

func (MultiStakingHooks) AfterDelegationModified Uses

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

func (MultiStakingHooks) AfterValidatorBeginUnbonding Uses

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

func (MultiStakingHooks) AfterValidatorBonded Uses

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

func (MultiStakingHooks) AfterValidatorCreated Uses

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

func (MultiStakingHooks) AfterValidatorRemoved Uses

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

func (MultiStakingHooks) BeforeDelegationCreated Uses

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

func (MultiStakingHooks) BeforeDelegationRemoved Uses

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

func (MultiStakingHooks) BeforeDelegationSharesModified Uses

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

func (MultiStakingHooks) BeforeValidatorModified Uses

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

func (MultiStakingHooks) BeforeValidatorSlashed Uses

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

type Params Uses

type Params struct {
    UnbondingTime     time.Duration `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time" yaml:"unbonding_time"`
    MaxValidators     uint32        `protobuf:"varint,2,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty" yaml:"max_validators"`
    MaxEntries        uint32        `protobuf:"varint,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty" yaml:"max_entries"`
    HistoricalEntries uint32        `protobuf:"varint,4,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty" yaml:"historical_entries"`
    BondDenom         string        `protobuf:"bytes,5,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty" yaml:"bond_denom"`
}

Params defines the parameters for the staking module.

func DefaultParams Uses

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func MustUnmarshalParams Uses

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

unmarshal the current staking params value from store key or panic

func NewParams Uses

func NewParams(unbondingTime time.Duration, maxValidators, maxEntries, historicalEntries uint32, bondDenom string) Params

NewParams creates a new Params instance

func UnmarshalParams Uses

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

unmarshal the current staking params value from store key

func (*Params) Descriptor Uses

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

func (*Params) Equal Uses

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

func (*Params) GetBondDenom Uses

func (m *Params) GetBondDenom() string

func (*Params) GetHistoricalEntries Uses

func (m *Params) GetHistoricalEntries() uint32

func (*Params) GetMaxEntries Uses

func (m *Params) GetMaxEntries() uint32

func (*Params) GetMaxValidators Uses

func (m *Params) GetMaxValidators() uint32

func (*Params) GetUnbondingTime Uses

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

func (*Params) Marshal Uses

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

func (*Params) MarshalTo Uses

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

func (*Params) MarshalToSizedBuffer Uses

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

func (*Params) ParamSetPairs Uses

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

Implements params.ParamSet

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

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

func (Params) String Uses

func (p Params) String() string

String returns a human readable string representation of the parameters.

func (*Params) Unmarshal Uses

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

func (Params) Validate Uses

func (p Params) Validate() error

validate a set of params

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

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

func (*Params) XXX_Merge Uses

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

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

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

type Pool Uses

type Pool struct {
    NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=not_bonded_tokens,json=notBondedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"not_bonded_tokens"`
    BondedTokens    github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=bonded_tokens,json=bondedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bonded_tokens" yaml:"bonded_tokens"`
}

Pool - tracking bonded and not-bonded token supply of the bond denomination

func NewPool Uses

func NewPool(notBonded, bonded sdk.Int) Pool

NewPool creates a new Pool instance used for queries

func (*Pool) Description Uses

func (this *Pool) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)

func (*Pool) Descriptor Uses

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

func (*Pool) Equal Uses

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

func (*Pool) Marshal Uses

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

func (*Pool) MarshalTo Uses

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

func (*Pool) MarshalToSizedBuffer Uses

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

func (*Pool) ProtoMessage Uses

func (*Pool) ProtoMessage()

func (*Pool) Reset Uses

func (m *Pool) Reset()

func (*Pool) Size Uses

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

func (*Pool) String Uses

func (m *Pool) String() string

func (*Pool) Unmarshal Uses

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

func (*Pool) XXX_DiscardUnknown Uses

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal Uses

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

func (*Pool) XXX_Merge Uses

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

func (*Pool) XXX_Size Uses

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal Uses

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

type QueryClient Uses

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)
    // ValidatorUnbondingDelegations queries unbonding delegations of a validator.
    ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error)
    // Delegation queries delegate info for given validator delegator pair.
    Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
    // UnbondingDelegation queries unbonding info for given validator delegator pair.
    UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error)
    // DelegatorDelegations queries all delegations of a given delegator address.
    DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
    // DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address.
    DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error)
    // Redelegations queries redelegations of given address.
    Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error)
    // DelegatorValidators queries all validator 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)
    // Parameters queries the staking parameters.
    Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient Uses

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDelegationRequest Uses

type QueryDelegationRequest struct {
    // delegator_addr defines the delegator address to query for.
    DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
    // validator_addr defines the validator address to query for.
    ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
}

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

func (*QueryDelegationRequest) Descriptor Uses

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

func (*QueryDelegationRequest) GetDelegatorAddr Uses

func (m *QueryDelegationRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegationRequest) GetValidatorAddr Uses

func (m *QueryDelegationRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryDelegationRequest) Marshal Uses

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

func (*QueryDelegationRequest) MarshalTo Uses

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

func (*QueryDelegationRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegationRequest) ProtoMessage Uses

func (*QueryDelegationRequest) ProtoMessage()

func (*QueryDelegationRequest) Reset Uses

func (m *QueryDelegationRequest) Reset()

func (*QueryDelegationRequest) Size Uses

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

func (*QueryDelegationRequest) String Uses

func (m *QueryDelegationRequest) String() string

func (*QueryDelegationRequest) Unmarshal Uses

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

func (*QueryDelegationRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegationRequest) XXX_DiscardUnknown()

func (*QueryDelegationRequest) XXX_Marshal Uses

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

func (*QueryDelegationRequest) XXX_Merge Uses

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

func (*QueryDelegationRequest) XXX_Size Uses

func (m *QueryDelegationRequest) XXX_Size() int

func (*QueryDelegationRequest) XXX_Unmarshal Uses

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

type QueryDelegationResponse Uses

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

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

func (*QueryDelegationResponse) Descriptor Uses

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

func (*QueryDelegationResponse) GetDelegationResponse Uses

func (m *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse

func (*QueryDelegationResponse) Marshal Uses

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

func (*QueryDelegationResponse) MarshalTo Uses

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

func (*QueryDelegationResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegationResponse) ProtoMessage Uses

func (*QueryDelegationResponse) ProtoMessage()

func (*QueryDelegationResponse) Reset Uses

func (m *QueryDelegationResponse) Reset()

func (*QueryDelegationResponse) Size Uses

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

func (*QueryDelegationResponse) String Uses

func (m *QueryDelegationResponse) String() string

func (*QueryDelegationResponse) Unmarshal Uses

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

func (*QueryDelegationResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegationResponse) XXX_DiscardUnknown()

func (*QueryDelegationResponse) XXX_Marshal Uses

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

func (*QueryDelegationResponse) XXX_Merge Uses

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

func (*QueryDelegationResponse) XXX_Size Uses

func (m *QueryDelegationResponse) XXX_Size() int

func (*QueryDelegationResponse) XXX_Unmarshal Uses

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

type QueryDelegatorDelegationsRequest Uses

type QueryDelegatorDelegationsRequest struct {
    // delegator_addr defines the delegator address to query for.
    DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
    // pagination defines an optional pagination for the request.
    Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

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

func (*QueryDelegatorDelegationsRequest) Descriptor Uses

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

func (*QueryDelegatorDelegationsRequest) GetDelegatorAddr Uses

func (m *QueryDelegatorDelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegatorDelegationsRequest) GetPagination Uses

func (m *QueryDelegatorDelegationsRequest) GetPagination() *query.PageRequest

func (*QueryDelegatorDelegationsRequest) Marshal Uses

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

func (*QueryDelegatorDelegationsRequest) MarshalTo Uses

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

func (*QueryDelegatorDelegationsRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorDelegationsRequest) ProtoMessage Uses

func (*QueryDelegatorDelegationsRequest) ProtoMessage()

func (*QueryDelegatorDelegationsRequest) Reset Uses

func (m *QueryDelegatorDelegationsRequest) Reset()

func (*QueryDelegatorDelegationsRequest) Size Uses

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

func (*QueryDelegatorDelegationsRequest) String Uses

func (m *QueryDelegatorDelegationsRequest) String() string

func (*QueryDelegatorDelegationsRequest) Unmarshal Uses

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

func (*QueryDelegatorDelegationsRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsRequest) XXX_Marshal Uses

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

func (*QueryDelegatorDelegationsRequest) XXX_Merge Uses

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

func (*QueryDelegatorDelegationsRequest) XXX_Size Uses

func (m *QueryDelegatorDelegationsRequest) XXX_Size() int

func (*QueryDelegatorDelegationsRequest) XXX_Unmarshal Uses

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

type QueryDelegatorDelegationsResponse Uses

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

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

func (*QueryDelegatorDelegationsResponse) Descriptor Uses

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

func (*QueryDelegatorDelegationsResponse) GetDelegationResponses Uses

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

func (*QueryDelegatorDelegationsResponse) GetPagination Uses

func (m *QueryDelegatorDelegationsResponse) GetPagination() *query.PageResponse

func (*QueryDelegatorDelegationsResponse) Marshal Uses

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

func (*QueryDelegatorDelegationsResponse) MarshalTo Uses

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

func (*QueryDelegatorDelegationsResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorDelegationsResponse) ProtoMessage Uses

func (*QueryDelegatorDelegationsResponse) ProtoMessage()

func (*QueryDelegatorDelegationsResponse) Reset Uses

func (m *QueryDelegatorDelegationsResponse) Reset()

func (*QueryDelegatorDelegationsResponse) Size Uses

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

func (*QueryDelegatorDelegationsResponse) String Uses

func (m *QueryDelegatorDelegationsResponse) String() string

func (*QueryDelegatorDelegationsResponse) Unmarshal Uses

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

func (*QueryDelegatorDelegationsResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsResponse) XXX_Marshal Uses

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

func (*QueryDelegatorDelegationsResponse) XXX_Merge Uses

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

func (*QueryDelegatorDelegationsResponse) XXX_Size Uses

func (m *QueryDelegatorDelegationsResponse) XXX_Size() int

func (*QueryDelegatorDelegationsResponse) XXX_Unmarshal Uses

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

type QueryDelegatorParams Uses

type QueryDelegatorParams struct {
    DelegatorAddr sdk.AccAddress
}

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

func NewQueryDelegatorParams Uses

func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams

type QueryDelegatorUnbondingDelegationsRequest Uses

type QueryDelegatorUnbondingDelegationsRequest struct {
    // delegator_addr defines the delegator address to query for.
    DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
    // pagination defines an optional pagination for the request.
    Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

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

func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) GetDelegatorAddr Uses

func (m *QueryDelegatorUnbondingDelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegatorUnbondingDelegationsRequest) GetPagination Uses

func (m *QueryDelegatorUnbondingDelegationsRequest) GetPagination() *query.PageRequest

func (*QueryDelegatorUnbondingDelegationsRequest) Marshal Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalTo Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage Uses

func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage()

func (*QueryDelegatorUnbondingDelegationsRequest) Reset Uses

func (m *QueryDelegatorUnbondingDelegationsRequest) Reset()

func (*QueryDelegatorUnbondingDelegationsRequest) Size Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) String Uses

func (m *QueryDelegatorUnbondingDelegationsRequest) String() string

func (*QueryDelegatorUnbondingDelegationsRequest) Unmarshal Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Merge Uses

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

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Size Uses

func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Size() int

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal Uses

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

type QueryDelegatorUnbondingDelegationsResponse Uses

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

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

func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) GetPagination Uses

func (m *QueryDelegatorUnbondingDelegationsResponse) GetPagination() *query.PageResponse

func (*QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses Uses

func (m *QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses() []UnbondingDelegation

func (*QueryDelegatorUnbondingDelegationsResponse) Marshal Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalTo Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage Uses

func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage()

func (*QueryDelegatorUnbondingDelegationsResponse) Reset Uses

func (m *QueryDelegatorUnbondingDelegationsResponse) Reset()

func (*QueryDelegatorUnbondingDelegationsResponse) Size Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) String Uses

func (m *QueryDelegatorUnbondingDelegationsResponse) String() string

func (*QueryDelegatorUnbondingDelegationsResponse) Unmarshal Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Merge Uses

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

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Size Uses

func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Size() int

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal Uses

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

type QueryDelegatorValidatorRequest Uses

type QueryDelegatorValidatorRequest struct {
    // delegator_addr defines the delegator address to query for.
    DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
    // validator_addr defines the validator address to query for.
    ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
}

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

func (*QueryDelegatorValidatorRequest) Descriptor Uses

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

func (*QueryDelegatorValidatorRequest) GetDelegatorAddr Uses

func (m *QueryDelegatorValidatorRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegatorValidatorRequest) GetValidatorAddr Uses

func (m *QueryDelegatorValidatorRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryDelegatorValidatorRequest) Marshal Uses

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

func (*QueryDelegatorValidatorRequest) MarshalTo Uses

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

func (*QueryDelegatorValidatorRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorValidatorRequest) ProtoMessage Uses

func (*QueryDelegatorValidatorRequest) ProtoMessage()

func (*QueryDelegatorValidatorRequest) Reset Uses

func (m *QueryDelegatorValidatorRequest) Reset()

func (*QueryDelegatorValidatorRequest) Size Uses

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

func (*QueryDelegatorValidatorRequest) String Uses

func (m *QueryDelegatorValidatorRequest) String() string

func (*QueryDelegatorValidatorRequest) Unmarshal Uses

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

func (*QueryDelegatorValidatorRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegatorValidatorRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorRequest) XXX_Marshal Uses

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

func (*QueryDelegatorValidatorRequest) XXX_Merge Uses

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

func (*QueryDelegatorValidatorRequest) XXX_Size Uses

func (m *QueryDelegatorValidatorRequest) XXX_Size() int

func (*QueryDelegatorValidatorRequest) XXX_Unmarshal Uses

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

type QueryDelegatorValidatorResponse Uses

type QueryDelegatorValidatorResponse struct {
    // validator defines the 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 Uses

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

func (*QueryDelegatorValidatorResponse) GetValidator Uses

func (m *QueryDelegatorValidatorResponse) GetValidator() Validator

func (*QueryDelegatorValidatorResponse) Marshal Uses

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

func (*QueryDelegatorValidatorResponse) MarshalTo Uses

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

func (*QueryDelegatorValidatorResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorValidatorResponse) ProtoMessage Uses

func (*QueryDelegatorValidatorResponse) ProtoMessage()

func (*QueryDelegatorValidatorResponse) Reset Uses

func (m *QueryDelegatorValidatorResponse) Reset()

func (*QueryDelegatorValidatorResponse) Size Uses

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

func (*QueryDelegatorValidatorResponse) String Uses

func (m *QueryDelegatorValidatorResponse) String() string

func (*QueryDelegatorValidatorResponse) Unmarshal Uses

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

func (*QueryDelegatorValidatorResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegatorValidatorResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorResponse) XXX_Marshal Uses

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

func (*QueryDelegatorValidatorResponse) XXX_Merge Uses

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

func (*QueryDelegatorValidatorResponse) XXX_Size Uses

func (m *QueryDelegatorValidatorResponse) XXX_Size() int

func (*QueryDelegatorValidatorResponse) XXX_Unmarshal Uses

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

type QueryDelegatorValidatorsRequest Uses

type QueryDelegatorValidatorsRequest struct {
    // delegator_addr defines the delegator address to query for.
    DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
    // pagination defines an optional pagination for the request.
    Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

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

func (*QueryDelegatorValidatorsRequest) Descriptor Uses

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

func (*QueryDelegatorValidatorsRequest) GetDelegatorAddr Uses

func (m *QueryDelegatorValidatorsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegatorValidatorsRequest) GetPagination Uses

func (m *QueryDelegatorValidatorsRequest) GetPagination() *query.PageRequest

func (*QueryDelegatorValidatorsRequest) Marshal Uses

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

func (*QueryDelegatorValidatorsRequest) MarshalTo Uses

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

func (*QueryDelegatorValidatorsRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorValidatorsRequest) ProtoMessage Uses

func (*QueryDelegatorValidatorsRequest) ProtoMessage()

func (*QueryDelegatorValidatorsRequest) Reset Uses

func (m *QueryDelegatorValidatorsRequest) Reset()

func (*QueryDelegatorValidatorsRequest) Size Uses

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

func (*QueryDelegatorValidatorsRequest) String Uses

func (m *QueryDelegatorValidatorsRequest) String() string

func (*QueryDelegatorValidatorsRequest) Unmarshal Uses

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

func (*QueryDelegatorValidatorsRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsRequest) XXX_Marshal Uses

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

func (*QueryDelegatorValidatorsRequest) XXX_Merge Uses

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

func (*QueryDelegatorValidatorsRequest) XXX_Size Uses

func (m *QueryDelegatorValidatorsRequest) XXX_Size() int

func (*QueryDelegatorValidatorsRequest) XXX_Unmarshal Uses

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

type QueryDelegatorValidatorsResponse Uses

type QueryDelegatorValidatorsResponse struct {
    // validators defines the 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 Uses

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

func (*QueryDelegatorValidatorsResponse) GetPagination Uses

func (m *QueryDelegatorValidatorsResponse) GetPagination() *query.PageResponse

func (*QueryDelegatorValidatorsResponse) GetValidators Uses

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

func (*QueryDelegatorValidatorsResponse) Marshal Uses

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

func (*QueryDelegatorValidatorsResponse) MarshalTo Uses

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

func (*QueryDelegatorValidatorsResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorValidatorsResponse) ProtoMessage Uses

func (*QueryDelegatorValidatorsResponse) ProtoMessage()

func (*QueryDelegatorValidatorsResponse) Reset Uses

func (m *QueryDelegatorValidatorsResponse) Reset()

func (*QueryDelegatorValidatorsResponse) Size Uses

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

func (*QueryDelegatorValidatorsResponse) String Uses

func (m *QueryDelegatorValidatorsResponse) String() string

func (*QueryDelegatorValidatorsResponse) Unmarshal Uses

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

func (*QueryDelegatorValidatorsResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsResponse) XXX_Marshal Uses

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

func (*QueryDelegatorValidatorsResponse) XXX_Merge Uses

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

func (*QueryDelegatorValidatorsResponse) XXX_Size Uses

func (m *QueryDelegatorValidatorsResponse) XXX_Size() int

func (*QueryDelegatorValidatorsResponse) XXX_Unmarshal Uses

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

type QueryHistoricalInfoRequest Uses

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 Uses

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

func (*QueryHistoricalInfoRequest) GetHeight Uses

func (m *QueryHistoricalInfoRequest) GetHeight() int64

func (*QueryHistoricalInfoRequest) Marshal Uses

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

func (*QueryHistoricalInfoRequest) MarshalTo Uses

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

func (*QueryHistoricalInfoRequest) MarshalToSizedBuffer Uses

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

func (*QueryHistoricalInfoRequest) ProtoMessage Uses

func (*QueryHistoricalInfoRequest) ProtoMessage()

func (*QueryHistoricalInfoRequest) Reset Uses

func (m *QueryHistoricalInfoRequest) Reset()

func (*QueryHistoricalInfoRequest) Size Uses

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

func (*QueryHistoricalInfoRequest) String Uses

func (m *QueryHistoricalInfoRequest) String() string

func (*QueryHistoricalInfoRequest) Unmarshal Uses

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

func (*QueryHistoricalInfoRequest) XXX_DiscardUnknown Uses

func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()

func (*QueryHistoricalInfoRequest) XXX_Marshal Uses

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

func (*QueryHistoricalInfoRequest) XXX_Merge Uses

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

func (*QueryHistoricalInfoRequest) XXX_Size Uses

func (m *QueryHistoricalInfoRequest) XXX_Size() int

func (*QueryHistoricalInfoRequest) XXX_Unmarshal Uses

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

type QueryHistoricalInfoResponse Uses

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 Uses

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

func (*QueryHistoricalInfoResponse) GetHist Uses

func (m *QueryHistoricalInfoResponse) GetHist() *HistoricalInfo

func (*QueryHistoricalInfoResponse) Marshal Uses

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

func (*QueryHistoricalInfoResponse) MarshalTo Uses

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

func (*QueryHistoricalInfoResponse) MarshalToSizedBuffer Uses

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

func (*QueryHistoricalInfoResponse) ProtoMessage Uses

func (*QueryHistoricalInfoResponse) ProtoMessage()

func (*QueryHistoricalInfoResponse) Reset Uses

func (m *QueryHistoricalInfoResponse) Reset()

func (*QueryHistoricalInfoResponse) Size Uses

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

func (*QueryHistoricalInfoResponse) String Uses

func (m *QueryHistoricalInfoResponse) String() string

func (*QueryHistoricalInfoResponse) Unmarshal Uses

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

func (*QueryHistoricalInfoResponse) XXX_DiscardUnknown Uses

func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()

func (*QueryHistoricalInfoResponse) XXX_Marshal Uses

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

func (*QueryHistoricalInfoResponse) XXX_Merge Uses

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

func (*QueryHistoricalInfoResponse) XXX_Size Uses

func (m *QueryHistoricalInfoResponse) XXX_Size() int

func (*QueryHistoricalInfoResponse) XXX_Unmarshal Uses

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

type QueryParamsRequest Uses

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor Uses

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

func (*QueryParamsRequest) Marshal Uses

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

func (*QueryParamsRequest) MarshalTo Uses

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

func (*QueryParamsRequest) MarshalToSizedBuffer Uses

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

func (*QueryParamsRequest) ProtoMessage Uses

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset Uses

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size Uses

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

func (*QueryParamsRequest) String Uses

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal Uses

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

func (*QueryParamsRequest) XXX_DiscardUnknown Uses

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal Uses

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

func (*QueryParamsRequest) XXX_Merge Uses

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

func (*QueryParamsRequest) XXX_Size Uses

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal Uses

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

type QueryParamsResponse Uses

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 Uses

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

func (*QueryParamsResponse) GetParams Uses

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal Uses

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

func (*QueryParamsResponse) MarshalTo Uses

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

func (*QueryParamsResponse) MarshalToSizedBuffer Uses

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

func (*QueryParamsResponse) ProtoMessage Uses

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset Uses

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size Uses

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

func (*QueryParamsResponse) String Uses

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal Uses

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

func (*QueryParamsResponse) XXX_DiscardUnknown Uses

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal Uses

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

func (*QueryParamsResponse) XXX_Merge Uses

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

func (*QueryParamsResponse) XXX_Size Uses

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal Uses

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

type QueryPoolRequest Uses

type QueryPoolRequest struct {
}

QueryPoolRequest is request type for the Query/Pool RPC method.

func (*QueryPoolRequest) Descriptor Uses

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

func (*QueryPoolRequest) Marshal Uses

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

func (*QueryPoolRequest) MarshalTo Uses

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

func (*QueryPoolRequest) MarshalToSizedBuffer Uses

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

func (*QueryPoolRequest) ProtoMessage Uses

func (*QueryPoolRequest) ProtoMessage()

func (*QueryPoolRequest) Reset Uses

func (m *QueryPoolRequest) Reset()

func (*QueryPoolRequest) Size Uses

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

func (*QueryPoolRequest) String Uses

func (m *QueryPoolRequest) String() string

func (*QueryPoolRequest) Unmarshal Uses

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

func (*QueryPoolRequest) XXX_DiscardUnknown Uses

func (m *QueryPoolRequest) XXX_DiscardUnknown()

func (*QueryPoolRequest) XXX_Marshal Uses

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

func (*QueryPoolRequest) XXX_Merge Uses

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

func (*QueryPoolRequest) XXX_Size Uses

func (m *QueryPoolRequest) XXX_Size() int

func (*QueryPoolRequest) XXX_Unmarshal Uses

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

type QueryPoolResponse Uses

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 Uses

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

func (*QueryPoolResponse) GetPool Uses

func (m *QueryPoolResponse) GetPool() Pool

func (*QueryPoolResponse) Marshal Uses

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

func (*QueryPoolResponse) MarshalTo Uses

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

func (*QueryPoolResponse) MarshalToSizedBuffer Uses

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

func (*QueryPoolResponse) ProtoMessage Uses

func (*QueryPoolResponse) ProtoMessage()

func (*QueryPoolResponse) Reset Uses

func (m *QueryPoolResponse) Reset()

func (*QueryPoolResponse) Size Uses

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

func (*QueryPoolResponse) String Uses

func (m *QueryPoolResponse) String() string

func (*QueryPoolResponse) Unmarshal Uses

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

func (*QueryPoolResponse) XXX_DiscardUnknown Uses

func (m *QueryPoolResponse) XXX_DiscardUnknown()

func (*QueryPoolResponse) XXX_Marshal Uses

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

func (*QueryPoolResponse) XXX_Merge Uses

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

func (*QueryPoolResponse) XXX_Size Uses

func (m *QueryPoolResponse) XXX_Size() int

func (*QueryPoolResponse) XXX_Unmarshal Uses

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

type QueryRedelegationParams Uses

type QueryRedelegationParams struct {
    DelegatorAddr    sdk.AccAddress
    SrcValidatorAddr sdk.ValAddress
    DstValidatorAddr sdk.ValAddress
}

defines the params for the following queries: - 'custom/staking/redelegation'

func NewQueryRedelegationParams Uses

func NewQueryRedelegationParams(delegatorAddr sdk.AccAddress, srcValidatorAddr, dstValidatorAddr sdk.ValAddress) QueryRedelegationParams

type QueryRedelegationsRequest Uses

type QueryRedelegationsRequest struct {
    // delegator_addr defines the delegator address to query for.
    DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
    // src_validator_addr defines the validator address to redelegate from.
    SrcValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=src_validator_addr,json=srcValidatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"src_validator_addr,omitempty"`
    // dst_validator_addr defines the validator address to redelegate to.
    DstValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,3,opt,name=dst_validator_addr,json=dstValidatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"dst_validator_addr,omitempty"`
    // pagination defines an optional pagination for the request.
    Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.

func (*QueryRedelegationsRequest) Descriptor Uses

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

func (*QueryRedelegationsRequest) GetDelegatorAddr Uses

func (m *QueryRedelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryRedelegationsRequest) GetDstValidatorAddr Uses

func (m *QueryRedelegationsRequest) GetDstValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryRedelegationsRequest) GetPagination Uses

func (m *QueryRedelegationsRequest) GetPagination() *query.PageRequest

func (*QueryRedelegationsRequest) GetSrcValidatorAddr Uses

func (m *QueryRedelegationsRequest) GetSrcValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryRedelegationsRequest) Marshal Uses

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

func (*QueryRedelegationsRequest) MarshalTo Uses

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

func (*QueryRedelegationsRequest) MarshalToSizedBuffer Uses

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

func (*QueryRedelegationsRequest) ProtoMessage Uses

func (*QueryRedelegationsRequest) ProtoMessage()

func (*QueryRedelegationsRequest) Reset Uses

func (m *QueryRedelegationsRequest) Reset()

func (*QueryRedelegationsRequest) Size Uses

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

func (*QueryRedelegationsRequest) String Uses

func (m *QueryRedelegationsRequest) String() string

func (*QueryRedelegationsRequest) Unmarshal Uses

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

func (*QueryRedelegationsRequest) XXX_DiscardUnknown Uses

func (m *QueryRedelegationsRequest) XXX_DiscardUnknown()

func (*QueryRedelegationsRequest) XXX_Marshal Uses

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

func (*QueryRedelegationsRequest) XXX_Merge Uses

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

func (*QueryRedelegationsRequest) XXX_Size Uses

func (m *QueryRedelegationsRequest) XXX_Size() int

func (*QueryRedelegationsRequest) XXX_Unmarshal Uses

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

type QueryRedelegationsResponse Uses

type QueryRedelegationsResponse struct {
    RedelegationResponses []RedelegationResponse `protobuf:"bytes,1,rep,name=redelegation_responses,json=redelegationResponses,proto3" json:"redelegation_responses"`
    // pagination defines the pagination in the response.
    Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.

func (*QueryRedelegationsResponse) Descriptor Uses

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

func (*QueryRedelegationsResponse) GetPagination Uses

func (m *QueryRedelegationsResponse) GetPagination() *query.PageResponse

func (*QueryRedelegationsResponse) GetRedelegationResponses Uses

func (m *QueryRedelegationsResponse) GetRedelegationResponses() []RedelegationResponse

func (*QueryRedelegationsResponse) Marshal Uses

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

func (*QueryRedelegationsResponse) MarshalTo Uses

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

func (*QueryRedelegationsResponse) MarshalToSizedBuffer Uses

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

func (*QueryRedelegationsResponse) ProtoMessage Uses

func (*QueryRedelegationsResponse) ProtoMessage()

func (*QueryRedelegationsResponse) Reset Uses

func (m *QueryRedelegationsResponse) Reset()

func (*QueryRedelegationsResponse) Size Uses

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

func (*QueryRedelegationsResponse) String Uses

func (m *QueryRedelegationsResponse) String() string

func (*QueryRedelegationsResponse) Unmarshal Uses

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

func (*QueryRedelegationsResponse) XXX_DiscardUnknown Uses

func (m *QueryRedelegationsResponse) XXX_DiscardUnknown()

func (*QueryRedelegationsResponse) XXX_Marshal Uses

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

func (*QueryRedelegationsResponse) XXX_Merge Uses

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

func (*QueryRedelegationsResponse) XXX_Size Uses

func (m *QueryRedelegationsResponse) XXX_Size() int

func (*QueryRedelegationsResponse) XXX_Unmarshal Uses

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

type QueryServer Uses

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)
    // ValidatorUnbondingDelegations queries unbonding delegations of a validator.
    ValidatorUnbondingDelegations(context.Context, *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
    // Delegation queries delegate info for given validator delegator pair.
    Delegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
    // UnbondingDelegation queries unbonding info for given validator delegator pair.
    UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
    // DelegatorDelegations queries all delegations of a given delegator address.
    DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
    // DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address.
    DelegatorUnbondingDelegations(context.Context, *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
    // Redelegations queries redelegations of given address.
    Redelegations(context.Context, *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
    // DelegatorValidators queries all validator 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)
    // Parameters queries the staking parameters.
    Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryUnbondingDelegationRequest Uses

type QueryUnbondingDelegationRequest struct {
    // delegator_addr defines the delegator address to query for.
    DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
    // validator_addr defines the validator address to query for.
    ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
}

QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.

func (*QueryUnbondingDelegationRequest) Descriptor Uses

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

func (*QueryUnbondingDelegationRequest) GetDelegatorAddr Uses

func (m *QueryUnbondingDelegationRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryUnbondingDelegationRequest) GetValidatorAddr Uses

func (m *QueryUnbondingDelegationRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryUnbondingDelegationRequest) Marshal Uses

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

func (*QueryUnbondingDelegationRequest) MarshalTo Uses

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

func (*QueryUnbondingDelegationRequest) MarshalToSizedBuffer Uses

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

func (*QueryUnbondingDelegationRequest) ProtoMessage Uses

func (*QueryUnbondingDelegationRequest) ProtoMessage()

func (*QueryUnbondingDelegationRequest) Reset Uses

func (m *QueryUnbondingDelegationRequest) Reset()

func (*QueryUnbondingDelegationRequest) Size Uses

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

func (*QueryUnbondingDelegationRequest) String Uses

func (m *QueryUnbondingDelegationRequest) String() string

func (*QueryUnbondingDelegationRequest) Unmarshal Uses

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

func (*QueryUnbondingDelegationRequest) XXX_DiscardUnknown Uses

func (m *QueryUnbondingDelegationRequest) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationRequest) XXX_Marshal Uses

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

func (*QueryUnbondingDelegationRequest) XXX_Merge Uses

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

func (*QueryUnbondingDelegationRequest) XXX_Size Uses

func (m *QueryUnbondingDelegationRequest) XXX_Size() int

func (*QueryUnbondingDelegationRequest) XXX_Unmarshal Uses

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

type QueryUnbondingDelegationResponse Uses

type QueryUnbondingDelegationResponse struct {
    // unbond defines the unbonding information of a delegation.
    Unbond UnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond"`
}

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

func (*QueryUnbondingDelegationResponse) Descriptor Uses

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

func (*QueryUnbondingDelegationResponse) GetUnbond Uses

func (m *QueryUnbondingDelegationResponse) GetUnbond() UnbondingDelegation

func (*QueryUnbondingDelegationResponse) Marshal Uses

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

func (*QueryUnbondingDelegationResponse) MarshalTo Uses

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

func (*QueryUnbondingDelegationResponse) MarshalToSizedBuffer Uses

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

func (*QueryUnbondingDelegationResponse) ProtoMessage Uses

func (*QueryUnbondingDelegationResponse) ProtoMessage()

func (*QueryUnbondingDelegationResponse) Reset Uses

func (m *QueryUnbondingDelegationResponse) Reset()

func (*QueryUnbondingDelegationResponse) Size Uses

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

func (*QueryUnbondingDelegationResponse) String Uses

func (m *QueryUnbondingDelegationResponse) String() string

func (*QueryUnbondingDelegationResponse) Unmarshal Uses

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

func (*QueryUnbondingDelegationResponse) XXX_DiscardUnknown Uses

func (m *QueryUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationResponse) XXX_Marshal Uses

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

func (*QueryUnbondingDelegationResponse) XXX_Merge Uses

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

func (*QueryUnbondingDelegationResponse) XXX_Size Uses

func (m *QueryUnbondingDelegationResponse) XXX_Size() int

func (*QueryUnbondingDelegationResponse) XXX_Unmarshal Uses

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

type QueryValidatorDelegationsRequest Uses

type QueryValidatorDelegationsRequest struct {
    // validator_addr defines the validator address to query for.
    ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
    // pagination defines an optional pagination for the request.
    Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method

func (*QueryValidatorDelegationsRequest) Descriptor Uses

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

func (*QueryValidatorDelegationsRequest) GetPagination Uses

func (m *QueryValidatorDelegationsRequest) GetPagination() *query.PageRequest

func (*QueryValidatorDelegationsRequest) GetValidatorAddr Uses

func (m *QueryValidatorDelegationsRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryValidatorDelegationsRequest) Marshal Uses

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

func (*QueryValidatorDelegationsRequest) MarshalTo Uses

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

func (*QueryValidatorDelegationsRequest) MarshalToSizedBuffer Uses

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

func (*QueryValidatorDelegationsRequest) ProtoMessage Uses

func (*QueryValidatorDelegationsRequest) ProtoMessage()

func (*QueryValidatorDelegationsRequest) Reset Uses

func (m *QueryValidatorDelegationsRequest) Reset()

func (*QueryValidatorDelegationsRequest) Size Uses

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

func (*QueryValidatorDelegationsRequest) String Uses

func (m *QueryValidatorDelegationsRequest) String() string

func (*QueryValidatorDelegationsRequest) Unmarshal Uses

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

func (*QueryValidatorDelegationsRequest) XXX_DiscardUnknown Uses

func (m *QueryValidatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsRequest) XXX_Marshal Uses

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

func (*QueryValidatorDelegationsRequest) XXX_Merge Uses

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

func (*QueryValidatorDelegationsRequest) XXX_Size Uses

func (m *QueryValidatorDelegationsRequest) XXX_Size() int

func (*QueryValidatorDelegationsRequest) XXX_Unmarshal Uses

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

type QueryValidatorDelegationsResponse Uses

type QueryValidatorDelegationsResponse struct {
    DelegationResponses DelegationResponses `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3,castrepeated=DelegationResponses" json:"delegation_responses"`
    // pagination defines the pagination in the response.
    Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorDelegationsRequest is response type for the Query/ValidatorDelegations RPC method

func (*QueryValidatorDelegationsResponse) Descriptor Uses

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

func (*QueryValidatorDelegationsResponse) GetDelegationResponses Uses

func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() DelegationResponses

func (*QueryValidatorDelegationsResponse) GetPagination Uses

func (m *QueryValidatorDelegationsResponse) GetPagination() *query.PageResponse

func (*QueryValidatorDelegationsResponse) Marshal Uses

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

func (*QueryValidatorDelegationsResponse) MarshalTo Uses

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

func (*QueryValidatorDelegationsResponse) MarshalToSizedBuffer Uses

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

func (*QueryValidatorDelegationsResponse) ProtoMessage Uses

func (*QueryValidatorDelegationsResponse) ProtoMessage()

func (*QueryValidatorDelegationsResponse) Reset Uses

func (m *QueryValidatorDelegationsResponse) Reset()

func (*QueryValidatorDelegationsResponse) Size Uses

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

func (*QueryValidatorDelegationsResponse) String Uses

func (m *QueryValidatorDelegationsResponse) String() string

func (*QueryValidatorDelegationsResponse) Unmarshal Uses

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

func (*QueryValidatorDelegationsResponse) XXX_DiscardUnknown Uses

func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorDelegationsResponse) XXX_Marshal Uses

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

func (*QueryValidatorDelegationsResponse) XXX_Merge Uses

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

func (*QueryValidatorDelegationsResponse) XXX_Size Uses

func (m *QueryValidatorDelegationsResponse) XXX_Size() int

func (*QueryValidatorDelegationsResponse) XXX_Unmarshal Uses

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

type QueryValidatorParams Uses

type QueryValidatorParams struct {
    ValidatorAddr sdk.ValAddress
    Page, Limit   int
}

defines the params for the following queries: - 'custom/staking/validator' - 'custom/staking/validatorDelegations' - 'custom/staking/validatorUnbondingDelegations'

func NewQueryValidatorParams Uses

func NewQueryValidatorParams(validatorAddr sdk.ValAddress, page, limit int) QueryValidatorParams

type QueryValidatorRequest Uses

type QueryValidatorRequest struct {
    // validator_addr defines the validator address to query for.
    ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
}

QueryValidatorRequest is response type for the Query/Validator RPC method

func (*QueryValidatorRequest) Descriptor Uses

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

func (*QueryValidatorRequest) GetValidatorAddr Uses

func (m *QueryValidatorRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryValidatorRequest) Marshal Uses

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

func (*QueryValidatorRequest) MarshalTo Uses

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

func (*QueryValidatorRequest) MarshalToSizedBuffer Uses

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

func (*QueryValidatorRequest) ProtoMessage Uses

func (*QueryValidatorRequest) ProtoMessage()

func (*QueryValidatorRequest) Reset Uses

func (m *QueryValidatorRequest) Reset()

func (*QueryValidatorRequest) Size Uses

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

func (*QueryValidatorRequest) String Uses

func (m *QueryValidatorRequest) String() string

func (*QueryValidatorRequest) Unmarshal Uses

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

func (*QueryValidatorRequest) XXX_DiscardUnknown Uses

func (m *QueryValidatorRequest) XXX_DiscardUnknown()

func (*QueryValidatorRequest) XXX_Marshal Uses

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

func (*QueryValidatorRequest) XXX_Merge Uses

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

func (*QueryValidatorRequest) XXX_Size Uses

func (m *QueryValidatorRequest) XXX_Size() int

func (*QueryValidatorRequest) XXX_Unmarshal Uses

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

type QueryValidatorResponse Uses

type QueryValidatorResponse struct {
    // validator defines the 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 Uses

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

func (*QueryValidatorResponse) GetValidator Uses

func (m *QueryValidatorResponse) GetValidator() Validator

func (*QueryValidatorResponse) Marshal Uses

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

func (*QueryValidatorResponse) MarshalTo Uses

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

func (*QueryValidatorResponse) MarshalToSizedBuffer Uses

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

func (*QueryValidatorResponse) ProtoMessage Uses

func (*QueryValidatorResponse) ProtoMessage()

func (*QueryValidatorResponse) Reset Uses

func (m *QueryValidatorResponse) Reset()

func (*QueryValidatorResponse) Size Uses

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

func (*QueryValidatorResponse) String Uses

func (m *QueryValidatorResponse) String() string

func (*QueryValidatorResponse) Unmarshal Uses

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

func (*QueryValidatorResponse) XXX_DiscardUnknown Uses

func (m *QueryValidatorResponse) XXX_DiscardUnknown()

func (*QueryValidatorResponse) XXX_Marshal Uses

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

func (*QueryValidatorResponse) XXX_Merge Uses

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

func (*QueryValidatorResponse) XXX_Size Uses

func (m *QueryValidatorResponse) XXX_Size() int

func (*QueryValidatorResponse) XXX_Unmarshal Uses

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

type QueryValidatorUnbondingDelegationsRequest Uses

type QueryValidatorUnbondingDelegationsRequest struct {
    // validator_addr defines the validator address to query for.
    ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
    // pagination defines an optional pagination for the request.
    Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method

func (*QueryValidatorUnbondingDelegationsRequest) Descriptor Uses

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

func (*QueryValidatorUnbondingDelegationsRequest) GetPagination Uses

func (m *QueryValidatorUnbondingDelegationsRequest) GetPagination() *query.PageRequest

func (*QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr Uses

func (m *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryValidatorUnbondingDelegationsRequest) Marshal Uses

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

func (*QueryValidatorUnbondingDelegationsRequest) MarshalTo Uses

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

func (*QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer Uses

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

func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage Uses

func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage()

func (*QueryValidatorUnbondingDelegationsRequest) Reset Uses

func (m *QueryValidatorUnbondingDelegationsRequest) Reset()

func (*QueryValidatorUnbondingDelegationsRequest) Size Uses

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

func (*QueryValidatorUnbondingDelegationsRequest) String Uses

func (m *QueryValidatorUnbondingDelegationsRequest) String() string

func (*QueryValidatorUnbondingDelegationsRequest) Unmarshal Uses

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

func (*QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown Uses

func (m *QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Marshal Uses

func (m *