Documentation ¶
Index ¶
- Constants
- Variables
- func AddressFromLastValidatorPowerKey(key []byte) []byte
- func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetDelegationsKey(delAddr sdk.AccAddress) []byte
- func GetHistoricalInfoKey(height int64) []byte
- func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte
- func GetREDByValDstIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
- func GetREDByValSrcIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
- func GetREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
- func GetREDKeyFromValDstIndexKey(indexKey []byte) []byte
- func GetREDKeyFromValSrcIndexKey(indexKey []byte) []byte
- func GetREDsByDelToValDstIndexKey(delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) []byte
- func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte
- func GetREDsKey(delAddr sdk.AccAddress) []byte
- func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte
- func GetRedelegationTimeKey(timestamp time.Time) []byte
- func GetUBDByValIndexKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetUBDKeyFromValIndexKey(indexKey []byte) []byte
- func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte
- func GetUBDsKey(delAddr sdk.AccAddress) []byte
- func GetUnbondingDelegationTimeKey(timestamp time.Time) []byte
- func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
- func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
- func GetValidatorQueueTimeKey(timestamp time.Time) []byte
- func GetValidatorsByPowerIndexKey(validator Validator) []byte
- func MustMarshalDelegation(cdc codec.Marshaler, delegation Delegation) []byte
- func MustMarshalHistoricalInfo(cdc codec.Marshaler, hi HistoricalInfo) []byte
- func MustMarshalRED(cdc codec.Marshaler, red Redelegation) []byte
- func MustMarshalUBD(cdc codec.Marshaler, ubd UnbondingDelegation) []byte
- func MustMarshalValidator(cdc codec.Marshaler, validator Validator) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func ParseValidatorPowerRankKey(key []byte) (operAddr []byte)
- func RegisterCodec(cdc *codec.Codec)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func StakingDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- func ValidateBasic(hi HistoricalInfo) error
- type AccountKeeper
- type BankKeeper
- type Commission
- func (*Commission) Descriptor() ([]byte, []int)
- func (this *Commission) Equal(that interface{}) bool
- func (m *Commission) GetUpdateTime() time.Time
- func (m *Commission) Marshal() (dAtA []byte, err error)
- func (m *Commission) MarshalTo(dAtA []byte) (int, error)
- func (m *Commission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Commission) ProtoMessage()
- func (m *Commission) Reset()
- func (m *Commission) Size() (n int)
- func (c Commission) String() string
- func (m *Commission) Unmarshal(dAtA []byte) error
- func (c Commission) ValidateNewRate(newRate sdk.Dec, blockTime time.Time) error
- func (m *Commission) XXX_DiscardUnknown()
- func (m *Commission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Commission) XXX_Merge(src proto.Message)
- func (m *Commission) XXX_Size() int
- func (m *Commission) XXX_Unmarshal(b []byte) error
- type CommissionRates
- func (*CommissionRates) Descriptor() ([]byte, []int)
- func (this *CommissionRates) Equal(that interface{}) bool
- func (m *CommissionRates) Marshal() (dAtA []byte, err error)
- func (m *CommissionRates) MarshalTo(dAtA []byte) (int, error)
- func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CommissionRates) ProtoMessage()
- func (m *CommissionRates) Reset()
- func (m *CommissionRates) Size() (n int)
- func (cr CommissionRates) String() string
- func (m *CommissionRates) Unmarshal(dAtA []byte) error
- func (cr CommissionRates) Validate() error
- func (m *CommissionRates) XXX_DiscardUnknown()
- func (m *CommissionRates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommissionRates) XXX_Merge(src proto.Message)
- func (m *CommissionRates) XXX_Size() int
- func (m *CommissionRates) XXX_Unmarshal(b []byte) error
- type DVPair
- func (*DVPair) Descriptor() ([]byte, []int)
- func (this *DVPair) Equal(that interface{}) bool
- func (m *DVPair) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *DVPair) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *DVPair) Marshal() (dAtA []byte, err error)
- func (m *DVPair) MarshalTo(dAtA []byte) (int, error)
- func (m *DVPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DVPair) ProtoMessage()
- func (m *DVPair) Reset()
- func (m *DVPair) Size() (n int)
- func (dv DVPair) String() string
- func (m *DVPair) Unmarshal(dAtA []byte) error
- func (m *DVPair) XXX_DiscardUnknown()
- func (m *DVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVPair) XXX_Merge(src proto.Message)
- func (m *DVPair) XXX_Size() int
- func (m *DVPair) XXX_Unmarshal(b []byte) error
- type DVPairs
- func (*DVPairs) Descriptor() ([]byte, []int)
- func (m *DVPairs) GetPairs() []DVPair
- func (m *DVPairs) Marshal() (dAtA []byte, err error)
- func (m *DVPairs) MarshalTo(dAtA []byte) (int, error)
- func (m *DVPairs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DVPairs) ProtoMessage()
- func (m *DVPairs) Reset()
- func (m *DVPairs) Size() (n int)
- func (m *DVPairs) String() string
- func (m *DVPairs) Unmarshal(dAtA []byte) error
- func (m *DVPairs) XXX_DiscardUnknown()
- func (m *DVPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVPairs) XXX_Merge(src proto.Message)
- func (m *DVPairs) XXX_Size() int
- func (m *DVPairs) XXX_Unmarshal(b []byte) error
- type DVVTriplet
- func (*DVVTriplet) Descriptor() ([]byte, []int)
- func (this *DVVTriplet) Equal(that interface{}) bool
- func (m *DVVTriplet) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *DVVTriplet) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *DVVTriplet) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *DVVTriplet) Marshal() (dAtA []byte, err error)
- func (m *DVVTriplet) MarshalTo(dAtA []byte) (int, error)
- func (m *DVVTriplet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DVVTriplet) ProtoMessage()
- func (m *DVVTriplet) Reset()
- func (m *DVVTriplet) Size() (n int)
- func (dvv DVVTriplet) String() string
- func (m *DVVTriplet) Unmarshal(dAtA []byte) error
- func (m *DVVTriplet) XXX_DiscardUnknown()
- func (m *DVVTriplet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVVTriplet) XXX_Merge(src proto.Message)
- func (m *DVVTriplet) XXX_Size() int
- func (m *DVVTriplet) XXX_Unmarshal(b []byte) error
- type DVVTriplets
- func (*DVVTriplets) Descriptor() ([]byte, []int)
- func (m *DVVTriplets) GetTriplets() []DVVTriplet
- func (m *DVVTriplets) Marshal() (dAtA []byte, err error)
- func (m *DVVTriplets) MarshalTo(dAtA []byte) (int, error)
- func (m *DVVTriplets) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DVVTriplets) ProtoMessage()
- func (m *DVVTriplets) Reset()
- func (m *DVVTriplets) Size() (n int)
- func (m *DVVTriplets) String() string
- func (m *DVVTriplets) Unmarshal(dAtA []byte) error
- func (m *DVVTriplets) XXX_DiscardUnknown()
- func (m *DVVTriplets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVVTriplets) XXX_Merge(src proto.Message)
- func (m *DVVTriplets) XXX_Size() int
- func (m *DVVTriplets) XXX_Unmarshal(b []byte) error
- type Delegation
- func (*Delegation) Descriptor() ([]byte, []int)
- func (this *Delegation) Equal(that interface{}) bool
- func (d Delegation) GetDelegatorAddr() sdk.AccAddress
- func (m *Delegation) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (d Delegation) GetShares() sdk.Dec
- func (d Delegation) GetValidatorAddr() sdk.ValAddress
- func (m *Delegation) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *Delegation) Marshal() (dAtA []byte, err error)
- func (m *Delegation) MarshalTo(dAtA []byte) (int, error)
- func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Delegation) ProtoMessage()
- func (m *Delegation) Reset()
- func (m *Delegation) Size() (n int)
- func (d Delegation) String() string
- func (m *Delegation) Unmarshal(dAtA []byte) error
- func (m *Delegation) XXX_DiscardUnknown()
- func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Delegation) XXX_Merge(src proto.Message)
- func (m *Delegation) XXX_Size() int
- func (m *Delegation) XXX_Unmarshal(b []byte) error
- type DelegationResponse
- func (*DelegationResponse) Descriptor() ([]byte, []int)
- func (this *DelegationResponse) Equal(that interface{}) bool
- func (m *DelegationResponse) GetBalance() types.Coin
- func (m *DelegationResponse) GetDelegation() Delegation
- func (m *DelegationResponse) Marshal() (dAtA []byte, err error)
- func (d DelegationResponse) MarshalJSON() ([]byte, error)
- func (m *DelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegationResponse) ProtoMessage()
- func (m *DelegationResponse) Reset()
- func (m *DelegationResponse) Size() (n int)
- func (d DelegationResponse) String() string
- func (m *DelegationResponse) Unmarshal(dAtA []byte) error
- func (d *DelegationResponse) UnmarshalJSON(bz []byte) error
- func (m *DelegationResponse) XXX_DiscardUnknown()
- func (m *DelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegationResponse) XXX_Merge(src proto.Message)
- func (m *DelegationResponse) XXX_Size() int
- func (m *DelegationResponse) XXX_Unmarshal(b []byte) error
- type DelegationResponses
- type DelegationSet
- type Delegations
- type Description
- func (*Description) Descriptor() ([]byte, []int)
- func (d Description) EnsureLength() (Description, error)
- func (this *Description) Equal(that interface{}) bool
- func (m *Description) GetDetails() string
- func (m *Description) GetIdentity() string
- func (m *Description) GetMoniker() string
- func (m *Description) GetSecurityContact() string
- func (m *Description) GetWebsite() string
- func (m *Description) Marshal() (dAtA []byte, err error)
- func (m *Description) MarshalTo(dAtA []byte) (int, error)
- func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Description) ProtoMessage()
- func (m *Description) Reset()
- func (m *Description) Size() (n int)
- func (d Description) String() string
- func (m *Description) Unmarshal(dAtA []byte) error
- func (d Description) UpdateDescription(d2 Description) (Description, error)
- func (m *Description) XXX_DiscardUnknown()
- func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Description) XXX_Merge(src proto.Message)
- func (m *Description) XXX_Size() int
- func (m *Description) XXX_Unmarshal(b []byte) error
- type DistributionKeeper
- type GenesisState
- type HistoricalInfo
- func (*HistoricalInfo) Descriptor() ([]byte, []int)
- func (this *HistoricalInfo) Equal(that interface{}) bool
- func (m *HistoricalInfo) GetHeader() types1.Header
- func (m *HistoricalInfo) GetValset() []Validator
- func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)
- func (m *HistoricalInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HistoricalInfo) ProtoMessage()
- func (m *HistoricalInfo) Reset()
- func (m *HistoricalInfo) Size() (n int)
- func (m *HistoricalInfo) String() string
- func (m *HistoricalInfo) Unmarshal(dAtA []byte) error
- func (m *HistoricalInfo) XXX_DiscardUnknown()
- func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HistoricalInfo) XXX_Merge(src proto.Message)
- func (m *HistoricalInfo) XXX_Size() int
- func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
- type LastValidatorPower
- type MsgBeginRedelegate
- func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
- func (this *MsgBeginRedelegate) Equal(that interface{}) bool
- func (m *MsgBeginRedelegate) GetAmount() types.Coin
- func (m *MsgBeginRedelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgBeginRedelegate) GetSignBytes() []byte
- func (msg MsgBeginRedelegate) GetSigners() []sdk.AccAddress
- func (m *MsgBeginRedelegate) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *MsgBeginRedelegate) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBeginRedelegate) ProtoMessage()
- func (m *MsgBeginRedelegate) Reset()
- func (msg MsgBeginRedelegate) Route() string
- func (m *MsgBeginRedelegate) Size() (n int)
- func (m *MsgBeginRedelegate) String() string
- func (msg MsgBeginRedelegate) Type() string
- func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error
- func (msg MsgBeginRedelegate) ValidateBasic() error
- func (m *MsgBeginRedelegate) XXX_DiscardUnknown()
- func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)
- func (m *MsgBeginRedelegate) XXX_Size() int
- func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error
- type MsgCreateValidator
- func (*MsgCreateValidator) Descriptor() ([]byte, []int)
- func (this *MsgCreateValidator) Equal(that interface{}) bool
- func (m *MsgCreateValidator) GetCommission() CommissionRates
- func (m *MsgCreateValidator) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgCreateValidator) GetDescription() Description
- func (m *MsgCreateValidator) GetPubkey() string
- func (msg MsgCreateValidator) GetSignBytes() []byte
- func (msg MsgCreateValidator) GetSigners() []sdk.AccAddress
- func (m *MsgCreateValidator) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *MsgCreateValidator) GetValue() types.Coin
- func (m *MsgCreateValidator) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateValidator) ProtoMessage()
- func (m *MsgCreateValidator) Reset()
- func (msg MsgCreateValidator) Route() string
- func (m *MsgCreateValidator) Size() (n int)
- func (m *MsgCreateValidator) String() string
- func (msg MsgCreateValidator) Type() string
- func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error
- func (msg MsgCreateValidator) ValidateBasic() error
- func (m *MsgCreateValidator) XXX_DiscardUnknown()
- func (m *MsgCreateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateValidator) XXX_Merge(src proto.Message)
- func (m *MsgCreateValidator) XXX_Size() int
- func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error
- type MsgDelegate
- func (*MsgDelegate) Descriptor() ([]byte, []int)
- func (this *MsgDelegate) Equal(that interface{}) bool
- func (m *MsgDelegate) GetAmount() types.Coin
- func (m *MsgDelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgDelegate) GetSignBytes() []byte
- func (msg MsgDelegate) GetSigners() []sdk.AccAddress
- func (m *MsgDelegate) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *MsgDelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgDelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelegate) ProtoMessage()
- func (m *MsgDelegate) Reset()
- func (msg MsgDelegate) Route() string
- func (m *MsgDelegate) Size() (n int)
- func (m *MsgDelegate) String() string
- func (msg MsgDelegate) Type() string
- func (m *MsgDelegate) Unmarshal(dAtA []byte) error
- func (msg MsgDelegate) ValidateBasic() error
- func (m *MsgDelegate) XXX_DiscardUnknown()
- func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelegate) XXX_Merge(src proto.Message)
- func (m *MsgDelegate) XXX_Size() int
- func (m *MsgDelegate) XXX_Unmarshal(b []byte) error
- type MsgEditValidator
- func (*MsgEditValidator) Descriptor() ([]byte, []int)
- func (this *MsgEditValidator) Equal(that interface{}) bool
- func (m *MsgEditValidator) GetDescription() Description
- func (msg MsgEditValidator) GetSignBytes() []byte
- func (msg MsgEditValidator) GetSigners() []sdk.AccAddress
- func (m *MsgEditValidator) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *MsgEditValidator) Marshal() (dAtA []byte, err error)
- func (m *MsgEditValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditValidator) ProtoMessage()
- func (m *MsgEditValidator) Reset()
- func (msg MsgEditValidator) Route() string
- func (m *MsgEditValidator) Size() (n int)
- func (m *MsgEditValidator) String() string
- func (msg MsgEditValidator) Type() string
- func (m *MsgEditValidator) Unmarshal(dAtA []byte) error
- func (msg MsgEditValidator) ValidateBasic() error
- func (m *MsgEditValidator) XXX_DiscardUnknown()
- func (m *MsgEditValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditValidator) XXX_Merge(src proto.Message)
- func (m *MsgEditValidator) XXX_Size() int
- func (m *MsgEditValidator) XXX_Unmarshal(b []byte) error
- type MsgUndelegate
- func (*MsgUndelegate) Descriptor() ([]byte, []int)
- func (this *MsgUndelegate) Equal(that interface{}) bool
- func (m *MsgUndelegate) GetAmount() types.Coin
- func (m *MsgUndelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgUndelegate) GetSignBytes() []byte
- func (msg MsgUndelegate) GetSigners() []sdk.AccAddress
- func (m *MsgUndelegate) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *MsgUndelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgUndelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUndelegate) ProtoMessage()
- func (m *MsgUndelegate) Reset()
- func (msg MsgUndelegate) Route() string
- func (m *MsgUndelegate) Size() (n int)
- func (m *MsgUndelegate) String() string
- func (msg MsgUndelegate) Type() string
- func (m *MsgUndelegate) Unmarshal(dAtA []byte) error
- func (msg MsgUndelegate) ValidateBasic() error
- func (m *MsgUndelegate) XXX_DiscardUnknown()
- func (m *MsgUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUndelegate) XXX_Merge(src proto.Message)
- func (m *MsgUndelegate) XXX_Size() int
- func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error
- type MultiStakingHooks
- func (h MultiStakingHooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress)
- func (h MultiStakingHooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec)
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetBondDenom() string
- func (m *Params) GetHistoricalEntries() uint32
- func (m *Params) GetMaxEntries() uint32
- func (m *Params) GetMaxValidators() uint32
- func (m *Params) GetUnbondingTime() time.Duration
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Pool
- func (this *Pool) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- func (*Pool) Descriptor() ([]byte, []int)
- func (this *Pool) Equal(that interface{}) bool
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDelegationRequest
- func (*QueryDelegationRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegationRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryDelegationRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryDelegationRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegationRequest) ProtoMessage()
- func (m *QueryDelegationRequest) Reset()
- func (m *QueryDelegationRequest) Size() (n int)
- func (m *QueryDelegationRequest) String() string
- func (m *QueryDelegationRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegationRequest) XXX_DiscardUnknown()
- func (m *QueryDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegationRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegationRequest) XXX_Size() int
- func (m *QueryDelegationRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegationResponse
- func (*QueryDelegationResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse
- func (m *QueryDelegationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegationResponse) ProtoMessage()
- func (m *QueryDelegationResponse) Reset()
- func (m *QueryDelegationResponse) Size() (n int)
- func (m *QueryDelegationResponse) String() string
- func (m *QueryDelegationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegationResponse) XXX_DiscardUnknown()
- func (m *QueryDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegationResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegationResponse) XXX_Size() int
- func (m *QueryDelegationResponse) XXX_Unmarshal(b []byte) error
- type QueryDelegatorDelegationsRequest
- func (*QueryDelegatorDelegationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorDelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryDelegatorDelegationsRequest) GetPagination() *query.PageRequest
- func (m *QueryDelegatorDelegationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorDelegationsRequest) ProtoMessage()
- func (m *QueryDelegatorDelegationsRequest) Reset()
- func (m *QueryDelegatorDelegationsRequest) Size() (n int)
- func (m *QueryDelegatorDelegationsRequest) String() string
- func (m *QueryDelegatorDelegationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown()
- func (m *QueryDelegatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorDelegationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorDelegationsRequest) XXX_Size() int
- func (m *QueryDelegatorDelegationsRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegatorDelegationsResponse
- func (*QueryDelegatorDelegationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorDelegationsResponse) GetDelegationResponses() []DelegationResponse
- func (m *QueryDelegatorDelegationsResponse) GetPagination() *query.PageResponse
- func (m *QueryDelegatorDelegationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorDelegationsResponse) ProtoMessage()
- func (m *QueryDelegatorDelegationsResponse) Reset()
- func (m *QueryDelegatorDelegationsResponse) Size() (n int)
- func (m *QueryDelegatorDelegationsResponse) String() string
- func (m *QueryDelegatorDelegationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown()
- func (m *QueryDelegatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorDelegationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorDelegationsResponse) XXX_Size() int
- func (m *QueryDelegatorDelegationsResponse) XXX_Unmarshal(b []byte) error
- type QueryDelegatorParams
- type QueryDelegatorUnbondingDelegationsRequest
- func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorUnbondingDelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryDelegatorUnbondingDelegationsRequest) GetPagination() *query.PageRequest
- func (m *QueryDelegatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage()
- func (m *QueryDelegatorUnbondingDelegationsRequest) Reset()
- func (m *QueryDelegatorUnbondingDelegationsRequest) Size() (n int)
- func (m *QueryDelegatorUnbondingDelegationsRequest) String() string
- func (m *QueryDelegatorUnbondingDelegationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown()
- func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Size() int
- func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegatorUnbondingDelegationsResponse
- func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorUnbondingDelegationsResponse) GetPagination() *query.PageResponse
- func (m *QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses() []UnbondingDelegation
- func (m *QueryDelegatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage()
- func (m *QueryDelegatorUnbondingDelegationsResponse) Reset()
- func (m *QueryDelegatorUnbondingDelegationsResponse) Size() (n int)
- func (m *QueryDelegatorUnbondingDelegationsResponse) String() string
- func (m *QueryDelegatorUnbondingDelegationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown()
- func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Size() int
- func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal(b []byte) error
- type QueryDelegatorValidatorRequest
- func (*QueryDelegatorValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorValidatorRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryDelegatorValidatorRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryDelegatorValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorValidatorRequest) ProtoMessage()
- func (m *QueryDelegatorValidatorRequest) Reset()
- func (m *QueryDelegatorValidatorRequest) Size() (n int)
- func (m *QueryDelegatorValidatorRequest) String() string
- func (m *QueryDelegatorValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryDelegatorValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorValidatorRequest) XXX_Size() int
- func (m *QueryDelegatorValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegatorValidatorResponse
- func (*QueryDelegatorValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorValidatorResponse) GetValidator() Validator
- func (m *QueryDelegatorValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorValidatorResponse) ProtoMessage()
- func (m *QueryDelegatorValidatorResponse) Reset()
- func (m *QueryDelegatorValidatorResponse) Size() (n int)
- func (m *QueryDelegatorValidatorResponse) String() string
- func (m *QueryDelegatorValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryDelegatorValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorValidatorResponse) XXX_Size() int
- func (m *QueryDelegatorValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryDelegatorValidatorsRequest
- func (*QueryDelegatorValidatorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorValidatorsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryDelegatorValidatorsRequest) GetPagination() *query.PageRequest
- func (m *QueryDelegatorValidatorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorValidatorsRequest) ProtoMessage()
- func (m *QueryDelegatorValidatorsRequest) Reset()
- func (m *QueryDelegatorValidatorsRequest) Size() (n int)
- func (m *QueryDelegatorValidatorsRequest) String() string
- func (m *QueryDelegatorValidatorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()
- func (m *QueryDelegatorValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorValidatorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorValidatorsRequest) XXX_Size() int
- func (m *QueryDelegatorValidatorsRequest) XXX_Unmarshal(b []byte) error
- type QueryDelegatorValidatorsResponse
- func (*QueryDelegatorValidatorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDelegatorValidatorsResponse) GetPagination() *query.PageResponse
- func (m *QueryDelegatorValidatorsResponse) GetValidators() []Validator
- func (m *QueryDelegatorValidatorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDelegatorValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDelegatorValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDelegatorValidatorsResponse) ProtoMessage()
- func (m *QueryDelegatorValidatorsResponse) Reset()
- func (m *QueryDelegatorValidatorsResponse) Size() (n int)
- func (m *QueryDelegatorValidatorsResponse) String() string
- func (m *QueryDelegatorValidatorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()
- func (m *QueryDelegatorValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDelegatorValidatorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDelegatorValidatorsResponse) XXX_Size() int
- func (m *QueryDelegatorValidatorsResponse) XXX_Unmarshal(b []byte) error
- type QueryHistoricalInfoRequest
- func (*QueryHistoricalInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryHistoricalInfoRequest) GetHeight() int64
- func (m *QueryHistoricalInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryHistoricalInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHistoricalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHistoricalInfoRequest) ProtoMessage()
- func (m *QueryHistoricalInfoRequest) Reset()
- func (m *QueryHistoricalInfoRequest) Size() (n int)
- func (m *QueryHistoricalInfoRequest) String() string
- func (m *QueryHistoricalInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()
- func (m *QueryHistoricalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHistoricalInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryHistoricalInfoRequest) XXX_Size() int
- func (m *QueryHistoricalInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryHistoricalInfoResponse
- func (*QueryHistoricalInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryHistoricalInfoResponse) GetHist() *HistoricalInfo
- func (m *QueryHistoricalInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryHistoricalInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHistoricalInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHistoricalInfoResponse) ProtoMessage()
- func (m *QueryHistoricalInfoResponse) Reset()
- func (m *QueryHistoricalInfoResponse) Size() (n int)
- func (m *QueryHistoricalInfoResponse) String() string
- func (m *QueryHistoricalInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()
- func (m *QueryHistoricalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHistoricalInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryHistoricalInfoResponse) XXX_Size() int
- func (m *QueryHistoricalInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetPagination() *query.PageResponse
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPoolRequest
- func (*QueryPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolRequest) ProtoMessage()
- func (m *QueryPoolRequest) Reset()
- func (m *QueryPoolRequest) Size() (n int)
- func (m *QueryPoolRequest) String() string
- func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolRequest) XXX_DiscardUnknown()
- func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolRequest) XXX_Size() int
- func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolResponse
- func (*QueryPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolResponse) GetPool() Pool
- func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolResponse) ProtoMessage()
- func (m *QueryPoolResponse) Reset()
- func (m *QueryPoolResponse) Size() (n int)
- func (m *QueryPoolResponse) String() string
- func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolResponse) XXX_DiscardUnknown()
- func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolResponse) XXX_Size() int
- func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryRedelegationParams
- type QueryRedelegationsRequest
- func (*QueryRedelegationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryRedelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryRedelegationsRequest) GetDstValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryRedelegationsRequest) GetPagination() *query.PageRequest
- func (m *QueryRedelegationsRequest) GetSrcValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryRedelegationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRedelegationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRedelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRedelegationsRequest) ProtoMessage()
- func (m *QueryRedelegationsRequest) Reset()
- func (m *QueryRedelegationsRequest) Size() (n int)
- func (m *QueryRedelegationsRequest) String() string
- func (m *QueryRedelegationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRedelegationsRequest) XXX_DiscardUnknown()
- func (m *QueryRedelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRedelegationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryRedelegationsRequest) XXX_Size() int
- func (m *QueryRedelegationsRequest) XXX_Unmarshal(b []byte) error
- type QueryRedelegationsResponse
- func (*QueryRedelegationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRedelegationsResponse) GetPagination() *query.PageResponse
- func (m *QueryRedelegationsResponse) GetRedelegationResponses() []RedelegationResponse
- func (m *QueryRedelegationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRedelegationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRedelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRedelegationsResponse) ProtoMessage()
- func (m *QueryRedelegationsResponse) Reset()
- func (m *QueryRedelegationsResponse) Size() (n int)
- func (m *QueryRedelegationsResponse) String() string
- func (m *QueryRedelegationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRedelegationsResponse) XXX_DiscardUnknown()
- func (m *QueryRedelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRedelegationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRedelegationsResponse) XXX_Size() int
- func (m *QueryRedelegationsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryUnbondingDelegationRequest
- func (*QueryUnbondingDelegationRequest) Descriptor() ([]byte, []int)
- func (m *QueryUnbondingDelegationRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryUnbondingDelegationRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryUnbondingDelegationRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUnbondingDelegationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUnbondingDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUnbondingDelegationRequest) ProtoMessage()
- func (m *QueryUnbondingDelegationRequest) Reset()
- func (m *QueryUnbondingDelegationRequest) Size() (n int)
- func (m *QueryUnbondingDelegationRequest) String() string
- func (m *QueryUnbondingDelegationRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUnbondingDelegationRequest) XXX_DiscardUnknown()
- func (m *QueryUnbondingDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUnbondingDelegationRequest) XXX_Merge(src proto.Message)
- func (m *QueryUnbondingDelegationRequest) XXX_Size() int
- func (m *QueryUnbondingDelegationRequest) XXX_Unmarshal(b []byte) error
- type QueryUnbondingDelegationResponse
- func (*QueryUnbondingDelegationResponse) Descriptor() ([]byte, []int)
- func (m *QueryUnbondingDelegationResponse) GetUnbond() UnbondingDelegation
- func (m *QueryUnbondingDelegationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUnbondingDelegationResponse) ProtoMessage()
- func (m *QueryUnbondingDelegationResponse) Reset()
- func (m *QueryUnbondingDelegationResponse) Size() (n int)
- func (m *QueryUnbondingDelegationResponse) String() string
- func (m *QueryUnbondingDelegationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUnbondingDelegationResponse) XXX_DiscardUnknown()
- func (m *QueryUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUnbondingDelegationResponse) XXX_Merge(src proto.Message)
- func (m *QueryUnbondingDelegationResponse) XXX_Size() int
- func (m *QueryUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorDelegationsRequest
- func (*QueryValidatorDelegationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorDelegationsRequest) GetPagination() *query.PageRequest
- func (m *QueryValidatorDelegationsRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryValidatorDelegationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorDelegationsRequest) ProtoMessage()
- func (m *QueryValidatorDelegationsRequest) Reset()
- func (m *QueryValidatorDelegationsRequest) Size() (n int)
- func (m *QueryValidatorDelegationsRequest) String() string
- func (m *QueryValidatorDelegationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorDelegationsRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorDelegationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorDelegationsRequest) XXX_Size() int
- func (m *QueryValidatorDelegationsRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorDelegationsResponse
- func (*QueryValidatorDelegationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() DelegationResponses
- func (m *QueryValidatorDelegationsResponse) GetPagination() *query.PageResponse
- func (m *QueryValidatorDelegationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorDelegationsResponse) ProtoMessage()
- func (m *QueryValidatorDelegationsResponse) Reset()
- func (m *QueryValidatorDelegationsResponse) Size() (n int)
- func (m *QueryValidatorDelegationsResponse) String() string
- func (m *QueryValidatorDelegationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorDelegationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorDelegationsResponse) XXX_Size() int
- func (m *QueryValidatorDelegationsResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorParams
- type QueryValidatorRequest
- func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorRequest) ProtoMessage()
- func (m *QueryValidatorRequest) Reset()
- func (m *QueryValidatorRequest) Size() (n int)
- func (m *QueryValidatorRequest) String() string
- func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorRequest) XXX_Size() int
- func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorResponse
- func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorResponse) GetValidator() Validator
- func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorResponse) ProtoMessage()
- func (m *QueryValidatorResponse) Reset()
- func (m *QueryValidatorResponse) Size() (n int)
- func (m *QueryValidatorResponse) String() string
- func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorResponse) XXX_Size() int
- func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorUnbondingDelegationsRequest
- func (*QueryValidatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorUnbondingDelegationsRequest) GetPagination() *query.PageRequest
- func (m *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *QueryValidatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage()
- func (m *QueryValidatorUnbondingDelegationsRequest) Reset()
- func (m *QueryValidatorUnbondingDelegationsRequest) Size() (n int)
- func (m *QueryValidatorUnbondingDelegationsRequest) String() string
- func (m *QueryValidatorUnbondingDelegationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Size() int
- func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorUnbondingDelegationsResponse
- func (*QueryValidatorUnbondingDelegationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorUnbondingDelegationsResponse) GetPagination() *query.PageResponse
- func (m *QueryValidatorUnbondingDelegationsResponse) GetUnbondingResponses() []UnbondingDelegation
- func (m *QueryValidatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage()
- func (m *QueryValidatorUnbondingDelegationsResponse) Reset()
- func (m *QueryValidatorUnbondingDelegationsResponse) Size() (n int)
- func (m *QueryValidatorUnbondingDelegationsResponse) String() string
- func (m *QueryValidatorUnbondingDelegationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Size() int
- func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorsParams
- type QueryValidatorsRequest
- func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest
- func (m *QueryValidatorsRequest) GetStatus() string
- func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorsRequest) ProtoMessage()
- func (m *QueryValidatorsRequest) Reset()
- func (m *QueryValidatorsRequest) Size() (n int)
- func (m *QueryValidatorsRequest) String() string
- func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorsRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorsRequest) XXX_Size() int
- func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorsResponse
- func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse
- func (m *QueryValidatorsResponse) GetValidators() []Validator
- func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorsResponse) ProtoMessage()
- func (m *QueryValidatorsResponse) Reset()
- func (m *QueryValidatorsResponse) Size() (n int)
- func (m *QueryValidatorsResponse) String() string
- func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorsResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorsResponse) XXX_Size() int
- func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error
- type Redelegation
- func (red *Redelegation) AddEntry(creationHeight int64, minTime time.Time, balance sdk.Int, sharesDst sdk.Dec)
- func (*Redelegation) Descriptor() ([]byte, []int)
- func (this *Redelegation) Equal(that interface{}) bool
- func (m *Redelegation) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Redelegation) GetEntries() []RedelegationEntry
- func (m *Redelegation) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *Redelegation) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *Redelegation) Marshal() (dAtA []byte, err error)
- func (m *Redelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Redelegation) ProtoMessage()
- func (red *Redelegation) RemoveEntry(i int64)
- func (m *Redelegation) Reset()
- func (m *Redelegation) Size() (n int)
- func (red Redelegation) String() string
- func (m *Redelegation) Unmarshal(dAtA []byte) error
- func (m *Redelegation) XXX_DiscardUnknown()
- func (m *Redelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Redelegation) XXX_Merge(src proto.Message)
- func (m *Redelegation) XXX_Size() int
- func (m *Redelegation) XXX_Unmarshal(b []byte) error
- type RedelegationEntry
- func (*RedelegationEntry) Descriptor() ([]byte, []int)
- func (this *RedelegationEntry) Equal(that interface{}) bool
- func (m *RedelegationEntry) GetCompletionTime() time.Time
- func (m *RedelegationEntry) GetCreationHeight() int64
- func (e RedelegationEntry) IsMature(currentTime time.Time) bool
- func (m *RedelegationEntry) Marshal() (dAtA []byte, err error)
- func (m *RedelegationEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RedelegationEntry) ProtoMessage()
- func (m *RedelegationEntry) Reset()
- func (m *RedelegationEntry) Size() (n int)
- func (e RedelegationEntry) String() string
- func (m *RedelegationEntry) Unmarshal(dAtA []byte) error
- func (m *RedelegationEntry) XXX_DiscardUnknown()
- func (m *RedelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedelegationEntry) XXX_Merge(src proto.Message)
- func (m *RedelegationEntry) XXX_Size() int
- func (m *RedelegationEntry) XXX_Unmarshal(b []byte) error
- type RedelegationEntryResponse
- func (*RedelegationEntryResponse) Descriptor() ([]byte, []int)
- func (this *RedelegationEntryResponse) Equal(that interface{}) bool
- func (m *RedelegationEntryResponse) GetRedelegationEntry() RedelegationEntry
- func (m *RedelegationEntryResponse) Marshal() (dAtA []byte, err error)
- func (m *RedelegationEntryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RedelegationEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RedelegationEntryResponse) ProtoMessage()
- func (m *RedelegationEntryResponse) Reset()
- func (m *RedelegationEntryResponse) Size() (n int)
- func (m *RedelegationEntryResponse) String() string
- func (m *RedelegationEntryResponse) Unmarshal(dAtA []byte) error
- func (m *RedelegationEntryResponse) XXX_DiscardUnknown()
- func (m *RedelegationEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedelegationEntryResponse) XXX_Merge(src proto.Message)
- func (m *RedelegationEntryResponse) XXX_Size() int
- func (m *RedelegationEntryResponse) XXX_Unmarshal(b []byte) error
- type RedelegationResponse
- func (*RedelegationResponse) Descriptor() ([]byte, []int)
- func (this *RedelegationResponse) Equal(that interface{}) bool
- func (m *RedelegationResponse) GetEntries() []RedelegationEntryResponse
- func (m *RedelegationResponse) GetRedelegation() Redelegation
- func (m *RedelegationResponse) Marshal() (dAtA []byte, err error)
- func (r RedelegationResponse) MarshalJSON() ([]byte, error)
- func (m *RedelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RedelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RedelegationResponse) ProtoMessage()
- func (m *RedelegationResponse) Reset()
- func (m *RedelegationResponse) Size() (n int)
- func (m *RedelegationResponse) String() string
- func (m *RedelegationResponse) Unmarshal(dAtA []byte) error
- func (r *RedelegationResponse) UnmarshalJSON(bz []byte) error
- func (m *RedelegationResponse) XXX_DiscardUnknown()
- func (m *RedelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedelegationResponse) XXX_Merge(src proto.Message)
- func (m *RedelegationResponse) XXX_Size() int
- func (m *RedelegationResponse) XXX_Unmarshal(b []byte) error
- type RedelegationResponses
- type Redelegations
- type StakingHooks
- type UnbondingDelegation
- func (ubd *UnbondingDelegation) AddEntry(creationHeight int64, minTime time.Time, balance sdk.Int)
- func (*UnbondingDelegation) Descriptor() ([]byte, []int)
- func (this *UnbondingDelegation) Equal(that interface{}) bool
- func (m *UnbondingDelegation) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *UnbondingDelegation) GetEntries() []UnbondingDelegationEntry
- func (m *UnbondingDelegation) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
- func (m *UnbondingDelegation) Marshal() (dAtA []byte, err error)
- func (m *UnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *UnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnbondingDelegation) ProtoMessage()
- func (ubd *UnbondingDelegation) RemoveEntry(i int64)
- func (m *UnbondingDelegation) Reset()
- func (m *UnbondingDelegation) Size() (n int)
- func (ubd UnbondingDelegation) String() string
- func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error
- func (m *UnbondingDelegation) XXX_DiscardUnknown()
- func (m *UnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbondingDelegation) XXX_Merge(src proto.Message)
- func (m *UnbondingDelegation) XXX_Size() int
- func (m *UnbondingDelegation) XXX_Unmarshal(b []byte) error
- type UnbondingDelegationEntry
- func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int)
- func (this *UnbondingDelegationEntry) Equal(that interface{}) bool
- func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time
- func (m *UnbondingDelegationEntry) GetCreationHeight() int64
- func (e UnbondingDelegationEntry) IsMature(currentTime time.Time) bool
- func (m *UnbondingDelegationEntry) Marshal() (dAtA []byte, err error)
- func (m *UnbondingDelegationEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnbondingDelegationEntry) ProtoMessage()
- func (m *UnbondingDelegationEntry) Reset()
- func (m *UnbondingDelegationEntry) Size() (n int)
- func (e UnbondingDelegationEntry) String() string
- func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error
- func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()
- func (m *UnbondingDelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbondingDelegationEntry) XXX_Merge(src proto.Message)
- func (m *UnbondingDelegationEntry) XXX_Size() int
- func (m *UnbondingDelegationEntry) XXX_Unmarshal(b []byte) error
- type UnbondingDelegations
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Delegation(ctx context.Context, req *QueryDelegationRequest) (*QueryDelegationResponse, error)
- func (*UnimplementedQueryServer) DelegatorDelegations(ctx context.Context, req *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
- func (*UnimplementedQueryServer) DelegatorUnbondingDelegations(ctx context.Context, req *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
- func (*UnimplementedQueryServer) DelegatorValidator(ctx context.Context, req *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error)
- func (*UnimplementedQueryServer) DelegatorValidators(ctx context.Context, req *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
- func (*UnimplementedQueryServer) HistoricalInfo(ctx context.Context, req *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error)
- func (*UnimplementedQueryServer) Redelegations(ctx context.Context, req *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
- func (*UnimplementedQueryServer) UnbondingDelegation(ctx context.Context, req *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
- func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryValidatorRequest) (*QueryValidatorResponse, error)
- func (*UnimplementedQueryServer) ValidatorDelegations(ctx context.Context, req *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
- func (*UnimplementedQueryServer) ValidatorUnbondingDelegations(ctx context.Context, req *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
- func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
- type Validator
- func (v Validator) ABCIValidatorUpdate() abci.ValidatorUpdate
- func (v Validator) ABCIValidatorUpdateZero() abci.ValidatorUpdate
- func (v Validator) AddTokensFromDel(amount sdk.Int) (Validator, sdk.Dec)
- func (v Validator) BondedTokens() sdk.Int
- func (v Validator) ConsensusPower() int64
- func (*Validator) Descriptor() ([]byte, []int)
- func (this *Validator) Equal(that interface{}) bool
- func (v Validator) GetBondedTokens() sdk.Int
- func (v Validator) GetCommission() sdk.Dec
- func (v Validator) GetConsAddr() sdk.ConsAddress
- func (v Validator) GetConsPubKey() crypto.PubKey
- func (v Validator) GetConsensusPower() int64
- func (v Validator) GetDelegatorShares() sdk.Dec
- func (v Validator) GetMinSelfDelegation() sdk.Int
- func (v Validator) GetMoniker() string
- func (v Validator) GetOperator() sdk.ValAddress
- func (v Validator) GetStatus() sdk.BondStatus
- func (v Validator) GetTokens() sdk.Int
- func (v Validator) InvalidExRate() bool
- func (v Validator) IsBonded() bool
- func (v Validator) IsJailed() bool
- func (v Validator) IsUnbonded() bool
- func (v Validator) IsUnbonding() bool
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (v Validator) MinEqual(other Validator) bool
- func (v Validator) PotentialConsensusPower() int64
- func (*Validator) ProtoMessage()
- func (v Validator) RemoveDelShares(delShares sdk.Dec) (Validator, sdk.Int)
- func (v Validator) RemoveTokens(tokens sdk.Int) Validator
- func (m *Validator) Reset()
- func (v Validator) SetInitialCommission(commission Commission) (Validator, error)
- func (v Validator) SharesFromTokens(amt sdk.Int) (sdk.Dec, error)
- func (v Validator) SharesFromTokensTruncated(amt sdk.Int) (sdk.Dec, error)
- func (m *Validator) Size() (n int)
- func (v Validator) String() string
- func (v Validator) ToTmValidator() *tmtypes.Validator
- func (v Validator) TokensFromShares(shares sdk.Dec) sdk.Dec
- func (v Validator) TokensFromSharesRoundUp(shares sdk.Dec) sdk.Dec
- func (v Validator) TokensFromSharesTruncated(shares sdk.Dec) sdk.Dec
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (v Validator) UpdateStatus(newStatus sdk.BondStatus) Validator
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type ValidatorSet
- type Validators
- func (v Validators) Len() int
- func (v Validators) Less(i, j int) bool
- func (v Validators) Sort()
- func (v Validators) String() (out string)
- func (v Validators) Swap(i, j int)
- func (v Validators) ToSDKValidators() (validators []exported.ValidatorI)
- func (v Validators) ToTmValidators() []*tmtypes.Validator
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") ErrDelegationValidatorEmpty = sdkerrors.Register(ModuleName, 28, "cannot delegate to an empty validator") 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, "redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation") ErrMaxRedelegationEntries = sdkerrors.Register(ModuleName, 41, "too many redelegation entries for (delegator, src-validator, dst-validator) tuple") 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 ( // 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 ( // 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.NewHybridCodec(amino, types.NewInterfaceRegistry()) )
Functions ¶
func AddressFromLastValidatorPowerKey ¶
Get the validator operator address from LastValidatorPowerKey
func GetDelegationKey ¶
func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
gets the key for delegator bond with validator VALUE: staking/Delegation
func GetDelegationsKey ¶
func GetDelegationsKey(delAddr sdk.AccAddress) []byte
gets the prefix for a delegator for all validators
func GetHistoricalInfoKey ¶
GetHistoricalInfoKey gets the key for the historical info
func GetLastValidatorPowerKey ¶
func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte
get the bonded validator index key for an operator address
func GetREDByValDstIndexKey ¶
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 ¶
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 ¶
func GetREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
gets the key for a redelegation VALUE: staking/RedelegationKey
func GetREDKeyFromValDstIndexKey ¶
GetREDKeyFromValDstIndexKey rearranges the ValDstIndexKey to get the REDKey
func GetREDKeyFromValSrcIndexKey ¶
GetREDKeyFromValSrcIndexKey rearranges the ValSrcIndexKey to get the REDKey
func GetREDsByDelToValDstIndexKey ¶
func GetREDsByDelToValDstIndexKey(delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) []byte
gets the prefix keyspace for all redelegations redelegating towards a destination validator from a particular delegator
func GetREDsFromValSrcIndexKey ¶
func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte
gets the prefix keyspace for all redelegations redelegating away from a source validator
func GetREDsKey ¶
func GetREDsKey(delAddr sdk.AccAddress) []byte
gets the prefix keyspace for redelegations from a delegator
func GetREDsToValDstIndexKey ¶
func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte
gets the prefix keyspace for all redelegations redelegating towards a destination validator
func GetRedelegationTimeKey ¶
gets the prefix for all unbonding delegations from a delegator
func GetUBDByValIndexKey ¶
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 ¶
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 ¶
rearranges the ValIndexKey to get the UBDKey
func GetUBDsByValIndexKey ¶
func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte
gets the prefix keyspace for the indexes of unbonding delegations for a validator
func GetUBDsKey ¶
func GetUBDsKey(delAddr sdk.AccAddress) []byte
gets the prefix for all unbonding delegations from a delegator
func GetUnbondingDelegationTimeKey ¶
gets the prefix for all unbonding delegations from a delegator
func GetValidatorByConsAddrKey ¶
func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
gets the key for the validator with pubkey VALUE: validator operator address ([]byte)
func GetValidatorKey ¶
func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
gets the key for the validator with address VALUE: staking/Validator
func GetValidatorQueueTimeKey ¶
gets the prefix for all unbonding delegations from a delegator
func GetValidatorsByPowerIndexKey ¶
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 ¶
func MustMarshalDelegation(cdc codec.Marshaler, delegation Delegation) []byte
MustMarshalDelegation returns the delegation bytes. Panics if fails
func MustMarshalHistoricalInfo ¶
func MustMarshalHistoricalInfo(cdc codec.Marshaler, hi HistoricalInfo) []byte
MustMarshalHistoricalInfo wll marshal historical info and panic on error
func MustMarshalRED ¶
func MustMarshalRED(cdc codec.Marshaler, red Redelegation) []byte
MustMarshalRED returns the Redelegation bytes. Panics if fails.
func MustMarshalUBD ¶
func MustMarshalUBD(cdc codec.Marshaler, ubd UnbondingDelegation) []byte
return the unbonding delegation
func MustMarshalValidator ¶
return the redelegation
func ParseValidatorPowerRankKey ¶
parse the validators operator address from power rank key
func RegisterCodec ¶
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 ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the x/staking interfaces types with the interface registry
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func StakingDescription ¶
func StakingDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
func ValidateBasic ¶
func ValidateBasic(hi HistoricalInfo) error
ValidateBasic will ensure HistoricalInfo is not nil and sorted
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { IterateAccounts(ctx sdk.Context, process func(authtypes.AccountI) (stop bool)) GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI // only used for simulation GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, authtypes.ModuleAccountI) }
AccountKeeper defines the expected account keeper (noalias)
type BankKeeper ¶
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 ¶
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 ¶
func NewCommission(rate, maxRate, maxChangeRate sdk.Dec) Commission
NewCommission returns an initialized validator commission.
func NewCommissionWithTime ¶
func NewCommissionWithTime(rate, maxRate, maxChangeRate sdk.Dec, updatedAt time.Time) Commission
NewCommissionWithTime returns an initialized validator commission with a specified update time which should be the current block BFT time.
func (*Commission) Descriptor ¶
func (*Commission) Descriptor() ([]byte, []int)
func (*Commission) Equal ¶
func (this *Commission) Equal(that interface{}) bool
func (*Commission) GetUpdateTime ¶
func (m *Commission) GetUpdateTime() time.Time
func (*Commission) Marshal ¶
func (m *Commission) Marshal() (dAtA []byte, err error)
func (*Commission) MarshalToSizedBuffer ¶
func (m *Commission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Commission) ProtoMessage ¶
func (*Commission) ProtoMessage()
func (*Commission) Reset ¶
func (m *Commission) Reset()
func (*Commission) Size ¶
func (m *Commission) Size() (n int)
func (Commission) String ¶
func (c Commission) String() string
String implements the Stringer interface for a Commission object.
func (*Commission) Unmarshal ¶
func (m *Commission) Unmarshal(dAtA []byte) error
func (Commission) ValidateNewRate ¶
ValidateNewRate performs basic sanity validation checks of a new commission rate. If validation fails, an SDK error is returned.
func (*Commission) XXX_DiscardUnknown ¶
func (m *Commission) XXX_DiscardUnknown()
func (*Commission) XXX_Marshal ¶
func (m *Commission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Commission) XXX_Merge ¶
func (m *Commission) XXX_Merge(src proto.Message)
func (*Commission) XXX_Size ¶
func (m *Commission) XXX_Size() int
func (*Commission) XXX_Unmarshal ¶
func (m *Commission) XXX_Unmarshal(b []byte) error
type CommissionRates ¶
type CommissionRates struct { Rate 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 `` /* 138-byte string literal not displayed */ MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ }
CommissionRates defines the initial commission rates to be used for creating a validator.
func NewCommissionRates ¶
func NewCommissionRates(rate, maxRate, maxChangeRate sdk.Dec) CommissionRates
NewCommissionRates returns an initialized validator commission rates.
func (*CommissionRates) Descriptor ¶
func (*CommissionRates) Descriptor() ([]byte, []int)
func (*CommissionRates) Equal ¶
func (this *CommissionRates) Equal(that interface{}) bool
func (*CommissionRates) Marshal ¶
func (m *CommissionRates) Marshal() (dAtA []byte, err error)
func (*CommissionRates) MarshalToSizedBuffer ¶
func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CommissionRates) ProtoMessage ¶
func (*CommissionRates) ProtoMessage()
func (*CommissionRates) Reset ¶
func (m *CommissionRates) Reset()
func (*CommissionRates) Size ¶
func (m *CommissionRates) Size() (n int)
func (CommissionRates) String ¶
func (cr CommissionRates) String() string
String implements the Stringer interface for a CommissionRates object.
func (*CommissionRates) Unmarshal ¶
func (m *CommissionRates) Unmarshal(dAtA []byte) error
func (CommissionRates) Validate ¶
func (cr CommissionRates) Validate() error
Validate performs basic sanity validation checks of initial commission parameters. If validation fails, an SDK error is returned.
func (*CommissionRates) XXX_DiscardUnknown ¶
func (m *CommissionRates) XXX_DiscardUnknown()
func (*CommissionRates) XXX_Marshal ¶
func (m *CommissionRates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommissionRates) XXX_Merge ¶
func (m *CommissionRates) XXX_Merge(src proto.Message)
func (*CommissionRates) XXX_Size ¶
func (m *CommissionRates) XXX_Size() int
func (*CommissionRates) XXX_Unmarshal ¶
func (m *CommissionRates) XXX_Unmarshal(b []byte) error
type DVPair ¶
type DVPair struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 189-byte string literal not displayed */ }
DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.
func (*DVPair) Descriptor ¶
func (*DVPair) GetDelegatorAddress ¶
func (m *DVPair) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*DVPair) GetValidatorAddress ¶
func (m *DVPair) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*DVPair) MarshalToSizedBuffer ¶
func (*DVPair) ProtoMessage ¶
func (*DVPair) ProtoMessage()
func (*DVPair) XXX_DiscardUnknown ¶
func (m *DVPair) XXX_DiscardUnknown()
func (*DVPair) XXX_Marshal ¶
func (*DVPair) XXX_Unmarshal ¶
type DVPairs ¶
type DVPairs struct {
Pairs []DVPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}
DVPairs defines an array of DVPair objects.
func (*DVPairs) Descriptor ¶
func (*DVPairs) MarshalToSizedBuffer ¶
func (*DVPairs) ProtoMessage ¶
func (*DVPairs) ProtoMessage()
func (*DVPairs) XXX_DiscardUnknown ¶
func (m *DVPairs) XXX_DiscardUnknown()
func (*DVPairs) XXX_Marshal ¶
func (*DVPairs) XXX_Unmarshal ¶
type DVVTriplet ¶
type DVVTriplet struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorSrcAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 204-byte string literal not displayed */ ValidatorDstAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 204-byte string literal not displayed */ }
DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.
func (*DVVTriplet) Descriptor ¶
func (*DVVTriplet) Descriptor() ([]byte, []int)
func (*DVVTriplet) Equal ¶
func (this *DVVTriplet) Equal(that interface{}) bool
func (*DVVTriplet) GetDelegatorAddress ¶
func (m *DVVTriplet) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*DVVTriplet) GetValidatorDstAddress ¶
func (m *DVVTriplet) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*DVVTriplet) GetValidatorSrcAddress ¶
func (m *DVVTriplet) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*DVVTriplet) Marshal ¶
func (m *DVVTriplet) Marshal() (dAtA []byte, err error)
func (*DVVTriplet) MarshalToSizedBuffer ¶
func (m *DVVTriplet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DVVTriplet) ProtoMessage ¶
func (*DVVTriplet) ProtoMessage()
func (*DVVTriplet) Reset ¶
func (m *DVVTriplet) Reset()
func (*DVVTriplet) Size ¶
func (m *DVVTriplet) Size() (n int)
func (DVVTriplet) String ¶
func (dvv DVVTriplet) String() string
String implements the Stringer interface for a DVVTriplet object.
func (*DVVTriplet) Unmarshal ¶
func (m *DVVTriplet) Unmarshal(dAtA []byte) error
func (*DVVTriplet) XXX_DiscardUnknown ¶
func (m *DVVTriplet) XXX_DiscardUnknown()
func (*DVVTriplet) XXX_Marshal ¶
func (m *DVVTriplet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DVVTriplet) XXX_Merge ¶
func (m *DVVTriplet) XXX_Merge(src proto.Message)
func (*DVVTriplet) XXX_Size ¶
func (m *DVVTriplet) XXX_Size() int
func (*DVVTriplet) XXX_Unmarshal ¶
func (m *DVVTriplet) XXX_Unmarshal(b []byte) error
type DVVTriplets ¶
type DVVTriplets struct {
Triplets []DVVTriplet `protobuf:"bytes,1,rep,name=triplets,proto3" json:"triplets"`
}
DVVTriplets defines an array of DVVTriplet objects.
func (*DVVTriplets) Descriptor ¶
func (*DVVTriplets) Descriptor() ([]byte, []int)
func (*DVVTriplets) GetTriplets ¶
func (m *DVVTriplets) GetTriplets() []DVVTriplet
func (*DVVTriplets) Marshal ¶
func (m *DVVTriplets) Marshal() (dAtA []byte, err error)
func (*DVVTriplets) MarshalToSizedBuffer ¶
func (m *DVVTriplets) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DVVTriplets) ProtoMessage ¶
func (*DVVTriplets) ProtoMessage()
func (*DVVTriplets) Reset ¶
func (m *DVVTriplets) Reset()
func (*DVVTriplets) Size ¶
func (m *DVVTriplets) Size() (n int)
func (*DVVTriplets) String ¶
func (m *DVVTriplets) String() string
func (*DVVTriplets) Unmarshal ¶
func (m *DVVTriplets) Unmarshal(dAtA []byte) error
func (*DVVTriplets) XXX_DiscardUnknown ¶
func (m *DVVTriplets) XXX_DiscardUnknown()
func (*DVVTriplets) XXX_Marshal ¶
func (m *DVVTriplets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DVVTriplets) XXX_Merge ¶
func (m *DVVTriplets) XXX_Merge(src proto.Message)
func (*DVVTriplets) XXX_Size ¶
func (m *DVVTriplets) XXX_Size() int
func (*DVVTriplets) XXX_Unmarshal ¶
func (m *DVVTriplets) XXX_Unmarshal(b []byte) error
type Delegation ¶
type Delegation struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 189-byte string literal not displayed */ }
Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.
func MustUnmarshalDelegation ¶
func MustUnmarshalDelegation(cdc codec.Marshaler, value []byte) Delegation
MustUnmarshalDelegation return the unmarshaled delegation from bytes. Panics if fails.
func NewDelegation ¶
func NewDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, shares sdk.Dec) Delegation
NewDelegation creates a new delegation object
func UnmarshalDelegation ¶
func UnmarshalDelegation(cdc codec.Marshaler, value []byte) (delegation Delegation, err error)
return the delegation
func (*Delegation) Descriptor ¶
func (*Delegation) Descriptor() ([]byte, []int)
func (*Delegation) Equal ¶
func (this *Delegation) Equal(that interface{}) bool
func (Delegation) GetDelegatorAddr ¶
func (d Delegation) GetDelegatorAddr() sdk.AccAddress
func (*Delegation) GetDelegatorAddress ¶
func (m *Delegation) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (Delegation) GetShares ¶
func (d Delegation) GetShares() sdk.Dec
func (Delegation) GetValidatorAddr ¶
func (d Delegation) GetValidatorAddr() sdk.ValAddress
func (*Delegation) GetValidatorAddress ¶
func (m *Delegation) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*Delegation) Marshal ¶
func (m *Delegation) Marshal() (dAtA []byte, err error)
func (*Delegation) MarshalToSizedBuffer ¶
func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Delegation) ProtoMessage ¶
func (*Delegation) ProtoMessage()
func (*Delegation) Reset ¶
func (m *Delegation) Reset()
func (*Delegation) Size ¶
func (m *Delegation) Size() (n int)
func (Delegation) String ¶
func (d Delegation) String() string
String returns a human readable string representation of a Delegation.
func (*Delegation) Unmarshal ¶
func (m *Delegation) Unmarshal(dAtA []byte) error
func (*Delegation) XXX_DiscardUnknown ¶
func (m *Delegation) XXX_DiscardUnknown()
func (*Delegation) XXX_Marshal ¶
func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Delegation) XXX_Merge ¶
func (m *Delegation) XXX_Merge(src proto.Message)
func (*Delegation) XXX_Size ¶
func (m *Delegation) XXX_Size() int
func (*Delegation) XXX_Unmarshal ¶
func (m *Delegation) XXX_Unmarshal(b []byte) error
type DelegationResponse ¶
type DelegationResponse struct { Delegation Delegation `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"` Balance types.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"` }
DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.
func NewDelegationResp ¶
func NewDelegationResp( delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, shares sdk.Dec, balance sdk.Coin, ) DelegationResponse
NewDelegationResp creates a new DelegationResponse instance
func (*DelegationResponse) Descriptor ¶
func (*DelegationResponse) Descriptor() ([]byte, []int)
func (*DelegationResponse) Equal ¶
func (this *DelegationResponse) Equal(that interface{}) bool
func (*DelegationResponse) GetBalance ¶
func (m *DelegationResponse) GetBalance() types.Coin
func (*DelegationResponse) GetDelegation ¶
func (m *DelegationResponse) GetDelegation() Delegation
func (*DelegationResponse) Marshal ¶
func (m *DelegationResponse) Marshal() (dAtA []byte, err error)
func (DelegationResponse) MarshalJSON ¶
func (d DelegationResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. This is so we can achieve a flattened structure while embedding other types.
func (*DelegationResponse) MarshalTo ¶
func (m *DelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*DelegationResponse) MarshalToSizedBuffer ¶
func (m *DelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationResponse) ProtoMessage ¶
func (*DelegationResponse) ProtoMessage()
func (*DelegationResponse) Reset ¶
func (m *DelegationResponse) Reset()
func (*DelegationResponse) Size ¶
func (m *DelegationResponse) Size() (n int)
func (DelegationResponse) String ¶
func (d DelegationResponse) String() string
String implements the Stringer interface for DelegationResponse.
func (*DelegationResponse) Unmarshal ¶
func (m *DelegationResponse) Unmarshal(dAtA []byte) error
func (*DelegationResponse) UnmarshalJSON ¶
func (d *DelegationResponse) UnmarshalJSON(bz []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. This is so we can achieve a flattened structure while embedding other types.
func (*DelegationResponse) XXX_DiscardUnknown ¶
func (m *DelegationResponse) XXX_DiscardUnknown()
func (*DelegationResponse) XXX_Marshal ¶
func (m *DelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationResponse) XXX_Merge ¶
func (m *DelegationResponse) XXX_Merge(src proto.Message)
func (*DelegationResponse) XXX_Size ¶
func (m *DelegationResponse) XXX_Size() int
func (*DelegationResponse) XXX_Unmarshal ¶
func (m *DelegationResponse) XXX_Unmarshal(b []byte) error
type DelegationResponses ¶
type DelegationResponses []DelegationResponse
DelegationResponses is a collection of DelegationResp
func (DelegationResponses) String ¶
func (d DelegationResponses) String() (out string)
String implements the Stringer interface for DelegationResponses.
type DelegationSet ¶
type DelegationSet interface { GetValidatorSet() ValidatorSet // validator set for which delegation set is based upon // iterate through all delegations from one delegator by validator-AccAddress, // execute func for each validator IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingexported.DelegationI) (stop bool)) }
DelegationSet expected properties for the set of all delegations for a particular (noalias)
type Delegations ¶
type Delegations []Delegation
Delegations is a collection of delegations
func (Delegations) String ¶
func (d Delegations) String() (out string)
type Description ¶
type Description struct { Moniker 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 `` /* 130-byte string literal not displayed */ Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` }
Description defines a validator description.
func NewDescription ¶
func NewDescription(moniker, identity, website, securityContact, details string) Description
func (*Description) Descriptor ¶
func (*Description) Descriptor() ([]byte, []int)
func (Description) EnsureLength ¶
func (d Description) EnsureLength() (Description, error)
EnsureLength ensures the length of a validator's description.
func (*Description) Equal ¶
func (this *Description) Equal(that interface{}) bool
func (*Description) GetDetails ¶
func (m *Description) GetDetails() string
func (*Description) GetIdentity ¶
func (m *Description) GetIdentity() string
func (*Description) GetMoniker ¶
func (m *Description) GetMoniker() string
func (*Description) GetSecurityContact ¶
func (m *Description) GetSecurityContact() string
func (*Description) GetWebsite ¶
func (m *Description) GetWebsite() string
func (*Description) Marshal ¶
func (m *Description) Marshal() (dAtA []byte, err error)
func (*Description) MarshalToSizedBuffer ¶
func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Description) ProtoMessage ¶
func (*Description) ProtoMessage()
func (*Description) Reset ¶
func (m *Description) Reset()
func (*Description) Size ¶
func (m *Description) Size() (n int)
func (Description) String ¶
func (d Description) String() string
String implements the Stringer interface for a Description object.
func (*Description) Unmarshal ¶
func (m *Description) Unmarshal(dAtA []byte) error
func (Description) UpdateDescription ¶
func (d Description) UpdateDescription(d2 Description) (Description, error)
UpdateDescription updates the fields of a given description. An error is returned if the resulting description contains an invalid length.
func (*Description) XXX_DiscardUnknown ¶
func (m *Description) XXX_DiscardUnknown()
func (*Description) XXX_Marshal ¶
func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Description) XXX_Merge ¶
func (m *Description) XXX_Merge(src proto.Message)
func (*Description) XXX_Size ¶
func (m *Description) XXX_Size() int
func (*Description) XXX_Unmarshal ¶
func (m *Description) XXX_Unmarshal(b []byte) error
type DistributionKeeper ¶
type DistributionKeeper interface { GetFeePoolCommunityCoins(ctx sdk.Context) sdk.DecCoins GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins }
DistributionKeeper expected distribution keeper (noalias)
type GenesisState ¶
type GenesisState struct { Params Params `json:"params" yaml:"params"` LastTotalPower sdk.Int `json:"last_total_power" yaml:"last_total_power"` LastValidatorPowers []LastValidatorPower `json:"last_validator_powers" yaml:"last_validator_powers"` Validators Validators `json:"validators" yaml:"validators"` Delegations Delegations `json:"delegations" yaml:"delegations"` UnbondingDelegations []UnbondingDelegation `json:"unbonding_delegations" yaml:"unbonding_delegations"` Redelegations []Redelegation `json:"redelegations" yaml:"redelegations"` Exported bool `json:"exported" yaml:"exported"` }
GenesisState - all staking state that must be provided at genesis
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState gets the raw genesis raw message for testing
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc *codec.Codec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns x/staking GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, validators []Validator, delegations []Delegation) GenesisState
NewGenesisState creates a new GenesisState instanc e
type HistoricalInfo ¶
type HistoricalInfo struct { Header types1.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 ¶
func MustUnmarshalHistoricalInfo(cdc codec.Marshaler, value []byte) HistoricalInfo
MustUnmarshalHistoricalInfo wll unmarshal historical info and panic on error
func NewHistoricalInfo ¶
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 ¶
func UnmarshalHistoricalInfo(cdc codec.Marshaler, value []byte) (hi HistoricalInfo, err error)
UnmarshalHistoricalInfo will unmarshal historical info and return any error
func (*HistoricalInfo) Descriptor ¶
func (*HistoricalInfo) Descriptor() ([]byte, []int)
func (*HistoricalInfo) Equal ¶
func (this *HistoricalInfo) Equal(that interface{}) bool
func (*HistoricalInfo) GetHeader ¶
func (m *HistoricalInfo) GetHeader() types1.Header
func (*HistoricalInfo) GetValset ¶
func (m *HistoricalInfo) GetValset() []Validator
func (*HistoricalInfo) Marshal ¶
func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)
func (*HistoricalInfo) MarshalToSizedBuffer ¶
func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HistoricalInfo) ProtoMessage ¶
func (*HistoricalInfo) ProtoMessage()
func (*HistoricalInfo) Reset ¶
func (m *HistoricalInfo) Reset()
func (*HistoricalInfo) Size ¶
func (m *HistoricalInfo) Size() (n int)
func (*HistoricalInfo) String ¶
func (m *HistoricalInfo) String() string
func (*HistoricalInfo) Unmarshal ¶
func (m *HistoricalInfo) Unmarshal(dAtA []byte) error
func (*HistoricalInfo) XXX_DiscardUnknown ¶
func (m *HistoricalInfo) XXX_DiscardUnknown()
func (*HistoricalInfo) XXX_Marshal ¶
func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoricalInfo) XXX_Merge ¶
func (m *HistoricalInfo) XXX_Merge(src proto.Message)
func (*HistoricalInfo) XXX_Size ¶
func (m *HistoricalInfo) XXX_Size() int
func (*HistoricalInfo) XXX_Unmarshal ¶
func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
type LastValidatorPower ¶
type LastValidatorPower struct { Address sdk.ValAddress Power int64 }
LastValidatorPower required for validator set update logic
type MsgBeginRedelegate ¶
type MsgBeginRedelegate struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorSrcAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 204-byte string literal not displayed */ ValidatorDstAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 204-byte string literal not displayed */ 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 ¶
func NewMsgBeginRedelegate( delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, amount sdk.Coin, ) *MsgBeginRedelegate
NewMsgBeginRedelegate creates a new MsgBeginRedelegate instance.
func (*MsgBeginRedelegate) Descriptor ¶
func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
func (*MsgBeginRedelegate) Equal ¶
func (this *MsgBeginRedelegate) Equal(that interface{}) bool
func (*MsgBeginRedelegate) GetAmount ¶
func (m *MsgBeginRedelegate) GetAmount() types.Coin
func (*MsgBeginRedelegate) GetDelegatorAddress ¶
func (m *MsgBeginRedelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgBeginRedelegate) GetSignBytes ¶
func (msg MsgBeginRedelegate) GetSignBytes() []byte
GetSignBytes implements the sdk.Msg interface.
func (MsgBeginRedelegate) GetSigners ¶
func (msg MsgBeginRedelegate) GetSigners() []sdk.AccAddress
GetSigners implements the sdk.Msg interface
func (*MsgBeginRedelegate) GetValidatorDstAddress ¶
func (m *MsgBeginRedelegate) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*MsgBeginRedelegate) GetValidatorSrcAddress ¶
func (m *MsgBeginRedelegate) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*MsgBeginRedelegate) Marshal ¶
func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error)
func (*MsgBeginRedelegate) MarshalTo ¶
func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)
func (*MsgBeginRedelegate) MarshalToSizedBuffer ¶
func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBeginRedelegate) ProtoMessage ¶
func (*MsgBeginRedelegate) ProtoMessage()
func (*MsgBeginRedelegate) Reset ¶
func (m *MsgBeginRedelegate) Reset()
func (MsgBeginRedelegate) Route ¶
func (msg MsgBeginRedelegate) Route() string
Route implements the sdk.Msg interface.
func (*MsgBeginRedelegate) Size ¶
func (m *MsgBeginRedelegate) Size() (n int)
func (*MsgBeginRedelegate) String ¶
func (m *MsgBeginRedelegate) String() string
func (MsgBeginRedelegate) Type ¶
func (msg MsgBeginRedelegate) Type() string
Type implements the sdk.Msg interface
func (*MsgBeginRedelegate) Unmarshal ¶
func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error
func (MsgBeginRedelegate) ValidateBasic ¶
func (msg MsgBeginRedelegate) ValidateBasic() error
ValidateBasic implements the sdk.Msg interface.
func (*MsgBeginRedelegate) XXX_DiscardUnknown ¶
func (m *MsgBeginRedelegate) XXX_DiscardUnknown()
func (*MsgBeginRedelegate) XXX_Marshal ¶
func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBeginRedelegate) XXX_Merge ¶
func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)
func (*MsgBeginRedelegate) XXX_Size ¶
func (m *MsgBeginRedelegate) XXX_Size() int
func (*MsgBeginRedelegate) XXX_Unmarshal ¶
func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error
type MsgCreateValidator ¶
type MsgCreateValidator struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` Commission CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"` MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 181-byte string literal not displayed */ DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 189-byte string literal not displayed */ 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 ¶
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 ¶
func (*MsgCreateValidator) Descriptor() ([]byte, []int)
func (*MsgCreateValidator) Equal ¶
func (this *MsgCreateValidator) Equal(that interface{}) bool
func (*MsgCreateValidator) GetCommission ¶
func (m *MsgCreateValidator) GetCommission() CommissionRates
func (*MsgCreateValidator) GetDelegatorAddress ¶
func (m *MsgCreateValidator) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*MsgCreateValidator) GetDescription ¶
func (m *MsgCreateValidator) GetDescription() Description
func (*MsgCreateValidator) GetPubkey ¶
func (m *MsgCreateValidator) GetPubkey() string
func (MsgCreateValidator) GetSignBytes ¶
func (msg MsgCreateValidator) GetSignBytes() []byte
GetSignBytes returns the message bytes to sign over.
func (MsgCreateValidator) GetSigners ¶
func (msg MsgCreateValidator) GetSigners() []sdk.AccAddress
GetSigners implements the sdk.Msg interface. It returns the address(es) that must sign over msg.GetSignBytes(). If the validator address is not same as delegator's, then the validator must sign the msg as well.
func (*MsgCreateValidator) GetValidatorAddress ¶
func (m *MsgCreateValidator) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*MsgCreateValidator) GetValue ¶
func (m *MsgCreateValidator) GetValue() types.Coin
func (*MsgCreateValidator) Marshal ¶
func (m *MsgCreateValidator) Marshal() (dAtA []byte, err error)
func (*MsgCreateValidator) MarshalTo ¶
func (m *MsgCreateValidator) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateValidator) MarshalToSizedBuffer ¶
func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateValidator) ProtoMessage ¶
func (*MsgCreateValidator) ProtoMessage()
func (*MsgCreateValidator) Reset ¶
func (m *MsgCreateValidator) Reset()
func (MsgCreateValidator) Route ¶
func (msg MsgCreateValidator) Route() string
Route implements the sdk.Msg interface.
func (*MsgCreateValidator) Size ¶
func (m *MsgCreateValidator) Size() (n int)
func (*MsgCreateValidator) String ¶
func (m *MsgCreateValidator) String() string
func (MsgCreateValidator) Type ¶
func (msg MsgCreateValidator) Type() string
Type implements the sdk.Msg interface.
func (*MsgCreateValidator) Unmarshal ¶
func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error
func (MsgCreateValidator) ValidateBasic ¶
func (msg MsgCreateValidator) ValidateBasic() error
ValidateBasic implements the sdk.Msg interface.
func (*MsgCreateValidator) XXX_DiscardUnknown ¶
func (m *MsgCreateValidator) XXX_DiscardUnknown()
func (*MsgCreateValidator) XXX_Marshal ¶
func (m *MsgCreateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateValidator) XXX_Merge ¶
func (m *MsgCreateValidator) XXX_Merge(src proto.Message)
func (*MsgCreateValidator) XXX_Size ¶
func (m *MsgCreateValidator) XXX_Size() int
func (*MsgCreateValidator) XXX_Unmarshal ¶
func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error
type MsgDelegate ¶
type MsgDelegate struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 189-byte string literal not displayed */ 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 ¶
func NewMsgDelegate(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) *MsgDelegate
NewMsgDelegate creates a new MsgDelegate instance.
func (*MsgDelegate) Descriptor ¶
func (*MsgDelegate) Descriptor() ([]byte, []int)
func (*MsgDelegate) Equal ¶
func (this *MsgDelegate) Equal(that interface{}) bool
func (*MsgDelegate) GetAmount ¶
func (m *MsgDelegate) GetAmount() types.Coin
func (*MsgDelegate) GetDelegatorAddress ¶
func (m *MsgDelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgDelegate) GetSignBytes ¶
func (msg MsgDelegate) GetSignBytes() []byte
GetSignBytes implements the sdk.Msg interface.
func (MsgDelegate) GetSigners ¶
func (msg MsgDelegate) GetSigners() []sdk.AccAddress
GetSigners implements the sdk.Msg interface.
func (*MsgDelegate) GetValidatorAddress ¶
func (m *MsgDelegate) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*MsgDelegate) Marshal ¶
func (m *MsgDelegate) Marshal() (dAtA []byte, err error)
func (*MsgDelegate) MarshalToSizedBuffer ¶
func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDelegate) ProtoMessage ¶
func (*MsgDelegate) ProtoMessage()
func (*MsgDelegate) Reset ¶
func (m *MsgDelegate) Reset()
func (MsgDelegate) Route ¶
func (msg MsgDelegate) Route() string
Route implements the sdk.Msg interface.
func (*MsgDelegate) Size ¶
func (m *MsgDelegate) Size() (n int)
func (*MsgDelegate) String ¶
func (m *MsgDelegate) String() string
func (MsgDelegate) Type ¶
func (msg MsgDelegate) Type() string
Type implements the sdk.Msg interface.
func (*MsgDelegate) Unmarshal ¶
func (m *MsgDelegate) Unmarshal(dAtA []byte) error
func (MsgDelegate) ValidateBasic ¶
func (msg MsgDelegate) ValidateBasic() error
ValidateBasic implements the sdk.Msg interface.
func (*MsgDelegate) XXX_DiscardUnknown ¶
func (m *MsgDelegate) XXX_DiscardUnknown()
func (*MsgDelegate) XXX_Marshal ¶
func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDelegate) XXX_Merge ¶
func (m *MsgDelegate) XXX_Merge(src proto.Message)
func (*MsgDelegate) XXX_Size ¶
func (m *MsgDelegate) XXX_Size() int
func (*MsgDelegate) XXX_Unmarshal ¶
func (m *MsgDelegate) XXX_Unmarshal(b []byte) error
type MsgEditValidator ¶
type MsgEditValidator struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 179-byte string literal not displayed */ // 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 `` /* 176-byte string literal not displayed */ MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `` /* 191-byte string literal not displayed */ }
MsgEditValidator defines an SDK message for editing an existing validator.
func NewMsgEditValidator ¶
func NewMsgEditValidator(valAddr sdk.ValAddress, description Description, newRate *sdk.Dec, newMinSelfDelegation *sdk.Int) *MsgEditValidator
NewMsgEditValidator creates a new MsgEditValidator instance
func (*MsgEditValidator) Descriptor ¶
func (*MsgEditValidator) Descriptor() ([]byte, []int)
func (*MsgEditValidator) Equal ¶
func (this *MsgEditValidator) Equal(that interface{}) bool
func (*MsgEditValidator) GetDescription ¶
func (m *MsgEditValidator) GetDescription() Description
func (MsgEditValidator) GetSignBytes ¶
func (msg MsgEditValidator) GetSignBytes() []byte
GetSignBytes implements the sdk.Msg interface.
func (MsgEditValidator) GetSigners ¶
func (msg MsgEditValidator) GetSigners() []sdk.AccAddress
GetSigners implements the sdk.Msg interface.
func (*MsgEditValidator) GetValidatorAddress ¶
func (m *MsgEditValidator) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*MsgEditValidator) Marshal ¶
func (m *MsgEditValidator) Marshal() (dAtA []byte, err error)
func (*MsgEditValidator) MarshalToSizedBuffer ¶
func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditValidator) ProtoMessage ¶
func (*MsgEditValidator) ProtoMessage()
func (*MsgEditValidator) Reset ¶
func (m *MsgEditValidator) Reset()
func (MsgEditValidator) Route ¶
func (msg MsgEditValidator) Route() string
Route implements the sdk.Msg interface.
func (*MsgEditValidator) Size ¶
func (m *MsgEditValidator) Size() (n int)
func (*MsgEditValidator) String ¶
func (m *MsgEditValidator) String() string
func (MsgEditValidator) Type ¶
func (msg MsgEditValidator) Type() string
Type implements the sdk.Msg interface.
func (*MsgEditValidator) Unmarshal ¶
func (m *MsgEditValidator) Unmarshal(dAtA []byte) error
func (MsgEditValidator) ValidateBasic ¶
func (msg MsgEditValidator) ValidateBasic() error
ValidateBasic implements the sdk.Msg interface.
func (*MsgEditValidator) XXX_DiscardUnknown ¶
func (m *MsgEditValidator) XXX_DiscardUnknown()
func (*MsgEditValidator) XXX_Marshal ¶
func (m *MsgEditValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditValidator) XXX_Merge ¶
func (m *MsgEditValidator) XXX_Merge(src proto.Message)
func (*MsgEditValidator) XXX_Size ¶
func (m *MsgEditValidator) XXX_Size() int
func (*MsgEditValidator) XXX_Unmarshal ¶
func (m *MsgEditValidator) XXX_Unmarshal(b []byte) error
type MsgUndelegate ¶
type MsgUndelegate struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 189-byte string literal not displayed */ 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 ¶
func NewMsgUndelegate(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) *MsgUndelegate
NewMsgUndelegate creates a new MsgUndelegate instance.
func (*MsgUndelegate) Descriptor ¶
func (*MsgUndelegate) Descriptor() ([]byte, []int)
func (*MsgUndelegate) Equal ¶
func (this *MsgUndelegate) Equal(that interface{}) bool
func (*MsgUndelegate) GetAmount ¶
func (m *MsgUndelegate) GetAmount() types.Coin
func (*MsgUndelegate) GetDelegatorAddress ¶
func (m *MsgUndelegate) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgUndelegate) GetSignBytes ¶
func (msg MsgUndelegate) GetSignBytes() []byte
GetSignBytes implements the sdk.Msg interface.
func (MsgUndelegate) GetSigners ¶
func (msg MsgUndelegate) GetSigners() []sdk.AccAddress
GetSigners implements the sdk.Msg interface.
func (*MsgUndelegate) GetValidatorAddress ¶
func (m *MsgUndelegate) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*MsgUndelegate) Marshal ¶
func (m *MsgUndelegate) Marshal() (dAtA []byte, err error)
func (*MsgUndelegate) MarshalToSizedBuffer ¶
func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUndelegate) ProtoMessage ¶
func (*MsgUndelegate) ProtoMessage()
func (*MsgUndelegate) Reset ¶
func (m *MsgUndelegate) Reset()
func (MsgUndelegate) Route ¶
func (msg MsgUndelegate) Route() string
Route implements the sdk.Msg interface.
func (*MsgUndelegate) Size ¶
func (m *MsgUndelegate) Size() (n int)
func (*MsgUndelegate) String ¶
func (m *MsgUndelegate) String() string
func (MsgUndelegate) Type ¶
func (msg MsgUndelegate) Type() string
Type implements the sdk.Msg interface.
func (*MsgUndelegate) Unmarshal ¶
func (m *MsgUndelegate) Unmarshal(dAtA []byte) error
func (MsgUndelegate) ValidateBasic ¶
func (msg MsgUndelegate) ValidateBasic() error
ValidateBasic implements the sdk.Msg interface.
func (*MsgUndelegate) XXX_DiscardUnknown ¶
func (m *MsgUndelegate) XXX_DiscardUnknown()
func (*MsgUndelegate) XXX_Marshal ¶
func (m *MsgUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUndelegate) XXX_Merge ¶
func (m *MsgUndelegate) XXX_Merge(src proto.Message)
func (*MsgUndelegate) XXX_Size ¶
func (m *MsgUndelegate) XXX_Size() int
func (*MsgUndelegate) XXX_Unmarshal ¶
func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error
type MultiStakingHooks ¶
type MultiStakingHooks []StakingHooks
combine multiple staking hooks, all hook functions are run in array sequence
func NewMultiStakingHooks ¶
func NewMultiStakingHooks(hooks ...StakingHooks) MultiStakingHooks
func (MultiStakingHooks) AfterDelegationModified ¶
func (h MultiStakingHooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (MultiStakingHooks) AfterValidatorBeginUnbonding ¶
func (h MultiStakingHooks) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
func (MultiStakingHooks) AfterValidatorBonded ¶
func (h MultiStakingHooks) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
func (MultiStakingHooks) AfterValidatorCreated ¶
func (h MultiStakingHooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress)
func (MultiStakingHooks) AfterValidatorRemoved ¶
func (h MultiStakingHooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
func (MultiStakingHooks) BeforeDelegationCreated ¶
func (h MultiStakingHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (MultiStakingHooks) BeforeDelegationRemoved ¶
func (h MultiStakingHooks) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (MultiStakingHooks) BeforeDelegationSharesModified ¶
func (h MultiStakingHooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (MultiStakingHooks) BeforeValidatorModified ¶
func (h MultiStakingHooks) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress)
func (MultiStakingHooks) BeforeValidatorSlashed ¶
func (h MultiStakingHooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec)
type Params ¶
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 `` /* 139-byte string literal not displayed */ 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 MustUnmarshalParams ¶
unmarshal the current staking params value from store key or panic
func NewParams ¶
func NewParams(unbondingTime time.Duration, maxValidators, maxEntries, historicalEntries uint32, bondDenom string) Params
NewParams creates a new Params instance
func UnmarshalParams ¶
unmarshal the current staking params value from store key
func (*Params) Descriptor ¶
func (*Params) GetBondDenom ¶
func (*Params) GetHistoricalEntries ¶
func (*Params) GetMaxEntries ¶
func (*Params) GetMaxValidators ¶
func (*Params) GetUnbondingTime ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Pool ¶
type Pool struct { NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 148-byte string literal not displayed */ BondedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 158-byte string literal not displayed */ }
Pool - tracking bonded and not-bonded token supply of the bond denomination
func (*Pool) Description ¶
func (this *Pool) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
func (*Pool) Descriptor ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Unmarshal ¶
type QueryClient ¶
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 addr 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 give validator delegator pair UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error) // DelegatorDelegations queries all delegations of a give 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 ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryDelegationRequest ¶
type QueryDelegationRequest struct { DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 155-byte string literal not displayed */ }
QueryDelegationRequest is request type for the Query/Delegation RPC method
func (*QueryDelegationRequest) Descriptor ¶
func (*QueryDelegationRequest) Descriptor() ([]byte, []int)
func (*QueryDelegationRequest) GetDelegatorAddr ¶
func (m *QueryDelegationRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryDelegationRequest) GetValidatorAddr ¶
func (m *QueryDelegationRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryDelegationRequest) Marshal ¶
func (m *QueryDelegationRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegationRequest) MarshalTo ¶
func (m *QueryDelegationRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegationRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegationRequest) ProtoMessage ¶
func (*QueryDelegationRequest) ProtoMessage()
func (*QueryDelegationRequest) Reset ¶
func (m *QueryDelegationRequest) Reset()
func (*QueryDelegationRequest) Size ¶
func (m *QueryDelegationRequest) Size() (n int)
func (*QueryDelegationRequest) String ¶
func (m *QueryDelegationRequest) String() string
func (*QueryDelegationRequest) Unmarshal ¶
func (m *QueryDelegationRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegationRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegationRequest) XXX_DiscardUnknown()
func (*QueryDelegationRequest) XXX_Marshal ¶
func (m *QueryDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegationRequest) XXX_Merge ¶
func (m *QueryDelegationRequest) XXX_Merge(src proto.Message)
func (*QueryDelegationRequest) XXX_Size ¶
func (m *QueryDelegationRequest) XXX_Size() int
func (*QueryDelegationRequest) XXX_Unmarshal ¶
func (m *QueryDelegationRequest) XXX_Unmarshal(b []byte) error
type QueryDelegationResponse ¶
type QueryDelegationResponse struct {
DelegationResponse *DelegationResponse `` /* 143-byte string literal not displayed */
}
QueryDelegationResponse is response type for the Query/Delegation RPC method
func (*QueryDelegationResponse) Descriptor ¶
func (*QueryDelegationResponse) Descriptor() ([]byte, []int)
func (*QueryDelegationResponse) GetDelegationResponse ¶
func (m *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse
func (*QueryDelegationResponse) Marshal ¶
func (m *QueryDelegationResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegationResponse) MarshalTo ¶
func (m *QueryDelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegationResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegationResponse) ProtoMessage ¶
func (*QueryDelegationResponse) ProtoMessage()
func (*QueryDelegationResponse) Reset ¶
func (m *QueryDelegationResponse) Reset()
func (*QueryDelegationResponse) Size ¶
func (m *QueryDelegationResponse) Size() (n int)
func (*QueryDelegationResponse) String ¶
func (m *QueryDelegationResponse) String() string
func (*QueryDelegationResponse) Unmarshal ¶
func (m *QueryDelegationResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegationResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegationResponse) XXX_DiscardUnknown()
func (*QueryDelegationResponse) XXX_Marshal ¶
func (m *QueryDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegationResponse) XXX_Merge ¶
func (m *QueryDelegationResponse) XXX_Merge(src proto.Message)
func (*QueryDelegationResponse) XXX_Size ¶
func (m *QueryDelegationResponse) XXX_Size() int
func (*QueryDelegationResponse) XXX_Unmarshal ¶
func (m *QueryDelegationResponse) XXX_Unmarshal(b []byte) error
type QueryDelegatorDelegationsRequest ¶
type QueryDelegatorDelegationsRequest struct { DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ 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 ¶
func (*QueryDelegatorDelegationsRequest) Descriptor() ([]byte, []int)
func (*QueryDelegatorDelegationsRequest) GetDelegatorAddr ¶
func (m *QueryDelegatorDelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryDelegatorDelegationsRequest) GetPagination ¶
func (m *QueryDelegatorDelegationsRequest) GetPagination() *query.PageRequest
func (*QueryDelegatorDelegationsRequest) Marshal ¶
func (m *QueryDelegatorDelegationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorDelegationsRequest) MarshalTo ¶
func (m *QueryDelegatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorDelegationsRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorDelegationsRequest) ProtoMessage ¶
func (*QueryDelegatorDelegationsRequest) ProtoMessage()
func (*QueryDelegatorDelegationsRequest) Reset ¶
func (m *QueryDelegatorDelegationsRequest) Reset()
func (*QueryDelegatorDelegationsRequest) Size ¶
func (m *QueryDelegatorDelegationsRequest) Size() (n int)
func (*QueryDelegatorDelegationsRequest) String ¶
func (m *QueryDelegatorDelegationsRequest) String() string
func (*QueryDelegatorDelegationsRequest) Unmarshal ¶
func (m *QueryDelegatorDelegationsRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegatorDelegationsRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown()
func (*QueryDelegatorDelegationsRequest) XXX_Marshal ¶
func (m *QueryDelegatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorDelegationsRequest) XXX_Merge ¶
func (m *QueryDelegatorDelegationsRequest) XXX_Merge(src proto.Message)
func (*QueryDelegatorDelegationsRequest) XXX_Size ¶
func (m *QueryDelegatorDelegationsRequest) XXX_Size() int
func (*QueryDelegatorDelegationsRequest) XXX_Unmarshal ¶
func (m *QueryDelegatorDelegationsRequest) XXX_Unmarshal(b []byte) error
type QueryDelegatorDelegationsResponse ¶
type QueryDelegatorDelegationsResponse struct { DelegationResponses []DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses"` 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 ¶
func (*QueryDelegatorDelegationsResponse) Descriptor() ([]byte, []int)
func (*QueryDelegatorDelegationsResponse) GetDelegationResponses ¶
func (m *QueryDelegatorDelegationsResponse) GetDelegationResponses() []DelegationResponse
func (*QueryDelegatorDelegationsResponse) GetPagination ¶
func (m *QueryDelegatorDelegationsResponse) GetPagination() *query.PageResponse
func (*QueryDelegatorDelegationsResponse) Marshal ¶
func (m *QueryDelegatorDelegationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorDelegationsResponse) MarshalTo ¶
func (m *QueryDelegatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorDelegationsResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorDelegationsResponse) ProtoMessage ¶
func (*QueryDelegatorDelegationsResponse) ProtoMessage()
func (*QueryDelegatorDelegationsResponse) Reset ¶
func (m *QueryDelegatorDelegationsResponse) Reset()
func (*QueryDelegatorDelegationsResponse) Size ¶
func (m *QueryDelegatorDelegationsResponse) Size() (n int)
func (*QueryDelegatorDelegationsResponse) String ¶
func (m *QueryDelegatorDelegationsResponse) String() string
func (*QueryDelegatorDelegationsResponse) Unmarshal ¶
func (m *QueryDelegatorDelegationsResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegatorDelegationsResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown()
func (*QueryDelegatorDelegationsResponse) XXX_Marshal ¶
func (m *QueryDelegatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorDelegationsResponse) XXX_Merge ¶
func (m *QueryDelegatorDelegationsResponse) XXX_Merge(src proto.Message)
func (*QueryDelegatorDelegationsResponse) XXX_Size ¶
func (m *QueryDelegatorDelegationsResponse) XXX_Size() int
func (*QueryDelegatorDelegationsResponse) XXX_Unmarshal ¶
func (m *QueryDelegatorDelegationsResponse) XXX_Unmarshal(b []byte) error
type QueryDelegatorParams ¶
type QueryDelegatorParams struct {
DelegatorAddr sdk.AccAddress
}
defines the params for the following queries: - 'custom/staking/delegatorDelegations' - 'custom/staking/delegatorUnbondingDelegations' - 'custom/staking/delegatorValidators'
func NewQueryDelegatorParams ¶
func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams
type QueryDelegatorUnbondingDelegationsRequest ¶
type QueryDelegatorUnbondingDelegationsRequest struct { DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ 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 ¶
func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int)
func (*QueryDelegatorUnbondingDelegationsRequest) GetDelegatorAddr ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryDelegatorUnbondingDelegationsRequest) GetPagination ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) GetPagination() *query.PageRequest
func (*QueryDelegatorUnbondingDelegationsRequest) Marshal ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorUnbondingDelegationsRequest) MarshalTo ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage ¶
func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage()
func (*QueryDelegatorUnbondingDelegationsRequest) Reset ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) Reset()
func (*QueryDelegatorUnbondingDelegationsRequest) Size ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) Size() (n int)
func (*QueryDelegatorUnbondingDelegationsRequest) String ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) String() string
func (*QueryDelegatorUnbondingDelegationsRequest) Unmarshal ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown()
func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Merge ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Merge(src proto.Message)
func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Size ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Size() int
func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal ¶
func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal(b []byte) error
type QueryDelegatorUnbondingDelegationsResponse ¶
type QueryDelegatorUnbondingDelegationsResponse struct { UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"` 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 ¶
func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor() ([]byte, []int)
func (*QueryDelegatorUnbondingDelegationsResponse) GetPagination ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) GetPagination() *query.PageResponse
func (*QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses() []UnbondingDelegation
func (*QueryDelegatorUnbondingDelegationsResponse) Marshal ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorUnbondingDelegationsResponse) MarshalTo ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage ¶
func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage()
func (*QueryDelegatorUnbondingDelegationsResponse) Reset ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) Reset()
func (*QueryDelegatorUnbondingDelegationsResponse) Size ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) Size() (n int)
func (*QueryDelegatorUnbondingDelegationsResponse) String ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) String() string
func (*QueryDelegatorUnbondingDelegationsResponse) Unmarshal ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown()
func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Merge ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Merge(src proto.Message)
func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Size ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Size() int
func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal ¶
func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal(b []byte) error
type QueryDelegatorValidatorRequest ¶
type QueryDelegatorValidatorRequest struct { DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 155-byte string literal not displayed */ }
QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method
func (*QueryDelegatorValidatorRequest) Descriptor ¶
func (*QueryDelegatorValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryDelegatorValidatorRequest) GetDelegatorAddr ¶
func (m *QueryDelegatorValidatorRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryDelegatorValidatorRequest) GetValidatorAddr ¶
func (m *QueryDelegatorValidatorRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryDelegatorValidatorRequest) Marshal ¶
func (m *QueryDelegatorValidatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorValidatorRequest) MarshalTo ¶
func (m *QueryDelegatorValidatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegatorValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorRequest) ProtoMessage ¶
func (*QueryDelegatorValidatorRequest) ProtoMessage()
func (*QueryDelegatorValidatorRequest) Reset ¶
func (m *QueryDelegatorValidatorRequest) Reset()
func (*QueryDelegatorValidatorRequest) Size ¶
func (m *QueryDelegatorValidatorRequest) Size() (n int)
func (*QueryDelegatorValidatorRequest) String ¶
func (m *QueryDelegatorValidatorRequest) String() string
func (*QueryDelegatorValidatorRequest) Unmarshal ¶
func (m *QueryDelegatorValidatorRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegatorValidatorRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegatorValidatorRequest) XXX_DiscardUnknown()
func (*QueryDelegatorValidatorRequest) XXX_Marshal ¶
func (m *QueryDelegatorValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorValidatorRequest) XXX_Merge ¶
func (m *QueryDelegatorValidatorRequest) XXX_Merge(src proto.Message)
func (*QueryDelegatorValidatorRequest) XXX_Size ¶
func (m *QueryDelegatorValidatorRequest) XXX_Size() int
func (*QueryDelegatorValidatorRequest) XXX_Unmarshal ¶
func (m *QueryDelegatorValidatorRequest) XXX_Unmarshal(b []byte) error
type QueryDelegatorValidatorResponse ¶
type QueryDelegatorValidatorResponse struct {
Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}
QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method
func (*QueryDelegatorValidatorResponse) Descriptor ¶
func (*QueryDelegatorValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryDelegatorValidatorResponse) GetValidator ¶
func (m *QueryDelegatorValidatorResponse) GetValidator() Validator
func (*QueryDelegatorValidatorResponse) Marshal ¶
func (m *QueryDelegatorValidatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorValidatorResponse) MarshalTo ¶
func (m *QueryDelegatorValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegatorValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorResponse) ProtoMessage ¶
func (*QueryDelegatorValidatorResponse) ProtoMessage()
func (*QueryDelegatorValidatorResponse) Reset ¶
func (m *QueryDelegatorValidatorResponse) Reset()
func (*QueryDelegatorValidatorResponse) Size ¶
func (m *QueryDelegatorValidatorResponse) Size() (n int)
func (*QueryDelegatorValidatorResponse) String ¶
func (m *QueryDelegatorValidatorResponse) String() string
func (*QueryDelegatorValidatorResponse) Unmarshal ¶
func (m *QueryDelegatorValidatorResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegatorValidatorResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegatorValidatorResponse) XXX_DiscardUnknown()
func (*QueryDelegatorValidatorResponse) XXX_Marshal ¶
func (m *QueryDelegatorValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorValidatorResponse) XXX_Merge ¶
func (m *QueryDelegatorValidatorResponse) XXX_Merge(src proto.Message)
func (*QueryDelegatorValidatorResponse) XXX_Size ¶
func (m *QueryDelegatorValidatorResponse) XXX_Size() int
func (*QueryDelegatorValidatorResponse) XXX_Unmarshal ¶
func (m *QueryDelegatorValidatorResponse) XXX_Unmarshal(b []byte) error
type QueryDelegatorValidatorsRequest ¶
type QueryDelegatorValidatorsRequest struct { DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ 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 ¶
func (*QueryDelegatorValidatorsRequest) Descriptor() ([]byte, []int)
func (*QueryDelegatorValidatorsRequest) GetDelegatorAddr ¶
func (m *QueryDelegatorValidatorsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryDelegatorValidatorsRequest) GetPagination ¶
func (m *QueryDelegatorValidatorsRequest) GetPagination() *query.PageRequest
func (*QueryDelegatorValidatorsRequest) Marshal ¶
func (m *QueryDelegatorValidatorsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorValidatorsRequest) MarshalTo ¶
func (m *QueryDelegatorValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorsRequest) MarshalToSizedBuffer ¶
func (m *QueryDelegatorValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorsRequest) ProtoMessage ¶
func (*QueryDelegatorValidatorsRequest) ProtoMessage()
func (*QueryDelegatorValidatorsRequest) Reset ¶
func (m *QueryDelegatorValidatorsRequest) Reset()
func (*QueryDelegatorValidatorsRequest) Size ¶
func (m *QueryDelegatorValidatorsRequest) Size() (n int)
func (*QueryDelegatorValidatorsRequest) String ¶
func (m *QueryDelegatorValidatorsRequest) String() string
func (*QueryDelegatorValidatorsRequest) Unmarshal ¶
func (m *QueryDelegatorValidatorsRequest) Unmarshal(dAtA []byte) error
func (*QueryDelegatorValidatorsRequest) XXX_DiscardUnknown ¶
func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()
func (*QueryDelegatorValidatorsRequest) XXX_Marshal ¶
func (m *QueryDelegatorValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorValidatorsRequest) XXX_Merge ¶
func (m *QueryDelegatorValidatorsRequest) XXX_Merge(src proto.Message)
func (*QueryDelegatorValidatorsRequest) XXX_Size ¶
func (m *QueryDelegatorValidatorsRequest) XXX_Size() int
func (*QueryDelegatorValidatorsRequest) XXX_Unmarshal ¶
func (m *QueryDelegatorValidatorsRequest) XXX_Unmarshal(b []byte) error
type QueryDelegatorValidatorsResponse ¶
type QueryDelegatorValidatorsResponse struct { Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"` 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 ¶
func (*QueryDelegatorValidatorsResponse) Descriptor() ([]byte, []int)
func (*QueryDelegatorValidatorsResponse) GetPagination ¶
func (m *QueryDelegatorValidatorsResponse) GetPagination() *query.PageResponse
func (*QueryDelegatorValidatorsResponse) GetValidators ¶
func (m *QueryDelegatorValidatorsResponse) GetValidators() []Validator
func (*QueryDelegatorValidatorsResponse) Marshal ¶
func (m *QueryDelegatorValidatorsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDelegatorValidatorsResponse) MarshalTo ¶
func (m *QueryDelegatorValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorsResponse) MarshalToSizedBuffer ¶
func (m *QueryDelegatorValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDelegatorValidatorsResponse) ProtoMessage ¶
func (*QueryDelegatorValidatorsResponse) ProtoMessage()
func (*QueryDelegatorValidatorsResponse) Reset ¶
func (m *QueryDelegatorValidatorsResponse) Reset()
func (*QueryDelegatorValidatorsResponse) Size ¶
func (m *QueryDelegatorValidatorsResponse) Size() (n int)
func (*QueryDelegatorValidatorsResponse) String ¶
func (m *QueryDelegatorValidatorsResponse) String() string
func (*QueryDelegatorValidatorsResponse) Unmarshal ¶
func (m *QueryDelegatorValidatorsResponse) Unmarshal(dAtA []byte) error
func (*QueryDelegatorValidatorsResponse) XXX_DiscardUnknown ¶
func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()
func (*QueryDelegatorValidatorsResponse) XXX_Marshal ¶
func (m *QueryDelegatorValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDelegatorValidatorsResponse) XXX_Merge ¶
func (m *QueryDelegatorValidatorsResponse) XXX_Merge(src proto.Message)
func (*QueryDelegatorValidatorsResponse) XXX_Size ¶
func (m *QueryDelegatorValidatorsResponse) XXX_Size() int
func (*QueryDelegatorValidatorsResponse) XXX_Unmarshal ¶
func (m *QueryDelegatorValidatorsResponse) XXX_Unmarshal(b []byte) error
type QueryHistoricalInfoRequest ¶
type QueryHistoricalInfoRequest struct {
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 ¶
func (*QueryHistoricalInfoRequest) Descriptor() ([]byte, []int)
func (*QueryHistoricalInfoRequest) GetHeight ¶
func (m *QueryHistoricalInfoRequest) GetHeight() int64
func (*QueryHistoricalInfoRequest) Marshal ¶
func (m *QueryHistoricalInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryHistoricalInfoRequest) MarshalTo ¶
func (m *QueryHistoricalInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryHistoricalInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryHistoricalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHistoricalInfoRequest) ProtoMessage ¶
func (*QueryHistoricalInfoRequest) ProtoMessage()
func (*QueryHistoricalInfoRequest) Reset ¶
func (m *QueryHistoricalInfoRequest) Reset()
func (*QueryHistoricalInfoRequest) Size ¶
func (m *QueryHistoricalInfoRequest) Size() (n int)
func (*QueryHistoricalInfoRequest) String ¶
func (m *QueryHistoricalInfoRequest) String() string
func (*QueryHistoricalInfoRequest) Unmarshal ¶
func (m *QueryHistoricalInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryHistoricalInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()
func (*QueryHistoricalInfoRequest) XXX_Marshal ¶
func (m *QueryHistoricalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHistoricalInfoRequest) XXX_Merge ¶
func (m *QueryHistoricalInfoRequest) XXX_Merge(src proto.Message)
func (*QueryHistoricalInfoRequest) XXX_Size ¶
func (m *QueryHistoricalInfoRequest) XXX_Size() int
func (*QueryHistoricalInfoRequest) XXX_Unmarshal ¶
func (m *QueryHistoricalInfoRequest) XXX_Unmarshal(b []byte) error
type QueryHistoricalInfoResponse ¶
type QueryHistoricalInfoResponse struct {
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 ¶
func (*QueryHistoricalInfoResponse) Descriptor() ([]byte, []int)
func (*QueryHistoricalInfoResponse) GetHist ¶
func (m *QueryHistoricalInfoResponse) GetHist() *HistoricalInfo
func (*QueryHistoricalInfoResponse) Marshal ¶
func (m *QueryHistoricalInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryHistoricalInfoResponse) MarshalTo ¶
func (m *QueryHistoricalInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryHistoricalInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryHistoricalInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHistoricalInfoResponse) ProtoMessage ¶
func (*QueryHistoricalInfoResponse) ProtoMessage()
func (*QueryHistoricalInfoResponse) Reset ¶
func (m *QueryHistoricalInfoResponse) Reset()
func (*QueryHistoricalInfoResponse) Size ¶
func (m *QueryHistoricalInfoResponse) Size() (n int)
func (*QueryHistoricalInfoResponse) String ¶
func (m *QueryHistoricalInfoResponse) String() string
func (*QueryHistoricalInfoResponse) Unmarshal ¶
func (m *QueryHistoricalInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryHistoricalInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()
func (*QueryHistoricalInfoResponse) XXX_Marshal ¶
func (m *QueryHistoricalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHistoricalInfoResponse) XXX_Merge ¶
func (m *QueryHistoricalInfoResponse) XXX_Merge(src proto.Message)
func (*QueryHistoricalInfoResponse) XXX_Size ¶
func (m *QueryHistoricalInfoResponse) XXX_Size() int
func (*QueryHistoricalInfoResponse) XXX_Unmarshal ¶
func (m *QueryHistoricalInfoResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryParamsResponse is response type for the Query/Params RPC method
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetPagination ¶
func (m *QueryParamsResponse) GetPagination() *query.PageResponse
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPoolRequest ¶
type QueryPoolRequest struct { }
QueryPoolRequest is request type for the Query/Pool RPC method
func (*QueryPoolRequest) Descriptor ¶
func (*QueryPoolRequest) Descriptor() ([]byte, []int)
func (*QueryPoolRequest) Marshal ¶
func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryPoolRequest) MarshalToSizedBuffer ¶
func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolRequest) ProtoMessage ¶
func (*QueryPoolRequest) ProtoMessage()
func (*QueryPoolRequest) Reset ¶
func (m *QueryPoolRequest) Reset()
func (*QueryPoolRequest) Size ¶
func (m *QueryPoolRequest) Size() (n int)
func (*QueryPoolRequest) String ¶
func (m *QueryPoolRequest) String() string
func (*QueryPoolRequest) Unmarshal ¶
func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryPoolRequest) XXX_DiscardUnknown ¶
func (m *QueryPoolRequest) XXX_DiscardUnknown()
func (*QueryPoolRequest) XXX_Marshal ¶
func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolRequest) XXX_Merge ¶
func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
func (*QueryPoolRequest) XXX_Size ¶
func (m *QueryPoolRequest) XXX_Size() int
func (*QueryPoolRequest) XXX_Unmarshal ¶
func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
type QueryPoolResponse ¶
type QueryPoolResponse struct {
Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
}
QueryPoolResponse is response type for the Query/Pool RPC method
func (*QueryPoolResponse) Descriptor ¶
func (*QueryPoolResponse) Descriptor() ([]byte, []int)
func (*QueryPoolResponse) GetPool ¶
func (m *QueryPoolResponse) GetPool() Pool
func (*QueryPoolResponse) Marshal ¶
func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryPoolResponse) MarshalTo ¶
func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolResponse) MarshalToSizedBuffer ¶
func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolResponse) ProtoMessage ¶
func (*QueryPoolResponse) ProtoMessage()
func (*QueryPoolResponse) Reset ¶
func (m *QueryPoolResponse) Reset()
func (*QueryPoolResponse) Size ¶
func (m *QueryPoolResponse) Size() (n int)
func (*QueryPoolResponse) String ¶
func (m *QueryPoolResponse) String() string
func (*QueryPoolResponse) Unmarshal ¶
func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryPoolResponse) XXX_DiscardUnknown ¶
func (m *QueryPoolResponse) XXX_DiscardUnknown()
func (*QueryPoolResponse) XXX_Marshal ¶
func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolResponse) XXX_Merge ¶
func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
func (*QueryPoolResponse) XXX_Size ¶
func (m *QueryPoolResponse) XXX_Size() int
func (*QueryPoolResponse) XXX_Unmarshal ¶
func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
type QueryRedelegationParams ¶
type QueryRedelegationParams struct { DelegatorAddr sdk.AccAddress SrcValidatorAddr sdk.ValAddress DstValidatorAddr sdk.ValAddress }
defines the params for the following queries: - 'custom/staking/redelegation'
func NewQueryRedelegationParams ¶
func NewQueryRedelegationParams(delegatorAddr sdk.AccAddress, srcValidatorAddr, dstValidatorAddr sdk.ValAddress) QueryRedelegationParams
type QueryRedelegationsRequest ¶
type QueryRedelegationsRequest struct { DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ SrcValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 166-byte string literal not displayed */ DstValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 166-byte string literal not displayed */ 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 ¶
func (*QueryRedelegationsRequest) Descriptor() ([]byte, []int)
func (*QueryRedelegationsRequest) GetDelegatorAddr ¶
func (m *QueryRedelegationsRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryRedelegationsRequest) GetDstValidatorAddr ¶
func (m *QueryRedelegationsRequest) GetDstValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryRedelegationsRequest) GetPagination ¶
func (m *QueryRedelegationsRequest) GetPagination() *query.PageRequest
func (*QueryRedelegationsRequest) GetSrcValidatorAddr ¶
func (m *QueryRedelegationsRequest) GetSrcValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryRedelegationsRequest) Marshal ¶
func (m *QueryRedelegationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryRedelegationsRequest) MarshalTo ¶
func (m *QueryRedelegationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRedelegationsRequest) MarshalToSizedBuffer ¶
func (m *QueryRedelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRedelegationsRequest) ProtoMessage ¶
func (*QueryRedelegationsRequest) ProtoMessage()
func (*QueryRedelegationsRequest) Reset ¶
func (m *QueryRedelegationsRequest) Reset()
func (*QueryRedelegationsRequest) Size ¶
func (m *QueryRedelegationsRequest) Size() (n int)
func (*QueryRedelegationsRequest) String ¶
func (m *QueryRedelegationsRequest) String() string
func (*QueryRedelegationsRequest) Unmarshal ¶
func (m *QueryRedelegationsRequest) Unmarshal(dAtA []byte) error
func (*QueryRedelegationsRequest) XXX_DiscardUnknown ¶
func (m *QueryRedelegationsRequest) XXX_DiscardUnknown()
func (*QueryRedelegationsRequest) XXX_Marshal ¶
func (m *QueryRedelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRedelegationsRequest) XXX_Merge ¶
func (m *QueryRedelegationsRequest) XXX_Merge(src proto.Message)
func (*QueryRedelegationsRequest) XXX_Size ¶
func (m *QueryRedelegationsRequest) XXX_Size() int
func (*QueryRedelegationsRequest) XXX_Unmarshal ¶
func (m *QueryRedelegationsRequest) XXX_Unmarshal(b []byte) error
type QueryRedelegationsResponse ¶
type QueryRedelegationsResponse struct { RedelegationResponses []RedelegationResponse `protobuf:"bytes,1,rep,name=redelegation_responses,json=redelegationResponses,proto3" json:"redelegation_responses"` 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 ¶
func (*QueryRedelegationsResponse) Descriptor() ([]byte, []int)
func (*QueryRedelegationsResponse) GetPagination ¶
func (m *QueryRedelegationsResponse) GetPagination() *query.PageResponse
func (*QueryRedelegationsResponse) GetRedelegationResponses ¶
func (m *QueryRedelegationsResponse) GetRedelegationResponses() []RedelegationResponse
func (*QueryRedelegationsResponse) Marshal ¶
func (m *QueryRedelegationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRedelegationsResponse) MarshalTo ¶
func (m *QueryRedelegationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRedelegationsResponse) MarshalToSizedBuffer ¶
func (m *QueryRedelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRedelegationsResponse) ProtoMessage ¶
func (*QueryRedelegationsResponse) ProtoMessage()
func (*QueryRedelegationsResponse) Reset ¶
func (m *QueryRedelegationsResponse) Reset()
func (*QueryRedelegationsResponse) Size ¶
func (m *QueryRedelegationsResponse) Size() (n int)
func (*QueryRedelegationsResponse) String ¶
func (m *QueryRedelegationsResponse) String() string
func (*QueryRedelegationsResponse) Unmarshal ¶
func (m *QueryRedelegationsResponse) Unmarshal(dAtA []byte) error
func (*QueryRedelegationsResponse) XXX_DiscardUnknown ¶
func (m *QueryRedelegationsResponse) XXX_DiscardUnknown()
func (*QueryRedelegationsResponse) XXX_Marshal ¶
func (m *QueryRedelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRedelegationsResponse) XXX_Merge ¶
func (m *QueryRedelegationsResponse) XXX_Merge(src proto.Message)
func (*QueryRedelegationsResponse) XXX_Size ¶
func (m *QueryRedelegationsResponse) XXX_Size() int
func (*QueryRedelegationsResponse) XXX_Unmarshal ¶
func (m *QueryRedelegationsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
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 addr 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 give validator delegator pair UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error) // DelegatorDelegations queries all delegations of a give 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 ¶
type QueryUnbondingDelegationRequest struct { DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 155-byte string literal not displayed */ }
QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method
func (*QueryUnbondingDelegationRequest) Descriptor ¶
func (*QueryUnbondingDelegationRequest) Descriptor() ([]byte, []int)
func (*QueryUnbondingDelegationRequest) GetDelegatorAddr ¶
func (m *QueryUnbondingDelegationRequest) GetDelegatorAddr() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryUnbondingDelegationRequest) GetValidatorAddr ¶
func (m *QueryUnbondingDelegationRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryUnbondingDelegationRequest) Marshal ¶
func (m *QueryUnbondingDelegationRequest) Marshal() (dAtA []byte, err error)
func (*QueryUnbondingDelegationRequest) MarshalTo ¶
func (m *QueryUnbondingDelegationRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUnbondingDelegationRequest) MarshalToSizedBuffer ¶
func (m *QueryUnbondingDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUnbondingDelegationRequest) ProtoMessage ¶
func (*QueryUnbondingDelegationRequest) ProtoMessage()
func (*QueryUnbondingDelegationRequest) Reset ¶
func (m *QueryUnbondingDelegationRequest) Reset()
func (*QueryUnbondingDelegationRequest) Size ¶
func (m *QueryUnbondingDelegationRequest) Size() (n int)
func (*QueryUnbondingDelegationRequest) String ¶
func (m *QueryUnbondingDelegationRequest) String() string
func (*QueryUnbondingDelegationRequest) Unmarshal ¶
func (m *QueryUnbondingDelegationRequest) Unmarshal(dAtA []byte) error
func (*QueryUnbondingDelegationRequest) XXX_DiscardUnknown ¶
func (m *QueryUnbondingDelegationRequest) XXX_DiscardUnknown()
func (*QueryUnbondingDelegationRequest) XXX_Marshal ¶
func (m *QueryUnbondingDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUnbondingDelegationRequest) XXX_Merge ¶
func (m *QueryUnbondingDelegationRequest) XXX_Merge(src proto.Message)
func (*QueryUnbondingDelegationRequest) XXX_Size ¶
func (m *QueryUnbondingDelegationRequest) XXX_Size() int
func (*QueryUnbondingDelegationRequest) XXX_Unmarshal ¶
func (m *QueryUnbondingDelegationRequest) XXX_Unmarshal(b []byte) error
type QueryUnbondingDelegationResponse ¶
type QueryUnbondingDelegationResponse struct {
Unbond UnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond"`
}
QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method
func (*QueryUnbondingDelegationResponse) Descriptor ¶
func (*QueryUnbondingDelegationResponse) Descriptor() ([]byte, []int)
func (*QueryUnbondingDelegationResponse) GetUnbond ¶
func (m *QueryUnbondingDelegationResponse) GetUnbond() UnbondingDelegation
func (*QueryUnbondingDelegationResponse) Marshal ¶
func (m *QueryUnbondingDelegationResponse) Marshal() (dAtA []byte, err error)
func (*QueryUnbondingDelegationResponse) MarshalTo ¶
func (m *QueryUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUnbondingDelegationResponse) MarshalToSizedBuffer ¶
func (m *QueryUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUnbondingDelegationResponse) ProtoMessage ¶
func (*QueryUnbondingDelegationResponse) ProtoMessage()
func (*QueryUnbondingDelegationResponse) Reset ¶
func (m *QueryUnbondingDelegationResponse) Reset()
func (*QueryUnbondingDelegationResponse) Size ¶
func (m *QueryUnbondingDelegationResponse) Size() (n int)
func (*QueryUnbondingDelegationResponse) String ¶
func (m *QueryUnbondingDelegationResponse) String() string
func (*QueryUnbondingDelegationResponse) Unmarshal ¶
func (m *QueryUnbondingDelegationResponse) Unmarshal(dAtA []byte) error
func (*QueryUnbondingDelegationResponse) XXX_DiscardUnknown ¶
func (m *QueryUnbondingDelegationResponse) XXX_DiscardUnknown()
func (*QueryUnbondingDelegationResponse) XXX_Marshal ¶
func (m *QueryUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUnbondingDelegationResponse) XXX_Merge ¶
func (m *QueryUnbondingDelegationResponse) XXX_Merge(src proto.Message)
func (*QueryUnbondingDelegationResponse) XXX_Size ¶
func (m *QueryUnbondingDelegationResponse) XXX_Size() int
func (*QueryUnbondingDelegationResponse) XXX_Unmarshal ¶
func (m *QueryUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorDelegationsRequest ¶
type QueryValidatorDelegationsRequest struct { ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 155-byte string literal not displayed */ 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 ¶
func (*QueryValidatorDelegationsRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorDelegationsRequest) GetPagination ¶
func (m *QueryValidatorDelegationsRequest) GetPagination() *query.PageRequest
func (*QueryValidatorDelegationsRequest) GetValidatorAddr ¶
func (m *QueryValidatorDelegationsRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryValidatorDelegationsRequest) Marshal ¶
func (m *QueryValidatorDelegationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorDelegationsRequest) MarshalTo ¶
func (m *QueryValidatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorDelegationsRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorDelegationsRequest) ProtoMessage ¶
func (*QueryValidatorDelegationsRequest) ProtoMessage()
func (*QueryValidatorDelegationsRequest) Reset ¶
func (m *QueryValidatorDelegationsRequest) Reset()
func (*QueryValidatorDelegationsRequest) Size ¶
func (m *QueryValidatorDelegationsRequest) Size() (n int)
func (*QueryValidatorDelegationsRequest) String ¶
func (m *QueryValidatorDelegationsRequest) String() string
func (*QueryValidatorDelegationsRequest) Unmarshal ¶
func (m *QueryValidatorDelegationsRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorDelegationsRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorDelegationsRequest) XXX_DiscardUnknown()
func (*QueryValidatorDelegationsRequest) XXX_Marshal ¶
func (m *QueryValidatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorDelegationsRequest) XXX_Merge ¶
func (m *QueryValidatorDelegationsRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorDelegationsRequest) XXX_Size ¶
func (m *QueryValidatorDelegationsRequest) XXX_Size() int
func (*QueryValidatorDelegationsRequest) XXX_Unmarshal ¶
func (m *QueryValidatorDelegationsRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorDelegationsResponse ¶
type QueryValidatorDelegationsResponse struct { DelegationResponses DelegationResponses `` /* 141-byte string literal not displayed */ 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 ¶
func (*QueryValidatorDelegationsResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorDelegationsResponse) GetDelegationResponses ¶
func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() DelegationResponses
func (*QueryValidatorDelegationsResponse) GetPagination ¶
func (m *QueryValidatorDelegationsResponse) GetPagination() *query.PageResponse
func (*QueryValidatorDelegationsResponse) Marshal ¶
func (m *QueryValidatorDelegationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorDelegationsResponse) MarshalTo ¶
func (m *QueryValidatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorDelegationsResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorDelegationsResponse) ProtoMessage ¶
func (*QueryValidatorDelegationsResponse) ProtoMessage()
func (*QueryValidatorDelegationsResponse) Reset ¶
func (m *QueryValidatorDelegationsResponse) Reset()
func (*QueryValidatorDelegationsResponse) Size ¶
func (m *QueryValidatorDelegationsResponse) Size() (n int)
func (*QueryValidatorDelegationsResponse) String ¶
func (m *QueryValidatorDelegationsResponse) String() string
func (*QueryValidatorDelegationsResponse) Unmarshal ¶
func (m *QueryValidatorDelegationsResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorDelegationsResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown()
func (*QueryValidatorDelegationsResponse) XXX_Marshal ¶
func (m *QueryValidatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorDelegationsResponse) XXX_Merge ¶
func (m *QueryValidatorDelegationsResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorDelegationsResponse) XXX_Size ¶
func (m *QueryValidatorDelegationsResponse) XXX_Size() int
func (*QueryValidatorDelegationsResponse) XXX_Unmarshal ¶
func (m *QueryValidatorDelegationsResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorParams ¶
type QueryValidatorParams struct { ValidatorAddr sdk.ValAddress Page, Limit int }
defines the params for the following queries: - 'custom/staking/validator' - 'custom/staking/validatorDelegations' - 'custom/staking/validatorUnbondingDelegations'
func NewQueryValidatorParams ¶
func NewQueryValidatorParams(validatorAddr sdk.ValAddress, page, limit int) QueryValidatorParams
type QueryValidatorRequest ¶
type QueryValidatorRequest struct {
ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 155-byte string literal not displayed */
}
QueryValidatorRequest is response type for the Query/Validator RPC method
func (*QueryValidatorRequest) Descriptor ¶
func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorRequest) GetValidatorAddr ¶
func (m *QueryValidatorRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryValidatorRequest) Marshal ¶
func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorRequest) MarshalTo ¶
func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorRequest) ProtoMessage ¶
func (*QueryValidatorRequest) ProtoMessage()
func (*QueryValidatorRequest) Reset ¶
func (m *QueryValidatorRequest) Reset()
func (*QueryValidatorRequest) Size ¶
func (m *QueryValidatorRequest) Size() (n int)
func (*QueryValidatorRequest) String ¶
func (m *QueryValidatorRequest) String() string
func (*QueryValidatorRequest) Unmarshal ¶
func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorRequest) XXX_DiscardUnknown()
func (*QueryValidatorRequest) XXX_Marshal ¶
func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorRequest) XXX_Merge ¶
func (m *QueryValidatorRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorRequest) XXX_Size ¶
func (m *QueryValidatorRequest) XXX_Size() int
func (*QueryValidatorRequest) XXX_Unmarshal ¶
func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorResponse ¶
type QueryValidatorResponse struct {
Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}
QueryValidatorResponse is response type for the Query/Validator RPC method
func (*QueryValidatorResponse) Descriptor ¶
func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorResponse) GetValidator ¶
func (m *QueryValidatorResponse) GetValidator() Validator
func (*QueryValidatorResponse) Marshal ¶
func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorResponse) MarshalTo ¶
func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorResponse) ProtoMessage ¶
func (*QueryValidatorResponse) ProtoMessage()
func (*QueryValidatorResponse) Reset ¶
func (m *QueryValidatorResponse) Reset()
func (*QueryValidatorResponse) Size ¶
func (m *QueryValidatorResponse) Size() (n int)
func (*QueryValidatorResponse) String ¶
func (m *QueryValidatorResponse) String() string
func (*QueryValidatorResponse) Unmarshal ¶
func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorResponse) XXX_DiscardUnknown()
func (*QueryValidatorResponse) XXX_Marshal ¶
func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorResponse) XXX_Merge ¶
func (m *QueryValidatorResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorResponse) XXX_Size ¶
func (m *QueryValidatorResponse) XXX_Size() int
func (*QueryValidatorResponse) XXX_Unmarshal ¶
func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorUnbondingDelegationsRequest ¶
type QueryValidatorUnbondingDelegationsRequest struct { ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 155-byte string literal not displayed */ 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 ¶
func (*QueryValidatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorUnbondingDelegationsRequest) GetPagination ¶
func (m *QueryValidatorUnbondingDelegationsRequest) GetPagination() *query.PageRequest
func (*QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr ¶
func (m *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*QueryValidatorUnbondingDelegationsRequest) Marshal ¶
func (m *QueryValidatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorUnbondingDelegationsRequest) MarshalTo ¶
func (m *QueryValidatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage ¶
func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage()
func (*QueryValidatorUnbondingDelegationsRequest) Reset ¶
func (m *QueryValidatorUnbondingDelegationsRequest) Reset()
func (*QueryValidatorUnbondingDelegationsRequest) Size ¶
func (m *QueryValidatorUnbondingDelegationsRequest) Size() (n int)
func (*QueryValidatorUnbondingDelegationsRequest) String ¶
func (m *QueryValidatorUnbondingDelegationsRequest) String() string
func (*QueryValidatorUnbondingDelegationsRequest) Unmarshal ¶
func (m *QueryValidatorUnbondingDelegationsRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown()
func (*QueryValidatorUnbondingDelegationsRequest) XXX_Marshal ¶
func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorUnbondingDelegationsRequest) XXX_Merge ¶
func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorUnbondingDelegationsRequest) XXX_Size ¶
func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Size() int
func (*QueryValidatorUnbondingDelegationsRequest) XXX_Unmarshal ¶
func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorUnbondingDelegationsResponse ¶
type QueryValidatorUnbondingDelegationsResponse struct { UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method
func (*QueryValidatorUnbondingDelegationsResponse) Descriptor ¶
func (*QueryValidatorUnbondingDelegationsResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorUnbondingDelegationsResponse) GetPagination ¶
func (m *QueryValidatorUnbondingDelegationsResponse) GetPagination() *query.PageResponse
func (*QueryValidatorUnbondingDelegationsResponse) GetUnbondingResponses ¶
func (m *QueryValidatorUnbondingDelegationsResponse) GetUnbondingResponses() []UnbondingDelegation
func (*QueryValidatorUnbondingDelegationsResponse) Marshal ¶
func (m *QueryValidatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorUnbondingDelegationsResponse) MarshalTo ¶
func (m *QueryValidatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage ¶
func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage()
func (*QueryValidatorUnbondingDelegationsResponse) Reset ¶
func (m *QueryValidatorUnbondingDelegationsResponse) Reset()
func (*QueryValidatorUnbondingDelegationsResponse) Size ¶
func (m *QueryValidatorUnbondingDelegationsResponse) Size() (n int)
func (*QueryValidatorUnbondingDelegationsResponse) String ¶
func (m *QueryValidatorUnbondingDelegationsResponse) String() string
func (*QueryValidatorUnbondingDelegationsResponse) Unmarshal ¶
func (m *QueryValidatorUnbondingDelegationsResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown()
func (*QueryValidatorUnbondingDelegationsResponse) XXX_Marshal ¶
func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorUnbondingDelegationsResponse) XXX_Merge ¶
func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorUnbondingDelegationsResponse) XXX_Size ¶
func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Size() int
func (*QueryValidatorUnbondingDelegationsResponse) XXX_Unmarshal ¶
func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorsParams ¶
QueryValidatorsParams defines the params for the following queries: - 'custom/staking/validators'
func NewQueryValidatorsParams ¶
func NewQueryValidatorsParams(page, limit int, status string) QueryValidatorsParams
type QueryValidatorsRequest ¶
type QueryValidatorsRequest struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryValidatorsRequest is request type for Query/Validators RPC method
func (*QueryValidatorsRequest) Descriptor ¶
func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorsRequest) GetPagination ¶
func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest
func (*QueryValidatorsRequest) GetStatus ¶
func (m *QueryValidatorsRequest) GetStatus() string
func (*QueryValidatorsRequest) Marshal ¶
func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorsRequest) MarshalTo ¶
func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorsRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorsRequest) ProtoMessage ¶
func (*QueryValidatorsRequest) ProtoMessage()
func (*QueryValidatorsRequest) Reset ¶
func (m *QueryValidatorsRequest) Reset()
func (*QueryValidatorsRequest) Size ¶
func (m *QueryValidatorsRequest) Size() (n int)
func (*QueryValidatorsRequest) String ¶
func (m *QueryValidatorsRequest) String() string
func (*QueryValidatorsRequest) Unmarshal ¶
func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorsRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorsRequest) XXX_DiscardUnknown()
func (*QueryValidatorsRequest) XXX_Marshal ¶
func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorsRequest) XXX_Merge ¶
func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorsRequest) XXX_Size ¶
func (m *QueryValidatorsRequest) XXX_Size() int
func (*QueryValidatorsRequest) XXX_Unmarshal ¶
func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorsResponse ¶
type QueryValidatorsResponse struct { Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryValidatorsResponse is response type for the Query/Validators RPC method
func (*QueryValidatorsResponse) Descriptor ¶
func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorsResponse) GetPagination ¶
func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse
func (*QueryValidatorsResponse) GetValidators ¶
func (m *QueryValidatorsResponse) GetValidators() []Validator
func (*QueryValidatorsResponse) Marshal ¶
func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorsResponse) MarshalTo ¶
func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorsResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorsResponse) ProtoMessage ¶
func (*QueryValidatorsResponse) ProtoMessage()
func (*QueryValidatorsResponse) Reset ¶
func (m *QueryValidatorsResponse) Reset()
func (*QueryValidatorsResponse) Size ¶
func (m *QueryValidatorsResponse) Size() (n int)
func (*QueryValidatorsResponse) String ¶
func (m *QueryValidatorsResponse) String() string
func (*QueryValidatorsResponse) Unmarshal ¶
func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorsResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorsResponse) XXX_DiscardUnknown()
func (*QueryValidatorsResponse) XXX_Marshal ¶
func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorsResponse) XXX_Merge ¶
func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorsResponse) XXX_Size ¶
func (m *QueryValidatorsResponse) XXX_Size() int
func (*QueryValidatorsResponse) XXX_Unmarshal ¶
func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error
type Redelegation ¶
type Redelegation struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorSrcAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 204-byte string literal not displayed */ ValidatorDstAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 204-byte string literal not displayed */ Entries []RedelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries"` }
Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.
func MustUnmarshalRED ¶
func MustUnmarshalRED(cdc codec.Marshaler, value []byte) Redelegation
MustUnmarshalRED unmarshals a redelegation from a store value. Panics if fails.
func NewRedelegation ¶
func NewRedelegation( delegatorAddr sdk.AccAddress, validatorSrcAddr, validatorDstAddr sdk.ValAddress, creationHeight int64, minTime time.Time, balance sdk.Int, sharesDst sdk.Dec, ) Redelegation
func UnmarshalRED ¶
func UnmarshalRED(cdc codec.Marshaler, value []byte) (red Redelegation, err error)
UnmarshalRED unmarshals a redelegation from a store value
func (*Redelegation) AddEntry ¶
func (red *Redelegation) AddEntry(creationHeight int64, minTime time.Time, balance sdk.Int, sharesDst sdk.Dec)
AddEntry - append entry to the unbonding delegation
func (*Redelegation) Descriptor ¶
func (*Redelegation) Descriptor() ([]byte, []int)
func (*Redelegation) Equal ¶
func (this *Redelegation) Equal(that interface{}) bool
func (*Redelegation) GetDelegatorAddress ¶
func (m *Redelegation) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Redelegation) GetEntries ¶
func (m *Redelegation) GetEntries() []RedelegationEntry
func (*Redelegation) GetValidatorDstAddress ¶
func (m *Redelegation) GetValidatorDstAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*Redelegation) GetValidatorSrcAddress ¶
func (m *Redelegation) GetValidatorSrcAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*Redelegation) Marshal ¶
func (m *Redelegation) Marshal() (dAtA []byte, err error)
func (*Redelegation) MarshalToSizedBuffer ¶
func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Redelegation) ProtoMessage ¶
func (*Redelegation) ProtoMessage()
func (*Redelegation) RemoveEntry ¶
func (red *Redelegation) RemoveEntry(i int64)
RemoveEntry - remove entry at index i to the unbonding delegation
func (*Redelegation) Reset ¶
func (m *Redelegation) Reset()
func (*Redelegation) Size ¶
func (m *Redelegation) Size() (n int)
func (Redelegation) String ¶
func (red Redelegation) String() string
String returns a human readable string representation of a Redelegation.
func (*Redelegation) Unmarshal ¶
func (m *Redelegation) Unmarshal(dAtA []byte) error
func (*Redelegation) XXX_DiscardUnknown ¶
func (m *Redelegation) XXX_DiscardUnknown()
func (*Redelegation) XXX_Marshal ¶
func (m *Redelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Redelegation) XXX_Merge ¶
func (m *Redelegation) XXX_Merge(src proto.Message)
func (*Redelegation) XXX_Size ¶
func (m *Redelegation) XXX_Size() int
func (*Redelegation) XXX_Unmarshal ¶
func (m *Redelegation) XXX_Unmarshal(b []byte) error
type RedelegationEntry ¶
type RedelegationEntry struct { CreationHeight int64 `` /* 127-byte string literal not displayed */ CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */ }
RedelegationEntry defines a redelegation object with relevant metadata.
func NewRedelegationEntry ¶
func (*RedelegationEntry) Descriptor ¶
func (*RedelegationEntry) Descriptor() ([]byte, []int)
func (*RedelegationEntry) Equal ¶
func (this *RedelegationEntry) Equal(that interface{}) bool
func (*RedelegationEntry) GetCompletionTime ¶
func (m *RedelegationEntry) GetCompletionTime() time.Time
func (*RedelegationEntry) GetCreationHeight ¶
func (m *RedelegationEntry) GetCreationHeight() int64
func (RedelegationEntry) IsMature ¶
func (e RedelegationEntry) IsMature(currentTime time.Time) bool
IsMature - is the current entry mature
func (*RedelegationEntry) Marshal ¶
func (m *RedelegationEntry) Marshal() (dAtA []byte, err error)
func (*RedelegationEntry) MarshalTo ¶
func (m *RedelegationEntry) MarshalTo(dAtA []byte) (int, error)
func (*RedelegationEntry) MarshalToSizedBuffer ¶
func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RedelegationEntry) ProtoMessage ¶
func (*RedelegationEntry) ProtoMessage()
func (*RedelegationEntry) Reset ¶
func (m *RedelegationEntry) Reset()
func (*RedelegationEntry) Size ¶
func (m *RedelegationEntry) Size() (n int)
func (RedelegationEntry) String ¶
func (e RedelegationEntry) String() string
String implements the Stringer interface for a RedelegationEntry object.
func (*RedelegationEntry) Unmarshal ¶
func (m *RedelegationEntry) Unmarshal(dAtA []byte) error
func (*RedelegationEntry) XXX_DiscardUnknown ¶
func (m *RedelegationEntry) XXX_DiscardUnknown()
func (*RedelegationEntry) XXX_Marshal ¶
func (m *RedelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedelegationEntry) XXX_Merge ¶
func (m *RedelegationEntry) XXX_Merge(src proto.Message)
func (*RedelegationEntry) XXX_Size ¶
func (m *RedelegationEntry) XXX_Size() int
func (*RedelegationEntry) XXX_Unmarshal ¶
func (m *RedelegationEntry) XXX_Unmarshal(b []byte) error
type RedelegationEntryResponse ¶
type RedelegationEntryResponse struct { RedelegationEntry RedelegationEntry `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry"` Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` }
RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.
func NewRedelegationEntryResponse ¶
func NewRedelegationEntryResponse( creationHeight int64, completionTime time.Time, sharesDst sdk.Dec, initialBalance, balance sdk.Int) RedelegationEntryResponse
NewRedelegationEntryResponse creates a new RedelegationEntryResponse instance.
func (*RedelegationEntryResponse) Descriptor ¶
func (*RedelegationEntryResponse) Descriptor() ([]byte, []int)
func (*RedelegationEntryResponse) Equal ¶
func (this *RedelegationEntryResponse) Equal(that interface{}) bool
func (*RedelegationEntryResponse) GetRedelegationEntry ¶
func (m *RedelegationEntryResponse) GetRedelegationEntry() RedelegationEntry
func (*RedelegationEntryResponse) Marshal ¶
func (m *RedelegationEntryResponse) Marshal() (dAtA []byte, err error)
func (*RedelegationEntryResponse) MarshalTo ¶
func (m *RedelegationEntryResponse) MarshalTo(dAtA []byte) (int, error)
func (*RedelegationEntryResponse) MarshalToSizedBuffer ¶
func (m *RedelegationEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RedelegationEntryResponse) ProtoMessage ¶
func (*RedelegationEntryResponse) ProtoMessage()
func (*RedelegationEntryResponse) Reset ¶
func (m *RedelegationEntryResponse) Reset()
func (*RedelegationEntryResponse) Size ¶
func (m *RedelegationEntryResponse) Size() (n int)
func (*RedelegationEntryResponse) String ¶
func (m *RedelegationEntryResponse) String() string
func (*RedelegationEntryResponse) Unmarshal ¶
func (m *RedelegationEntryResponse) Unmarshal(dAtA []byte) error
func (*RedelegationEntryResponse) XXX_DiscardUnknown ¶
func (m *RedelegationEntryResponse) XXX_DiscardUnknown()
func (*RedelegationEntryResponse) XXX_Marshal ¶
func (m *RedelegationEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedelegationEntryResponse) XXX_Merge ¶
func (m *RedelegationEntryResponse) XXX_Merge(src proto.Message)
func (*RedelegationEntryResponse) XXX_Size ¶
func (m *RedelegationEntryResponse) XXX_Size() int
func (*RedelegationEntryResponse) XXX_Unmarshal ¶
func (m *RedelegationEntryResponse) XXX_Unmarshal(b []byte) error
type RedelegationResponse ¶
type RedelegationResponse struct { Redelegation Redelegation `protobuf:"bytes,1,opt,name=redelegation,proto3" json:"redelegation"` Entries []RedelegationEntryResponse `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries"` }
RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.
func NewRedelegationResponse ¶
func NewRedelegationResponse( delegatorAddr sdk.AccAddress, validatorSrc, validatorDst sdk.ValAddress, entries []RedelegationEntryResponse, ) RedelegationResponse
NewRedelegationResponse crates a new RedelegationEntryResponse instance.
func (*RedelegationResponse) Descriptor ¶
func (*RedelegationResponse) Descriptor() ([]byte, []int)
func (*RedelegationResponse) Equal ¶
func (this *RedelegationResponse) Equal(that interface{}) bool
func (*RedelegationResponse) GetEntries ¶
func (m *RedelegationResponse) GetEntries() []RedelegationEntryResponse
func (*RedelegationResponse) GetRedelegation ¶
func (m *RedelegationResponse) GetRedelegation() Redelegation
func (*RedelegationResponse) Marshal ¶
func (m *RedelegationResponse) Marshal() (dAtA []byte, err error)
func (RedelegationResponse) MarshalJSON ¶
func (r RedelegationResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. This is so we can achieve a flattened structure while embedding other types.
func (*RedelegationResponse) MarshalTo ¶
func (m *RedelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*RedelegationResponse) MarshalToSizedBuffer ¶
func (m *RedelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RedelegationResponse) ProtoMessage ¶
func (*RedelegationResponse) ProtoMessage()
func (*RedelegationResponse) Reset ¶
func (m *RedelegationResponse) Reset()
func (*RedelegationResponse) Size ¶
func (m *RedelegationResponse) Size() (n int)
func (*RedelegationResponse) String ¶
func (m *RedelegationResponse) String() string
func (*RedelegationResponse) Unmarshal ¶
func (m *RedelegationResponse) Unmarshal(dAtA []byte) error
func (*RedelegationResponse) UnmarshalJSON ¶
func (r *RedelegationResponse) UnmarshalJSON(bz []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. This is so we can achieve a flattened structure while embedding other types.
func (*RedelegationResponse) XXX_DiscardUnknown ¶
func (m *RedelegationResponse) XXX_DiscardUnknown()
func (*RedelegationResponse) XXX_Marshal ¶
func (m *RedelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedelegationResponse) XXX_Merge ¶
func (m *RedelegationResponse) XXX_Merge(src proto.Message)
func (*RedelegationResponse) XXX_Size ¶
func (m *RedelegationResponse) XXX_Size() int
func (*RedelegationResponse) XXX_Unmarshal ¶
func (m *RedelegationResponse) XXX_Unmarshal(b []byte) error
type RedelegationResponses ¶
type RedelegationResponses []RedelegationResponse
RedelegationResponses are a collection of RedelegationResp
func (RedelegationResponses) String ¶
func (r RedelegationResponses) String() (out string)
type Redelegations ¶
type Redelegations []Redelegation
Redelegations are a collection of Redelegation
func (Redelegations) String ¶
func (d Redelegations) String() (out string)
type StakingHooks ¶
type StakingHooks interface { AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) // Must be called when a validator is created BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) // Must be called when a validator's state changes AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) // Must be called when a validator is deleted AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) // Must be called when a validator is bonded AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) // Must be called when a validator begins unbonding BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) // Must be called when a delegation is created BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) // Must be called when a delegation is removed AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) }
StakingHooks event hooks for staking validator object (noalias)
type UnbondingDelegation ¶
type UnbondingDelegation struct { DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 189-byte string literal not displayed */ ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 189-byte string literal not displayed */ Entries []UnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"` }
UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list
func MustUnmarshalUBD ¶
func MustUnmarshalUBD(cdc codec.Marshaler, value []byte) UnbondingDelegation
unmarshal a unbonding delegation from a store value
func NewUnbondingDelegation ¶
func NewUnbondingDelegation( delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, creationHeight int64, minTime time.Time, balance sdk.Int, ) UnbondingDelegation
NewUnbondingDelegation - create a new unbonding delegation object
func UnmarshalUBD ¶
func UnmarshalUBD(cdc codec.Marshaler, value []byte) (ubd UnbondingDelegation, err error)
unmarshal a unbonding delegation from a store value
func (*UnbondingDelegation) Descriptor ¶
func (*UnbondingDelegation) Descriptor() ([]byte, []int)
func (*UnbondingDelegation) Equal ¶
func (this *UnbondingDelegation) Equal(that interface{}) bool
func (*UnbondingDelegation) GetDelegatorAddress ¶
func (m *UnbondingDelegation) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*UnbondingDelegation) GetEntries ¶
func (m *UnbondingDelegation) GetEntries() []UnbondingDelegationEntry
func (*UnbondingDelegation) GetValidatorAddress ¶
func (m *UnbondingDelegation) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress
func (*UnbondingDelegation) Marshal ¶
func (m *UnbondingDelegation) Marshal() (dAtA []byte, err error)
func (*UnbondingDelegation) MarshalTo ¶
func (m *UnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
func (*UnbondingDelegation) MarshalToSizedBuffer ¶
func (m *UnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbondingDelegation) ProtoMessage ¶
func (*UnbondingDelegation) ProtoMessage()
func (*UnbondingDelegation) RemoveEntry ¶
func (ubd *UnbondingDelegation) RemoveEntry(i int64)
RemoveEntry - remove entry at index i to the unbonding delegation
func (*UnbondingDelegation) Reset ¶
func (m *UnbondingDelegation) Reset()
func (*UnbondingDelegation) Size ¶
func (m *UnbondingDelegation) Size() (n int)
func (UnbondingDelegation) String ¶
func (ubd UnbondingDelegation) String() string
String returns a human readable string representation of an UnbondingDelegation.
func (*UnbondingDelegation) Unmarshal ¶
func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error
func (*UnbondingDelegation) XXX_DiscardUnknown ¶
func (m *UnbondingDelegation) XXX_DiscardUnknown()
func (*UnbondingDelegation) XXX_Marshal ¶
func (m *UnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbondingDelegation) XXX_Merge ¶
func (m *UnbondingDelegation) XXX_Merge(src proto.Message)
func (*UnbondingDelegation) XXX_Size ¶
func (m *UnbondingDelegation) XXX_Size() int
func (*UnbondingDelegation) XXX_Unmarshal ¶
func (m *UnbondingDelegation) XXX_Unmarshal(b []byte) error
type UnbondingDelegationEntry ¶
type UnbondingDelegationEntry struct { CreationHeight int64 `` /* 127-byte string literal not displayed */ CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */ Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` }
UnbondingDelegationEntry defines an unbonding object with relevant metadata.
func (*UnbondingDelegationEntry) Descriptor ¶
func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int)
func (*UnbondingDelegationEntry) Equal ¶
func (this *UnbondingDelegationEntry) Equal(that interface{}) bool
func (*UnbondingDelegationEntry) GetCompletionTime ¶
func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time
func (*UnbondingDelegationEntry) GetCreationHeight ¶
func (m *UnbondingDelegationEntry) GetCreationHeight() int64
func (UnbondingDelegationEntry) IsMature ¶
func (e UnbondingDelegationEntry) IsMature(currentTime time.Time) bool
IsMature - is the current entry mature
func (*UnbondingDelegationEntry) Marshal ¶
func (m *UnbondingDelegationEntry) Marshal() (dAtA []byte, err error)
func (*UnbondingDelegationEntry) MarshalTo ¶
func (m *UnbondingDelegationEntry) MarshalTo(dAtA []byte) (int, error)
func (*UnbondingDelegationEntry) MarshalToSizedBuffer ¶
func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbondingDelegationEntry) ProtoMessage ¶
func (*UnbondingDelegationEntry) ProtoMessage()
func (*UnbondingDelegationEntry) Reset ¶
func (m *UnbondingDelegationEntry) Reset()
func (*UnbondingDelegationEntry) Size ¶
func (m *UnbondingDelegationEntry) Size() (n int)
func (UnbondingDelegationEntry) String ¶
func (e UnbondingDelegationEntry) String() string
String implements the stringer interface for a UnbondingDelegationEntry.
func (*UnbondingDelegationEntry) Unmarshal ¶
func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error
func (*UnbondingDelegationEntry) XXX_DiscardUnknown ¶
func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()
func (*UnbondingDelegationEntry) XXX_Marshal ¶
func (m *UnbondingDelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbondingDelegationEntry) XXX_Merge ¶
func (m *UnbondingDelegationEntry) XXX_Merge(src proto.Message)
func (*UnbondingDelegationEntry) XXX_Size ¶
func (m *UnbondingDelegationEntry) XXX_Size() int
func (*UnbondingDelegationEntry) XXX_Unmarshal ¶
func (m *UnbondingDelegationEntry) XXX_Unmarshal(b []byte) error
type UnbondingDelegations ¶
type UnbondingDelegations []UnbondingDelegation
UnbondingDelegations is a collection of UnbondingDelegation
func (UnbondingDelegations) String ¶
func (ubds UnbondingDelegations) String() (out string)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Delegation ¶
func (*UnimplementedQueryServer) Delegation(ctx context.Context, req *QueryDelegationRequest) (*QueryDelegationResponse, error)
func (*UnimplementedQueryServer) DelegatorDelegations ¶
func (*UnimplementedQueryServer) DelegatorDelegations(ctx context.Context, req *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
func (*UnimplementedQueryServer) DelegatorUnbondingDelegations ¶
func (*UnimplementedQueryServer) DelegatorUnbondingDelegations(ctx context.Context, req *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
func (*UnimplementedQueryServer) DelegatorValidator ¶
func (*UnimplementedQueryServer) DelegatorValidator(ctx context.Context, req *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error)
func (*UnimplementedQueryServer) DelegatorValidators ¶
func (*UnimplementedQueryServer) DelegatorValidators(ctx context.Context, req *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
func (*UnimplementedQueryServer) HistoricalInfo ¶
func (*UnimplementedQueryServer) HistoricalInfo(ctx context.Context, req *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Pool ¶
func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error)
func (*UnimplementedQueryServer) Redelegations ¶
func (*UnimplementedQueryServer) Redelegations(ctx context.Context, req *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
func (*UnimplementedQueryServer) UnbondingDelegation ¶
func (*UnimplementedQueryServer) UnbondingDelegation(ctx context.Context, req *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
func (*UnimplementedQueryServer) Validator ¶
func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryValidatorRequest) (*QueryValidatorResponse, error)
func (*UnimplementedQueryServer) ValidatorDelegations ¶
func (*UnimplementedQueryServer) ValidatorDelegations(ctx context.Context, req *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
func (*UnimplementedQueryServer) ValidatorUnbondingDelegations ¶
func (*UnimplementedQueryServer) ValidatorUnbondingDelegations(ctx context.Context, req *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
func (*UnimplementedQueryServer) Validators ¶
func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
type Validator ¶
type Validator struct { OperatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 185-byte string literal not displayed */ ConsensusPubkey string `` /* 130-byte string literal not displayed */ Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"` Status github_com_cosmos_cosmos_sdk_types.BondStatus `protobuf:"varint,4,opt,name=status,proto3,casttype=github.com/cosmos/cosmos-sdk/types.BondStatus" json:"status,omitempty"` Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens"` Description Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description"` UnbondingHeight int64 `` /* 131-byte string literal not displayed */ UnbondingTime time.Time `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3,stdtime" json:"unbonding_time" yaml:"unbonding_time"` Commission Commission `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission"` MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 182-byte string literal not displayed */ }
Validator defines the total amount of bond shares and their exchange rate to coins. Slashing results in a decrease in the exchange rate, allowing correct calculation of future undelegations without iterating over delegators. When coins are delegated to this validator, the validator is credited with a delegation whose number of bond shares is based on the amount of coins delegated divided by the current exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate.
func MustUnmarshalValidator ¶
unmarshal a redelegation from a store value
func NewValidator ¶
func NewValidator(operator sdk.ValAddress, pubKey crypto.PubKey, description Description) Validator
func UnmarshalValidator ¶
unmarshal a redelegation from a store value
func (Validator) ABCIValidatorUpdate ¶
func (v Validator) ABCIValidatorUpdate() abci.ValidatorUpdate
ABCIValidatorUpdate returns an abci.ValidatorUpdate from a staking validator type with the full validator power
func (Validator) ABCIValidatorUpdateZero ¶
func (v Validator) ABCIValidatorUpdateZero() abci.ValidatorUpdate
ABCIValidatorUpdateZero returns an abci.ValidatorUpdate from a staking validator type with zero power used for validator updates.
func (Validator) AddTokensFromDel ¶
AddTokensFromDel adds tokens to a validator
func (Validator) BondedTokens ¶
get the bonded tokens which the validator holds
func (Validator) ConsensusPower ¶
get the consensus-engine power a reduction of 10^6 from validator tokens is applied
func (*Validator) Descriptor ¶
func (Validator) GetBondedTokens ¶
func (Validator) GetCommission ¶
func (Validator) GetConsAddr ¶
func (v Validator) GetConsAddr() sdk.ConsAddress
func (Validator) GetConsPubKey ¶
func (Validator) GetConsensusPower ¶
func (Validator) GetDelegatorShares ¶
func (Validator) GetMinSelfDelegation ¶
func (Validator) GetMoniker ¶
func (Validator) GetOperator ¶
func (v Validator) GetOperator() sdk.ValAddress
func (Validator) GetStatus ¶
func (v Validator) GetStatus() sdk.BondStatus
func (Validator) InvalidExRate ¶
In some situations, the exchange rate becomes invalid, e.g. if Validator loses all tokens due to slashing. In this case, make all future delegations invalid.
func (Validator) IsUnbonded ¶
IsUnbonded checks if the validator status equals Unbonded
func (Validator) IsUnbonding ¶
IsUnbonding checks if the validator status equals Unbonding
func (*Validator) MarshalToSizedBuffer ¶
func (Validator) MinEqual ¶
MinEqual defines a more minimum set of equality conditions when comparing two validators.
func (Validator) PotentialConsensusPower ¶
potential consensus-engine power
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (Validator) RemoveDelShares ¶
RemoveDelShares removes delegator shares from a validator. NOTE: because token fractions are left in the valiadator,
the exchange rate of future shares of this validator can increase.
func (Validator) RemoveTokens ¶
RemoveTokens removes tokens from a validator
func (Validator) SetInitialCommission ¶
func (v Validator) SetInitialCommission(commission Commission) (Validator, error)
SetInitialCommission attempts to set a validator's initial commission. An error is returned if the commission is invalid.
func (Validator) SharesFromTokens ¶
SharesFromTokens returns the shares of a delegation given a bond amount. It returns an error if the validator has no tokens.
func (Validator) SharesFromTokensTruncated ¶
SharesFromTokensTruncated returns the truncated shares of a delegation given a bond amount. It returns an error if the validator has no tokens.
func (Validator) ToTmValidator ¶
ToTmValidator casts an SDK validator to a tendermint type Validator.
func (Validator) TokensFromShares ¶
calculate the token worth of provided shares
func (Validator) TokensFromSharesRoundUp ¶
TokensFromSharesRoundUp returns the token worth of provided shares, rounded up.
func (Validator) TokensFromSharesTruncated ¶
calculate the token worth of provided shares, truncated
func (Validator) UpdateStatus ¶
func (v Validator) UpdateStatus(newStatus sdk.BondStatus) Validator
UpdateStatus updates the location of the shares within a validator to reflect the new status
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type ValidatorSet ¶
type ValidatorSet interface { // iterate through validators by operator address, execute func for each validator IterateValidators(sdk.Context, func(index int64, validator stakingexported.ValidatorI) (stop bool)) // iterate through bonded validators by operator address, execute func for each validator IterateBondedValidatorsByPower(sdk.Context, func(index int64, validator stakingexported.ValidatorI) (stop bool)) // iterate through the consensus validator set of the last block by operator address, execute func for each validator IterateLastValidators(sdk.Context, func(index int64, validator stakingexported.ValidatorI) (stop bool)) Validator(sdk.Context, sdk.ValAddress) stakingexported.ValidatorI // get a particular validator by operator address ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingexported.ValidatorI // get a particular validator by consensus address TotalBondedTokens(sdk.Context) sdk.Int // total bonded tokens within the validator set StakingTokenSupply(sdk.Context) sdk.Int // total staking token supply // slash the validator and delegators of the validator, specifying offence height, offence power, and slash fraction Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) Jail(sdk.Context, sdk.ConsAddress) // jail a validator Unjail(sdk.Context, sdk.ConsAddress) // unjail a validator // Delegation allows for getting a particular delegation for a given validator // and delegator outside the scope of the staking module. Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingexported.DelegationI // MaxValidators returns the maximum amount of bonded validators MaxValidators(sdk.Context) uint32 }
ValidatorSet expected properties for the set of all validators (noalias)
type Validators ¶
type Validators []Validator
Validators is a collection of Validator
func (Validators) Sort ¶
func (v Validators) Sort()
Sort Validators sorts validator array in ascending operator address order
func (Validators) String ¶
func (v Validators) String() (out string)
func (Validators) ToSDKValidators ¶
func (v Validators) ToSDKValidators() (validators []exported.ValidatorI)
ToSDKValidators - convenience function convert []Validators to []sdk.Validators
func (Validators) ToTmValidators ¶
func (v Validators) ToTmValidators() []*tmtypes.Validator
ToTmValidators casts all validators to the corresponding tendermint type.