Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AddressFromLastValidatorPowerKey(key []byte) []byte
- func AddressFromValidatorsKey(key []byte) []byte
- func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetDelegationsByValKey(valAddr sdk.ValAddress, delAddr sdk.AccAddress) []byte
- func GetDelegationsByValPrefixKey(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 GetUnbondingIndexKey(id uint64) []byte
- func GetUnbondingTypeKey(id uint64) []byte
- func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
- func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
- func GetValidatorQueueKey(timestamp time.Time, height int64) []byte
- func GetValidatorsByPowerIndexKey(validator Validator, powerReduction math.Int, valAc addresscodec.Codec) []byte
- func MustMarshalDelegation(cdc codec.BinaryCodec, delegation Delegation) []byte
- func MustMarshalRED(cdc codec.BinaryCodec, red Redelegation) []byte
- func MustMarshalUBD(cdc codec.BinaryCodec, ubd UnbondingDelegation) []byte
- func MustMarshalUBDE(cdc codec.BinaryCodec, ubd UnbondingDelegationEntry) []byte
- func MustMarshalValidator(cdc codec.BinaryCodec, validator *Validator) []byte
- func ParamKeyTable() paramtypes.KeyTabledeprecated
- func ParseDelegationsByValKey(bz []byte) (sdk.ValAddress, sdk.AccAddress, error)
- func ParseValidatorPowerRankKey(key []byte) (operAddr []byte)
- func ParseValidatorQueueKey(bz []byte) (time.Time, int64, error)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func StakingDescription() (desc *github_com_cosmos_gogoproto_protoc_gen_gogo_descriptor.FileDescriptorSet)
- func ValidateBasic(hi HistoricalInfo, valAc address.Codec) error
- func ValidatePowerReduction(i interface{}) error
- type AccountKeeper
- type AuthorizationType
- type BankKeeper
- type BondStatus
- 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 (m *Commission) String() string
- func (m *Commission) Unmarshal(dAtA []byte) error
- func (c Commission) ValidateNewRate(newRate math.LegacyDec, 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 (m *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 (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 (m *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 (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 (m *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 (d Delegation) GetDelegatorAddr() string
- func (d Delegation) GetShares() math.LegacyDec
- func (d Delegation) GetValidatorAddr() string
- 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 (m *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 DelegationI
- type DelegationResponse
- func (*DelegationResponse) Descriptor() ([]byte, []int)
- func (m *DelegationResponse) GetBalance() types2.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 (m *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 (m *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 GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDelegations() []Delegation
- func (m *GenesisState) GetExported() bool
- func (m *GenesisState) GetLastValidatorPowers() []LastValidatorPower
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRedelegations() []Redelegation
- func (m *GenesisState) GetUnbondingDelegations() []UnbondingDelegation
- func (m *GenesisState) GetValidators() []Validator
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (g GenesisState) UnpackInterfaces(c codectypes.AnyUnpacker) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type HistoricalInfo
- func (*HistoricalInfo) Descriptor() ([]byte, []int)
- func (hi *HistoricalInfo) Equal(hi2 *HistoricalInfo) bool
- func (m *HistoricalInfo) GetHeader() types.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 (hi HistoricalInfo) UnpackInterfaces(c codectypes.AnyUnpacker) 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 Infraction
- type LastValidatorPower
- func (*LastValidatorPower) Descriptor() ([]byte, []int)
- func (m *LastValidatorPower) Marshal() (dAtA []byte, err error)
- func (m *LastValidatorPower) MarshalTo(dAtA []byte) (int, error)
- func (m *LastValidatorPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LastValidatorPower) ProtoMessage()
- func (m *LastValidatorPower) Reset()
- func (m *LastValidatorPower) Size() (n int)
- func (m *LastValidatorPower) String() string
- func (m *LastValidatorPower) Unmarshal(dAtA []byte) error
- func (m *LastValidatorPower) XXX_DiscardUnknown()
- func (m *LastValidatorPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LastValidatorPower) XXX_Merge(src proto.Message)
- func (m *LastValidatorPower) XXX_Size() int
- func (m *LastValidatorPower) XXX_Unmarshal(b []byte) error
- type MsgBeginRedelegate
- func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
- 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 (m *MsgBeginRedelegate) Size() (n int)
- func (m *MsgBeginRedelegate) String() string
- func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) 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 MsgBeginRedelegateResponse
- func (*MsgBeginRedelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgBeginRedelegateResponse) GetCompletionTime() time.Time
- func (m *MsgBeginRedelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBeginRedelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBeginRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBeginRedelegateResponse) ProtoMessage()
- func (m *MsgBeginRedelegateResponse) Reset()
- func (m *MsgBeginRedelegateResponse) Size() (n int)
- func (m *MsgBeginRedelegateResponse) String() string
- func (m *MsgBeginRedelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBeginRedelegateResponse) XXX_DiscardUnknown()
- func (m *MsgBeginRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBeginRedelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgBeginRedelegateResponse) XXX_Size() int
- func (m *MsgBeginRedelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelUnbondingDelegation
- func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int)
- func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelUnbondingDelegation) ProtoMessage()
- func (m *MsgCancelUnbondingDelegation) Reset()
- func (m *MsgCancelUnbondingDelegation) Size() (n int)
- func (m *MsgCancelUnbondingDelegation) String() string
- func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error
- func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown()
- func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message)
- func (m *MsgCancelUnbondingDelegation) XXX_Size() int
- func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error
- type MsgCancelUnbondingDelegationResponse
- func (*MsgCancelUnbondingDelegationResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelUnbondingDelegationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelUnbondingDelegationResponse) ProtoMessage()
- func (m *MsgCancelUnbondingDelegationResponse) Reset()
- func (m *MsgCancelUnbondingDelegationResponse) Size() (n int)
- func (m *MsgCancelUnbondingDelegationResponse) String() string
- func (m *MsgCancelUnbondingDelegationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelUnbondingDelegationResponse) XXX_DiscardUnknown()
- func (m *MsgCancelUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelUnbondingDelegationResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelUnbondingDelegationResponse) XXX_Size() int
- func (m *MsgCancelUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateValidator
- func (*MsgCreateValidator) Descriptor() ([]byte, []int)
- 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 (m *MsgCreateValidator) Size() (n int)
- func (m *MsgCreateValidator) String() string
- func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error
- func (msg MsgCreateValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg MsgCreateValidator) Validate(ac address.Codec) 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 MsgCreateValidatorResponse
- func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateValidatorResponse) ProtoMessage()
- func (m *MsgCreateValidatorResponse) Reset()
- func (m *MsgCreateValidatorResponse) Size() (n int)
- func (m *MsgCreateValidatorResponse) String() string
- func (m *MsgCreateValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()
- func (m *MsgCreateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateValidatorResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateValidatorResponse) XXX_Size() int
- func (m *MsgCreateValidatorResponse) XXX_Unmarshal(b []byte) error
- type MsgDelegate
- func (*MsgDelegate) Descriptor() ([]byte, []int)
- 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 (m *MsgDelegate) Size() (n int)
- func (m *MsgDelegate) String() string
- func (m *MsgDelegate) Unmarshal(dAtA []byte) 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 MsgDelegateResponse
- func (*MsgDelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelegateResponse) ProtoMessage()
- func (m *MsgDelegateResponse) Reset()
- func (m *MsgDelegateResponse) Size() (n int)
- func (m *MsgDelegateResponse) String() string
- func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDelegateResponse) XXX_DiscardUnknown()
- func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgDelegateResponse) XXX_Size() int
- func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgEditValidator
- func (*MsgEditValidator) Descriptor() ([]byte, []int)
- 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 (m *MsgEditValidator) Size() (n int)
- func (m *MsgEditValidator) String() string
- func (m *MsgEditValidator) Unmarshal(dAtA []byte) 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 MsgEditValidatorResponse
- func (*MsgEditValidatorResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditValidatorResponse) ProtoMessage()
- func (m *MsgEditValidatorResponse) Reset()
- func (m *MsgEditValidatorResponse) Size() (n int)
- func (m *MsgEditValidatorResponse) String() string
- func (m *MsgEditValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditValidatorResponse) XXX_DiscardUnknown()
- func (m *MsgEditValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditValidatorResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditValidatorResponse) XXX_Size() int
- func (m *MsgEditValidatorResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUndelegate
- func (*MsgUndelegate) Descriptor() ([]byte, []int)
- 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 (m *MsgUndelegate) Size() (n int)
- func (m *MsgUndelegate) String() string
- func (m *MsgUndelegate) Unmarshal(dAtA []byte) 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 MsgUndelegateResponse
- func (*MsgUndelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgUndelegateResponse) GetAmount() types1.Coin
- func (m *MsgUndelegateResponse) GetCompletionTime() time.Time
- func (m *MsgUndelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUndelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUndelegateResponse) ProtoMessage()
- func (m *MsgUndelegateResponse) Reset()
- func (m *MsgUndelegateResponse) Size() (n int)
- func (m *MsgUndelegateResponse) String() string
- func (m *MsgUndelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUndelegateResponse) XXX_DiscardUnknown()
- func (m *MsgUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUndelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgUndelegateResponse) XXX_Size() int
- func (m *MsgUndelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MultiStakingHooks
- func (h MultiStakingHooks) AfterDelegationModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) AfterUnbondingInitiated(ctx context.Context, id uint64) error
- func (h MultiStakingHooks) AfterValidatorBeginUnbonding(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) AfterValidatorBonded(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) AfterValidatorCreated(ctx context.Context, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) AfterValidatorRemoved(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) BeforeDelegationCreated(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) BeforeDelegationRemoved(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) BeforeDelegationSharesModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) BeforeValidatorModified(ctx context.Context, valAddr sdk.ValAddress) error
- func (h MultiStakingHooks) BeforeValidatorSlashed(ctx context.Context, valAddr sdk.ValAddress, fraction sdkmath.LegacyDec) error
- 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.ParamSetPairsdeprecated
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *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_cosmos_gogoproto_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) 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) 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) 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) 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) 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) 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) 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) 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() string
- 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() string
- 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() string
- 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 math.Int, ...)
- func (*Redelegation) Descriptor() ([]byte, []int)
- 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 (m *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 (m *RedelegationEntry) GetUnbondingId() uint64
- func (m *RedelegationEntry) GetUnbondingOnHoldRefCount() 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 (e RedelegationEntry) OnHold() bool
- func (*RedelegationEntry) ProtoMessage()
- func (m *RedelegationEntry) Reset()
- func (m *RedelegationEntry) Size() (n int)
- func (m *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 (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 StakeAuthorization
- func (a StakeAuthorization) Accept(ctx context.Context, msg sdk.Msg) (authz.AcceptResponse, error)
- func (*StakeAuthorization) Descriptor() ([]byte, []int)
- func (m *StakeAuthorization) GetAllowList() *StakeAuthorization_Validators
- func (m *StakeAuthorization) GetAuthorizationType() AuthorizationType
- func (m *StakeAuthorization) GetDenyList() *StakeAuthorization_Validators
- func (m *StakeAuthorization) GetMaxTokens() *types.Coin
- func (m *StakeAuthorization) GetValidators() isStakeAuthorization_Validators
- func (m *StakeAuthorization) Marshal() (dAtA []byte, err error)
- func (m *StakeAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *StakeAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (a StakeAuthorization) MsgTypeURL() string
- func (*StakeAuthorization) ProtoMessage()
- func (m *StakeAuthorization) Reset()
- func (m *StakeAuthorization) Size() (n int)
- func (m *StakeAuthorization) String() string
- func (m *StakeAuthorization) Unmarshal(dAtA []byte) error
- func (a StakeAuthorization) ValidateBasic() error
- func (m *StakeAuthorization) XXX_DiscardUnknown()
- func (m *StakeAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StakeAuthorization) XXX_Merge(src proto.Message)
- func (*StakeAuthorization) XXX_OneofWrappers() []interface{}
- func (m *StakeAuthorization) XXX_Size() int
- func (m *StakeAuthorization) XXX_Unmarshal(b []byte) error
- type StakeAuthorization_AllowList
- type StakeAuthorization_DenyList
- type StakeAuthorization_Validators
- func (*StakeAuthorization_Validators) Descriptor() ([]byte, []int)
- func (m *StakeAuthorization_Validators) GetAddress() []string
- func (m *StakeAuthorization_Validators) Marshal() (dAtA []byte, err error)
- func (m *StakeAuthorization_Validators) MarshalTo(dAtA []byte) (int, error)
- func (m *StakeAuthorization_Validators) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StakeAuthorization_Validators) ProtoMessage()
- func (m *StakeAuthorization_Validators) Reset()
- func (m *StakeAuthorization_Validators) Size() (n int)
- func (m *StakeAuthorization_Validators) String() string
- func (m *StakeAuthorization_Validators) Unmarshal(dAtA []byte) error
- func (m *StakeAuthorization_Validators) XXX_DiscardUnknown()
- func (m *StakeAuthorization_Validators) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StakeAuthorization_Validators) XXX_Merge(src proto.Message)
- func (m *StakeAuthorization_Validators) XXX_Size() int
- func (m *StakeAuthorization_Validators) XXX_Unmarshal(b []byte) error
- type StakingHooks
- type StakingHooksWrapper
- type UnbondingDelegation
- func (ubd *UnbondingDelegation) AddEntry(creationHeight int64, minTime time.Time, balance math.Int, unbondingID uint64) bool
- func (*UnbondingDelegation) Descriptor() ([]byte, []int)
- 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 (m *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 MustUnmarshalUBDE(cdc codec.BinaryCodec, value []byte) UnbondingDelegationEntry
- func NewUnbondingDelegationEntry(creationHeight int64, completionTime time.Time, balance math.Int, ...) UnbondingDelegationEntry
- func UnmarshalUBDE(cdc codec.BinaryCodec, value []byte) (ubd UnbondingDelegationEntry, err error)
- func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int)
- func (this *UnbondingDelegationEntry) Equal(that interface{}) bool
- func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time
- func (m *UnbondingDelegationEntry) GetCreationHeight() int64
- func (m *UnbondingDelegationEntry) GetUnbondingId() uint64
- func (m *UnbondingDelegationEntry) GetUnbondingOnHoldRefCount() 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 (e UnbondingDelegationEntry) OnHold() bool
- func (*UnbondingDelegationEntry) ProtoMessage()
- func (m *UnbondingDelegationEntry) Reset()
- func (m *UnbondingDelegationEntry) Size() (n int)
- func (m *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 UnbondingType
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BeginRedelegate(ctx context.Context, req *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error)
- func (*UnimplementedMsgServer) CancelUnbondingDelegation(ctx context.Context, req *MsgCancelUnbondingDelegation) (*MsgCancelUnbondingDelegationResponse, error)
- func (*UnimplementedMsgServer) CreateValidator(ctx context.Context, req *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
- func (*UnimplementedMsgServer) Delegate(ctx context.Context, req *MsgDelegate) (*MsgDelegateResponse, error)
- func (*UnimplementedMsgServer) EditValidator(ctx context.Context, req *MsgEditValidator) (*MsgEditValidatorResponse, error)
- func (*UnimplementedMsgServer) Undelegate(ctx context.Context, req *MsgUndelegate) (*MsgUndelegateResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- 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 ValAddresses
- func (*ValAddresses) Descriptor() ([]byte, []int)
- func (m *ValAddresses) GetAddresses() []string
- func (m *ValAddresses) Marshal() (dAtA []byte, err error)
- func (m *ValAddresses) MarshalTo(dAtA []byte) (int, error)
- func (m *ValAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValAddresses) ProtoMessage()
- func (m *ValAddresses) Reset()
- func (m *ValAddresses) Size() (n int)
- func (m *ValAddresses) String() string
- func (m *ValAddresses) Unmarshal(dAtA []byte) error
- func (m *ValAddresses) XXX_DiscardUnknown()
- func (m *ValAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValAddresses) XXX_Merge(src proto.Message)
- func (m *ValAddresses) XXX_Size() int
- func (m *ValAddresses) XXX_Unmarshal(b []byte) error
- type Validator
- func (v Validator) ABCIValidatorUpdate(r math.Int) abci.ValidatorUpdate
- func (v Validator) ABCIValidatorUpdateZero() abci.ValidatorUpdate
- func (v Validator) AddTokensFromDel(amount math.Int) (Validator, math.LegacyDec)
- func (v Validator) BondedTokens() math.Int
- func (v Validator) CmtConsPublicKey() (cmtprotocrypto.PublicKey, error)
- func (v Validator) ConsPubKey() (cryptotypes.PubKey, error)
- func (v Validator) ConsensusPower(r math.Int) int64
- func (*Validator) Descriptor() ([]byte, []int)
- func (v *Validator) Equal(v2 *Validator) bool
- func (v Validator) GetBondedTokens() math.Int
- func (v Validator) GetCommission() math.LegacyDec
- func (v Validator) GetConsAddr() ([]byte, error)
- func (v Validator) GetConsensusPower(r math.Int) int64
- func (v Validator) GetDelegatorShares() math.LegacyDec
- func (v Validator) GetMinSelfDelegation() math.Int
- func (v Validator) GetMoniker() string
- func (v Validator) GetOperator() string
- func (v Validator) GetStatus() BondStatus
- func (v Validator) GetTokens() math.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(r math.Int) int64
- func (*Validator) ProtoMessage()
- func (v Validator) RemoveDelShares(delShares math.LegacyDec) (Validator, math.Int)
- func (v Validator) RemoveTokens(tokens math.Int) Validator
- func (m *Validator) Reset()
- func (v Validator) SetInitialCommission(commission Commission) (Validator, error)
- func (v Validator) SharesFromTokens(amt math.Int) (math.LegacyDec, error)
- func (v Validator) SharesFromTokensTruncated(amt math.Int) (math.LegacyDec, error)
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (v Validator) TmConsPublicKey() (cmtprotocrypto.PublicKey, error)deprecated
- func (v Validator) TokensFromShares(shares math.LegacyDec) math.LegacyDec
- func (v Validator) TokensFromSharesRoundUp(shares math.LegacyDec) math.LegacyDec
- func (v Validator) TokensFromSharesTruncated(shares math.LegacyDec) math.LegacyDec
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (v Validator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (v Validator) UpdateStatus(newStatus 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 ValidatorI
- type ValidatorSet
- type ValidatorUpdates
- func (*ValidatorUpdates) Descriptor() ([]byte, []int)
- func (m *ValidatorUpdates) GetUpdates() []types3.ValidatorUpdate
- func (m *ValidatorUpdates) Marshal() (dAtA []byte, err error)
- func (m *ValidatorUpdates) MarshalTo(dAtA []byte) (int, error)
- func (m *ValidatorUpdates) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValidatorUpdates) ProtoMessage()
- func (m *ValidatorUpdates) Reset()
- func (m *ValidatorUpdates) Size() (n int)
- func (m *ValidatorUpdates) String() string
- func (m *ValidatorUpdates) Unmarshal(dAtA []byte) error
- func (m *ValidatorUpdates) XXX_DiscardUnknown()
- func (m *ValidatorUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorUpdates) XXX_Merge(src proto.Message)
- func (m *ValidatorUpdates) XXX_Size() int
- func (m *ValidatorUpdates) XXX_Unmarshal(b []byte) error
- 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 []ValidatorI)
- func (v Validators) UnpackInterfaces(c codectypes.AnyUnpacker) error
- type ValidatorsByVotingPower
Constants ¶
const ( EventTypeCompleteUnbonding = "complete_unbonding" EventTypeCompleteRedelegation = "complete_redelegation" EventTypeCreateValidator = "create_validator" EventTypeEditValidator = "edit_validator" EventTypeDelegate = "delegate" EventTypeUnbond = "unbond" EventTypeCancelUnbondingDelegation = "cancel_unbonding_delegation" EventTypeRedelegate = "redelegate" AttributeKeyValidator = "validator" AttributeKeyCommissionRate = "commission_rate" AttributeKeyMinSelfDelegation = "min_self_delegation" AttributeKeySrcValidator = "source_validator" AttributeKeyDstValidator = "destination_validator" AttributeKeyDelegator = "delegator" AttributeKeyCreationHeight = "creation_height" AttributeKeyCompletionTime = "completion_time" )
staking module event types
const ( // ModuleName is the name of the staking module ModuleName = "staking" // StoreKey is the string store representation StoreKey = ModuleName // RouterKey is the msg router key for the staking module RouterKey = ModuleName )
const ( // DefaultUnbondingTime reflects three weeks in seconds as the default // unbonding time. // TODO: Justify our choice of default here. DefaultUnbondingTime time.Duration = time.Hour * 24 * 7 * 3 // Default maximum number of bonded validators DefaultMaxValidators uint32 = 100 // Default maximum entries in a UBD/RED pair DefaultMaxEntries uint32 = 7 // DefaultHistorical entries is 10000. Apps that don't use IBC can ignore this // value by not adding the staking module to the application module manager's // SetOrderBeginBlockers. DefaultHistoricalEntries uint32 = 10000 )
Staking params default values
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 ( ErrInvalidLengthAuthz = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuthz = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group") )
var ( ErrEmptyValidatorAddr = errors.Register(ModuleName, 2, "empty validator address") ErrNoValidatorFound = errors.Register(ModuleName, 3, "validator does not exist") ErrValidatorOwnerExists = errors.Register(ModuleName, 4, "validator already exist for this operator address; must use new validator operator address") ErrValidatorPubKeyExists = errors.Register(ModuleName, 5, "validator already exist for this pubkey; must use new validator pubkey") ErrValidatorPubKeyTypeNotSupported = errors.Register(ModuleName, 6, "validator pubkey type is not supported") ErrValidatorJailed = errors.Register(ModuleName, 7, "validator for this address is currently jailed") ErrBadRemoveValidator = errors.Register(ModuleName, 8, "failed to remove validator") ErrCommissionNegative = errors.Register(ModuleName, 9, "commission must be positive") ErrCommissionHuge = errors.Register(ModuleName, 10, "commission cannot be more than 100%") ErrCommissionGTMaxRate = errors.Register(ModuleName, 11, "commission cannot be more than the max rate") ErrCommissionUpdateTime = errors.Register(ModuleName, 12, "commission cannot be changed more than once in 24h") ErrCommissionChangeRateNegative = errors.Register(ModuleName, 13, "commission change rate must be positive") ErrCommissionChangeRateGTMaxRate = errors.Register(ModuleName, 14, "commission change rate cannot be more than the max rate") ErrCommissionGTMaxChangeRate = errors.Register(ModuleName, 15, "commission cannot be changed more than max change rate") ErrSelfDelegationBelowMinimum = errors.Register(ModuleName, 16, "validator's self delegation must be greater than their minimum self delegation") ErrMinSelfDelegationDecreased = errors.Register(ModuleName, 17, "minimum self delegation cannot be decrease") ErrEmptyDelegatorAddr = errors.Register(ModuleName, 18, "empty delegator address") ErrNoDelegation = errors.Register(ModuleName, 19, "no delegation for (address, validator) tuple") ErrBadDelegatorAddr = errors.Register(ModuleName, 20, "delegator does not exist with address") ErrNoDelegatorForAddress = errors.Register(ModuleName, 21, "delegator does not contain delegation") ErrDelegationValidatorEmpty = errors.Register(ModuleName, 23, "cannot delegate to an empty validator") ErrNotMature = errors.Register(ModuleName, 25, "entry not mature") ErrNoUnbondingDelegation = errors.Register(ModuleName, 26, "no unbonding delegation found") ErrMaxUnbondingDelegationEntries = errors.Register(ModuleName, 27, "too many unbonding delegation entries for (delegator, validator) tuple") ErrNoRedelegation = errors.Register(ModuleName, 28, "no redelegation found") ErrSelfRedelegation = errors.Register(ModuleName, 29, "cannot redelegate to the same validator") ErrTinyRedelegationAmount = errors.Register(ModuleName, 30, "too few tokens to redelegate (truncates to zero tokens)") ErrBadRedelegationDst = errors.Register(ModuleName, 31, "redelegation destination validator not found") ErrTransitiveRedelegation = errors.Register(ModuleName, 32, "redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation") ErrMaxRedelegationEntries = errors.Register(ModuleName, 33, "too many redelegation entries for (delegator, src-validator, dst-validator) tuple") ErrInvalidHistoricalInfo = errors.Register(ModuleName, 37, "invalid historical info") ErrNoHistoricalInfo = errors.Register(ModuleName, 38, "no historical info found") ErrEmptyValidatorPubKey = errors.Register(ModuleName, 39, "empty validator public key") ErrCommissionLTMinRate = errors.Register(ModuleName, 40, "commission cannot be less than min rate") ErrUnbondingNotFound = errors.Register(ModuleName, 41, "unbonding operation not found") ErrUnbondingOnHoldRefCountNegative = errors.Register(ModuleName, 42, "cannot un-hold unbonding operation that is not on hold") ErrInvalidSigner = errors.Register(ModuleName, 43, "expected authority account as only signer for proposal message") ErrBadRedelegationSrc = errors.Register(ModuleName, 44, "redelegation source validator not found") ErrNoUnbondingType = errors.Register(ModuleName, 45, "unbonding type not found") )
x/staking module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // Keys for store prefixes // Last* values are constant during a block. LastValidatorPowerKey = []byte{0x11} // prefix for each key to a validator index, for bonded validators LastTotalPowerKey = []byte{0x12} // prefix for the total power ValidatorsKey = []byte{0x21} // prefix for each key to a validator ValidatorsByConsAddrKey = []byte{0x22} // prefix for each key to a validator index, by pubkey ValidatorsByPowerIndexKey = []byte{0x23} // prefix for each key to a validator index, sorted by power DelegationKey = []byte{0x31} // key for a delegation UnbondingDelegationKey = []byte{0x32} // key for an unbonding-delegation UnbondingDelegationByValIndexKey = []byte{0x33} // prefix for each key for an unbonding-delegation, by validator operator RedelegationKey = []byte{0x34} // key for a redelegation RedelegationByValSrcIndexKey = []byte{0x35} // prefix for each key for an redelegation, by source validator operator RedelegationByValDstIndexKey = []byte{0x36} // prefix for each key for an redelegation, by destination validator operator UnbondingIDKey = []byte{0x37} // key for the counter for the incrementing id for UnbondingOperations UnbondingIndexKey = []byte{0x38} // prefix for an index for looking up unbonding operations by their IDs UnbondingTypeKey = []byte{0x39} // prefix for an index containing the type of unbonding operations UnbondingQueueKey = []byte{0x41} // prefix for the timestamps in unbonding queue RedelegationQueueKey = []byte{0x42} // prefix for the timestamps in redelegations queue ValidatorQueueKey = []byte{0x43} // prefix for the timestamps in validator queue HistoricalInfoKey = []byte{0x50} // prefix for the historical info ValidatorUpdatesKey = []byte{0x61} // prefix for the end block validator updates key ParamsKey = []byte{0x51} // prefix for parameters for module x/staking DelegationByValIndexKey = []byte{0x71} // key for delegations by a validator )
var ( KeyUnbondingTime = []byte("UnbondingTime") KeyMaxValidators = []byte("MaxValidators") KeyMaxEntries = []byte("MaxEntries") KeyBondDenom = []byte("BondDenom") KeyHistoricalEntries = []byte("HistoricalEntries") KeyMinCommissionRate = []byte("MinCommissionRate") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthStaking = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStaking = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStaking = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( BondStatusUnspecified = BondStatus_name[int32(Unspecified)] BondStatusUnbonded = BondStatus_name[int32(Unbonded)] BondStatusUnbonding = BondStatus_name[int32(Unbonding)] BondStatusBonded = BondStatus_name[int32(Bonded)] )
var AuthorizationType_name = map[int32]string{
0: "AUTHORIZATION_TYPE_UNSPECIFIED",
1: "AUTHORIZATION_TYPE_DELEGATE",
2: "AUTHORIZATION_TYPE_UNDELEGATE",
3: "AUTHORIZATION_TYPE_REDELEGATE",
4: "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION",
}
var AuthorizationType_value = map[string]int32{
"AUTHORIZATION_TYPE_UNSPECIFIED": 0,
"AUTHORIZATION_TYPE_DELEGATE": 1,
"AUTHORIZATION_TYPE_UNDELEGATE": 2,
"AUTHORIZATION_TYPE_REDELEGATE": 3,
"AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION": 4,
}
var BondStatus_name = map[int32]string{
0: "BOND_STATUS_UNSPECIFIED",
1: "BOND_STATUS_UNBONDED",
2: "BOND_STATUS_UNBONDING",
3: "BOND_STATUS_BONDED",
}
var BondStatus_value = map[string]int32{
"BOND_STATUS_UNSPECIFIED": 0,
"BOND_STATUS_UNBONDED": 1,
"BOND_STATUS_UNBONDING": 2,
"BOND_STATUS_BONDED": 3,
}
var DefaultMinCommissionRate = math.LegacyZeroDec()
DefaultMinCommissionRate is set to 0%
var Infraction_name = map[int32]string{
0: "INFRACTION_UNSPECIFIED",
1: "INFRACTION_DOUBLE_SIGN",
2: "INFRACTION_DOWNTIME",
}
var Infraction_value = map[string]int32{
"INFRACTION_UNSPECIFIED": 0,
"INFRACTION_DOUBLE_SIGN": 1,
"INFRACTION_DOWNTIME": 2,
}
Functions ¶
func AddressFromLastValidatorPowerKey ¶
AddressFromLastValidatorPowerKey creates the validator operator address from LastValidatorPowerKey
func AddressFromValidatorsKey ¶ added in v0.43.0
AddressFromValidatorsKey creates the validator operator address from ValidatorsKey
func GetDelegationKey ¶
func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
GetDelegationKey creates the key for delegator bond with validator VALUE: staking/Delegation
func GetDelegationsByValKey ¶ added in v0.50.1
func GetDelegationsByValKey(valAddr sdk.ValAddress, delAddr sdk.AccAddress) []byte
GetDelegationsByValKey creates the key for delegations by validator address VALUE: staking/Delegation
func GetDelegationsByValPrefixKey ¶ added in v0.50.1
func GetDelegationsByValPrefixKey(valAddr sdk.ValAddress) []byte
GetDelegationsByValPrefixKey builds a prefix key bytes with the given validator address bytes.
func GetDelegationsKey ¶
func GetDelegationsKey(delAddr sdk.AccAddress) []byte
GetDelegationsKey creates the prefix for a delegator for all validators
func GetHistoricalInfoKey ¶
GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.
func GetLastValidatorPowerKey ¶
func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte
GetLastValidatorPowerKey creates the bonded validator index key for an operator address
func GetREDByValDstIndexKey ¶
func GetREDByValDstIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
GetREDByValDstIndexKey creates the index-key for a redelegation, stored by destination-validator-index VALUE: none (key rearrangement used)
func GetREDByValSrcIndexKey ¶
func GetREDByValSrcIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
GetREDByValSrcIndexKey creates the index-key for a redelegation, stored by source-validator-index VALUE: none (key rearrangement used)
func GetREDKey ¶
func GetREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
GetREDKey returns a key prefix for indexing a redelegation from a delegator and source validator to a destination validator.
func GetREDKeyFromValDstIndexKey ¶
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
GetREDsByDelToValDstIndexKey returns a key prefix for indexing a redelegation from an address to a source validator.
func GetREDsFromValSrcIndexKey ¶
func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte
GetREDsFromValSrcIndexKey returns a key prefix for indexing a redelegation to a source validator.
func GetREDsKey ¶
func GetREDsKey(delAddr sdk.AccAddress) []byte
GetREDsKey returns a key prefix for indexing a redelegation from a delegator address.
func GetREDsToValDstIndexKey ¶
func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte
GetREDsToValDstIndexKey returns a key prefix for indexing a redelegation to a destination (target) validator.
func GetRedelegationTimeKey ¶
GetRedelegationTimeKey returns a key prefix for indexing an unbonding redelegation based on a completion time.
func GetUBDByValIndexKey ¶
func GetUBDByValIndexKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
GetUBDByValIndexKey creates the index-key for an unbonding delegation, stored by validator-index VALUE: none (key rearrangement used)
func GetUBDKey ¶
func GetUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
GetUBDKey creates the key for an unbonding delegation by delegator and validator addr VALUE: staking/UnbondingDelegation
func GetUBDKeyFromValIndexKey ¶
GetUBDKeyFromValIndexKey rearranges the ValIndexKey to get the UBDKey
func GetUBDsByValIndexKey ¶
func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte
GetUBDsByValIndexKey creates the prefix keyspace for the indexes of unbonding delegations for a validator
func GetUBDsKey ¶
func GetUBDsKey(delAddr sdk.AccAddress) []byte
GetUBDsKey creates the prefix for all unbonding delegations from a delegator
func GetUnbondingDelegationTimeKey ¶
GetUnbondingDelegationTimeKey creates the prefix for all unbonding delegations from a delegator
func GetUnbondingIndexKey ¶ added in v0.47.0
GetUnbondingIndexKey returns a key for the index for looking up UnbondingDelegations by the UnbondingDelegationEntries they contain
func GetUnbondingTypeKey ¶ added in v0.47.0
GetUnbondingTypeKey returns a key for an index containing the type of unbonding operations
func GetValidatorByConsAddrKey ¶
func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
GetValidatorByConsAddrKey creates the key for the validator with pubkey VALUE: validator operator address ([]byte)
func GetValidatorKey ¶
func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
GetValidatorKey creates the key for the validator with address VALUE: staking/Validator
func GetValidatorQueueKey ¶ added in v0.40.0
GetValidatorQueueKey returns the prefix key used for getting a set of unbonding validators whose unbonding completion occurs at the given time and height.
func GetValidatorsByPowerIndexKey ¶
func GetValidatorsByPowerIndexKey(validator Validator, powerReduction math.Int, valAc addresscodec.Codec) []byte
GetValidatorsByPowerIndexKey creates the validator by power index. Power index is the key used in the power-store, and represents the relative power ranking of the validator. VALUE: validator operator address ([]byte)
func MustMarshalDelegation ¶
func MustMarshalDelegation(cdc codec.BinaryCodec, delegation Delegation) []byte
MustMarshalDelegation returns the delegation bytes. Panics if fails
func MustMarshalRED ¶
func MustMarshalRED(cdc codec.BinaryCodec, red Redelegation) []byte
MustMarshalRED returns the Redelegation bytes. Panics if fails.
func MustMarshalUBD ¶
func MustMarshalUBD(cdc codec.BinaryCodec, ubd UnbondingDelegation) []byte
return the unbonding delegation
func MustMarshalUBDE ¶ added in v0.47.0
func MustMarshalUBDE(cdc codec.BinaryCodec, ubd UnbondingDelegationEntry) []byte
return the unbonding delegation entry
func MustMarshalValidator ¶
func MustMarshalValidator(cdc codec.BinaryCodec, validator *Validator) []byte
return the redelegation
func ParamKeyTable
deprecated
added in
v0.40.0
func ParamKeyTable() paramtypes.KeyTable
Deprecated: now params can be accessed on key `0x51` on the staking store. ParamTable for staking module
func ParseDelegationsByValKey ¶ added in v0.50.1
func ParseDelegationsByValKey(bz []byte) (sdk.ValAddress, sdk.AccAddress, error)
ParseDelegationsByValKey parses given key and returns validator, delegator address bytes
func ParseValidatorPowerRankKey ¶
ParseValidatorPowerRankKey parses the validators operator address from power rank key
func ParseValidatorQueueKey ¶ added in v0.40.0
ParseValidatorQueueKey returns the encoded time and height from a key created from GetValidatorQueueKey.
func RegisterInterfaces ¶ added in v0.40.0
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the x/staking interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶ added in v0.40.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/staking interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶ added in v0.40.0
func RegisterQueryHandler ¶ added in v0.40.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.40.0
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.40.0
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.40.0
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.40.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func StakingDescription ¶ added in v0.40.0
func StakingDescription() (desc *github_com_cosmos_gogoproto_protoc_gen_gogo_descriptor.FileDescriptorSet)
func ValidateBasic ¶
func ValidateBasic(hi HistoricalInfo, valAc address.Codec) error
ValidateBasic will ensure HistoricalInfo is not nil and sorted
func ValidatePowerReduction ¶ added in v0.43.0
func ValidatePowerReduction(i interface{}) error
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { AddressCodec() address.Codec IterateAccounts(ctx context.Context, process func(sdk.AccountI) (stop bool)) GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI // only used for simulation GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx context.Context, moduleName string) sdk.ModuleAccountI // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 SetModuleAccount(context.Context, sdk.ModuleAccountI) }
AccountKeeper defines the expected account keeper (noalias)
type AuthorizationType ¶ added in v0.43.0
type AuthorizationType int32
AuthorizationType defines the type of staking module authorization type
Since: cosmos-sdk 0.43
const ( // AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type AuthorizationType_AUTHORIZATION_TYPE_UNSPECIFIED AuthorizationType = 0 // AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate AuthorizationType_AUTHORIZATION_TYPE_DELEGATE AuthorizationType = 1 // AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate AuthorizationType_AUTHORIZATION_TYPE_UNDELEGATE AuthorizationType = 2 // AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate AuthorizationType_AUTHORIZATION_TYPE_REDELEGATE AuthorizationType = 3 // AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation AuthorizationType_AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION AuthorizationType = 4 )
func (AuthorizationType) EnumDescriptor ¶ added in v0.43.0
func (AuthorizationType) EnumDescriptor() ([]byte, []int)
func (AuthorizationType) String ¶ added in v0.43.0
func (x AuthorizationType) String() string
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin LockedCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins GetSupply(ctx context.Context, denom string) sdk.Coin SendCoinsFromModuleToModule(ctx context.Context, senderPool, recipientPool string, amt sdk.Coins) error UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error BurnCoins(ctx context.Context, name string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type BondStatus ¶ added in v0.40.0
type BondStatus int32
BondStatus is the status of a validator.
const ( // UNSPECIFIED defines an invalid validator status. Unspecified BondStatus = 0 // UNBONDED defines a validator that is not bonded. Unbonded BondStatus = 1 // UNBONDING defines a validator that is unbonding. Unbonding BondStatus = 2 // BONDED defines a validator that is bonded. Bonded BondStatus = 3 )
func (BondStatus) EnumDescriptor ¶ added in v0.40.0
func (BondStatus) EnumDescriptor() ([]byte, []int)
func (BondStatus) String ¶ added in v0.40.0
func (x BondStatus) String() string
type Commission ¶
type Commission struct { // commission_rates defines the initial commission rates to be used for creating a validator. CommissionRates `protobuf:"bytes,1,opt,name=commission_rates,json=commissionRates,proto3,embedded=commission_rates" json:"commission_rates"` // update_time is the last time the commission rate was changed. UpdateTime time.Time `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,stdtime" json:"update_time"` }
Commission defines commission parameters for a given validator.
func NewCommission ¶
func NewCommission(rate, maxRate, maxChangeRate math.LegacyDec) Commission
NewCommission returns an initialized validator commission.
func NewCommissionWithTime ¶
func NewCommissionWithTime(rate, maxRate, maxChangeRate math.LegacyDec, 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 (m *Commission) String() string
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 is the commission rate charged to delegators, as a fraction. Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` // max_rate defines the maximum commission rate which validator can ever charge, as a fraction. MaxRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_rate"` // max_change_rate defines the maximum daily increase of the validator commission, as a fraction. MaxChangeRate cosmossdk_io_math.LegacyDec `` /* 131-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 math.LegacyDec) 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 (m *CommissionRates) String() string
func (*CommissionRates) Unmarshal ¶
func (m *CommissionRates) Unmarshal(dAtA []byte) error
func (CommissionRates) Validate ¶
func (cr CommissionRates) Validate() error
Validate performs basic sanity validation checks of initial commission parameters. If validation fails, an SDK error is returned.
func (*CommissionRates) XXX_DiscardUnknown ¶
func (m *CommissionRates) XXX_DiscardUnknown()
func (*CommissionRates) XXX_Marshal ¶
func (m *CommissionRates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommissionRates) XXX_Merge ¶
func (m *CommissionRates) XXX_Merge(src proto.Message)
func (*CommissionRates) XXX_Size ¶
func (m *CommissionRates) XXX_Size() int
func (*CommissionRates) XXX_Unmarshal ¶
func (m *CommissionRates) XXX_Unmarshal(b []byte) error
type DVPair ¶
type DVPair struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` }
DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.
func (*DVPair) Descriptor ¶
func (*DVPair) 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 string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"` ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"` }
DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.
func (*DVVTriplet) Descriptor ¶
func (*DVVTriplet) Descriptor() ([]byte, []int)
func (*DVVTriplet) Marshal ¶
func (m *DVVTriplet) Marshal() (dAtA []byte, err error)
func (*DVVTriplet) 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 (m *DVVTriplet) String() string
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 { // delegator_address is the encoded address of the delegator. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // validator_address is the encoded address of the validator. ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Shares cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"shares"` }
Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.
func MustUnmarshalDelegation ¶
func MustUnmarshalDelegation(cdc codec.BinaryCodec, value []byte) Delegation
MustUnmarshalDelegation return the unmarshaled delegation from bytes. Panics if fails.
func NewDelegation ¶
func NewDelegation(delegatorAddr, validatorAddr string, shares math.LegacyDec) Delegation
NewDelegation creates a new delegation object
func UnmarshalDelegation ¶
func UnmarshalDelegation(cdc codec.BinaryCodec, value []byte) (delegation Delegation, err error)
return the delegation
func (*Delegation) Descriptor ¶
func (*Delegation) Descriptor() ([]byte, []int)
func (Delegation) GetDelegatorAddr ¶
func (d Delegation) GetDelegatorAddr() string
func (Delegation) GetShares ¶
func (d Delegation) GetShares() math.LegacyDec
func (Delegation) GetValidatorAddr ¶
func (d Delegation) GetValidatorAddr() string
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 (m *Delegation) String() string
func (*Delegation) Unmarshal ¶
func (m *Delegation) Unmarshal(dAtA []byte) error
func (*Delegation) XXX_DiscardUnknown ¶
func (m *Delegation) XXX_DiscardUnknown()
func (*Delegation) XXX_Marshal ¶
func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Delegation) XXX_Merge ¶
func (m *Delegation) XXX_Merge(src proto.Message)
func (*Delegation) XXX_Size ¶
func (m *Delegation) XXX_Size() int
func (*Delegation) XXX_Unmarshal ¶
func (m *Delegation) XXX_Unmarshal(b []byte) error
type DelegationI ¶ added in v0.40.0
type DelegationI interface { GetDelegatorAddr() string // delegator string for the bond GetValidatorAddr() string // validator operator address }
DelegationI delegation bond for a delegated proof of stake system
type DelegationResponse ¶
type DelegationResponse struct { Delegation Delegation `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"` Balance types2.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"` }
DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.
func NewDelegationResp ¶
func NewDelegationResp( delegatorAddr, validatorAddr string, shares math.LegacyDec, balance sdk.Coin, ) DelegationResponse
NewDelegationResp creates a new DelegationResponse instance
func (*DelegationResponse) Descriptor ¶ added in v0.40.0
func (*DelegationResponse) Descriptor() ([]byte, []int)
func (*DelegationResponse) GetBalance ¶ added in v0.40.0
func (m *DelegationResponse) GetBalance() types2.Coin
func (*DelegationResponse) GetDelegation ¶ added in v0.40.0
func (m *DelegationResponse) GetDelegation() Delegation
func (*DelegationResponse) Marshal ¶ added in v0.40.0
func (m *DelegationResponse) Marshal() (dAtA []byte, err error)
func (DelegationResponse) MarshalJSON ¶
func (d DelegationResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. This is so we can achieve a flattened structure while embedding other types.
func (*DelegationResponse) MarshalTo ¶ added in v0.40.0
func (m *DelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*DelegationResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *DelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationResponse) ProtoMessage ¶ added in v0.40.0
func (*DelegationResponse) ProtoMessage()
func (*DelegationResponse) Reset ¶ added in v0.40.0
func (m *DelegationResponse) Reset()
func (*DelegationResponse) Size ¶ added in v0.40.0
func (m *DelegationResponse) Size() (n int)
func (*DelegationResponse) String ¶
func (m *DelegationResponse) String() string
func (*DelegationResponse) Unmarshal ¶ added in v0.40.0
func (m *DelegationResponse) Unmarshal(dAtA []byte) error
func (*DelegationResponse) UnmarshalJSON ¶
func (d *DelegationResponse) UnmarshalJSON(bz []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. This is so we can achieve a flattened structure while embedding other types.
func (*DelegationResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *DelegationResponse) XXX_DiscardUnknown()
func (*DelegationResponse) XXX_Marshal ¶ added in v0.40.0
func (m *DelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationResponse) XXX_Merge ¶ added in v0.40.0
func (m *DelegationResponse) XXX_Merge(src proto.Message)
func (*DelegationResponse) XXX_Size ¶ added in v0.40.0
func (m *DelegationResponse) XXX_Size() int
func (*DelegationResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *DelegationResponse) XXX_Unmarshal(b []byte) error
type DelegationResponses ¶
type DelegationResponses []DelegationResponse
DelegationResponses is a collection of DelegationResp
func (DelegationResponses) String ¶
func (d DelegationResponses) String() (out string)
String implements the Stringer interface for DelegationResponses.
type DelegationSet ¶
type DelegationSet interface { GetValidatorSet() ValidatorSet // validator set for which delegation set is based upon // iterate through all delegations from one delegator by validator-AccAddress, // execute func for each validator IterateDelegations(ctx context.Context, delegator sdk.AccAddress, fn func(index int64, delegation DelegationI) (stop bool)) error }
DelegationSet expected properties for the set of all delegations for a particular (noalias)
type Delegations ¶
type Delegations []Delegation
Delegations is a collection of delegations
func (Delegations) String ¶
func (d Delegations) String() (out string)
type Description ¶
type Description struct { // moniker defines a human-readable name for the validator. Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"` // identity defines an optional identity signature (ex. UPort or Keybase). Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // website defines an optional website link. Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"` // security_contact defines an optional email for security contact. SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"` // details define other optional details. Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` }
Description defines a validator description.
func NewDescription ¶
func NewDescription(moniker, identity, website, securityContact, details string) Description
func (*Description) Descriptor ¶
func (*Description) Descriptor() ([]byte, []int)
func (Description) EnsureLength ¶
func (d Description) EnsureLength() (Description, error)
EnsureLength ensures the length of a validator's description.
func (*Description) Equal ¶
func (this *Description) Equal(that interface{}) bool
func (*Description) GetDetails ¶
func (m *Description) GetDetails() string
func (*Description) GetIdentity ¶
func (m *Description) GetIdentity() string
func (*Description) GetMoniker ¶
func (m *Description) GetMoniker() string
func (*Description) GetSecurityContact ¶
func (m *Description) GetSecurityContact() string
func (*Description) GetWebsite ¶
func (m *Description) GetWebsite() string
func (*Description) Marshal ¶
func (m *Description) Marshal() (dAtA []byte, err error)
func (*Description) MarshalToSizedBuffer ¶
func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Description) ProtoMessage ¶
func (*Description) ProtoMessage()
func (*Description) Reset ¶
func (m *Description) Reset()
func (*Description) Size ¶
func (m *Description) Size() (n int)
func (*Description) String ¶
func (m *Description) String() string
func (*Description) Unmarshal ¶
func (m *Description) Unmarshal(dAtA []byte) error
func (Description) UpdateDescription ¶
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 GenesisState ¶
type GenesisState struct { // params defines all the parameters of related to deposit. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // last_total_power tracks the total amounts of bonded tokens recorded during // the previous end block. LastTotalPower cosmossdk_io_math.Int `` /* 128-byte string literal not displayed */ // last_validator_powers is a special index that provides a historical list // of the last-block's bonded validators. LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers"` // validators defines the validator set at genesis. Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"` // delegations defines the delegations active at genesis. Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"` // unbonding_delegations defines the unbonding delegations active at genesis. UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"` // redelegations defines the redelegations active at genesis. Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"` // exported defines a bool to identify whether the chain dealing with exported or initialized genesis. Exported bool `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"` }
GenesisState defines the staking module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets the raw genesis raw message for testing
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/staking GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, validators []Validator, delegations []Delegation) *GenesisState
NewGenesisState creates a new GenesisState instanc e
func (*GenesisState) Descriptor ¶ added in v0.40.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDelegations ¶ added in v0.40.0
func (m *GenesisState) GetDelegations() []Delegation
func (*GenesisState) GetExported ¶ added in v0.40.0
func (m *GenesisState) GetExported() bool
func (*GenesisState) GetLastValidatorPowers ¶ added in v0.40.0
func (m *GenesisState) GetLastValidatorPowers() []LastValidatorPower
func (*GenesisState) GetParams ¶ added in v0.40.0
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRedelegations ¶ added in v0.40.0
func (m *GenesisState) GetRedelegations() []Redelegation
func (*GenesisState) GetUnbondingDelegations ¶ added in v0.40.0
func (m *GenesisState) GetUnbondingDelegations() []UnbondingDelegation
func (*GenesisState) GetValidators ¶ added in v0.40.0
func (m *GenesisState) GetValidators() []Validator
func (*GenesisState) Marshal ¶ added in v0.40.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.40.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.40.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.40.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.40.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.40.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.40.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) UnpackInterfaces ¶ added in v0.40.0
func (g GenesisState) UnpackInterfaces(c codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.40.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.40.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.40.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.40.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type HistoricalInfo ¶
type HistoricalInfo struct { Header types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` Valset []Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset"` }
HistoricalInfo contains header and validator information for a given block. It is stored as part of staking module's state, which persists the `n` most recent HistoricalInfo (`n` is set by the staking module's `historical_entries` parameter).
func MustUnmarshalHistoricalInfo ¶
func MustUnmarshalHistoricalInfo(cdc codec.BinaryCodec, value []byte) HistoricalInfo
MustUnmarshalHistoricalInfo wll unmarshal historical info and panic on error
func NewHistoricalInfo ¶
func NewHistoricalInfo(header cmtproto.Header, valSet Validators, powerReduction math.Int) HistoricalInfo
NewHistoricalInfo will create a historical information struct from header and valset it will first sort valset before inclusion into historical info
func UnmarshalHistoricalInfo ¶
func UnmarshalHistoricalInfo(cdc codec.BinaryCodec, value []byte) (hi HistoricalInfo, err error)
UnmarshalHistoricalInfo will unmarshal historical info and return any error
func (*HistoricalInfo) Descriptor ¶
func (*HistoricalInfo) Descriptor() ([]byte, []int)
func (*HistoricalInfo) Equal ¶
func (hi *HistoricalInfo) Equal(hi2 *HistoricalInfo) bool
Equal checks if receiver is equal to the parameter
func (*HistoricalInfo) GetHeader ¶
func (m *HistoricalInfo) GetHeader() types.Header
func (*HistoricalInfo) GetValset ¶
func (m *HistoricalInfo) GetValset() []Validator
func (*HistoricalInfo) Marshal ¶
func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)
func (*HistoricalInfo) MarshalToSizedBuffer ¶
func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HistoricalInfo) ProtoMessage ¶
func (*HistoricalInfo) ProtoMessage()
func (*HistoricalInfo) Reset ¶
func (m *HistoricalInfo) Reset()
func (*HistoricalInfo) Size ¶
func (m *HistoricalInfo) Size() (n int)
func (*HistoricalInfo) String ¶
func (m *HistoricalInfo) String() string
func (*HistoricalInfo) Unmarshal ¶
func (m *HistoricalInfo) Unmarshal(dAtA []byte) error
func (HistoricalInfo) UnpackInterfaces ¶ added in v0.40.0
func (hi HistoricalInfo) UnpackInterfaces(c codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*HistoricalInfo) XXX_DiscardUnknown ¶
func (m *HistoricalInfo) XXX_DiscardUnknown()
func (*HistoricalInfo) XXX_Marshal ¶
func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoricalInfo) XXX_Merge ¶
func (m *HistoricalInfo) XXX_Merge(src proto.Message)
func (*HistoricalInfo) XXX_Size ¶
func (m *HistoricalInfo) XXX_Size() int
func (*HistoricalInfo) XXX_Unmarshal ¶
func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
type Infraction ¶ added in v0.47.0
type Infraction int32
Infraction indicates the infraction a validator commited.
const ( // UNSPECIFIED defines an empty infraction. Infraction_INFRACTION_UNSPECIFIED Infraction = 0 // DOUBLE_SIGN defines a validator that double-signs a block. Infraction_INFRACTION_DOUBLE_SIGN Infraction = 1 // DOWNTIME defines a validator that missed signing too many blocks. Infraction_INFRACTION_DOWNTIME Infraction = 2 )
func (Infraction) EnumDescriptor ¶ added in v0.47.0
func (Infraction) EnumDescriptor() ([]byte, []int)
func (Infraction) String ¶ added in v0.47.0
func (x Infraction) String() string
type LastValidatorPower ¶
type LastValidatorPower struct { // address is the address of the validator. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // power defines the power of the validator. Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` }
LastValidatorPower required for validator set update logic.
func (*LastValidatorPower) Descriptor ¶ added in v0.40.0
func (*LastValidatorPower) Descriptor() ([]byte, []int)
func (*LastValidatorPower) Marshal ¶ added in v0.40.0
func (m *LastValidatorPower) Marshal() (dAtA []byte, err error)
func (*LastValidatorPower) MarshalTo ¶ added in v0.40.0
func (m *LastValidatorPower) MarshalTo(dAtA []byte) (int, error)
func (*LastValidatorPower) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *LastValidatorPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LastValidatorPower) ProtoMessage ¶ added in v0.40.0
func (*LastValidatorPower) ProtoMessage()
func (*LastValidatorPower) Reset ¶ added in v0.40.0
func (m *LastValidatorPower) Reset()
func (*LastValidatorPower) Size ¶ added in v0.40.0
func (m *LastValidatorPower) Size() (n int)
func (*LastValidatorPower) String ¶ added in v0.40.0
func (m *LastValidatorPower) String() string
func (*LastValidatorPower) Unmarshal ¶ added in v0.40.0
func (m *LastValidatorPower) Unmarshal(dAtA []byte) error
func (*LastValidatorPower) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *LastValidatorPower) XXX_DiscardUnknown()
func (*LastValidatorPower) XXX_Marshal ¶ added in v0.40.0
func (m *LastValidatorPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LastValidatorPower) XXX_Merge ¶ added in v0.40.0
func (m *LastValidatorPower) XXX_Merge(src proto.Message)
func (*LastValidatorPower) XXX_Size ¶ added in v0.40.0
func (m *LastValidatorPower) XXX_Size() int
func (*LastValidatorPower) XXX_Unmarshal ¶ added in v0.40.0
func (m *LastValidatorPower) XXX_Unmarshal(b []byte) error
type MsgBeginRedelegate ¶
type MsgBeginRedelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"` ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"` Amount types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"` }
MsgBeginRedelegate defines a SDK message for performing a redelegation of coins from a delegator and source validator to a destination validator.
func NewMsgBeginRedelegate ¶
func NewMsgBeginRedelegate( delAddr, valSrcAddr, valDstAddr string, amount sdk.Coin, ) *MsgBeginRedelegate
NewMsgBeginRedelegate creates a new MsgBeginRedelegate instance.
func (*MsgBeginRedelegate) Descriptor ¶
func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
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) Size ¶
func (m *MsgBeginRedelegate) Size() (n int)
func (*MsgBeginRedelegate) String ¶
func (m *MsgBeginRedelegate) String() string
func (*MsgBeginRedelegate) Unmarshal ¶
func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error
func (*MsgBeginRedelegate) XXX_DiscardUnknown ¶
func (m *MsgBeginRedelegate) XXX_DiscardUnknown()
func (*MsgBeginRedelegate) XXX_Marshal ¶
func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBeginRedelegate) XXX_Merge ¶
func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)
func (*MsgBeginRedelegate) XXX_Size ¶
func (m *MsgBeginRedelegate) XXX_Size() int
func (*MsgBeginRedelegate) XXX_Unmarshal ¶
func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error
type MsgBeginRedelegateResponse ¶ added in v0.40.0
type MsgBeginRedelegateResponse struct {
CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}
MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
func (*MsgBeginRedelegateResponse) Descriptor ¶ added in v0.40.0
func (*MsgBeginRedelegateResponse) Descriptor() ([]byte, []int)
func (*MsgBeginRedelegateResponse) GetCompletionTime ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) GetCompletionTime() time.Time
func (*MsgBeginRedelegateResponse) Marshal ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgBeginRedelegateResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBeginRedelegateResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBeginRedelegateResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgBeginRedelegateResponse) ProtoMessage()
func (*MsgBeginRedelegateResponse) Reset ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) Reset()
func (*MsgBeginRedelegateResponse) Size ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) Size() (n int)
func (*MsgBeginRedelegateResponse) String ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) String() string
func (*MsgBeginRedelegateResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgBeginRedelegateResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) XXX_DiscardUnknown()
func (*MsgBeginRedelegateResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBeginRedelegateResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) XXX_Merge(src proto.Message)
func (*MsgBeginRedelegateResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) XXX_Size() int
func (*MsgBeginRedelegateResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgBeginRedelegateResponse) XXX_Unmarshal(b []byte) error
type MsgCancelUnbondingDelegation ¶ added in v0.46.0
type MsgCancelUnbondingDelegation struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` // amount is always less than or equal to unbonding delegation entry balance Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` // creation_height is the height which the unbonding took place. CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` }
MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
Since: cosmos-sdk 0.46
func NewMsgCancelUnbondingDelegation ¶ added in v0.46.0
func NewMsgCancelUnbondingDelegation(delAddr, valAddr string, creationHeight int64, amount sdk.Coin) *MsgCancelUnbondingDelegation
NewMsgCancelUnbondingDelegation creates a new MsgCancelUnbondingDelegation instance.
func (*MsgCancelUnbondingDelegation) Descriptor ¶ added in v0.46.0
func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int)
func (*MsgCancelUnbondingDelegation) Marshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error)
func (*MsgCancelUnbondingDelegation) MarshalTo ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegation) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegation) ProtoMessage ¶ added in v0.46.0
func (*MsgCancelUnbondingDelegation) ProtoMessage()
func (*MsgCancelUnbondingDelegation) Reset ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) Reset()
func (*MsgCancelUnbondingDelegation) Size ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) Size() (n int)
func (*MsgCancelUnbondingDelegation) String ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) String() string
func (*MsgCancelUnbondingDelegation) Unmarshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error
func (*MsgCancelUnbondingDelegation) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown()
func (*MsgCancelUnbondingDelegation) XXX_Marshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelUnbondingDelegation) XXX_Merge ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message)
func (*MsgCancelUnbondingDelegation) XXX_Size ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) XXX_Size() int
func (*MsgCancelUnbondingDelegation) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error
type MsgCancelUnbondingDelegationResponse ¶ added in v0.46.0
type MsgCancelUnbondingDelegationResponse struct { }
MsgCancelUnbondingDelegationResponse
Since: cosmos-sdk 0.46
func (*MsgCancelUnbondingDelegationResponse) Descriptor ¶ added in v0.46.0
func (*MsgCancelUnbondingDelegationResponse) Descriptor() ([]byte, []int)
func (*MsgCancelUnbondingDelegationResponse) Marshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelUnbondingDelegationResponse) MarshalTo ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegationResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegationResponse) ProtoMessage ¶ added in v0.46.0
func (*MsgCancelUnbondingDelegationResponse) ProtoMessage()
func (*MsgCancelUnbondingDelegationResponse) Reset ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) Reset()
func (*MsgCancelUnbondingDelegationResponse) Size ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) Size() (n int)
func (*MsgCancelUnbondingDelegationResponse) String ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) String() string
func (*MsgCancelUnbondingDelegationResponse) Unmarshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelUnbondingDelegationResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) XXX_DiscardUnknown()
func (*MsgCancelUnbondingDelegationResponse) XXX_Marshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelUnbondingDelegationResponse) XXX_Merge ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) XXX_Merge(src proto.Message)
func (*MsgCancelUnbondingDelegationResponse) XXX_Size ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) XXX_Size() int
func (*MsgCancelUnbondingDelegationResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *MsgCancelUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.40.0
type MsgClient interface { // CreateValidator defines a method for creating a new validator. CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error) // EditValidator defines a method for editing an existing validator. EditValidator(ctx context.Context, in *MsgEditValidator, opts ...grpc.CallOption) (*MsgEditValidatorResponse, error) // Delegate defines a method for performing a delegation of coins // from a delegator to a validator. Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error) // BeginRedelegate defines a method for performing a redelegation // of coins from a delegator and source validator to a destination validator. BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error) // Undelegate defines a method for performing an undelegation from a // delegate and a validator. Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error) // CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation // and delegate back to previous validator. // // Since: cosmos-sdk 0.46 CancelUnbondingDelegation(ctx context.Context, in *MsgCancelUnbondingDelegation, opts ...grpc.CallOption) (*MsgCancelUnbondingDelegationResponse, error) // UpdateParams defines an operation for updating the x/staking module // parameters. // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶ added in v0.40.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateValidator ¶
type MsgCreateValidator struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` Commission CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"` MinSelfDelegation cosmossdk_io_math.Int `` /* 137-byte string literal not displayed */ // Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. // The validator address bytes and delegator address bytes refer to the same account while creating validator (defer // only in bech32 notation). DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // Deprecated: Do not use. ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Pubkey *types.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value types1.Coin `protobuf:"bytes,7,opt,name=value,proto3" json:"value"` }
MsgCreateValidator defines a SDK message for creating a new validator.
func NewMsgCreateValidator ¶
func NewMsgCreateValidator( valAddr string, pubKey cryptotypes.PubKey, selfDelegation sdk.Coin, description Description, commission CommissionRates, minSelfDelegation math.Int, ) (*MsgCreateValidator, error)
NewMsgCreateValidator creates a new MsgCreateValidator instance. Delegator address and validator address are the same.
func (*MsgCreateValidator) Descriptor ¶
func (*MsgCreateValidator) Descriptor() ([]byte, []int)
func (*MsgCreateValidator) 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) Size ¶
func (m *MsgCreateValidator) Size() (n int)
func (*MsgCreateValidator) String ¶
func (m *MsgCreateValidator) String() string
func (*MsgCreateValidator) Unmarshal ¶
func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error
func (MsgCreateValidator) UnpackInterfaces ¶ added in v0.40.0
func (msg MsgCreateValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (MsgCreateValidator) Validate ¶ added in v0.50.1
func (msg MsgCreateValidator) Validate(ac address.Codec) error
Validate validates the MsgCreateValidator sdk msg.
func (*MsgCreateValidator) XXX_DiscardUnknown ¶
func (m *MsgCreateValidator) XXX_DiscardUnknown()
func (*MsgCreateValidator) XXX_Marshal ¶
func (m *MsgCreateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateValidator) XXX_Merge ¶
func (m *MsgCreateValidator) XXX_Merge(src proto.Message)
func (*MsgCreateValidator) XXX_Size ¶
func (m *MsgCreateValidator) XXX_Size() int
func (*MsgCreateValidator) XXX_Unmarshal ¶
func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error
type MsgCreateValidatorResponse ¶ added in v0.40.0
type MsgCreateValidatorResponse struct { }
MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
func (*MsgCreateValidatorResponse) Descriptor ¶ added in v0.40.0
func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int)
func (*MsgCreateValidatorResponse) Marshal ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateValidatorResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateValidatorResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateValidatorResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgCreateValidatorResponse) ProtoMessage()
func (*MsgCreateValidatorResponse) Reset ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) Reset()
func (*MsgCreateValidatorResponse) Size ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) Size() (n int)
func (*MsgCreateValidatorResponse) String ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) String() string
func (*MsgCreateValidatorResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateValidatorResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()
func (*MsgCreateValidatorResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateValidatorResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) XXX_Merge(src proto.Message)
func (*MsgCreateValidatorResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) XXX_Size() int
func (*MsgCreateValidatorResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgCreateValidatorResponse) XXX_Unmarshal(b []byte) error
type MsgDelegate ¶
type MsgDelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` }
MsgDelegate defines a SDK message for performing a delegation of coins from a delegator to a validator.
func NewMsgDelegate ¶
func NewMsgDelegate(delAddr, valAddr string, amount sdk.Coin) *MsgDelegate
NewMsgDelegate creates a new MsgDelegate instance.
func (*MsgDelegate) Descriptor ¶
func (*MsgDelegate) Descriptor() ([]byte, []int)
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) Size ¶
func (m *MsgDelegate) Size() (n int)
func (*MsgDelegate) String ¶
func (m *MsgDelegate) String() string
func (*MsgDelegate) Unmarshal ¶
func (m *MsgDelegate) Unmarshal(dAtA []byte) error
func (*MsgDelegate) XXX_DiscardUnknown ¶
func (m *MsgDelegate) XXX_DiscardUnknown()
func (*MsgDelegate) XXX_Marshal ¶
func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDelegate) XXX_Merge ¶
func (m *MsgDelegate) XXX_Merge(src proto.Message)
func (*MsgDelegate) XXX_Size ¶
func (m *MsgDelegate) XXX_Size() int
func (*MsgDelegate) XXX_Unmarshal ¶
func (m *MsgDelegate) XXX_Unmarshal(b []byte) error
type MsgDelegateResponse ¶ added in v0.40.0
type MsgDelegateResponse struct { }
MsgDelegateResponse defines the Msg/Delegate response type.
func (*MsgDelegateResponse) Descriptor ¶ added in v0.40.0
func (*MsgDelegateResponse) Descriptor() ([]byte, []int)
func (*MsgDelegateResponse) Marshal ¶ added in v0.40.0
func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgDelegateResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDelegateResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDelegateResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgDelegateResponse) ProtoMessage()
func (*MsgDelegateResponse) Reset ¶ added in v0.40.0
func (m *MsgDelegateResponse) Reset()
func (*MsgDelegateResponse) Size ¶ added in v0.40.0
func (m *MsgDelegateResponse) Size() (n int)
func (*MsgDelegateResponse) String ¶ added in v0.40.0
func (m *MsgDelegateResponse) String() string
func (*MsgDelegateResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgDelegateResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgDelegateResponse) XXX_DiscardUnknown()
func (*MsgDelegateResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDelegateResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgDelegateResponse) XXX_Merge(src proto.Message)
func (*MsgDelegateResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgDelegateResponse) XXX_Size() int
func (*MsgDelegateResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error
type MsgEditValidator ¶
type MsgEditValidator struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` // We pass a reference to the new commission rate and min self delegation as // it's not mandatory to update. If not updated, the deserialized rate will be // zero with no way to distinguish if an update was intended. // REF: #2373 CommissionRate *cosmossdk_io_math.LegacyDec `` /* 142-byte string literal not displayed */ MinSelfDelegation *cosmossdk_io_math.Int `` /* 147-byte string literal not displayed */ }
MsgEditValidator defines a SDK message for editing an existing validator.
func NewMsgEditValidator ¶
func NewMsgEditValidator(valAddr string, description Description, newRate *math.LegacyDec, newMinSelfDelegation *math.Int) *MsgEditValidator
NewMsgEditValidator creates a new MsgEditValidator instance
func (*MsgEditValidator) Descriptor ¶
func (*MsgEditValidator) Descriptor() ([]byte, []int)
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) Size ¶
func (m *MsgEditValidator) Size() (n int)
func (*MsgEditValidator) String ¶
func (m *MsgEditValidator) String() string
func (*MsgEditValidator) Unmarshal ¶
func (m *MsgEditValidator) Unmarshal(dAtA []byte) error
func (*MsgEditValidator) XXX_DiscardUnknown ¶
func (m *MsgEditValidator) XXX_DiscardUnknown()
func (*MsgEditValidator) XXX_Marshal ¶
func (m *MsgEditValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditValidator) XXX_Merge ¶
func (m *MsgEditValidator) XXX_Merge(src proto.Message)
func (*MsgEditValidator) XXX_Size ¶
func (m *MsgEditValidator) XXX_Size() int
func (*MsgEditValidator) XXX_Unmarshal ¶
func (m *MsgEditValidator) XXX_Unmarshal(b []byte) error
type MsgEditValidatorResponse ¶ added in v0.40.0
type MsgEditValidatorResponse struct { }
MsgEditValidatorResponse defines the Msg/EditValidator response type.
func (*MsgEditValidatorResponse) Descriptor ¶ added in v0.40.0
func (*MsgEditValidatorResponse) Descriptor() ([]byte, []int)
func (*MsgEditValidatorResponse) Marshal ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) Marshal() (dAtA []byte, err error)
func (*MsgEditValidatorResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditValidatorResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditValidatorResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgEditValidatorResponse) ProtoMessage()
func (*MsgEditValidatorResponse) Reset ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) Reset()
func (*MsgEditValidatorResponse) Size ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) Size() (n int)
func (*MsgEditValidatorResponse) String ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) String() string
func (*MsgEditValidatorResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) Unmarshal(dAtA []byte) error
func (*MsgEditValidatorResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) XXX_DiscardUnknown()
func (*MsgEditValidatorResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditValidatorResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgEditValidatorResponse) XXX_Merge(src proto.