Documentation ¶
Overview ¶
Package v040 is taken from: https://github.com/cosmos/cosmos-sdk/blob/v0.40.1/x/staking/types/genesis.pb.go by copy-pasted only the relevants parts for Genesis. nolint
Package v040 is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/staking/types/keys.go
Package v040 is taken from: https://github.com/cosmos/cosmos-sdk/blob/v0.40.1/x/staking/types/staking.pb.go nolint
Index ¶
- Constants
- Variables
- func AddressFromLastValidatorPowerKey(key []byte) []byte
- func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetDelegationsKey(delAddr sdk.AccAddress) []byte
- func GetHistoricalInfoKey(height int64) []byte
- func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte
- func GetREDByValDstIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
- func GetREDByValSrcIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
- func GetREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
- func GetREDKeyFromValDstIndexKey(indexKey []byte) []byte
- func GetREDKeyFromValSrcIndexKey(indexKey []byte) []byte
- func GetREDsByDelToValDstIndexKey(delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) []byte
- func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte
- func GetREDsKey(delAddr sdk.AccAddress) []byte
- func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte
- func GetRedelegationTimeKey(timestamp time.Time) []byte
- func GetUBDByValIndexKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetUBDKeyFromValIndexKey(indexKey []byte) []byte
- func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte
- func GetUBDsKey(delAddr sdk.AccAddress) []byte
- func GetUnbondingDelegationTimeKey(timestamp time.Time) []byte
- func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
- func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
- func GetValidatorQueueKey(timestamp time.Time, height int64) []byte
- func GetValidatorsByPowerIndexKey(validator types.Validator) []byte
- func ParseValidatorPowerRankKey(key []byte) (operAddr []byte)
- func ParseValidatorQueueKey(bz []byte) (time.Time, int64, error)
- func StakingDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- 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 (c Commission) String() string
- func (m *Commission) Unmarshal(dAtA []byte) error
- func (m *Commission) XXX_DiscardUnknown()
- func (m *Commission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Commission) XXX_Merge(src proto.Message)
- func (m *Commission) XXX_Size() int
- func (m *Commission) XXX_Unmarshal(b []byte) error
- type CommissionRates
- func (*CommissionRates) Descriptor() ([]byte, []int)
- func (this *CommissionRates) Equal(that interface{}) bool
- func (m *CommissionRates) Marshal() (dAtA []byte, err error)
- func (m *CommissionRates) MarshalTo(dAtA []byte) (int, error)
- func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CommissionRates) ProtoMessage()
- func (m *CommissionRates) Reset()
- func (m *CommissionRates) Size() (n int)
- func (cr CommissionRates) String() string
- func (m *CommissionRates) Unmarshal(dAtA []byte) error
- func (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 (dv DVPair) String() string
- func (m *DVPair) Unmarshal(dAtA []byte) error
- func (m *DVPair) XXX_DiscardUnknown()
- func (m *DVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVPair) XXX_Merge(src proto.Message)
- func (m *DVPair) XXX_Size() int
- func (m *DVPair) XXX_Unmarshal(b []byte) error
- type DVPairs
- func (*DVPairs) Descriptor() ([]byte, []int)
- func (m *DVPairs) GetPairs() []DVPair
- func (m *DVPairs) Marshal() (dAtA []byte, err error)
- func (m *DVPairs) MarshalTo(dAtA []byte) (int, error)
- func (m *DVPairs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DVPairs) ProtoMessage()
- func (m *DVPairs) Reset()
- func (m *DVPairs) Size() (n int)
- func (m *DVPairs) String() string
- func (m *DVPairs) Unmarshal(dAtA []byte) error
- func (m *DVPairs) XXX_DiscardUnknown()
- func (m *DVPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVPairs) XXX_Merge(src proto.Message)
- func (m *DVPairs) XXX_Size() int
- func (m *DVPairs) XXX_Unmarshal(b []byte) error
- type DVVTriplet
- func (*DVVTriplet) Descriptor() ([]byte, []int)
- func (m *DVVTriplet) Marshal() (dAtA []byte, err error)
- func (m *DVVTriplet) MarshalTo(dAtA []byte) (int, error)
- func (m *DVVTriplet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DVVTriplet) ProtoMessage()
- func (m *DVVTriplet) Reset()
- func (m *DVVTriplet) Size() (n int)
- func (dvv DVVTriplet) String() string
- func (m *DVVTriplet) Unmarshal(dAtA []byte) error
- func (m *DVVTriplet) XXX_DiscardUnknown()
- func (m *DVVTriplet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVVTriplet) XXX_Merge(src proto.Message)
- func (m *DVVTriplet) XXX_Size() int
- func (m *DVVTriplet) XXX_Unmarshal(b []byte) error
- type DVVTriplets
- func (*DVVTriplets) Descriptor() ([]byte, []int)
- func (m *DVVTriplets) GetTriplets() []DVVTriplet
- func (m *DVVTriplets) Marshal() (dAtA []byte, err error)
- func (m *DVVTriplets) MarshalTo(dAtA []byte) (int, error)
- func (m *DVVTriplets) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DVVTriplets) ProtoMessage()
- func (m *DVVTriplets) Reset()
- func (m *DVVTriplets) Size() (n int)
- func (m *DVVTriplets) String() string
- func (m *DVVTriplets) Unmarshal(dAtA []byte) error
- func (m *DVVTriplets) XXX_DiscardUnknown()
- func (m *DVVTriplets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DVVTriplets) XXX_Merge(src proto.Message)
- func (m *DVVTriplets) XXX_Size() int
- func (m *DVVTriplets) XXX_Unmarshal(b []byte) error
- type Delegation
- func (*Delegation) Descriptor() ([]byte, []int)
- func (m *Delegation) Marshal() (dAtA []byte, err error)
- func (m *Delegation) MarshalTo(dAtA []byte) (int, error)
- func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Delegation) ProtoMessage()
- func (m *Delegation) Reset()
- func (m *Delegation) Size() (n int)
- func (d Delegation) String() string
- func (m *Delegation) Unmarshal(dAtA []byte) error
- func (m *Delegation) XXX_DiscardUnknown()
- func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Delegation) XXX_Merge(src proto.Message)
- func (m *Delegation) XXX_Size() int
- func (m *Delegation) XXX_Unmarshal(b []byte) error
- type DelegationResponse
- func (*DelegationResponse) Descriptor() ([]byte, []int)
- func (m *DelegationResponse) GetBalance() types2.Coin
- func (m *DelegationResponse) GetDelegation() Delegation
- func (m *DelegationResponse) Marshal() (dAtA []byte, err error)
- func (m *DelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegationResponse) ProtoMessage()
- func (m *DelegationResponse) Reset()
- func (m *DelegationResponse) Size() (n int)
- func (d DelegationResponse) String() string
- func (m *DelegationResponse) Unmarshal(dAtA []byte) error
- func (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 Delegations
- type Description
- func (*Description) Descriptor() ([]byte, []int)
- func (this *Description) Equal(that interface{}) bool
- func (m *Description) GetDetails() string
- func (m *Description) GetIdentity() string
- func (m *Description) GetMoniker() string
- func (m *Description) GetSecurityContact() string
- func (m *Description) GetWebsite() string
- func (m *Description) Marshal() (dAtA []byte, err error)
- func (m *Description) MarshalTo(dAtA []byte) (int, error)
- func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Description) ProtoMessage()
- func (m *Description) Reset()
- func (m *Description) Size() (n int)
- func (d Description) String() string
- func (m *Description) Unmarshal(dAtA []byte) error
- func (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 (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 (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 (m *HistoricalInfo) XXX_DiscardUnknown()
- func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HistoricalInfo) XXX_Merge(src proto.Message)
- func (m *HistoricalInfo) XXX_Size() int
- func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
- type LastValidatorPower
- 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 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Pool
- func (this *Pool) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- func (*Pool) Descriptor() ([]byte, []int)
- func (this *Pool) Equal(that interface{}) bool
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type Redelegation
- 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 (m *Redelegation) Reset()
- func (m *Redelegation) Size() (n int)
- func (red Redelegation) String() string
- func (m *Redelegation) Unmarshal(dAtA []byte) error
- func (m *Redelegation) XXX_DiscardUnknown()
- func (m *Redelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Redelegation) XXX_Merge(src proto.Message)
- func (m *Redelegation) XXX_Size() int
- func (m *Redelegation) XXX_Unmarshal(b []byte) error
- type RedelegationEntry
- func (*RedelegationEntry) Descriptor() ([]byte, []int)
- func (this *RedelegationEntry) Equal(that interface{}) bool
- func (m *RedelegationEntry) GetCompletionTime() time.Time
- func (m *RedelegationEntry) GetCreationHeight() int64
- func (m *RedelegationEntry) Marshal() (dAtA []byte, err error)
- func (m *RedelegationEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RedelegationEntry) ProtoMessage()
- func (m *RedelegationEntry) Reset()
- func (m *RedelegationEntry) Size() (n int)
- func (e RedelegationEntry) String() string
- func (m *RedelegationEntry) Unmarshal(dAtA []byte) error
- func (m *RedelegationEntry) XXX_DiscardUnknown()
- func (m *RedelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedelegationEntry) XXX_Merge(src proto.Message)
- func (m *RedelegationEntry) XXX_Size() int
- func (m *RedelegationEntry) XXX_Unmarshal(b []byte) error
- type RedelegationEntryResponse
- func (*RedelegationEntryResponse) Descriptor() ([]byte, []int)
- func (this *RedelegationEntryResponse) Equal(that interface{}) bool
- func (m *RedelegationEntryResponse) GetRedelegationEntry() RedelegationEntry
- func (m *RedelegationEntryResponse) Marshal() (dAtA []byte, err error)
- func (m *RedelegationEntryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RedelegationEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RedelegationEntryResponse) ProtoMessage()
- func (m *RedelegationEntryResponse) Reset()
- func (m *RedelegationEntryResponse) Size() (n int)
- func (m *RedelegationEntryResponse) String() string
- func (m *RedelegationEntryResponse) Unmarshal(dAtA []byte) error
- func (m *RedelegationEntryResponse) XXX_DiscardUnknown()
- func (m *RedelegationEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedelegationEntryResponse) XXX_Merge(src proto.Message)
- func (m *RedelegationEntryResponse) XXX_Size() int
- func (m *RedelegationEntryResponse) XXX_Unmarshal(b []byte) error
- type RedelegationResponse
- func (*RedelegationResponse) Descriptor() ([]byte, []int)
- func (m *RedelegationResponse) GetEntries() []RedelegationEntryResponse
- func (m *RedelegationResponse) GetRedelegation() Redelegation
- func (m *RedelegationResponse) Marshal() (dAtA []byte, err 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 (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 Redelegations
- type UnbondingDelegation
- 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 (m *UnbondingDelegation) Reset()
- func (m *UnbondingDelegation) Size() (n int)
- func (ubd UnbondingDelegation) String() string
- func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error
- func (m *UnbondingDelegation) XXX_DiscardUnknown()
- func (m *UnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbondingDelegation) XXX_Merge(src proto.Message)
- func (m *UnbondingDelegation) XXX_Size() int
- func (m *UnbondingDelegation) XXX_Unmarshal(b []byte) error
- type UnbondingDelegationEntry
- func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int)
- func (this *UnbondingDelegationEntry) Equal(that interface{}) bool
- func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time
- func (m *UnbondingDelegationEntry) GetCreationHeight() int64
- func (m *UnbondingDelegationEntry) Marshal() (dAtA []byte, err error)
- func (m *UnbondingDelegationEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnbondingDelegationEntry) ProtoMessage()
- func (m *UnbondingDelegationEntry) Reset()
- func (m *UnbondingDelegationEntry) Size() (n int)
- func (e UnbondingDelegationEntry) String() string
- func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error
- func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()
- func (m *UnbondingDelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbondingDelegationEntry) XXX_Merge(src proto.Message)
- func (m *UnbondingDelegationEntry) XXX_Size() int
- func (m *UnbondingDelegationEntry) XXX_Unmarshal(b []byte) error
- type UnbondingDelegations
- type 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 (this *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 (*Validator) Descriptor() ([]byte, []int)
- 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 (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (v Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- 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 Validators
Constants ¶
const ( // ModuleName is the name of the staking module ModuleName = "staking" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route for the staking module QuerierRoute = ModuleName // RouterKey is the msg router key for the staking module RouterKey = ModuleName )
const ( // 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
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // Keys for store prefixes // Last* values are constant during a block. LastValidatorPowerKey = []byte{0x11} // prefix for each key to a validator index, for bonded validators LastTotalPowerKey = []byte{0x12} // prefix for the total power ValidatorsKey = []byte{0x21} // prefix for each key to a validator ValidatorsByConsAddrKey = []byte{0x22} // prefix for each key to a validator index, by pubkey ValidatorsByPowerIndexKey = []byte{0x23} // prefix for each key to a validator index, sorted by power DelegationKey = []byte{0x31} // key for a delegation UnbondingDelegationKey = []byte{0x32} // key for an unbonding-delegation UnbondingDelegationByValIndexKey = []byte{0x33} // prefix for each key for an unbonding-delegation, by validator operator RedelegationKey = []byte{0x34} // key for a redelegation RedelegationByValSrcIndexKey = []byte{0x35} // prefix for each key for an redelegation, by source validator operator RedelegationByValDstIndexKey = []byte{0x36} // prefix for each key for an redelegation, by destination validator operator UnbondingQueueKey = []byte{0x41} // prefix for the timestamps in unbonding queue RedelegationQueueKey = []byte{0x42} // prefix for the timestamps in redelegations queue ValidatorQueueKey = []byte{0x43} // prefix for the timestamps in validator queue HistoricalInfoKey = []byte{0x50} // prefix for the historical info )
var ( ErrInvalidLengthStaking = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStaking = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStaking = fmt.Errorf("proto: unexpected end of group") )
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,
}
Functions ¶
func AddressFromLastValidatorPowerKey ¶ added in v0.43.0
Get the validator operator address from LastValidatorPowerKey
func GetDelegationKey ¶ added in v0.43.0
func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
gets the key for delegator bond with validator VALUE: staking/Delegation
func GetDelegationsKey ¶ added in v0.43.0
func GetDelegationsKey(delAddr sdk.AccAddress) []byte
gets the prefix for a delegator for all validators
func GetHistoricalInfoKey ¶ added in v0.43.0
GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.
func GetLastValidatorPowerKey ¶ added in v0.43.0
func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte
get the bonded validator index key for an operator address
func GetREDByValDstIndexKey ¶ added in v0.43.0
func GetREDByValDstIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
gets the index-key for a redelegation, stored by destination-validator-index VALUE: none (key rearrangement used)
func GetREDByValSrcIndexKey ¶ added in v0.43.0
func GetREDByValSrcIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
gets the index-key for a redelegation, stored by source-validator-index VALUE: none (key rearrangement used)
func GetREDKey ¶ added in v0.43.0
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 ¶ added in v0.43.0
GetREDKeyFromValDstIndexKey rearranges the ValDstIndexKey to get the REDKey
func GetREDKeyFromValSrcIndexKey ¶ added in v0.43.0
GetREDKeyFromValSrcIndexKey rearranges the ValSrcIndexKey to get the REDKey
func GetREDsByDelToValDstIndexKey ¶ added in v0.43.0
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 ¶ added in v0.43.0
func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte
GetREDsFromValSrcIndexKey returns a key prefix for indexing a redelegation to a source validator.
func GetREDsKey ¶ added in v0.43.0
func GetREDsKey(delAddr sdk.AccAddress) []byte
GetREDsKey returns a key prefix for indexing a redelegation from a delegator address.
func GetREDsToValDstIndexKey ¶ added in v0.43.0
func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte
GetREDsToValDstIndexKey returns a key prefix for indexing a redelegation to a destination (target) validator.
func GetRedelegationTimeKey ¶ added in v0.43.0
GetRedelegationTimeKey returns a key prefix for indexing an unbonding redelegation based on a completion time.
func GetUBDByValIndexKey ¶ added in v0.43.0
func GetUBDByValIndexKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
gets the index-key for an unbonding delegation, stored by validator-index VALUE: none (key rearrangement used)
func GetUBDKey ¶ added in v0.43.0
func GetUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
gets the key for an unbonding delegation by delegator and validator addr VALUE: staking/UnbondingDelegation
func GetUBDKeyFromValIndexKey ¶ added in v0.43.0
rearranges the ValIndexKey to get the UBDKey
func GetUBDsByValIndexKey ¶ added in v0.43.0
func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte
gets the prefix keyspace for the indexes of unbonding delegations for a validator
func GetUBDsKey ¶ added in v0.43.0
func GetUBDsKey(delAddr sdk.AccAddress) []byte
gets the prefix for all unbonding delegations from a delegator
func GetUnbondingDelegationTimeKey ¶ added in v0.43.0
gets the prefix for all unbonding delegations from a delegator
func GetValidatorByConsAddrKey ¶ added in v0.43.0
func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
gets the key for the validator with pubkey VALUE: validator operator address ([]byte)
func GetValidatorKey ¶ added in v0.43.0
func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
gets the key for the validator with address VALUE: staking/Validator
func GetValidatorQueueKey ¶ added in v0.43.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 ¶ added in v0.43.0
get the validator by power index. Power index is the key used in the power-store, and represents the relative power ranking of the validator. VALUE: validator operator address ([]byte)
func ParseValidatorPowerRankKey ¶ added in v0.43.0
parse the validators operator address from power rank key
func ParseValidatorQueueKey ¶ added in v0.43.0
ParseValidatorQueueKey returns the encoded time and height from a key created from GetValidatorQueueKey.
func StakingDescription ¶ added in v0.43.0
func StakingDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
Types ¶
type BondStatus ¶ added in v0.43.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.43.0
func (BondStatus) EnumDescriptor() ([]byte, []int)
func (BondStatus) String ¶ added in v0.43.0
func (x BondStatus) String() string
type Commission ¶ added in v0.43.0
type Commission struct { CommissionRates `protobuf:"bytes,1,opt,name=commission_rates,json=commissionRates,proto3,embedded=commission_rates" json:"commission_rates"` UpdateTime time.Time `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,stdtime" json:"update_time" yaml:"update_time"` }
Commission defines commission parameters for a given validator.
func (*Commission) Descriptor ¶ added in v0.43.0
func (*Commission) Descriptor() ([]byte, []int)
func (*Commission) Equal ¶ added in v0.43.0
func (this *Commission) Equal(that interface{}) bool
func (*Commission) GetUpdateTime ¶ added in v0.43.0
func (m *Commission) GetUpdateTime() time.Time
func (*Commission) Marshal ¶ added in v0.43.0
func (m *Commission) Marshal() (dAtA []byte, err error)
func (*Commission) MarshalTo ¶ added in v0.43.0
func (m *Commission) MarshalTo(dAtA []byte) (int, error)
func (*Commission) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *Commission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Commission) ProtoMessage ¶ added in v0.43.0
func (*Commission) ProtoMessage()
func (*Commission) Reset ¶ added in v0.43.0
func (m *Commission) Reset()
func (*Commission) Size ¶ added in v0.43.0
func (m *Commission) Size() (n int)
func (Commission) String ¶ added in v0.43.0
func (c Commission) String() string
String implements the Stringer interface for a Commission object.
func (*Commission) Unmarshal ¶ added in v0.43.0
func (m *Commission) Unmarshal(dAtA []byte) error
func (*Commission) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *Commission) XXX_DiscardUnknown()
func (*Commission) XXX_Marshal ¶ added in v0.43.0
func (m *Commission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Commission) XXX_Merge ¶ added in v0.43.0
func (m *Commission) XXX_Merge(src proto.Message)
func (*Commission) XXX_Size ¶ added in v0.43.0
func (m *Commission) XXX_Size() int
func (*Commission) XXX_Unmarshal ¶ added in v0.43.0
func (m *Commission) XXX_Unmarshal(b []byte) error
type CommissionRates ¶ added in v0.43.0
type CommissionRates struct { Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"` MaxRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */ MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ }
CommissionRates defines the initial commission rates to be used for creating a validator.
func (*CommissionRates) Descriptor ¶ added in v0.43.0
func (*CommissionRates) Descriptor() ([]byte, []int)
func (*CommissionRates) Equal ¶ added in v0.43.0
func (this *CommissionRates) Equal(that interface{}) bool
func (*CommissionRates) Marshal ¶ added in v0.43.0
func (m *CommissionRates) Marshal() (dAtA []byte, err error)
func (*CommissionRates) MarshalTo ¶ added in v0.43.0
func (m *CommissionRates) MarshalTo(dAtA []byte) (int, error)
func (*CommissionRates) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *CommissionRates) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CommissionRates) ProtoMessage ¶ added in v0.43.0
func (*CommissionRates) ProtoMessage()
func (*CommissionRates) Reset ¶ added in v0.43.0
func (m *CommissionRates) Reset()
func (*CommissionRates) Size ¶ added in v0.43.0
func (m *CommissionRates) Size() (n int)
func (CommissionRates) String ¶ added in v0.43.0
func (cr CommissionRates) String() string
String implements the Stringer interface for a CommissionRates object.
func (*CommissionRates) Unmarshal ¶ added in v0.43.0
func (m *CommissionRates) Unmarshal(dAtA []byte) error
func (*CommissionRates) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *CommissionRates) XXX_DiscardUnknown()
func (*CommissionRates) XXX_Marshal ¶ added in v0.43.0
func (m *CommissionRates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommissionRates) XXX_Merge ¶ added in v0.43.0
func (m *CommissionRates) XXX_Merge(src proto.Message)
func (*CommissionRates) XXX_Size ¶ added in v0.43.0
func (m *CommissionRates) XXX_Size() int
func (*CommissionRates) XXX_Unmarshal ¶ added in v0.43.0
func (m *CommissionRates) XXX_Unmarshal(b []byte) error
type DVPair ¶ added in v0.43.0
type DVPair struct { DelegatorAddress string `` /* 134-byte string literal not displayed */ ValidatorAddress string `` /* 134-byte string literal not displayed */ }
DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.
func (*DVPair) Descriptor ¶ added in v0.43.0
func (*DVPair) MarshalToSizedBuffer ¶ added in v0.43.0
func (*DVPair) ProtoMessage ¶ added in v0.43.0
func (*DVPair) ProtoMessage()
func (DVPair) String ¶ added in v0.43.0
String implements the Stringer interface for a DVPair object.
func (*DVPair) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *DVPair) XXX_DiscardUnknown()
func (*DVPair) XXX_Marshal ¶ added in v0.43.0
func (*DVPair) XXX_Unmarshal ¶ added in v0.43.0
type DVPairs ¶ added in v0.43.0
type DVPairs struct {
Pairs []DVPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}
DVPairs defines an array of DVPair objects.
func (*DVPairs) Descriptor ¶ added in v0.43.0
func (*DVPairs) MarshalToSizedBuffer ¶ added in v0.43.0
func (*DVPairs) ProtoMessage ¶ added in v0.43.0
func (*DVPairs) ProtoMessage()
func (*DVPairs) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *DVPairs) XXX_DiscardUnknown()
func (*DVPairs) XXX_Marshal ¶ added in v0.43.0
func (*DVPairs) XXX_Unmarshal ¶ added in v0.43.0
type DVVTriplet ¶ added in v0.43.0
type DVVTriplet struct { DelegatorAddress string `` /* 134-byte string literal not displayed */ ValidatorSrcAddress string `` /* 149-byte string literal not displayed */ ValidatorDstAddress string `` /* 149-byte string literal not displayed */ }
DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.
func (*DVVTriplet) Descriptor ¶ added in v0.43.0
func (*DVVTriplet) Descriptor() ([]byte, []int)
func (*DVVTriplet) Marshal ¶ added in v0.43.0
func (m *DVVTriplet) Marshal() (dAtA []byte, err error)
func (*DVVTriplet) MarshalTo ¶ added in v0.43.0
func (m *DVVTriplet) MarshalTo(dAtA []byte) (int, error)
func (*DVVTriplet) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *DVVTriplet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DVVTriplet) ProtoMessage ¶ added in v0.43.0
func (*DVVTriplet) ProtoMessage()
func (*DVVTriplet) Reset ¶ added in v0.43.0
func (m *DVVTriplet) Reset()
func (*DVVTriplet) Size ¶ added in v0.43.0
func (m *DVVTriplet) Size() (n int)
func (DVVTriplet) String ¶ added in v0.43.0
func (dvv DVVTriplet) String() string
String implements the Stringer interface for a DVVTriplet object.
func (*DVVTriplet) Unmarshal ¶ added in v0.43.0
func (m *DVVTriplet) Unmarshal(dAtA []byte) error
func (*DVVTriplet) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *DVVTriplet) XXX_DiscardUnknown()
func (*DVVTriplet) XXX_Marshal ¶ added in v0.43.0
func (m *DVVTriplet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DVVTriplet) XXX_Merge ¶ added in v0.43.0
func (m *DVVTriplet) XXX_Merge(src proto.Message)
func (*DVVTriplet) XXX_Size ¶ added in v0.43.0
func (m *DVVTriplet) XXX_Size() int
func (*DVVTriplet) XXX_Unmarshal ¶ added in v0.43.0
func (m *DVVTriplet) XXX_Unmarshal(b []byte) error
type DVVTriplets ¶ added in v0.43.0
type DVVTriplets struct {
Triplets []DVVTriplet `protobuf:"bytes,1,rep,name=triplets,proto3" json:"triplets"`
}
DVVTriplets defines an array of DVVTriplet objects.
func (*DVVTriplets) Descriptor ¶ added in v0.43.0
func (*DVVTriplets) Descriptor() ([]byte, []int)
func (*DVVTriplets) GetTriplets ¶ added in v0.43.0
func (m *DVVTriplets) GetTriplets() []DVVTriplet
func (*DVVTriplets) Marshal ¶ added in v0.43.0
func (m *DVVTriplets) Marshal() (dAtA []byte, err error)
func (*DVVTriplets) MarshalTo ¶ added in v0.43.0
func (m *DVVTriplets) MarshalTo(dAtA []byte) (int, error)
func (*DVVTriplets) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *DVVTriplets) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DVVTriplets) ProtoMessage ¶ added in v0.43.0
func (*DVVTriplets) ProtoMessage()
func (*DVVTriplets) Reset ¶ added in v0.43.0
func (m *DVVTriplets) Reset()
func (*DVVTriplets) Size ¶ added in v0.43.0
func (m *DVVTriplets) Size() (n int)
func (*DVVTriplets) String ¶ added in v0.43.0
func (m *DVVTriplets) String() string
func (*DVVTriplets) Unmarshal ¶ added in v0.43.0
func (m *DVVTriplets) Unmarshal(dAtA []byte) error
func (*DVVTriplets) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *DVVTriplets) XXX_DiscardUnknown()
func (*DVVTriplets) XXX_Marshal ¶ added in v0.43.0
func (m *DVVTriplets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DVVTriplets) XXX_Merge ¶ added in v0.43.0
func (m *DVVTriplets) XXX_Merge(src proto.Message)
func (*DVVTriplets) XXX_Size ¶ added in v0.43.0
func (m *DVVTriplets) XXX_Size() int
func (*DVVTriplets) XXX_Unmarshal ¶ added in v0.43.0
func (m *DVVTriplets) XXX_Unmarshal(b []byte) error
type Delegation ¶ added in v0.43.0
type Delegation struct { DelegatorAddress string `` /* 134-byte string literal not displayed */ ValidatorAddress string `` /* 134-byte string literal not displayed */ }
Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.
func (*Delegation) Descriptor ¶ added in v0.43.0
func (*Delegation) Descriptor() ([]byte, []int)
func (*Delegation) Marshal ¶ added in v0.43.0
func (m *Delegation) Marshal() (dAtA []byte, err error)
func (*Delegation) MarshalTo ¶ added in v0.43.0
func (m *Delegation) MarshalTo(dAtA []byte) (int, error)
func (*Delegation) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Delegation) ProtoMessage ¶ added in v0.43.0
func (*Delegation) ProtoMessage()
func (*Delegation) Reset ¶ added in v0.43.0
func (m *Delegation) Reset()
func (*Delegation) Size ¶ added in v0.43.0
func (m *Delegation) Size() (n int)
func (Delegation) String ¶ added in v0.43.0
func (d Delegation) String() string
String returns a human readable string representation of a Delegation.
func (*Delegation) Unmarshal ¶ added in v0.43.0
func (m *Delegation) Unmarshal(dAtA []byte) error
func (*Delegation) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *Delegation) XXX_DiscardUnknown()
func (*Delegation) XXX_Marshal ¶ added in v0.43.0
func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Delegation) XXX_Merge ¶ added in v0.43.0
func (m *Delegation) XXX_Merge(src proto.Message)
func (*Delegation) XXX_Size ¶ added in v0.43.0
func (m *Delegation) XXX_Size() int
func (*Delegation) XXX_Unmarshal ¶ added in v0.43.0
func (m *Delegation) XXX_Unmarshal(b []byte) error
type DelegationResponse ¶ added in v0.43.0
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 (*DelegationResponse) Descriptor ¶ added in v0.43.0
func (*DelegationResponse) Descriptor() ([]byte, []int)
func (*DelegationResponse) GetBalance ¶ added in v0.43.0
func (m *DelegationResponse) GetBalance() types2.Coin
func (*DelegationResponse) GetDelegation ¶ added in v0.43.0
func (m *DelegationResponse) GetDelegation() Delegation
func (*DelegationResponse) Marshal ¶ added in v0.43.0
func (m *DelegationResponse) Marshal() (dAtA []byte, err error)
func (*DelegationResponse) MarshalTo ¶ added in v0.43.0
func (m *DelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*DelegationResponse) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *DelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationResponse) ProtoMessage ¶ added in v0.43.0
func (*DelegationResponse) ProtoMessage()
func (*DelegationResponse) Reset ¶ added in v0.43.0
func (m *DelegationResponse) Reset()
func (*DelegationResponse) Size ¶ added in v0.43.0
func (m *DelegationResponse) Size() (n int)
func (DelegationResponse) String ¶ added in v0.43.0
func (d DelegationResponse) String() string
String implements the Stringer interface for DelegationResponse.
func (*DelegationResponse) Unmarshal ¶ added in v0.43.0
func (m *DelegationResponse) Unmarshal(dAtA []byte) error
func (*DelegationResponse) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *DelegationResponse) XXX_DiscardUnknown()
func (*DelegationResponse) XXX_Marshal ¶ added in v0.43.0
func (m *DelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationResponse) XXX_Merge ¶ added in v0.43.0
func (m *DelegationResponse) XXX_Merge(src proto.Message)
func (*DelegationResponse) XXX_Size ¶ added in v0.43.0
func (m *DelegationResponse) XXX_Size() int
func (*DelegationResponse) XXX_Unmarshal ¶ added in v0.43.0
func (m *DelegationResponse) XXX_Unmarshal(b []byte) error
type Delegations ¶ added in v0.43.0
type Delegations []Delegation
Delegations is a collection of delegations
func (Delegations) String ¶ added in v0.43.0
func (d Delegations) String() (out string)
type Description ¶ added in v0.43.0
type Description struct { Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"` SecurityContact string `` /* 130-byte string literal not displayed */ Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` }
Description defines a validator description.
func (*Description) Descriptor ¶ added in v0.43.0
func (*Description) Descriptor() ([]byte, []int)
func (*Description) Equal ¶ added in v0.43.0
func (this *Description) Equal(that interface{}) bool
func (*Description) GetDetails ¶ added in v0.43.0
func (m *Description) GetDetails() string
func (*Description) GetIdentity ¶ added in v0.43.0
func (m *Description) GetIdentity() string
func (*Description) GetMoniker ¶ added in v0.43.0
func (m *Description) GetMoniker() string
func (*Description) GetSecurityContact ¶ added in v0.43.0
func (m *Description) GetSecurityContact() string
func (*Description) GetWebsite ¶ added in v0.43.0
func (m *Description) GetWebsite() string
func (*Description) Marshal ¶ added in v0.43.0
func (m *Description) Marshal() (dAtA []byte, err error)
func (*Description) MarshalTo ¶ added in v0.43.0
func (m *Description) MarshalTo(dAtA []byte) (int, error)
func (*Description) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Description) ProtoMessage ¶ added in v0.43.0
func (*Description) ProtoMessage()
func (*Description) Reset ¶ added in v0.43.0
func (m *Description) Reset()
func (*Description) Size ¶ added in v0.43.0
func (m *Description) Size() (n int)
func (Description) String ¶ added in v0.43.0
func (d Description) String() string
String implements the Stringer interface for a Description object.
func (*Description) Unmarshal ¶ added in v0.43.0
func (m *Description) Unmarshal(dAtA []byte) error
func (*Description) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *Description) XXX_DiscardUnknown()
func (*Description) XXX_Marshal ¶ added in v0.43.0
func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Description) XXX_Merge ¶ added in v0.43.0
func (m *Description) XXX_Merge(src proto.Message)
func (*Description) XXX_Size ¶ added in v0.43.0
func (m *Description) XXX_Size() int
func (*Description) XXX_Unmarshal ¶ added in v0.43.0
func (m *Description) XXX_Unmarshal(b []byte) error
type GenesisState ¶ added in v0.43.0
type GenesisState struct { // params defines all the paramaters of related to deposit. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // last_total_power tracks the total amounts of bonded tokens recorded during // the previous end block. LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `` /* 169-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 `` /* 139-byte string literal not displayed */ // delegations defines the validator set at genesis. Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"` // delegations defines the delegations active at genesis. Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"` // unbonding_delegations defines the unbonding delegations active at genesis. UnbondingDelegations []UnbondingDelegation `` /* 140-byte string literal not displayed */ // redelegations defines the redelegations active at genesis. Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"` Exported bool `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"` }
GenesisState defines the staking module's genesis state.
func Migrate ¶
func Migrate(stakingState v038staking.GenesisState) *GenesisState
Migrate accepts exported v0.38 x/staking genesis state and migrates it to v0.40 x/staking genesis state. The migration includes:
- Convert addresses from bytes to bech32 strings. - Update BondStatus staking constants. - Re-encode in v0.40 GenesisState.
func (*GenesisState) Descriptor ¶ added in v0.43.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDelegations ¶ added in v0.43.0
func (m *GenesisState) GetDelegations() []Delegation
func (*GenesisState) GetExported ¶ added in v0.43.0
func (m *GenesisState) GetExported() bool
func (*GenesisState) GetLastValidatorPowers ¶ added in v0.43.0
func (m *GenesisState) GetLastValidatorPowers() []LastValidatorPower
func (*GenesisState) GetParams ¶ added in v0.43.0
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRedelegations ¶ added in v0.43.0
func (m *GenesisState) GetRedelegations() []Redelegation
func (*GenesisState) GetUnbondingDelegations ¶ added in v0.43.0
func (m *GenesisState) GetUnbondingDelegations() []UnbondingDelegation
func (*GenesisState) GetValidators ¶ added in v0.43.0
func (m *GenesisState) GetValidators() []Validator
func (*GenesisState) Marshal ¶ added in v0.43.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.43.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.43.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.43.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.43.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.43.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.43.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.43.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.43.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.43.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.43.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type HistoricalInfo ¶ added in v0.43.0
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 (*HistoricalInfo) Descriptor ¶ added in v0.43.0
func (*HistoricalInfo) Descriptor() ([]byte, []int)
func (*HistoricalInfo) GetHeader ¶ added in v0.43.0
func (m *HistoricalInfo) GetHeader() types.Header
func (*HistoricalInfo) GetValset ¶ added in v0.43.0
func (m *HistoricalInfo) GetValset() []Validator
func (*HistoricalInfo) Marshal ¶ added in v0.43.0
func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)
func (*HistoricalInfo) MarshalTo ¶ added in v0.43.0
func (m *HistoricalInfo) MarshalTo(dAtA []byte) (int, error)
func (*HistoricalInfo) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HistoricalInfo) ProtoMessage ¶ added in v0.43.0
func (*HistoricalInfo) ProtoMessage()
func (*HistoricalInfo) Reset ¶ added in v0.43.0
func (m *HistoricalInfo) Reset()
func (*HistoricalInfo) Size ¶ added in v0.43.0
func (m *HistoricalInfo) Size() (n int)
func (*HistoricalInfo) String ¶ added in v0.43.0
func (m *HistoricalInfo) String() string
func (*HistoricalInfo) Unmarshal ¶ added in v0.43.0
func (m *HistoricalInfo) Unmarshal(dAtA []byte) error
func (*HistoricalInfo) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *HistoricalInfo) XXX_DiscardUnknown()
func (*HistoricalInfo) XXX_Marshal ¶ added in v0.43.0
func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoricalInfo) XXX_Merge ¶ added in v0.43.0
func (m *HistoricalInfo) XXX_Merge(src proto.Message)
func (*HistoricalInfo) XXX_Size ¶ added in v0.43.0
func (m *HistoricalInfo) XXX_Size() int
func (*HistoricalInfo) XXX_Unmarshal ¶ added in v0.43.0
func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
type LastValidatorPower ¶ added in v0.43.0
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.43.0
func (*LastValidatorPower) Descriptor() ([]byte, []int)
func (*LastValidatorPower) Marshal ¶ added in v0.43.0
func (m *LastValidatorPower) Marshal() (dAtA []byte, err error)
func (*LastValidatorPower) MarshalTo ¶ added in v0.43.0
func (m *LastValidatorPower) MarshalTo(dAtA []byte) (int, error)
func (*LastValidatorPower) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *LastValidatorPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LastValidatorPower) ProtoMessage ¶ added in v0.43.0
func (*LastValidatorPower) ProtoMessage()
func (*LastValidatorPower) Reset ¶ added in v0.43.0
func (m *LastValidatorPower) Reset()
func (*LastValidatorPower) Size ¶ added in v0.43.0
func (m *LastValidatorPower) Size() (n int)
func (*LastValidatorPower) String ¶ added in v0.43.0
func (m *LastValidatorPower) String() string
func (*LastValidatorPower) Unmarshal ¶ added in v0.43.0
func (m *LastValidatorPower) Unmarshal(dAtA []byte) error
func (*LastValidatorPower) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *LastValidatorPower) XXX_DiscardUnknown()
func (*LastValidatorPower) XXX_Marshal ¶ added in v0.43.0
func (m *LastValidatorPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LastValidatorPower) XXX_Merge ¶ added in v0.43.0
func (m *LastValidatorPower) XXX_Merge(src proto.Message)
func (*LastValidatorPower) XXX_Size ¶ added in v0.43.0
func (m *LastValidatorPower) XXX_Size() int
func (*LastValidatorPower) XXX_Unmarshal ¶ added in v0.43.0
func (m *LastValidatorPower) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.43.0
type Params struct { UnbondingTime time.Duration `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time" yaml:"unbonding_time"` MaxValidators uint32 `protobuf:"varint,2,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty" yaml:"max_validators"` MaxEntries uint32 `protobuf:"varint,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty" yaml:"max_entries"` HistoricalEntries uint32 `` /* 139-byte string literal not displayed */ BondDenom string `protobuf:"bytes,5,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty" yaml:"bond_denom"` }
Params defines the parameters for the staking module.
func DefaultParams ¶ added in v0.43.0
func DefaultParams() Params
func NewParams ¶ added in v0.43.0
func NewParams(unbondingTime time.Duration, maxValidators, maxEntries, historicalEntries uint32, bondDenom string) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶ added in v0.43.0
func (*Params) GetBondDenom ¶ added in v0.43.0
func (*Params) GetHistoricalEntries ¶ added in v0.43.0
func (*Params) GetMaxEntries ¶ added in v0.43.0
func (*Params) GetMaxValidators ¶ added in v0.43.0
func (*Params) GetUnbondingTime ¶ added in v0.43.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.43.0
func (*Params) ProtoMessage ¶ added in v0.43.0
func (*Params) ProtoMessage()
func (Params) String ¶ added in v0.43.0
String returns a human readable string representation of the parameters.
func (*Params) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.43.0
func (*Params) XXX_Unmarshal ¶ added in v0.43.0
type Pool ¶ added in v0.43.0
type Pool struct { NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 148-byte string literal not displayed */ BondedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 158-byte string literal not displayed */ }
Pool is used for tracking bonded and not-bonded token supply of the bond denomination.
func (*Pool) Description ¶ added in v0.43.0
func (this *Pool) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
func (*Pool) Descriptor ¶ added in v0.43.0
func (*Pool) MarshalToSizedBuffer ¶ added in v0.43.0
func (*Pool) ProtoMessage ¶ added in v0.43.0
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Marshal ¶ added in v0.43.0
func (*Pool) XXX_Unmarshal ¶ added in v0.43.0
type Redelegation ¶ added in v0.43.0
type Redelegation struct { DelegatorAddress string `` /* 134-byte string literal not displayed */ ValidatorSrcAddress string `` /* 149-byte string literal not displayed */ ValidatorDstAddress string `` /* 149-byte string literal not displayed */ Entries []RedelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries"` }
Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.
func (*Redelegation) Descriptor ¶ added in v0.43.0
func (*Redelegation) Descriptor() ([]byte, []int)
func (*Redelegation) Marshal ¶ added in v0.43.0
func (m *Redelegation) Marshal() (dAtA []byte, err error)
func (*Redelegation) MarshalTo ¶ added in v0.43.0
func (m *Redelegation) MarshalTo(dAtA []byte) (int, error)
func (*Redelegation) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Redelegation) ProtoMessage ¶ added in v0.43.0
func (*Redelegation) ProtoMessage()
func (*Redelegation) Reset ¶ added in v0.43.0
func (m *Redelegation) Reset()
func (*Redelegation) Size ¶ added in v0.43.0
func (m *Redelegation) Size() (n int)
func (Redelegation) String ¶ added in v0.43.0
func (red Redelegation) String() string
String returns a human readable string representation of a Redelegation.
func (*Redelegation) Unmarshal ¶ added in v0.43.0
func (m *Redelegation) Unmarshal(dAtA []byte) error
func (*Redelegation) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *Redelegation) XXX_DiscardUnknown()
func (*Redelegation) XXX_Marshal ¶ added in v0.43.0
func (m *Redelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Redelegation) XXX_Merge ¶ added in v0.43.0
func (m *Redelegation) XXX_Merge(src proto.Message)
func (*Redelegation) XXX_Size ¶ added in v0.43.0
func (m *Redelegation) XXX_Size() int
func (*Redelegation) XXX_Unmarshal ¶ added in v0.43.0
func (m *Redelegation) XXX_Unmarshal(b []byte) error
type RedelegationEntry ¶ added in v0.43.0
type RedelegationEntry struct { CreationHeight int64 `` /* 127-byte string literal not displayed */ CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */ }
RedelegationEntry defines a redelegation object with relevant metadata.
func (*RedelegationEntry) Descriptor ¶ added in v0.43.0
func (*RedelegationEntry) Descriptor() ([]byte, []int)
func (*RedelegationEntry) Equal ¶ added in v0.43.0
func (this *RedelegationEntry) Equal(that interface{}) bool
func (*RedelegationEntry) GetCompletionTime ¶ added in v0.43.0
func (m *RedelegationEntry) GetCompletionTime() time.Time
func (*RedelegationEntry) GetCreationHeight ¶ added in v0.43.0
func (m *RedelegationEntry) GetCreationHeight() int64
func (*RedelegationEntry) Marshal ¶ added in v0.43.0
func (m *RedelegationEntry) Marshal() (dAtA []byte, err error)
func (*RedelegationEntry) MarshalTo ¶ added in v0.43.0
func (m *RedelegationEntry) MarshalTo(dAtA []byte) (int, error)
func (*RedelegationEntry) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *RedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RedelegationEntry) ProtoMessage ¶ added in v0.43.0
func (*RedelegationEntry) ProtoMessage()
func (*RedelegationEntry) Reset ¶ added in v0.43.0
func (m *RedelegationEntry) Reset()
func (*RedelegationEntry) Size ¶ added in v0.43.0
func (m *RedelegationEntry) Size() (n int)
func (RedelegationEntry) String ¶ added in v0.43.0
func (e RedelegationEntry) String() string
String implements the Stringer interface for a RedelegationEntry object.
func (*RedelegationEntry) Unmarshal ¶ added in v0.43.0
func (m *RedelegationEntry) Unmarshal(dAtA []byte) error
func (*RedelegationEntry) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *RedelegationEntry) XXX_DiscardUnknown()
func (*RedelegationEntry) XXX_Marshal ¶ added in v0.43.0
func (m *RedelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedelegationEntry) XXX_Merge ¶ added in v0.43.0
func (m *RedelegationEntry) XXX_Merge(src proto.Message)
func (*RedelegationEntry) XXX_Size ¶ added in v0.43.0
func (m *RedelegationEntry) XXX_Size() int
func (*RedelegationEntry) XXX_Unmarshal ¶ added in v0.43.0
func (m *RedelegationEntry) XXX_Unmarshal(b []byte) error
type RedelegationEntryResponse ¶ added in v0.43.0
type RedelegationEntryResponse struct { RedelegationEntry RedelegationEntry `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry"` Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` }
RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.
func (*RedelegationEntryResponse) Descriptor ¶ added in v0.43.0
func (*RedelegationEntryResponse) Descriptor() ([]byte, []int)
func (*RedelegationEntryResponse) Equal ¶ added in v0.43.0
func (this *RedelegationEntryResponse) Equal(that interface{}) bool
func (*RedelegationEntryResponse) GetRedelegationEntry ¶ added in v0.43.0
func (m *RedelegationEntryResponse) GetRedelegationEntry() RedelegationEntry
func (*RedelegationEntryResponse) Marshal ¶ added in v0.43.0
func (m *RedelegationEntryResponse) Marshal() (dAtA []byte, err error)
func (*RedelegationEntryResponse) MarshalTo ¶ added in v0.43.0
func (m *RedelegationEntryResponse) MarshalTo(dAtA []byte) (int, error)
func (*RedelegationEntryResponse) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *RedelegationEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RedelegationEntryResponse) ProtoMessage ¶ added in v0.43.0
func (*RedelegationEntryResponse) ProtoMessage()
func (*RedelegationEntryResponse) Reset ¶ added in v0.43.0
func (m *RedelegationEntryResponse) Reset()
func (*RedelegationEntryResponse) Size ¶ added in v0.43.0
func (m *RedelegationEntryResponse) Size() (n int)
func (*RedelegationEntryResponse) String ¶ added in v0.43.0
func (m *RedelegationEntryResponse) String() string
func (*RedelegationEntryResponse) Unmarshal ¶ added in v0.43.0
func (m *RedelegationEntryResponse) Unmarshal(dAtA []byte) error
func (*RedelegationEntryResponse) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *RedelegationEntryResponse) XXX_DiscardUnknown()
func (*RedelegationEntryResponse) XXX_Marshal ¶ added in v0.43.0
func (m *RedelegationEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedelegationEntryResponse) XXX_Merge ¶ added in v0.43.0
func (m *RedelegationEntryResponse) XXX_Merge(src proto.Message)
func (*RedelegationEntryResponse) XXX_Size ¶ added in v0.43.0
func (m *RedelegationEntryResponse) XXX_Size() int
func (*RedelegationEntryResponse) XXX_Unmarshal ¶ added in v0.43.0
func (m *RedelegationEntryResponse) XXX_Unmarshal(b []byte) error
type RedelegationResponse ¶ added in v0.43.0
type RedelegationResponse struct { Redelegation Redelegation `protobuf:"bytes,1,opt,name=redelegation,proto3" json:"redelegation"` Entries []RedelegationEntryResponse `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries"` }
RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.
func (*RedelegationResponse) Descriptor ¶ added in v0.43.0
func (*RedelegationResponse) Descriptor() ([]byte, []int)
func (*RedelegationResponse) GetEntries ¶ added in v0.43.0
func (m *RedelegationResponse) GetEntries() []RedelegationEntryResponse
func (*RedelegationResponse) GetRedelegation ¶ added in v0.43.0
func (m *RedelegationResponse) GetRedelegation() Redelegation
func (*RedelegationResponse) Marshal ¶ added in v0.43.0
func (m *RedelegationResponse) Marshal() (dAtA []byte, err error)
func (*RedelegationResponse) MarshalTo ¶ added in v0.43.0
func (m *RedelegationResponse) MarshalTo(dAtA []byte) (int, error)
func (*RedelegationResponse) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *RedelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RedelegationResponse) ProtoMessage ¶ added in v0.43.0
func (*RedelegationResponse) ProtoMessage()
func (*RedelegationResponse) Reset ¶ added in v0.43.0
func (m *RedelegationResponse) Reset()
func (*RedelegationResponse) Size ¶ added in v0.43.0
func (m *RedelegationResponse) Size() (n int)
func (*RedelegationResponse) String ¶ added in v0.43.0
func (m *RedelegationResponse) String() string
func (*RedelegationResponse) Unmarshal ¶ added in v0.43.0
func (m *RedelegationResponse) Unmarshal(dAtA []byte) error
func (*RedelegationResponse) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *RedelegationResponse) XXX_DiscardUnknown()
func (*RedelegationResponse) XXX_Marshal ¶ added in v0.43.0
func (m *RedelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedelegationResponse) XXX_Merge ¶ added in v0.43.0
func (m *RedelegationResponse) XXX_Merge(src proto.Message)
func (*RedelegationResponse) XXX_Size ¶ added in v0.43.0
func (m *RedelegationResponse) XXX_Size() int
func (*RedelegationResponse) XXX_Unmarshal ¶ added in v0.43.0
func (m *RedelegationResponse) XXX_Unmarshal(b []byte) error
type Redelegations ¶ added in v0.43.0
type Redelegations []Redelegation
Redelegations are a collection of Redelegation
func (Redelegations) String ¶ added in v0.43.0
func (d Redelegations) String() (out string)
type UnbondingDelegation ¶ added in v0.43.0
type UnbondingDelegation struct { DelegatorAddress string `` /* 134-byte string literal not displayed */ ValidatorAddress string `` /* 134-byte string literal not displayed */ Entries []UnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"` }
UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.
func (*UnbondingDelegation) Descriptor ¶ added in v0.43.0
func (*UnbondingDelegation) Descriptor() ([]byte, []int)
func (*UnbondingDelegation) Marshal ¶ added in v0.43.0
func (m *UnbondingDelegation) Marshal() (dAtA []byte, err error)
func (*UnbondingDelegation) MarshalTo ¶ added in v0.43.0
func (m *UnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
func (*UnbondingDelegation) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *UnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbondingDelegation) ProtoMessage ¶ added in v0.43.0
func (*UnbondingDelegation) ProtoMessage()
func (*UnbondingDelegation) Reset ¶ added in v0.43.0
func (m *UnbondingDelegation) Reset()
func (*UnbondingDelegation) Size ¶ added in v0.43.0
func (m *UnbondingDelegation) Size() (n int)
func (UnbondingDelegation) String ¶ added in v0.43.0
func (ubd UnbondingDelegation) String() string
String returns a human readable string representation of an UnbondingDelegation.
func (*UnbondingDelegation) Unmarshal ¶ added in v0.43.0
func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error
func (*UnbondingDelegation) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *UnbondingDelegation) XXX_DiscardUnknown()
func (*UnbondingDelegation) XXX_Marshal ¶ added in v0.43.0
func (m *UnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbondingDelegation) XXX_Merge ¶ added in v0.43.0
func (m *UnbondingDelegation) XXX_Merge(src proto.Message)
func (*UnbondingDelegation) XXX_Size ¶ added in v0.43.0
func (m *UnbondingDelegation) XXX_Size() int
func (*UnbondingDelegation) XXX_Unmarshal ¶ added in v0.43.0
func (m *UnbondingDelegation) XXX_Unmarshal(b []byte) error
type UnbondingDelegationEntry ¶ added in v0.43.0
type UnbondingDelegationEntry struct { CreationHeight int64 `` /* 127-byte string literal not displayed */ CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */ Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` }
UnbondingDelegationEntry defines an unbonding object with relevant metadata.
func (*UnbondingDelegationEntry) Descriptor ¶ added in v0.43.0
func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int)
func (*UnbondingDelegationEntry) Equal ¶ added in v0.43.0
func (this *UnbondingDelegationEntry) Equal(that interface{}) bool
func (*UnbondingDelegationEntry) GetCompletionTime ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time
func (*UnbondingDelegationEntry) GetCreationHeight ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) GetCreationHeight() int64
func (*UnbondingDelegationEntry) Marshal ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) Marshal() (dAtA []byte, err error)
func (*UnbondingDelegationEntry) MarshalTo ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) MarshalTo(dAtA []byte) (int, error)
func (*UnbondingDelegationEntry) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbondingDelegationEntry) ProtoMessage ¶ added in v0.43.0
func (*UnbondingDelegationEntry) ProtoMessage()
func (*UnbondingDelegationEntry) Reset ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) Reset()
func (*UnbondingDelegationEntry) Size ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) Size() (n int)
func (UnbondingDelegationEntry) String ¶ added in v0.43.0
func (e UnbondingDelegationEntry) String() string
String implements the stringer interface for a UnbondingDelegationEntry.
func (*UnbondingDelegationEntry) Unmarshal ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error
func (*UnbondingDelegationEntry) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()
func (*UnbondingDelegationEntry) XXX_Marshal ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbondingDelegationEntry) XXX_Merge ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) XXX_Merge(src proto.Message)
func (*UnbondingDelegationEntry) XXX_Size ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) XXX_Size() int
func (*UnbondingDelegationEntry) XXX_Unmarshal ¶ added in v0.43.0
func (m *UnbondingDelegationEntry) XXX_Unmarshal(b []byte) error
type UnbondingDelegations ¶ added in v0.43.0
type UnbondingDelegations []UnbondingDelegation
UnbondingDelegations is a collection of UnbondingDelegation
func (UnbondingDelegations) String ¶ added in v0.43.0
func (ubds UnbondingDelegations) String() (out string)
type ValAddresses ¶ added in v0.43.0
type ValAddresses struct {
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}
ValAddresses defines a repeated set of validator addresses.
func (*ValAddresses) Descriptor ¶ added in v0.43.0
func (*ValAddresses) Descriptor() ([]byte, []int)
func (*ValAddresses) GetAddresses ¶ added in v0.43.0
func (m *ValAddresses) GetAddresses() []string
func (*ValAddresses) Marshal ¶ added in v0.43.0
func (m *ValAddresses) Marshal() (dAtA []byte, err error)
func (*ValAddresses) MarshalTo ¶ added in v0.43.0
func (m *ValAddresses) MarshalTo(dAtA []byte) (int, error)
func (*ValAddresses) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *ValAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValAddresses) ProtoMessage ¶ added in v0.43.0
func (*ValAddresses) ProtoMessage()
func (*ValAddresses) Reset ¶ added in v0.43.0
func (m *ValAddresses) Reset()
func (*ValAddresses) Size ¶ added in v0.43.0
func (m *ValAddresses) Size() (n int)
func (*ValAddresses) String ¶ added in v0.43.0
func (this *ValAddresses) String() string
func (*ValAddresses) Unmarshal ¶ added in v0.43.0
func (m *ValAddresses) Unmarshal(dAtA []byte) error
func (*ValAddresses) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *ValAddresses) XXX_DiscardUnknown()
func (*ValAddresses) XXX_Marshal ¶ added in v0.43.0
func (m *ValAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValAddresses) XXX_Merge ¶ added in v0.43.0
func (m *ValAddresses) XXX_Merge(src proto.Message)
func (*ValAddresses) XXX_Size ¶ added in v0.43.0
func (m *ValAddresses) XXX_Size() int
func (*ValAddresses) XXX_Unmarshal ¶ added in v0.43.0
func (m *ValAddresses) XXX_Unmarshal(b []byte) error
type Validator ¶ added in v0.43.0
type Validator struct { OperatorAddress string `` /* 130-byte string literal not displayed */ ConsensusPubkey *types1.Any `` /* 130-byte string literal not displayed */ Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"` Status BondStatus `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status,omitempty"` Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens"` Description Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description"` UnbondingHeight int64 `` /* 131-byte string literal not displayed */ UnbondingTime time.Time `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3,stdtime" json:"unbonding_time" yaml:"unbonding_time"` Commission Commission `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission"` MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 182-byte string literal not displayed */ }
Validator defines a validator, together with the total amount of the Validator's bond shares and their exchange rate to coins. Slashing results in a decrease in the exchange rate, allowing correct calculation of future undelegations without iterating over delegators. When coins are delegated to this validator, the validator is credited with a delegation whose number of bond shares is based on the amount of coins delegated divided by the current exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate.
func (*Validator) Descriptor ¶ added in v0.43.0
func (*Validator) MarshalToSizedBuffer ¶ added in v0.43.0
func (*Validator) ProtoMessage ¶ added in v0.43.0
func (*Validator) ProtoMessage()
func (Validator) String ¶ added in v0.43.0
String implements the Stringer interface for a Validator object.
func (*Validator) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶ added in v0.43.0
func (*Validator) XXX_Unmarshal ¶ added in v0.43.0
type Validators ¶ added in v0.43.0
type Validators []Validator
Validators is a collection of Validator
func (Validators) String ¶ added in v0.43.0
func (v Validators) String() (out string)