Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DelegationDataKey(stakerAddress string) []byte
- func DelegationEntriesKey(stakerAddress string, kIndex uint64) []byte
- func DelegationSlashEntriesKey(stakerAddress string, kIndex uint64) []byte
- func DelegatorKey(stakerAddress string, delegatorAddress string) []byte
- func DelegatorKeyIndex2(delegatorAddress string, stakerAddress string) []byte
- func RedelegationCooldownKey(delegator string, block uint64) []byte
- func RegisterInterfaces(registry codecTypes.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 StakerIndexKey(amount uint64, stakerAddress string) []byte
- func UndelegationQueueKey(kIndex uint64) []byte
- func UndelegationQueueKeyIndex2(stakerAddress string, kIndex uint64) []byte
- type AccountKeeper
- type DelegationData
- func (*DelegationData) Descriptor() ([]byte, []int)
- func (m *DelegationData) GetCurrentRewards() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *DelegationData) GetDelegatorCount() uint64
- func (m *DelegationData) GetLatestIndexK() uint64
- func (m *DelegationData) GetLatestIndexWasUndelegation() bool
- func (m *DelegationData) GetStaker() string
- func (m *DelegationData) GetTotalDelegation() uint64
- func (m *DelegationData) Marshal() (dAtA []byte, err error)
- func (m *DelegationData) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegationData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegationData) ProtoMessage()
- func (m *DelegationData) Reset()
- func (m *DelegationData) Size() (n int)
- func (m *DelegationData) String() string
- func (m *DelegationData) Unmarshal(dAtA []byte) error
- func (m *DelegationData) XXX_DiscardUnknown()
- func (m *DelegationData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegationData) XXX_Merge(src proto.Message)
- func (m *DelegationData) XXX_Size() int
- func (m *DelegationData) XXX_Unmarshal(b []byte) error
- type DelegationEntry
- func (*DelegationEntry) Descriptor() ([]byte, []int)
- func (m *DelegationEntry) GetKIndex() uint64
- func (m *DelegationEntry) GetStaker() string
- func (m *DelegationEntry) GetValue() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *DelegationEntry) Marshal() (dAtA []byte, err error)
- func (m *DelegationEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegationEntry) ProtoMessage()
- func (m *DelegationEntry) Reset()
- func (m *DelegationEntry) Size() (n int)
- func (m *DelegationEntry) String() string
- func (m *DelegationEntry) Unmarshal(dAtA []byte) error
- func (m *DelegationEntry) XXX_DiscardUnknown()
- func (m *DelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegationEntry) XXX_Merge(src proto.Message)
- func (m *DelegationEntry) XXX_Size() int
- func (m *DelegationEntry) XXX_Unmarshal(b []byte) error
- type DelegationKVStoreService
- type DelegationSlash
- func (*DelegationSlash) Descriptor() ([]byte, []int)
- func (m *DelegationSlash) GetKIndex() uint64
- func (m *DelegationSlash) GetStaker() string
- func (m *DelegationSlash) Marshal() (dAtA []byte, err error)
- func (m *DelegationSlash) MarshalTo(dAtA []byte) (int, error)
- func (m *DelegationSlash) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelegationSlash) ProtoMessage()
- func (m *DelegationSlash) Reset()
- func (m *DelegationSlash) Size() (n int)
- func (m *DelegationSlash) String() string
- func (m *DelegationSlash) Unmarshal(dAtA []byte) error
- func (m *DelegationSlash) XXX_DiscardUnknown()
- func (m *DelegationSlash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelegationSlash) XXX_Merge(src proto.Message)
- func (m *DelegationSlash) XXX_Size() int
- func (m *DelegationSlash) XXX_Unmarshal(b []byte) error
- type Delegator
- func (*Delegator) Descriptor() ([]byte, []int)
- func (m *Delegator) GetDelegator() string
- func (m *Delegator) GetInitialAmount() uint64
- func (m *Delegator) GetKIndex() uint64
- func (m *Delegator) GetStaker() string
- func (m *Delegator) Marshal() (dAtA []byte, err error)
- func (m *Delegator) MarshalTo(dAtA []byte) (int, error)
- func (m *Delegator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Delegator) ProtoMessage()
- func (m *Delegator) Reset()
- func (m *Delegator) Size() (n int)
- func (m *Delegator) String() string
- func (m *Delegator) Unmarshal(dAtA []byte) error
- func (m *Delegator) XXX_DiscardUnknown()
- func (m *Delegator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Delegator) XXX_Merge(src proto.Message)
- func (m *Delegator) XXX_Size() int
- func (m *Delegator) XXX_Unmarshal(b []byte) error
- type DistrKeeper
- type EventDelegate
- func (*EventDelegate) Descriptor() ([]byte, []int)
- func (m *EventDelegate) GetAddress() string
- func (m *EventDelegate) GetAmount() uint64
- func (m *EventDelegate) GetStaker() string
- func (m *EventDelegate) Marshal() (dAtA []byte, err error)
- func (m *EventDelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDelegate) ProtoMessage()
- func (m *EventDelegate) Reset()
- func (m *EventDelegate) Size() (n int)
- func (m *EventDelegate) String() string
- func (m *EventDelegate) Unmarshal(dAtA []byte) error
- func (m *EventDelegate) XXX_DiscardUnknown()
- func (m *EventDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDelegate) XXX_Merge(src proto.Message)
- func (m *EventDelegate) XXX_Size() int
- func (m *EventDelegate) XXX_Unmarshal(b []byte) error
- type EventRedelegate
- func (*EventRedelegate) Descriptor() ([]byte, []int)
- func (m *EventRedelegate) GetAddress() string
- func (m *EventRedelegate) GetAmount() uint64
- func (m *EventRedelegate) GetFromStaker() string
- func (m *EventRedelegate) GetToStaker() string
- func (m *EventRedelegate) Marshal() (dAtA []byte, err error)
- func (m *EventRedelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRedelegate) ProtoMessage()
- func (m *EventRedelegate) Reset()
- func (m *EventRedelegate) Size() (n int)
- func (m *EventRedelegate) String() string
- func (m *EventRedelegate) Unmarshal(dAtA []byte) error
- func (m *EventRedelegate) XXX_DiscardUnknown()
- func (m *EventRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRedelegate) XXX_Merge(src proto.Message)
- func (m *EventRedelegate) XXX_Size() int
- func (m *EventRedelegate) XXX_Unmarshal(b []byte) error
- type EventSlash
- func (*EventSlash) Descriptor() ([]byte, []int)
- func (m *EventSlash) GetAmount() uint64
- func (m *EventSlash) GetPoolId() uint64
- func (m *EventSlash) GetSlashType() SlashType
- func (m *EventSlash) GetStaker() string
- func (m *EventSlash) Marshal() (dAtA []byte, err error)
- func (m *EventSlash) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSlash) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSlash) ProtoMessage()
- func (m *EventSlash) Reset()
- func (m *EventSlash) Size() (n int)
- func (m *EventSlash) String() string
- func (m *EventSlash) Unmarshal(dAtA []byte) error
- func (m *EventSlash) XXX_DiscardUnknown()
- func (m *EventSlash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSlash) XXX_Merge(src proto.Message)
- func (m *EventSlash) XXX_Size() int
- func (m *EventSlash) XXX_Unmarshal(b []byte) error
- type EventStartUndelegation
- func (*EventStartUndelegation) Descriptor() ([]byte, []int)
- func (m *EventStartUndelegation) GetAddress() string
- func (m *EventStartUndelegation) GetAmount() uint64
- func (m *EventStartUndelegation) GetEstimatedUndelegationDate() uint64
- func (m *EventStartUndelegation) GetStaker() string
- func (m *EventStartUndelegation) Marshal() (dAtA []byte, err error)
- func (m *EventStartUndelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *EventStartUndelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventStartUndelegation) ProtoMessage()
- func (m *EventStartUndelegation) Reset()
- func (m *EventStartUndelegation) Size() (n int)
- func (m *EventStartUndelegation) String() string
- func (m *EventStartUndelegation) Unmarshal(dAtA []byte) error
- func (m *EventStartUndelegation) XXX_DiscardUnknown()
- func (m *EventStartUndelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventStartUndelegation) XXX_Merge(src proto.Message)
- func (m *EventStartUndelegation) XXX_Size() int
- func (m *EventStartUndelegation) XXX_Unmarshal(b []byte) error
- type EventUndelegate
- func (*EventUndelegate) Descriptor() ([]byte, []int)
- func (m *EventUndelegate) GetAddress() string
- func (m *EventUndelegate) GetAmount() uint64
- func (m *EventUndelegate) GetStaker() string
- func (m *EventUndelegate) Marshal() (dAtA []byte, err error)
- func (m *EventUndelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUndelegate) ProtoMessage()
- func (m *EventUndelegate) Reset()
- func (m *EventUndelegate) Size() (n int)
- func (m *EventUndelegate) String() string
- func (m *EventUndelegate) Unmarshal(dAtA []byte) error
- func (m *EventUndelegate) XXX_DiscardUnknown()
- func (m *EventUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUndelegate) XXX_Merge(src proto.Message)
- func (m *EventUndelegate) XXX_Size() int
- func (m *EventUndelegate) XXX_Unmarshal(b []byte) error
- type EventUpdateParams
- func (*EventUpdateParams) Descriptor() ([]byte, []int)
- func (m *EventUpdateParams) GetNewParams() Params
- func (m *EventUpdateParams) GetOldParams() Params
- func (m *EventUpdateParams) GetPayload() string
- func (m *EventUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateParams) ProtoMessage()
- func (m *EventUpdateParams) Reset()
- func (m *EventUpdateParams) Size() (n int)
- func (m *EventUpdateParams) String() string
- func (m *EventUpdateParams) Unmarshal(dAtA []byte) error
- func (m *EventUpdateParams) XXX_DiscardUnknown()
- func (m *EventUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateParams) XXX_Merge(src proto.Message)
- func (m *EventUpdateParams) XXX_Size() int
- func (m *EventUpdateParams) XXX_Unmarshal(b []byte) error
- type EventWithdrawRewards
- func (*EventWithdrawRewards) Descriptor() ([]byte, []int)
- func (m *EventWithdrawRewards) GetAddress() string
- func (m *EventWithdrawRewards) GetAmounts() string
- func (m *EventWithdrawRewards) GetStaker() string
- func (m *EventWithdrawRewards) Marshal() (dAtA []byte, err error)
- func (m *EventWithdrawRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *EventWithdrawRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventWithdrawRewards) ProtoMessage()
- func (m *EventWithdrawRewards) Reset()
- func (m *EventWithdrawRewards) Size() (n int)
- func (m *EventWithdrawRewards) String() string
- func (m *EventWithdrawRewards) Unmarshal(dAtA []byte) error
- func (m *EventWithdrawRewards) XXX_DiscardUnknown()
- func (m *EventWithdrawRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventWithdrawRewards) XXX_Merge(src proto.Message)
- func (m *EventWithdrawRewards) XXX_Size() int
- func (m *EventWithdrawRewards) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDelegationDataList() []DelegationData
- func (m *GenesisState) GetDelegationEntryList() []DelegationEntry
- func (m *GenesisState) GetDelegationSlashList() []DelegationSlash
- func (m *GenesisState) GetDelegatorList() []Delegator
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetQueueStateUndelegation() QueueState
- func (m *GenesisState) GetRedelegationCooldownList() []RedelegationCooldown
- func (m *GenesisState) GetUndelegationQueueEntryList() []UndelegationQueueEntry
- 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 (gs *GenesisState) Validate() 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 MsgClient
- type MsgDelegate
- func (*MsgDelegate) Descriptor() ([]byte, []int)
- func (m *MsgDelegate) GetAmount() uint64
- func (m *MsgDelegate) GetCreator() string
- func (msg *MsgDelegate) GetSignBytes() []byte
- func (msg *MsgDelegate) GetSigners() []sdk.AccAddress
- func (m *MsgDelegate) GetStaker() string
- func (m *MsgDelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgDelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelegate) ProtoMessage()
- func (m *MsgDelegate) Reset()
- func (msg *MsgDelegate) Route() string
- func (m *MsgDelegate) Size() (n int)
- func (m *MsgDelegate) String() string
- func (msg *MsgDelegate) Type() string
- func (m *MsgDelegate) Unmarshal(dAtA []byte) error
- func (msg *MsgDelegate) ValidateBasic() error
- func (m *MsgDelegate) XXX_DiscardUnknown()
- func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelegate) XXX_Merge(src proto.Message)
- func (m *MsgDelegate) XXX_Size() int
- func (m *MsgDelegate) XXX_Unmarshal(b []byte) error
- type 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 MsgRedelegate
- func (*MsgRedelegate) Descriptor() ([]byte, []int)
- func (m *MsgRedelegate) GetAmount() uint64
- func (m *MsgRedelegate) GetCreator() string
- func (m *MsgRedelegate) GetFromStaker() string
- func (msg *MsgRedelegate) GetSignBytes() []byte
- func (msg *MsgRedelegate) GetSigners() []sdk.AccAddress
- func (m *MsgRedelegate) GetToStaker() string
- func (m *MsgRedelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgRedelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedelegate) ProtoMessage()
- func (m *MsgRedelegate) Reset()
- func (msg *MsgRedelegate) Route() string
- func (m *MsgRedelegate) Size() (n int)
- func (m *MsgRedelegate) String() string
- func (msg *MsgRedelegate) Type() string
- func (m *MsgRedelegate) Unmarshal(dAtA []byte) error
- func (msg *MsgRedelegate) ValidateBasic() error
- func (m *MsgRedelegate) XXX_DiscardUnknown()
- func (m *MsgRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedelegate) XXX_Merge(src proto.Message)
- func (m *MsgRedelegate) XXX_Size() int
- func (m *MsgRedelegate) XXX_Unmarshal(b []byte) error
- type MsgRedelegateResponse
- func (*MsgRedelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgRedelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRedelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedelegateResponse) ProtoMessage()
- func (m *MsgRedelegateResponse) Reset()
- func (m *MsgRedelegateResponse) Size() (n int)
- func (m *MsgRedelegateResponse) String() string
- func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRedelegateResponse) XXX_DiscardUnknown()
- func (m *MsgRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgRedelegateResponse) XXX_Size() int
- func (m *MsgRedelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUndelegate
- func (*MsgUndelegate) Descriptor() ([]byte, []int)
- func (m *MsgUndelegate) GetAmount() uint64
- func (m *MsgUndelegate) GetCreator() string
- func (msg *MsgUndelegate) GetSignBytes() []byte
- func (msg *MsgUndelegate) GetSigners() []sdk.AccAddress
- func (m *MsgUndelegate) GetStaker() string
- func (m *MsgUndelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgUndelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUndelegate) ProtoMessage()
- func (m *MsgUndelegate) Reset()
- func (msg *MsgUndelegate) Route() string
- func (m *MsgUndelegate) Size() (n int)
- func (m *MsgUndelegate) String() string
- func (msg *MsgUndelegate) Type() string
- func (m *MsgUndelegate) Unmarshal(dAtA []byte) error
- func (msg *MsgUndelegate) ValidateBasic() error
- func (m *MsgUndelegate) XXX_DiscardUnknown()
- func (m *MsgUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUndelegate) XXX_Merge(src proto.Message)
- func (m *MsgUndelegate) XXX_Size() int
- func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error
- type MsgUndelegateResponse
- func (*MsgUndelegateResponse) Descriptor() ([]byte, []int)
- 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) GetPayload() string
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- 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 (msg *MsgUpdateParams) ValidateBasic() 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 MsgWithdrawRewards
- func (*MsgWithdrawRewards) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawRewards) GetCreator() string
- func (msg *MsgWithdrawRewards) GetSignBytes() []byte
- func (msg *MsgWithdrawRewards) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawRewards) GetStaker() string
- func (m *MsgWithdrawRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawRewards) ProtoMessage()
- func (m *MsgWithdrawRewards) Reset()
- func (msg *MsgWithdrawRewards) Route() string
- func (m *MsgWithdrawRewards) Size() (n int)
- func (m *MsgWithdrawRewards) String() string
- func (msg *MsgWithdrawRewards) Type() string
- func (m *MsgWithdrawRewards) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawRewards) ValidateBasic() error
- func (m *MsgWithdrawRewards) XXX_DiscardUnknown()
- func (m *MsgWithdrawRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawRewards) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawRewards) XXX_Size() int
- func (m *MsgWithdrawRewards) XXX_Unmarshal(b []byte) error
- type MsgWithdrawRewardsResponse
- func (*MsgWithdrawRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawRewardsResponse) ProtoMessage()
- func (m *MsgWithdrawRewardsResponse) Reset()
- func (m *MsgWithdrawRewardsResponse) Size() (n int)
- func (m *MsgWithdrawRewardsResponse) String() string
- func (m *MsgWithdrawRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawRewardsResponse) XXX_Size() int
- func (m *MsgWithdrawRewardsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetRedelegationCooldown() uint64
- func (m *Params) GetRedelegationMaxAmount() uint64
- func (m *Params) GetUnbondingDelegationTime() uint64
- 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 (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 PoolKeeper
- type QueryClient
- 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 QueryServer
- type QueueState
- func (*QueueState) Descriptor() ([]byte, []int)
- func (m *QueueState) GetHighIndex() uint64
- func (m *QueueState) GetLowIndex() uint64
- func (m *QueueState) Marshal() (dAtA []byte, err error)
- func (m *QueueState) MarshalTo(dAtA []byte) (int, error)
- func (m *QueueState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueueState) ProtoMessage()
- func (m *QueueState) Reset()
- func (m *QueueState) Size() (n int)
- func (m *QueueState) String() string
- func (m *QueueState) Unmarshal(dAtA []byte) error
- func (m *QueueState) XXX_DiscardUnknown()
- func (m *QueueState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueueState) XXX_Merge(src proto.Message)
- func (m *QueueState) XXX_Size() int
- func (m *QueueState) XXX_Unmarshal(b []byte) error
- type RedelegationCooldown
- func (*RedelegationCooldown) Descriptor() ([]byte, []int)
- func (m *RedelegationCooldown) GetAddress() string
- func (m *RedelegationCooldown) GetCreationDate() uint64
- func (m *RedelegationCooldown) Marshal() (dAtA []byte, err error)
- func (m *RedelegationCooldown) MarshalTo(dAtA []byte) (int, error)
- func (m *RedelegationCooldown) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RedelegationCooldown) ProtoMessage()
- func (m *RedelegationCooldown) Reset()
- func (m *RedelegationCooldown) Size() (n int)
- func (m *RedelegationCooldown) String() string
- func (m *RedelegationCooldown) Unmarshal(dAtA []byte) error
- func (m *RedelegationCooldown) XXX_DiscardUnknown()
- func (m *RedelegationCooldown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedelegationCooldown) XXX_Merge(src proto.Message)
- func (m *RedelegationCooldown) XXX_Size() int
- func (m *RedelegationCooldown) XXX_Unmarshal(b []byte) error
- type SlashType
- type StakersKeeper
- type UndelegationQueueEntry
- func (*UndelegationQueueEntry) Descriptor() ([]byte, []int)
- func (m *UndelegationQueueEntry) GetAmount() uint64
- func (m *UndelegationQueueEntry) GetCreationTime() uint64
- func (m *UndelegationQueueEntry) GetDelegator() string
- func (m *UndelegationQueueEntry) GetIndex() uint64
- func (m *UndelegationQueueEntry) GetStaker() string
- func (m *UndelegationQueueEntry) Marshal() (dAtA []byte, err error)
- func (m *UndelegationQueueEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *UndelegationQueueEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UndelegationQueueEntry) ProtoMessage()
- func (m *UndelegationQueueEntry) Reset()
- func (m *UndelegationQueueEntry) Size() (n int)
- func (m *UndelegationQueueEntry) String() string
- func (m *UndelegationQueueEntry) Unmarshal(dAtA []byte) error
- func (m *UndelegationQueueEntry) XXX_DiscardUnknown()
- func (m *UndelegationQueueEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UndelegationQueueEntry) XXX_Merge(src proto.Message)
- func (m *UndelegationQueueEntry) XXX_Size() int
- func (m *UndelegationQueueEntry) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Delegate(ctx context.Context, req *MsgDelegate) (*MsgDelegateResponse, error)
- func (*UnimplementedMsgServer) Redelegate(ctx context.Context, req *MsgRedelegate) (*MsgRedelegateResponse, error)
- func (*UnimplementedMsgServer) Undelegate(ctx context.Context, req *MsgUndelegate) (*MsgUndelegateResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) WithdrawRewards(ctx context.Context, req *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error)
- type UnimplementedQueryServer
- type UpgradeKeeper
Constants ¶
const ( // ModuleName defines the module name ModuleName = "delegation" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_delegation" )
Variables ¶
var ( ErrInvalidLengthDelegation = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDelegation = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDelegation = fmt.Errorf("proto: unexpected end of group") )
var ( ErrNotADelegator = sdkErrors.Register(ModuleName, 1000, "not a delegator") ErrNotEnoughDelegation = sdkErrors.Register(ModuleName, 1001, "undelegate-amount is larger than current delegation") ErrRedelegationOnCooldown = sdkErrors.Register(ModuleName, 1002, "all redelegation slots are on cooldown") ErrMultipleRedelegationInSameBlock = sdkErrors.Register(ModuleName, 1003, "only one redelegation per delegator per block") ErrStakerDoesNotExist = sdkErrors.Register(ModuleName, 1004, "staker does not exist") ErrRedelegationToInactiveStaker = sdkErrors.Register(ModuleName, 1005, "redelegation to inactive staker not allowed") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( // DelegatorKeyPrefix is the prefix to retrieve all Delegator entries DelegatorKeyPrefix = []byte{1, 0} // DelegatorKeyPrefixIndex2 is the prefix for a different key order for the DelegatorKeyPrefix DelegatorKeyPrefixIndex2 = []byte{1, 1} // DelegationEntriesKeyPrefix is the prefix to retrieve all DelegationEntries DelegationEntriesKeyPrefix = []byte{2} // DelegationDataKeyPrefix ... DelegationDataKeyPrefix = []byte{3} // DelegationSlashEntriesKeyPrefix ... DelegationSlashEntriesKeyPrefix = []byte{4} // QueueKey ... QueueKey = []byte{5} // UndelegationQueueKeyPrefix ... UndelegationQueueKeyPrefix = []byte{6, 0} // UndelegationQueueKeyPrefixIndex2 ... UndelegationQueueKeyPrefixIndex2 = []byte{6, 1} // RedelegationCooldownPrefix ... RedelegationCooldownPrefix = []byte{7} )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var Amino = codec.NewLegacyAmino()
var DefaultRedelegationCooldown = uint64(60 * 60 * 24 * 5)
DefaultRedelegationCooldown ...
var DefaultRedelegationMaxAmount = uint64(5)
DefaultRedelegationMaxAmount ...
var DefaultTimeoutSlash = math.LegacyMustNewDecFromStr("0.02")
DefaultTimeoutSlash ...
var DefaultUnbondingDelegationTime = uint64(60 * 60 * 24 * 5)
DefaultUnbondingDelegationTime ...
var DefaultUploadSlash = math.LegacyMustNewDecFromStr("0.2")
DefaultUploadSlash ...
var DefaultVoteSlash = math.LegacyMustNewDecFromStr("0.1")
DefaultVoteSlash ...
var ParamsKey = []byte{0x00}
var SlashType_name = map[int32]string{
0: "SLASH_TYPE_UNSPECIFIED",
1: "SLASH_TYPE_TIMEOUT",
2: "SLASH_TYPE_VOTE",
3: "SLASH_TYPE_UPLOAD",
}
var SlashType_value = map[string]int32{
"SLASH_TYPE_UNSPECIFIED": 0,
"SLASH_TYPE_TIMEOUT": 1,
"SLASH_TYPE_VOTE": 2,
"SLASH_TYPE_UPLOAD": 3,
}
var StakerIndexKeyPrefix = []byte{1} // StakerIndexPoolCountKeyPrefix = []byte{1}
Functions ¶
func DelegationDataKey ¶
DelegationDataKey returns the store Key to retrieve a DelegationPoolData from the index fields
func DelegationEntriesKey ¶
DelegationEntriesKey returns the store Key to retrieve a DelegationEntries from the index fields
func DelegatorKey ¶
DelegatorKey returns the store Key to retrieve a Delegator from the index fields
func DelegatorKeyIndex2 ¶
DelegatorKeyIndex2 returns the store Key to retrieve a Delegator from the index fields
func RedelegationCooldownKey ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codecTypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v1.2.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
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 ¶
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 ¶
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 ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func StakerIndexKey ¶
func UndelegationQueueKey ¶
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(moduleName string) sdk.AccAddress
}
AccountKeeper defines the expected account keeper used for simulations (noalias)
type DelegationData ¶
type DelegationData struct {
// Every staker has one DelegationData
Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"`
// current_rewards ...
CurrentRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */
// total_delegation ...
TotalDelegation uint64 `protobuf:"varint,3,opt,name=total_delegation,json=totalDelegation,proto3" json:"total_delegation,omitempty"`
// latest_index_k ...
LatestIndexK uint64 `protobuf:"varint,4,opt,name=latest_index_k,json=latestIndexK,proto3" json:"latest_index_k,omitempty"`
// delegator_count the amount of different addresses delegating to the staker
DelegatorCount uint64 `protobuf:"varint,5,opt,name=delegator_count,json=delegatorCount,proto3" json:"delegator_count,omitempty"`
// latest_index_was_undelegation helps indicates when an entry can be deleted
LatestIndexWasUndelegation bool `` /* 144-byte string literal not displayed */
}
DelegationPoolData stores general delegation information for every staker
func (*DelegationData) Descriptor ¶
func (*DelegationData) Descriptor() ([]byte, []int)
func (*DelegationData) GetCurrentRewards ¶
func (m *DelegationData) GetCurrentRewards() github_com_cosmos_cosmos_sdk_types.Coins
func (*DelegationData) GetDelegatorCount ¶
func (m *DelegationData) GetDelegatorCount() uint64
func (*DelegationData) GetLatestIndexK ¶
func (m *DelegationData) GetLatestIndexK() uint64
func (*DelegationData) GetLatestIndexWasUndelegation ¶
func (m *DelegationData) GetLatestIndexWasUndelegation() bool
func (*DelegationData) GetStaker ¶
func (m *DelegationData) GetStaker() string
func (*DelegationData) GetTotalDelegation ¶
func (m *DelegationData) GetTotalDelegation() uint64
func (*DelegationData) Marshal ¶
func (m *DelegationData) Marshal() (dAtA []byte, err error)
func (*DelegationData) MarshalToSizedBuffer ¶
func (m *DelegationData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationData) ProtoMessage ¶
func (*DelegationData) ProtoMessage()
func (*DelegationData) Reset ¶
func (m *DelegationData) Reset()
func (*DelegationData) Size ¶
func (m *DelegationData) Size() (n int)
func (*DelegationData) String ¶
func (m *DelegationData) String() string
func (*DelegationData) Unmarshal ¶
func (m *DelegationData) Unmarshal(dAtA []byte) error
func (*DelegationData) XXX_DiscardUnknown ¶
func (m *DelegationData) XXX_DiscardUnknown()
func (*DelegationData) XXX_Marshal ¶
func (m *DelegationData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationData) XXX_Merge ¶
func (m *DelegationData) XXX_Merge(src proto.Message)
func (*DelegationData) XXX_Size ¶
func (m *DelegationData) XXX_Size() int
func (*DelegationData) XXX_Unmarshal ¶
func (m *DelegationData) XXX_Unmarshal(b []byte) error
type DelegationEntry ¶
type DelegationEntry struct {
// staker on protocol level
Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"`
// k_index is the of the period this entry ends
KIndex uint64 `protobuf:"varint,2,opt,name=k_index,json=kIndex,proto3" json:"k_index,omitempty"`
// value is the quotient of collected rewards and total stake according to F1-distribution
Value github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,3,rep,name=value,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"value"`
}
DelegationEntry represents an entry according to the F1-Fee-Distribution algorithm. Take a look at x/delegation/keeper/logic_f1distribution.go for more details
func (*DelegationEntry) Descriptor ¶
func (*DelegationEntry) Descriptor() ([]byte, []int)
func (*DelegationEntry) GetKIndex ¶
func (m *DelegationEntry) GetKIndex() uint64
func (*DelegationEntry) GetStaker ¶
func (m *DelegationEntry) GetStaker() string
func (*DelegationEntry) GetValue ¶ added in v1.5.0
func (m *DelegationEntry) GetValue() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*DelegationEntry) Marshal ¶
func (m *DelegationEntry) Marshal() (dAtA []byte, err error)
func (*DelegationEntry) MarshalToSizedBuffer ¶
func (m *DelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationEntry) ProtoMessage ¶
func (*DelegationEntry) ProtoMessage()
func (*DelegationEntry) Reset ¶
func (m *DelegationEntry) Reset()
func (*DelegationEntry) Size ¶
func (m *DelegationEntry) Size() (n int)
func (*DelegationEntry) String ¶
func (m *DelegationEntry) String() string
func (*DelegationEntry) Unmarshal ¶
func (m *DelegationEntry) Unmarshal(dAtA []byte) error
func (*DelegationEntry) XXX_DiscardUnknown ¶
func (m *DelegationEntry) XXX_DiscardUnknown()
func (*DelegationEntry) XXX_Marshal ¶
func (m *DelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationEntry) XXX_Merge ¶
func (m *DelegationEntry) XXX_Merge(src proto.Message)
func (*DelegationEntry) XXX_Size ¶
func (m *DelegationEntry) XXX_Size() int
func (*DelegationEntry) XXX_Unmarshal ¶
func (m *DelegationEntry) XXX_Unmarshal(b []byte) error
type DelegationKVStoreService ¶ added in v1.5.0
type DelegationKVStoreService interface {
store.KVStoreService
}
type DelegationSlash ¶
type DelegationSlash struct {
// staker who got slashed
Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"`
// k_index for f1-algorithm
KIndex uint64 `protobuf:"varint,2,opt,name=k_index,json=kIndex,proto3" json:"k_index,omitempty"`
// fraction that got slashed
Fraction cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=fraction,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"fraction"`
}
DelegationSlash represents an f1-slash these entries needs to be iterated to obtain the current amount of the actual stake Every staker can have n slash-entries
func (*DelegationSlash) Descriptor ¶
func (*DelegationSlash) Descriptor() ([]byte, []int)
func (*DelegationSlash) GetKIndex ¶
func (m *DelegationSlash) GetKIndex() uint64
func (*DelegationSlash) GetStaker ¶
func (m *DelegationSlash) GetStaker() string
func (*DelegationSlash) Marshal ¶
func (m *DelegationSlash) Marshal() (dAtA []byte, err error)
func (*DelegationSlash) MarshalToSizedBuffer ¶
func (m *DelegationSlash) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelegationSlash) ProtoMessage ¶
func (*DelegationSlash) ProtoMessage()
func (*DelegationSlash) Reset ¶
func (m *DelegationSlash) Reset()
func (*DelegationSlash) Size ¶
func (m *DelegationSlash) Size() (n int)
func (*DelegationSlash) String ¶
func (m *DelegationSlash) String() string
func (*DelegationSlash) Unmarshal ¶
func (m *DelegationSlash) Unmarshal(dAtA []byte) error
func (*DelegationSlash) XXX_DiscardUnknown ¶
func (m *DelegationSlash) XXX_DiscardUnknown()
func (*DelegationSlash) XXX_Marshal ¶
func (m *DelegationSlash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelegationSlash) XXX_Merge ¶
func (m *DelegationSlash) XXX_Merge(src proto.Message)
func (*DelegationSlash) XXX_Size ¶
func (m *DelegationSlash) XXX_Size() int
func (*DelegationSlash) XXX_Unmarshal ¶
func (m *DelegationSlash) XXX_Unmarshal(b []byte) error
type Delegator ¶
type Delegator struct {
// staker corresponds to a KYVE-staker on the protocol-side
Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"`
// delegator the user who delegate to the staker.
// If staker and delegator are the same we call it: self-delegation
Delegator string `protobuf:"bytes,2,opt,name=delegator,proto3" json:"delegator,omitempty"`
// k_index is an internal index for the f1-distribution algorithm
KIndex uint64 `protobuf:"varint,3,opt,name=k_index,json=kIndex,proto3" json:"k_index,omitempty"`
// initial_amount of stake the user had when it delegated.
// slashes can cause that the actual stake is lower.
InitialAmount uint64 `protobuf:"varint,4,opt,name=initial_amount,json=initialAmount,proto3" json:"initial_amount,omitempty"`
}
Delegator stores the information that one address has delegated to another address It stores important information for the F1-Fee distribution algorithm
func (*Delegator) Descriptor ¶
func (*Delegator) GetDelegator ¶
func (*Delegator) GetInitialAmount ¶
func (*Delegator) MarshalToSizedBuffer ¶
func (*Delegator) ProtoMessage ¶
func (*Delegator) ProtoMessage()
func (*Delegator) XXX_DiscardUnknown ¶
func (m *Delegator) XXX_DiscardUnknown()
func (*Delegator) XXX_Marshal ¶
func (*Delegator) XXX_Unmarshal ¶
type DistrKeeper ¶
type EventDelegate ¶
type EventDelegate struct {
// address is the account address of the delegator.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// staker is the account address of the protocol node.
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
}
EventDelegate is an event emitted when someone delegates to a protocol node. emitted_by: MsgDelegate
func (*EventDelegate) Descriptor ¶
func (*EventDelegate) Descriptor() ([]byte, []int)
func (*EventDelegate) GetAddress ¶
func (m *EventDelegate) GetAddress() string
func (*EventDelegate) GetAmount ¶
func (m *EventDelegate) GetAmount() uint64
func (*EventDelegate) GetStaker ¶
func (m *EventDelegate) GetStaker() string
func (*EventDelegate) Marshal ¶
func (m *EventDelegate) Marshal() (dAtA []byte, err error)
func (*EventDelegate) MarshalToSizedBuffer ¶
func (m *EventDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDelegate) ProtoMessage ¶
func (*EventDelegate) ProtoMessage()
func (*EventDelegate) Reset ¶
func (m *EventDelegate) Reset()
func (*EventDelegate) Size ¶
func (m *EventDelegate) Size() (n int)
func (*EventDelegate) String ¶
func (m *EventDelegate) String() string
func (*EventDelegate) Unmarshal ¶
func (m *EventDelegate) Unmarshal(dAtA []byte) error
func (*EventDelegate) XXX_DiscardUnknown ¶
func (m *EventDelegate) XXX_DiscardUnknown()
func (*EventDelegate) XXX_Marshal ¶
func (m *EventDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDelegate) XXX_Merge ¶
func (m *EventDelegate) XXX_Merge(src proto.Message)
func (*EventDelegate) XXX_Size ¶
func (m *EventDelegate) XXX_Size() int
func (*EventDelegate) XXX_Unmarshal ¶
func (m *EventDelegate) XXX_Unmarshal(b []byte) error
type EventRedelegate ¶
type EventRedelegate struct {
// address is the account address of the delegator.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// from_staker ...
FromStaker string `protobuf:"bytes,2,opt,name=from_staker,json=fromStaker,proto3" json:"from_staker,omitempty"`
// to_staker is the account address of the new staker in the the pool
ToStaker string `protobuf:"bytes,3,opt,name=to_staker,json=toStaker,proto3" json:"to_staker,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
}
EventRedelegate is an event emitted when someone redelegates from one protocol node to another. emitted_by: MsgRedelegate
func (*EventRedelegate) Descriptor ¶
func (*EventRedelegate) Descriptor() ([]byte, []int)
func (*EventRedelegate) GetAddress ¶
func (m *EventRedelegate) GetAddress() string
func (*EventRedelegate) GetAmount ¶
func (m *EventRedelegate) GetAmount() uint64
func (*EventRedelegate) GetFromStaker ¶
func (m *EventRedelegate) GetFromStaker() string
func (*EventRedelegate) GetToStaker ¶
func (m *EventRedelegate) GetToStaker() string
func (*EventRedelegate) Marshal ¶
func (m *EventRedelegate) Marshal() (dAtA []byte, err error)
func (*EventRedelegate) MarshalToSizedBuffer ¶
func (m *EventRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRedelegate) ProtoMessage ¶
func (*EventRedelegate) ProtoMessage()
func (*EventRedelegate) Reset ¶
func (m *EventRedelegate) Reset()
func (*EventRedelegate) Size ¶
func (m *EventRedelegate) Size() (n int)
func (*EventRedelegate) String ¶
func (m *EventRedelegate) String() string
func (*EventRedelegate) Unmarshal ¶
func (m *EventRedelegate) Unmarshal(dAtA []byte) error
func (*EventRedelegate) XXX_DiscardUnknown ¶
func (m *EventRedelegate) XXX_DiscardUnknown()
func (*EventRedelegate) XXX_Marshal ¶
func (m *EventRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRedelegate) XXX_Merge ¶
func (m *EventRedelegate) XXX_Merge(src proto.Message)
func (*EventRedelegate) XXX_Size ¶
func (m *EventRedelegate) XXX_Size() int
func (*EventRedelegate) XXX_Unmarshal ¶
func (m *EventRedelegate) XXX_Unmarshal(b []byte) error
type EventSlash ¶
type EventSlash struct {
// pool_id is the unique ID of the pool.
PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
// staker is the account address of the protocol node.
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
// slash_type
SlashType SlashType `` /* 128-byte string literal not displayed */
}
EventSlash is an event emitted when a protocol node is slashed. emitted_by: MsgSubmitBundleProposal, EndBlock
func (*EventSlash) Descriptor ¶
func (*EventSlash) Descriptor() ([]byte, []int)
func (*EventSlash) GetAmount ¶
func (m *EventSlash) GetAmount() uint64
func (*EventSlash) GetPoolId ¶
func (m *EventSlash) GetPoolId() uint64
func (*EventSlash) GetSlashType ¶
func (m *EventSlash) GetSlashType() SlashType
func (*EventSlash) GetStaker ¶
func (m *EventSlash) GetStaker() string
func (*EventSlash) Marshal ¶
func (m *EventSlash) Marshal() (dAtA []byte, err error)
func (*EventSlash) MarshalToSizedBuffer ¶
func (m *EventSlash) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSlash) ProtoMessage ¶
func (*EventSlash) ProtoMessage()
func (*EventSlash) Reset ¶
func (m *EventSlash) Reset()
func (*EventSlash) Size ¶
func (m *EventSlash) Size() (n int)
func (*EventSlash) String ¶
func (m *EventSlash) String() string
func (*EventSlash) Unmarshal ¶
func (m *EventSlash) Unmarshal(dAtA []byte) error
func (*EventSlash) XXX_DiscardUnknown ¶
func (m *EventSlash) XXX_DiscardUnknown()
func (*EventSlash) XXX_Marshal ¶
func (m *EventSlash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSlash) XXX_Merge ¶
func (m *EventSlash) XXX_Merge(src proto.Message)
func (*EventSlash) XXX_Size ¶
func (m *EventSlash) XXX_Size() int
func (*EventSlash) XXX_Unmarshal ¶
func (m *EventSlash) XXX_Unmarshal(b []byte) error
type EventStartUndelegation ¶ added in v1.1.0
type EventStartUndelegation struct {
// address is the address of the delegator.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// staker is the address of the protocol node.
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// amount is the amount to be undelegated from the protocol node.
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
// estimated_undelegation_date is the date in UNIX seconds on when the undelegation will be performed.
// Note, this number will be incorrect if a governance proposal changes `UnbondingDelegationTime` while unbonding.
EstimatedUndelegationDate uint64 `` /* 139-byte string literal not displayed */
}
EventStartUndelegation is an event emitted when someone starts an undelegation from a protocol node. emitted_by: EndBlock
func (*EventStartUndelegation) Descriptor ¶ added in v1.1.0
func (*EventStartUndelegation) Descriptor() ([]byte, []int)
func (*EventStartUndelegation) GetAddress ¶ added in v1.1.0
func (m *EventStartUndelegation) GetAddress() string
func (*EventStartUndelegation) GetAmount ¶ added in v1.1.0
func (m *EventStartUndelegation) GetAmount() uint64
func (*EventStartUndelegation) GetEstimatedUndelegationDate ¶ added in v1.1.0
func (m *EventStartUndelegation) GetEstimatedUndelegationDate() uint64
func (*EventStartUndelegation) GetStaker ¶ added in v1.1.0
func (m *EventStartUndelegation) GetStaker() string
func (*EventStartUndelegation) Marshal ¶ added in v1.1.0
func (m *EventStartUndelegation) Marshal() (dAtA []byte, err error)
func (*EventStartUndelegation) MarshalTo ¶ added in v1.1.0
func (m *EventStartUndelegation) MarshalTo(dAtA []byte) (int, error)
func (*EventStartUndelegation) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *EventStartUndelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventStartUndelegation) ProtoMessage ¶ added in v1.1.0
func (*EventStartUndelegation) ProtoMessage()
func (*EventStartUndelegation) Reset ¶ added in v1.1.0
func (m *EventStartUndelegation) Reset()
func (*EventStartUndelegation) Size ¶ added in v1.1.0
func (m *EventStartUndelegation) Size() (n int)
func (*EventStartUndelegation) String ¶ added in v1.1.0
func (m *EventStartUndelegation) String() string
func (*EventStartUndelegation) Unmarshal ¶ added in v1.1.0
func (m *EventStartUndelegation) Unmarshal(dAtA []byte) error
func (*EventStartUndelegation) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *EventStartUndelegation) XXX_DiscardUnknown()
func (*EventStartUndelegation) XXX_Marshal ¶ added in v1.1.0
func (m *EventStartUndelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventStartUndelegation) XXX_Merge ¶ added in v1.1.0
func (m *EventStartUndelegation) XXX_Merge(src proto.Message)
func (*EventStartUndelegation) XXX_Size ¶ added in v1.1.0
func (m *EventStartUndelegation) XXX_Size() int
func (*EventStartUndelegation) XXX_Unmarshal ¶ added in v1.1.0
func (m *EventStartUndelegation) XXX_Unmarshal(b []byte) error
type EventUndelegate ¶
type EventUndelegate struct {
// address is the account address of the delegator.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// staker is the account address of the protocol node.
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
}
EventUndelegate is an event emitted when someone undelegates from a protocol node. emitted_by: EndBlock
func (*EventUndelegate) Descriptor ¶
func (*EventUndelegate) Descriptor() ([]byte, []int)
func (*EventUndelegate) GetAddress ¶
func (m *EventUndelegate) GetAddress() string
func (*EventUndelegate) GetAmount ¶
func (m *EventUndelegate) GetAmount() uint64
func (*EventUndelegate) GetStaker ¶
func (m *EventUndelegate) GetStaker() string
func (*EventUndelegate) Marshal ¶
func (m *EventUndelegate) Marshal() (dAtA []byte, err error)
func (*EventUndelegate) MarshalToSizedBuffer ¶
func (m *EventUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUndelegate) ProtoMessage ¶
func (*EventUndelegate) ProtoMessage()
func (*EventUndelegate) Reset ¶
func (m *EventUndelegate) Reset()
func (*EventUndelegate) Size ¶
func (m *EventUndelegate) Size() (n int)
func (*EventUndelegate) String ¶
func (m *EventUndelegate) String() string
func (*EventUndelegate) Unmarshal ¶
func (m *EventUndelegate) Unmarshal(dAtA []byte) error
func (*EventUndelegate) XXX_DiscardUnknown ¶
func (m *EventUndelegate) XXX_DiscardUnknown()
func (*EventUndelegate) XXX_Marshal ¶
func (m *EventUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUndelegate) XXX_Merge ¶
func (m *EventUndelegate) XXX_Merge(src proto.Message)
func (*EventUndelegate) XXX_Size ¶
func (m *EventUndelegate) XXX_Size() int
func (*EventUndelegate) XXX_Unmarshal ¶
func (m *EventUndelegate) XXX_Unmarshal(b []byte) error
type EventUpdateParams ¶ added in v1.1.0
type EventUpdateParams struct {
// old_params is the module's old parameters.
OldParams Params `protobuf:"bytes,1,opt,name=old_params,json=oldParams,proto3" json:"old_params"`
// new_params is the module's new parameters.
NewParams Params `protobuf:"bytes,2,opt,name=new_params,json=newParams,proto3" json:"new_params"`
// payload is the parameter updates that were performed.
Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
}
EventUpdateParams is an event emitted when the module parameters are updated. emitted_by: MsgUpdateParams
func (*EventUpdateParams) Descriptor ¶ added in v1.1.0
func (*EventUpdateParams) Descriptor() ([]byte, []int)
func (*EventUpdateParams) GetNewParams ¶ added in v1.1.0
func (m *EventUpdateParams) GetNewParams() Params
func (*EventUpdateParams) GetOldParams ¶ added in v1.1.0
func (m *EventUpdateParams) GetOldParams() Params
func (*EventUpdateParams) GetPayload ¶ added in v1.1.0
func (m *EventUpdateParams) GetPayload() string
func (*EventUpdateParams) Marshal ¶ added in v1.1.0
func (m *EventUpdateParams) Marshal() (dAtA []byte, err error)
func (*EventUpdateParams) MarshalTo ¶ added in v1.1.0
func (m *EventUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateParams) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *EventUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateParams) ProtoMessage ¶ added in v1.1.0
func (*EventUpdateParams) ProtoMessage()
func (*EventUpdateParams) Reset ¶ added in v1.1.0
func (m *EventUpdateParams) Reset()
func (*EventUpdateParams) Size ¶ added in v1.1.0
func (m *EventUpdateParams) Size() (n int)
func (*EventUpdateParams) String ¶ added in v1.1.0
func (m *EventUpdateParams) String() string
func (*EventUpdateParams) Unmarshal ¶ added in v1.1.0
func (m *EventUpdateParams) Unmarshal(dAtA []byte) error
func (*EventUpdateParams) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *EventUpdateParams) XXX_DiscardUnknown()
func (*EventUpdateParams) XXX_Marshal ¶ added in v1.1.0
func (m *EventUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateParams) XXX_Merge ¶ added in v1.1.0
func (m *EventUpdateParams) XXX_Merge(src proto.Message)
func (*EventUpdateParams) XXX_Size ¶ added in v1.1.0
func (m *EventUpdateParams) XXX_Size() int
func (*EventUpdateParams) XXX_Unmarshal ¶ added in v1.1.0
func (m *EventUpdateParams) XXX_Unmarshal(b []byte) error
type EventWithdrawRewards ¶
type EventWithdrawRewards struct {
// address is the account address of the delegator.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// staker is the account address of the protocol node the users withdraws from.
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// amounts ...
Amounts string `protobuf:"bytes,3,opt,name=amounts,proto3" json:"amounts,omitempty"`
}
EventWithdrawRewards ... emitted_by: MsgRedelegate, MsgDelegate, MsgWithdrawRewards, EndBlock
func (*EventWithdrawRewards) Descriptor ¶
func (*EventWithdrawRewards) Descriptor() ([]byte, []int)
func (*EventWithdrawRewards) GetAddress ¶
func (m *EventWithdrawRewards) GetAddress() string
func (*EventWithdrawRewards) GetAmounts ¶ added in v1.5.0
func (m *EventWithdrawRewards) GetAmounts() string
func (*EventWithdrawRewards) GetStaker ¶
func (m *EventWithdrawRewards) GetStaker() string
func (*EventWithdrawRewards) Marshal ¶
func (m *EventWithdrawRewards) Marshal() (dAtA []byte, err error)
func (*EventWithdrawRewards) MarshalTo ¶
func (m *EventWithdrawRewards) MarshalTo(dAtA []byte) (int, error)
func (*EventWithdrawRewards) MarshalToSizedBuffer ¶
func (m *EventWithdrawRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventWithdrawRewards) ProtoMessage ¶
func (*EventWithdrawRewards) ProtoMessage()
func (*EventWithdrawRewards) Reset ¶
func (m *EventWithdrawRewards) Reset()
func (*EventWithdrawRewards) Size ¶
func (m *EventWithdrawRewards) Size() (n int)
func (*EventWithdrawRewards) String ¶
func (m *EventWithdrawRewards) String() string
func (*EventWithdrawRewards) Unmarshal ¶
func (m *EventWithdrawRewards) Unmarshal(dAtA []byte) error
func (*EventWithdrawRewards) XXX_DiscardUnknown ¶
func (m *EventWithdrawRewards) XXX_DiscardUnknown()
func (*EventWithdrawRewards) XXX_Marshal ¶
func (m *EventWithdrawRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventWithdrawRewards) XXX_Merge ¶
func (m *EventWithdrawRewards) XXX_Merge(src proto.Message)
func (*EventWithdrawRewards) XXX_Size ¶
func (m *EventWithdrawRewards) XXX_Size() int
func (*EventWithdrawRewards) XXX_Unmarshal ¶
func (m *EventWithdrawRewards) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// delegator_list ...
DelegatorList []Delegator `protobuf:"bytes,2,rep,name=delegator_list,json=delegatorList,proto3" json:"delegator_list"`
// delegation_entry_list ...
DelegationEntryList []DelegationEntry `protobuf:"bytes,3,rep,name=delegation_entry_list,json=delegationEntryList,proto3" json:"delegation_entry_list"`
// delegation_data_list ...
DelegationDataList []DelegationData `protobuf:"bytes,4,rep,name=delegation_data_list,json=delegationDataList,proto3" json:"delegation_data_list"`
// delegation_slash_list ...
DelegationSlashList []DelegationSlash `protobuf:"bytes,5,rep,name=delegation_slash_list,json=delegationSlashList,proto3" json:"delegation_slash_list"`
// undelegation_queue_entry_list ...
UndelegationQueueEntryList []UndelegationQueueEntry `` /* 133-byte string literal not displayed */
// queue_state_undelegation ...
QueueStateUndelegation QueueState `protobuf:"bytes,7,opt,name=queue_state_undelegation,json=queueStateUndelegation,proto3" json:"queue_state_undelegation"`
// redelegation_cooldown_list ...
RedelegationCooldownList []RedelegationCooldown `protobuf:"bytes,8,rep,name=redelegation_cooldown_list,json=redelegationCooldownList,proto3" json:"redelegation_cooldown_list"`
}
GenesisState defines the delegation module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDelegationDataList ¶
func (m *GenesisState) GetDelegationDataList() []DelegationData
func (*GenesisState) GetDelegationEntryList ¶
func (m *GenesisState) GetDelegationEntryList() []DelegationEntry
func (*GenesisState) GetDelegationSlashList ¶
func (m *GenesisState) GetDelegationSlashList() []DelegationSlash
func (*GenesisState) GetDelegatorList ¶
func (m *GenesisState) GetDelegatorList() []Delegator
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetQueueStateUndelegation ¶
func (m *GenesisState) GetQueueStateUndelegation() QueueState
func (*GenesisState) GetRedelegationCooldownList ¶
func (m *GenesisState) GetRedelegationCooldownList() []RedelegationCooldown
func (*GenesisState) GetUndelegationQueueEntryList ¶
func (m *GenesisState) GetUndelegationQueueEntryList() []UndelegationQueueEntry
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶
func (gs *GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
// Delegate ...
Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
// Withdraw ...
WithdrawRewards(ctx context.Context, in *MsgWithdrawRewards, opts ...grpc.CallOption) (*MsgWithdrawRewardsResponse, error)
// Undelegate ...
Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
// Redelegate ...
Redelegate(ctx context.Context, in *MsgRedelegate, opts ...grpc.CallOption) (*MsgRedelegateResponse, error)
// UpdateParams defines a governance operation for updating the x/delegation module
// parameters. The authority is hard-coded to the x/gov module account.
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 ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgDelegate ¶
type MsgDelegate struct {
// creator ...
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
// staker ...
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
}
MsgDelegate ...
func (*MsgDelegate) Descriptor ¶
func (*MsgDelegate) Descriptor() ([]byte, []int)
func (*MsgDelegate) GetAmount ¶
func (m *MsgDelegate) GetAmount() uint64
func (*MsgDelegate) GetCreator ¶
func (m *MsgDelegate) GetCreator() string
func (*MsgDelegate) GetSignBytes ¶
func (msg *MsgDelegate) GetSignBytes() []byte
func (*MsgDelegate) GetSigners ¶
func (msg *MsgDelegate) GetSigners() []sdk.AccAddress
func (*MsgDelegate) GetStaker ¶
func (m *MsgDelegate) GetStaker() string
func (*MsgDelegate) Marshal ¶
func (m *MsgDelegate) Marshal() (dAtA []byte, err error)
func (*MsgDelegate) MarshalToSizedBuffer ¶
func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDelegate) ProtoMessage ¶
func (*MsgDelegate) ProtoMessage()
func (*MsgDelegate) Reset ¶
func (m *MsgDelegate) Reset()
func (*MsgDelegate) Route ¶
func (msg *MsgDelegate) Route() string
func (*MsgDelegate) Size ¶
func (m *MsgDelegate) Size() (n int)
func (*MsgDelegate) String ¶
func (m *MsgDelegate) String() string
func (*MsgDelegate) Type ¶
func (msg *MsgDelegate) Type() string
func (*MsgDelegate) Unmarshal ¶
func (m *MsgDelegate) Unmarshal(dAtA []byte) error
func (*MsgDelegate) ValidateBasic ¶
func (msg *MsgDelegate) ValidateBasic() 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 ¶
type MsgDelegateResponse struct {
}
MsgDelegatePoolResponse defines the Msg/DelegatePool response type.
func (*MsgDelegateResponse) Descriptor ¶
func (*MsgDelegateResponse) Descriptor() ([]byte, []int)
func (*MsgDelegateResponse) Marshal ¶
func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgDelegateResponse) MarshalTo ¶
func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDelegateResponse) ProtoMessage ¶
func (*MsgDelegateResponse) ProtoMessage()
func (*MsgDelegateResponse) Reset ¶
func (m *MsgDelegateResponse) Reset()
func (*MsgDelegateResponse) Size ¶
func (m *MsgDelegateResponse) Size() (n int)
func (*MsgDelegateResponse) String ¶
func (m *MsgDelegateResponse) String() string
func (*MsgDelegateResponse) Unmarshal ¶
func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgDelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgDelegateResponse) XXX_DiscardUnknown()
func (*MsgDelegateResponse) XXX_Marshal ¶
func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDelegateResponse) XXX_Merge ¶
func (m *MsgDelegateResponse) XXX_Merge(src proto.Message)
func (*MsgDelegateResponse) XXX_Size ¶
func (m *MsgDelegateResponse) XXX_Size() int
func (*MsgDelegateResponse) XXX_Unmarshal ¶
func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error
type MsgRedelegate ¶
type MsgRedelegate struct {
// creator ...
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
// staker ...
FromStaker string `protobuf:"bytes,2,opt,name=from_staker,json=fromStaker,proto3" json:"from_staker,omitempty"`
// staker ...
ToStaker string `protobuf:"bytes,3,opt,name=to_staker,json=toStaker,proto3" json:"to_staker,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
}
MsgRedelegatePool defines a SDK message for redelegating from a staker in a pool to another staker in the same or another pool
func (*MsgRedelegate) Descriptor ¶
func (*MsgRedelegate) Descriptor() ([]byte, []int)
func (*MsgRedelegate) GetAmount ¶
func (m *MsgRedelegate) GetAmount() uint64
func (*MsgRedelegate) GetCreator ¶
func (m *MsgRedelegate) GetCreator() string
func (*MsgRedelegate) GetFromStaker ¶
func (m *MsgRedelegate) GetFromStaker() string
func (*MsgRedelegate) GetSignBytes ¶
func (msg *MsgRedelegate) GetSignBytes() []byte
func (*MsgRedelegate) GetSigners ¶
func (msg *MsgRedelegate) GetSigners() []sdk.AccAddress
func (*MsgRedelegate) GetToStaker ¶
func (m *MsgRedelegate) GetToStaker() string
func (*MsgRedelegate) Marshal ¶
func (m *MsgRedelegate) Marshal() (dAtA []byte, err error)
func (*MsgRedelegate) MarshalToSizedBuffer ¶
func (m *MsgRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedelegate) ProtoMessage ¶
func (*MsgRedelegate) ProtoMessage()
func (*MsgRedelegate) Reset ¶
func (m *MsgRedelegate) Reset()
func (*MsgRedelegate) Route ¶
func (msg *MsgRedelegate) Route() string
func (*MsgRedelegate) Size ¶
func (m *MsgRedelegate) Size() (n int)
func (*MsgRedelegate) String ¶
func (m *MsgRedelegate) String() string
func (*MsgRedelegate) Type ¶
func (msg *MsgRedelegate) Type() string
func (*MsgRedelegate) Unmarshal ¶
func (m *MsgRedelegate) Unmarshal(dAtA []byte) error
func (*MsgRedelegate) ValidateBasic ¶
func (msg *MsgRedelegate) ValidateBasic() error
func (*MsgRedelegate) XXX_DiscardUnknown ¶
func (m *MsgRedelegate) XXX_DiscardUnknown()
func (*MsgRedelegate) XXX_Marshal ¶
func (m *MsgRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedelegate) XXX_Merge ¶
func (m *MsgRedelegate) XXX_Merge(src proto.Message)
func (*MsgRedelegate) XXX_Size ¶
func (m *MsgRedelegate) XXX_Size() int
func (*MsgRedelegate) XXX_Unmarshal ¶
func (m *MsgRedelegate) XXX_Unmarshal(b []byte) error
type MsgRedelegateResponse ¶
type MsgRedelegateResponse struct {
}
MsgUndelegatePoolResponse defines the Msg/UndelegatePool response type.
func (*MsgRedelegateResponse) Descriptor ¶
func (*MsgRedelegateResponse) Descriptor() ([]byte, []int)
func (*MsgRedelegateResponse) Marshal ¶
func (m *MsgRedelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgRedelegateResponse) MarshalTo ¶
func (m *MsgRedelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRedelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedelegateResponse) ProtoMessage ¶
func (*MsgRedelegateResponse) ProtoMessage()
func (*MsgRedelegateResponse) Reset ¶
func (m *MsgRedelegateResponse) Reset()
func (*MsgRedelegateResponse) Size ¶
func (m *MsgRedelegateResponse) Size() (n int)
func (*MsgRedelegateResponse) String ¶
func (m *MsgRedelegateResponse) String() string
func (*MsgRedelegateResponse) Unmarshal ¶
func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgRedelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgRedelegateResponse) XXX_DiscardUnknown()
func (*MsgRedelegateResponse) XXX_Marshal ¶
func (m *MsgRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedelegateResponse) XXX_Merge ¶
func (m *MsgRedelegateResponse) XXX_Merge(src proto.Message)
func (*MsgRedelegateResponse) XXX_Size ¶
func (m *MsgRedelegateResponse) XXX_Size() int
func (*MsgRedelegateResponse) XXX_Unmarshal ¶
func (m *MsgRedelegateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
// Delegate ...
Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
// Withdraw ...
WithdrawRewards(context.Context, *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error)
// Undelegate ...
Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
// Redelegate ...
Redelegate(context.Context, *MsgRedelegate) (*MsgRedelegateResponse, error)
// UpdateParams defines a governance operation for updating the x/delegation module
// parameters. The authority is hard-coded to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}
MsgServer is the server API for Msg service.
type MsgUndelegate ¶
type MsgUndelegate struct {
// creator ...
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
// staker ...
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
}
MsgUndelegatePool defines a SDK message for undelegating from a specific pool.
func (*MsgUndelegate) Descriptor ¶
func (*MsgUndelegate) Descriptor() ([]byte, []int)
func (*MsgUndelegate) GetAmount ¶
func (m *MsgUndelegate) GetAmount() uint64
func (*MsgUndelegate) GetCreator ¶
func (m *MsgUndelegate) GetCreator() string
func (*MsgUndelegate) GetSignBytes ¶
func (msg *MsgUndelegate) GetSignBytes() []byte
func (*MsgUndelegate) GetSigners ¶
func (msg *MsgUndelegate) GetSigners() []sdk.AccAddress
func (*MsgUndelegate) GetStaker ¶
func (m *MsgUndelegate) GetStaker() string
func (*MsgUndelegate) Marshal ¶
func (m *MsgUndelegate) Marshal() (dAtA []byte, err error)
func (*MsgUndelegate) MarshalToSizedBuffer ¶
func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUndelegate) ProtoMessage ¶
func (*MsgUndelegate) ProtoMessage()
func (*MsgUndelegate) Reset ¶
func (m *MsgUndelegate) Reset()
func (*MsgUndelegate) Route ¶
func (msg *MsgUndelegate) Route() string
func (*MsgUndelegate) Size ¶
func (m *MsgUndelegate) Size() (n int)
func (*MsgUndelegate) String ¶
func (m *MsgUndelegate) String() string
func (*MsgUndelegate) Type ¶
func (msg *MsgUndelegate) Type() string
func (*MsgUndelegate) Unmarshal ¶
func (m *MsgUndelegate) Unmarshal(dAtA []byte) error
func (*MsgUndelegate) ValidateBasic ¶
func (msg *MsgUndelegate) ValidateBasic() error
func (*MsgUndelegate) XXX_DiscardUnknown ¶
func (m *MsgUndelegate) XXX_DiscardUnknown()
func (*MsgUndelegate) XXX_Marshal ¶
func (m *MsgUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUndelegate) XXX_Merge ¶
func (m *MsgUndelegate) XXX_Merge(src proto.Message)
func (*MsgUndelegate) XXX_Size ¶
func (m *MsgUndelegate) XXX_Size() int
func (*MsgUndelegate) XXX_Unmarshal ¶
func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error
type MsgUndelegateResponse ¶
type MsgUndelegateResponse struct {
}
MsgUndelegatePoolResponse defines the Msg/UndelegatePool response type.
func (*MsgUndelegateResponse) Descriptor ¶
func (*MsgUndelegateResponse) Descriptor() ([]byte, []int)
func (*MsgUndelegateResponse) Marshal ¶
func (m *MsgUndelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgUndelegateResponse) MarshalTo ¶
func (m *MsgUndelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUndelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUndelegateResponse) ProtoMessage ¶
func (*MsgUndelegateResponse) ProtoMessage()
func (*MsgUndelegateResponse) Reset ¶
func (m *MsgUndelegateResponse) Reset()
func (*MsgUndelegateResponse) Size ¶
func (m *MsgUndelegateResponse) Size() (n int)
func (*MsgUndelegateResponse) String ¶
func (m *MsgUndelegateResponse) String() string
func (*MsgUndelegateResponse) Unmarshal ¶
func (m *MsgUndelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgUndelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgUndelegateResponse) XXX_DiscardUnknown()
func (*MsgUndelegateResponse) XXX_Marshal ¶
func (m *MsgUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUndelegateResponse) XXX_Merge ¶
func (m *MsgUndelegateResponse) XXX_Merge(src proto.Message)
func (*MsgUndelegateResponse) XXX_Size ¶
func (m *MsgUndelegateResponse) XXX_Size() int
func (*MsgUndelegateResponse) XXX_Unmarshal ¶
func (m *MsgUndelegateResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct {
// authority is the address of the governance account.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// payload defines the x/delegation parameters to update.
Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}
MsgUpdateParams defines a SDK message for updating the module parameters.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetPayload ¶
func (m *MsgUpdateParams) GetPayload() string
func (*MsgUpdateParams) GetSigners ¶
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
}
MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawRewards ¶
type MsgWithdrawRewards struct {
// creator ...
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
// staker ...
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
}
MsgWithdrawPool defines a SDK message for withdrawing delegation rewards from a specific pool.
func (*MsgWithdrawRewards) Descriptor ¶
func (*MsgWithdrawRewards) Descriptor() ([]byte, []int)
func (*MsgWithdrawRewards) GetCreator ¶
func (m *MsgWithdrawRewards) GetCreator() string
func (*MsgWithdrawRewards) GetSignBytes ¶
func (msg *MsgWithdrawRewards) GetSignBytes() []byte
func (*MsgWithdrawRewards) GetSigners ¶
func (msg *MsgWithdrawRewards) GetSigners() []sdk.AccAddress
func (*MsgWithdrawRewards) GetStaker ¶
func (m *MsgWithdrawRewards) GetStaker() string
func (*MsgWithdrawRewards) Marshal ¶
func (m *MsgWithdrawRewards) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawRewards) MarshalTo ¶
func (m *MsgWithdrawRewards) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawRewards) MarshalToSizedBuffer ¶
func (m *MsgWithdrawRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawRewards) ProtoMessage ¶
func (*MsgWithdrawRewards) ProtoMessage()
func (*MsgWithdrawRewards) Reset ¶
func (m *MsgWithdrawRewards) Reset()
func (*MsgWithdrawRewards) Route ¶
func (msg *MsgWithdrawRewards) Route() string
func (*MsgWithdrawRewards) Size ¶
func (m *MsgWithdrawRewards) Size() (n int)
func (*MsgWithdrawRewards) String ¶
func (m *MsgWithdrawRewards) String() string
func (*MsgWithdrawRewards) Type ¶
func (msg *MsgWithdrawRewards) Type() string
func (*MsgWithdrawRewards) Unmarshal ¶
func (m *MsgWithdrawRewards) Unmarshal(dAtA []byte) error
func (*MsgWithdrawRewards) ValidateBasic ¶
func (msg *MsgWithdrawRewards) ValidateBasic() error
func (*MsgWithdrawRewards) XXX_DiscardUnknown ¶
func (m *MsgWithdrawRewards) XXX_DiscardUnknown()
func (*MsgWithdrawRewards) XXX_Marshal ¶
func (m *MsgWithdrawRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawRewards) XXX_Merge ¶
func (m *MsgWithdrawRewards) XXX_Merge(src proto.Message)
func (*MsgWithdrawRewards) XXX_Size ¶
func (m *MsgWithdrawRewards) XXX_Size() int
func (*MsgWithdrawRewards) XXX_Unmarshal ¶
func (m *MsgWithdrawRewards) XXX_Unmarshal(b []byte) error
type MsgWithdrawRewardsResponse ¶
type MsgWithdrawRewardsResponse struct {
}
MsgWithdrawPoolResponse defines the Msg/WithdrawPool response type.
func (*MsgWithdrawRewardsResponse) Descriptor ¶
func (*MsgWithdrawRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawRewardsResponse) Marshal ¶
func (m *MsgWithdrawRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawRewardsResponse) MarshalTo ¶
func (m *MsgWithdrawRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawRewardsResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawRewardsResponse) ProtoMessage ¶
func (*MsgWithdrawRewardsResponse) ProtoMessage()
func (*MsgWithdrawRewardsResponse) Reset ¶
func (m *MsgWithdrawRewardsResponse) Reset()
func (*MsgWithdrawRewardsResponse) Size ¶
func (m *MsgWithdrawRewardsResponse) Size() (n int)
func (*MsgWithdrawRewardsResponse) String ¶
func (m *MsgWithdrawRewardsResponse) String() string
func (*MsgWithdrawRewardsResponse) Unmarshal ¶
func (m *MsgWithdrawRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawRewardsResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawRewardsResponse) XXX_DiscardUnknown()
func (*MsgWithdrawRewardsResponse) XXX_Marshal ¶
func (m *MsgWithdrawRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawRewardsResponse) XXX_Merge ¶
func (m *MsgWithdrawRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawRewardsResponse) XXX_Size ¶
func (m *MsgWithdrawRewardsResponse) XXX_Size() int
func (*MsgWithdrawRewardsResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawRewardsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
// unbonding_delegation_time ...
UnbondingDelegationTime uint64 `` /* 133-byte string literal not displayed */
// unbonding_delegation_time ...
RedelegationCooldown uint64 `protobuf:"varint,2,opt,name=redelegation_cooldown,json=redelegationCooldown,proto3" json:"redelegation_cooldown,omitempty"`
// unbonding_delegation_time ...
RedelegationMaxAmount uint64 `` /* 127-byte string literal not displayed */
// vote_slash ...
VoteSlash cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=vote_slash,json=voteSlash,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"vote_slash"`
// upload_slash ...
UploadSlash cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=upload_slash,json=uploadSlash,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"upload_slash"`
// timeout_slash ...
TimeoutSlash cosmossdk_io_math.LegacyDec `` /* 126-byte string literal not displayed */
}
Params defines the delegation module parameters.
func NewParams ¶
func NewParams( unbondingDelegationTime uint64, redelegationCooldown uint64, redelegationMaxAmount uint64, voteSlash math.LegacyDec, uploadSlash math.LegacyDec, timeoutSlash math.LegacyDec, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetRedelegationCooldown ¶
func (*Params) GetRedelegationMaxAmount ¶
func (*Params) GetUnbondingDelegationTime ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PoolKeeper ¶
type QueryClient ¶
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct {
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}
QueryServer is the server API for Query service.
type QueueState ¶
type QueueState struct {
// low_index ...
LowIndex uint64 `protobuf:"varint,1,opt,name=low_index,json=lowIndex,proto3" json:"low_index,omitempty"`
// high_index ...
HighIndex uint64 `protobuf:"varint,2,opt,name=high_index,json=highIndex,proto3" json:"high_index,omitempty"`
}
QueueState ...
func (*QueueState) Descriptor ¶
func (*QueueState) Descriptor() ([]byte, []int)
func (*QueueState) GetHighIndex ¶
func (m *QueueState) GetHighIndex() uint64
func (*QueueState) GetLowIndex ¶
func (m *QueueState) GetLowIndex() uint64
func (*QueueState) Marshal ¶
func (m *QueueState) Marshal() (dAtA []byte, err error)
func (*QueueState) MarshalToSizedBuffer ¶
func (m *QueueState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueueState) ProtoMessage ¶
func (*QueueState) ProtoMessage()
func (*QueueState) Reset ¶
func (m *QueueState) Reset()
func (*QueueState) Size ¶
func (m *QueueState) Size() (n int)
func (*QueueState) String ¶
func (m *QueueState) String() string
func (*QueueState) Unmarshal ¶
func (m *QueueState) Unmarshal(dAtA []byte) error
func (*QueueState) XXX_DiscardUnknown ¶
func (m *QueueState) XXX_DiscardUnknown()
func (*QueueState) XXX_Marshal ¶
func (m *QueueState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueueState) XXX_Merge ¶
func (m *QueueState) XXX_Merge(src proto.Message)
func (*QueueState) XXX_Size ¶
func (m *QueueState) XXX_Size() int
func (*QueueState) XXX_Unmarshal ¶
func (m *QueueState) XXX_Unmarshal(b []byte) error
type RedelegationCooldown ¶
type RedelegationCooldown struct {
// low_index ...
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// high_index ...
CreationDate uint64 `protobuf:"varint,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
}
RedelegationCooldown ...
func (*RedelegationCooldown) Descriptor ¶
func (*RedelegationCooldown) Descriptor() ([]byte, []int)
func (*RedelegationCooldown) GetAddress ¶
func (m *RedelegationCooldown) GetAddress() string
func (*RedelegationCooldown) GetCreationDate ¶
func (m *RedelegationCooldown) GetCreationDate() uint64
func (*RedelegationCooldown) Marshal ¶
func (m *RedelegationCooldown) Marshal() (dAtA []byte, err error)
func (*RedelegationCooldown) MarshalTo ¶
func (m *RedelegationCooldown) MarshalTo(dAtA []byte) (int, error)
func (*RedelegationCooldown) MarshalToSizedBuffer ¶
func (m *RedelegationCooldown) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RedelegationCooldown) ProtoMessage ¶
func (*RedelegationCooldown) ProtoMessage()
func (*RedelegationCooldown) Reset ¶
func (m *RedelegationCooldown) Reset()
func (*RedelegationCooldown) Size ¶
func (m *RedelegationCooldown) Size() (n int)
func (*RedelegationCooldown) String ¶
func (m *RedelegationCooldown) String() string
func (*RedelegationCooldown) Unmarshal ¶
func (m *RedelegationCooldown) Unmarshal(dAtA []byte) error
func (*RedelegationCooldown) XXX_DiscardUnknown ¶
func (m *RedelegationCooldown) XXX_DiscardUnknown()
func (*RedelegationCooldown) XXX_Marshal ¶
func (m *RedelegationCooldown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedelegationCooldown) XXX_Merge ¶
func (m *RedelegationCooldown) XXX_Merge(src proto.Message)
func (*RedelegationCooldown) XXX_Size ¶
func (m *RedelegationCooldown) XXX_Size() int
func (*RedelegationCooldown) XXX_Unmarshal ¶
func (m *RedelegationCooldown) XXX_Unmarshal(b []byte) error
type StakersKeeper ¶
type StakersKeeper interface {
DoesStakerExist(ctx sdk.Context, staker string) bool
GetAllStakerAddressesOfPool(ctx sdk.Context, poolId uint64) (stakers []string)
GetValaccountsFromStaker(ctx sdk.Context, stakerAddress string) (val []*stakerstypes.Valaccount)
GetPoolCount(ctx sdk.Context, stakerAddress string) (poolCount uint64)
GetActiveStakers(ctx sdk.Context) []string
}
type UndelegationQueueEntry ¶
type UndelegationQueueEntry struct {
// index ...
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// staker ...
Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"`
// delegator ...
Delegator string `protobuf:"bytes,3,opt,name=delegator,proto3" json:"delegator,omitempty"`
// amount ...
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
// creation_time ...
CreationTime uint64 `protobuf:"varint,5,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
}
UndelegationQueueEntry ...
func (*UndelegationQueueEntry) Descriptor ¶
func (*UndelegationQueueEntry) Descriptor() ([]byte, []int)
func (*UndelegationQueueEntry) GetAmount ¶
func (m *UndelegationQueueEntry) GetAmount() uint64
func (*UndelegationQueueEntry) GetCreationTime ¶
func (m *UndelegationQueueEntry) GetCreationTime() uint64
func (*UndelegationQueueEntry) GetDelegator ¶
func (m *UndelegationQueueEntry) GetDelegator() string
func (*UndelegationQueueEntry) GetIndex ¶
func (m *UndelegationQueueEntry) GetIndex() uint64
func (*UndelegationQueueEntry) GetStaker ¶
func (m *UndelegationQueueEntry) GetStaker() string
func (*UndelegationQueueEntry) Marshal ¶
func (m *UndelegationQueueEntry) Marshal() (dAtA []byte, err error)
func (*UndelegationQueueEntry) MarshalTo ¶
func (m *UndelegationQueueEntry) MarshalTo(dAtA []byte) (int, error)
func (*UndelegationQueueEntry) MarshalToSizedBuffer ¶
func (m *UndelegationQueueEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UndelegationQueueEntry) ProtoMessage ¶
func (*UndelegationQueueEntry) ProtoMessage()
func (*UndelegationQueueEntry) Reset ¶
func (m *UndelegationQueueEntry) Reset()
func (*UndelegationQueueEntry) Size ¶
func (m *UndelegationQueueEntry) Size() (n int)
func (*UndelegationQueueEntry) String ¶
func (m *UndelegationQueueEntry) String() string
func (*UndelegationQueueEntry) Unmarshal ¶
func (m *UndelegationQueueEntry) Unmarshal(dAtA []byte) error
func (*UndelegationQueueEntry) XXX_DiscardUnknown ¶
func (m *UndelegationQueueEntry) XXX_DiscardUnknown()
func (*UndelegationQueueEntry) XXX_Marshal ¶
func (m *UndelegationQueueEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UndelegationQueueEntry) XXX_Merge ¶
func (m *UndelegationQueueEntry) XXX_Merge(src proto.Message)
func (*UndelegationQueueEntry) XXX_Size ¶
func (m *UndelegationQueueEntry) XXX_Size() int
func (*UndelegationQueueEntry) XXX_Unmarshal ¶
func (m *UndelegationQueueEntry) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Delegate ¶
func (*UnimplementedMsgServer) Delegate(ctx context.Context, req *MsgDelegate) (*MsgDelegateResponse, error)
func (*UnimplementedMsgServer) Redelegate ¶
func (*UnimplementedMsgServer) Redelegate(ctx context.Context, req *MsgRedelegate) (*MsgRedelegateResponse, error)
func (*UnimplementedMsgServer) Undelegate ¶
func (*UnimplementedMsgServer) Undelegate(ctx context.Context, req *MsgUndelegate) (*MsgUndelegateResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) WithdrawRewards ¶
func (*UnimplementedMsgServer) WithdrawRewards(ctx context.Context, req *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)