Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ActiveStakerKeyIndex(staker string) []byte
- func CommissionChangeEntryKey(index uint64) []byte
- func CommissionChangeEntryKeyIndex2(staker string) []byte
- func LeavePoolEntryKey(index uint64) []byte
- func LeavePoolEntryKeyIndex2(staker string, poolId uint64) []byte
- func RegisterCodec(_ *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 StakerKey(staker string) []byte
- func ValaccountKey(poolId uint64, staker string) []byte
- func ValaccountKeyIndex2(staker string, poolId uint64) []byte
- type AccountKeeper
- type BankKeeper
- type CommissionChangeEntry
- func (*CommissionChangeEntry) Descriptor() ([]byte, []int)
- func (m *CommissionChangeEntry) GetCommission() string
- func (m *CommissionChangeEntry) GetCreationDate() int64
- func (m *CommissionChangeEntry) GetIndex() uint64
- func (m *CommissionChangeEntry) GetStaker() string
- func (m *CommissionChangeEntry) Marshal() (dAtA []byte, err error)
- func (m *CommissionChangeEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *CommissionChangeEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CommissionChangeEntry) ProtoMessage()
- func (m *CommissionChangeEntry) Reset()
- func (m *CommissionChangeEntry) Size() (n int)
- func (m *CommissionChangeEntry) String() string
- func (m *CommissionChangeEntry) Unmarshal(dAtA []byte) error
- func (m *CommissionChangeEntry) XXX_DiscardUnknown()
- func (m *CommissionChangeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommissionChangeEntry) XXX_Merge(src proto.Message)
- func (m *CommissionChangeEntry) XXX_Size() int
- func (m *CommissionChangeEntry) XXX_Unmarshal(b []byte) error
- type DelegationKeeper
- type DistrKeeper
- type EventCreateStaker
- func (*EventCreateStaker) Descriptor() ([]byte, []int)
- func (m *EventCreateStaker) GetAmount() uint64
- func (m *EventCreateStaker) GetStaker() string
- func (m *EventCreateStaker) Marshal() (dAtA []byte, err error)
- func (m *EventCreateStaker) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateStaker) ProtoMessage()
- func (m *EventCreateStaker) Reset()
- func (m *EventCreateStaker) Size() (n int)
- func (m *EventCreateStaker) String() string
- func (m *EventCreateStaker) Unmarshal(dAtA []byte) error
- func (m *EventCreateStaker) XXX_DiscardUnknown()
- func (m *EventCreateStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateStaker) XXX_Merge(src proto.Message)
- func (m *EventCreateStaker) XXX_Size() int
- func (m *EventCreateStaker) XXX_Unmarshal(b []byte) error
- type EventJoinPool
- func (*EventJoinPool) Descriptor() ([]byte, []int)
- func (m *EventJoinPool) GetAmount() uint64
- func (m *EventJoinPool) GetPoolId() uint64
- func (m *EventJoinPool) GetStaker() string
- func (m *EventJoinPool) GetValaddress() string
- func (m *EventJoinPool) Marshal() (dAtA []byte, err error)
- func (m *EventJoinPool) MarshalTo(dAtA []byte) (int, error)
- func (m *EventJoinPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventJoinPool) ProtoMessage()
- func (m *EventJoinPool) Reset()
- func (m *EventJoinPool) Size() (n int)
- func (m *EventJoinPool) String() string
- func (m *EventJoinPool) Unmarshal(dAtA []byte) error
- func (m *EventJoinPool) XXX_DiscardUnknown()
- func (m *EventJoinPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventJoinPool) XXX_Merge(src proto.Message)
- func (m *EventJoinPool) XXX_Size() int
- func (m *EventJoinPool) XXX_Unmarshal(b []byte) error
- type EventLeavePool
- func (*EventLeavePool) Descriptor() ([]byte, []int)
- func (m *EventLeavePool) GetPoolId() uint64
- func (m *EventLeavePool) GetStaker() string
- func (m *EventLeavePool) Marshal() (dAtA []byte, err error)
- func (m *EventLeavePool) MarshalTo(dAtA []byte) (int, error)
- func (m *EventLeavePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventLeavePool) ProtoMessage()
- func (m *EventLeavePool) Reset()
- func (m *EventLeavePool) Size() (n int)
- func (m *EventLeavePool) String() string
- func (m *EventLeavePool) Unmarshal(dAtA []byte) error
- func (m *EventLeavePool) XXX_DiscardUnknown()
- func (m *EventLeavePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventLeavePool) XXX_Merge(src proto.Message)
- func (m *EventLeavePool) XXX_Size() int
- func (m *EventLeavePool) XXX_Unmarshal(b []byte) error
- type EventUpdateCommission
- func (*EventUpdateCommission) Descriptor() ([]byte, []int)
- func (m *EventUpdateCommission) GetCommission() string
- func (m *EventUpdateCommission) GetStaker() string
- func (m *EventUpdateCommission) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateCommission) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateCommission) ProtoMessage()
- func (m *EventUpdateCommission) Reset()
- func (m *EventUpdateCommission) Size() (n int)
- func (m *EventUpdateCommission) String() string
- func (m *EventUpdateCommission) Unmarshal(dAtA []byte) error
- func (m *EventUpdateCommission) XXX_DiscardUnknown()
- func (m *EventUpdateCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateCommission) XXX_Merge(src proto.Message)
- func (m *EventUpdateCommission) XXX_Size() int
- func (m *EventUpdateCommission) XXX_Unmarshal(b []byte) error
- type EventUpdateMetadata
- func (*EventUpdateMetadata) Descriptor() ([]byte, []int)
- func (m *EventUpdateMetadata) GetLogo() string
- func (m *EventUpdateMetadata) GetMoniker() string
- func (m *EventUpdateMetadata) GetStaker() string
- func (m *EventUpdateMetadata) GetWebsite() string
- func (m *EventUpdateMetadata) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateMetadata) ProtoMessage()
- func (m *EventUpdateMetadata) Reset()
- func (m *EventUpdateMetadata) Size() (n int)
- func (m *EventUpdateMetadata) String() string
- func (m *EventUpdateMetadata) Unmarshal(dAtA []byte) error
- func (m *EventUpdateMetadata) XXX_DiscardUnknown()
- func (m *EventUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateMetadata) XXX_Merge(src proto.Message)
- func (m *EventUpdateMetadata) XXX_Size() int
- func (m *EventUpdateMetadata) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCommissionChangeEntries() []CommissionChangeEntry
- func (m *GenesisState) GetLeavePoolEntries() []LeavePoolEntry
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetQueueStateCommission() QueueState
- func (m *GenesisState) GetQueueStateLeave() QueueState
- func (m *GenesisState) GetStakerList() []Staker
- func (m *GenesisState) GetValaccountList() []Valaccount
- 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 LeavePoolEntry
- func (*LeavePoolEntry) Descriptor() ([]byte, []int)
- func (m *LeavePoolEntry) GetCreationDate() int64
- func (m *LeavePoolEntry) GetIndex() uint64
- func (m *LeavePoolEntry) GetPoolId() uint64
- func (m *LeavePoolEntry) GetStaker() string
- func (m *LeavePoolEntry) Marshal() (dAtA []byte, err error)
- func (m *LeavePoolEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *LeavePoolEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeavePoolEntry) ProtoMessage()
- func (m *LeavePoolEntry) Reset()
- func (m *LeavePoolEntry) Size() (n int)
- func (m *LeavePoolEntry) String() string
- func (m *LeavePoolEntry) Unmarshal(dAtA []byte) error
- func (m *LeavePoolEntry) XXX_DiscardUnknown()
- func (m *LeavePoolEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeavePoolEntry) XXX_Merge(src proto.Message)
- func (m *LeavePoolEntry) XXX_Size() int
- func (m *LeavePoolEntry) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateStaker
- func (*MsgCreateStaker) Descriptor() ([]byte, []int)
- func (m *MsgCreateStaker) GetAmount() uint64
- func (m *MsgCreateStaker) GetCreator() string
- func (msg *MsgCreateStaker) GetSignBytes() []byte
- func (msg *MsgCreateStaker) GetSigners() []sdk.AccAddress
- func (m *MsgCreateStaker) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateStaker) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateStaker) ProtoMessage()
- func (m *MsgCreateStaker) Reset()
- func (msg *MsgCreateStaker) Route() string
- func (m *MsgCreateStaker) Size() (n int)
- func (m *MsgCreateStaker) String() string
- func (msg *MsgCreateStaker) Type() string
- func (m *MsgCreateStaker) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateStaker) ValidateBasic() error
- func (m *MsgCreateStaker) XXX_DiscardUnknown()
- func (m *MsgCreateStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateStaker) XXX_Merge(src proto.Message)
- func (m *MsgCreateStaker) XXX_Size() int
- func (m *MsgCreateStaker) XXX_Unmarshal(b []byte) error
- type MsgCreateStakerResponse
- func (*MsgCreateStakerResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateStakerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateStakerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateStakerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateStakerResponse) ProtoMessage()
- func (m *MsgCreateStakerResponse) Reset()
- func (m *MsgCreateStakerResponse) Size() (n int)
- func (m *MsgCreateStakerResponse) String() string
- func (m *MsgCreateStakerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateStakerResponse) XXX_DiscardUnknown()
- func (m *MsgCreateStakerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateStakerResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateStakerResponse) XXX_Size() int
- func (m *MsgCreateStakerResponse) XXX_Unmarshal(b []byte) error
- type MsgJoinPool
- func (*MsgJoinPool) Descriptor() ([]byte, []int)
- func (m *MsgJoinPool) GetAmount() uint64
- func (m *MsgJoinPool) GetCreator() string
- func (m *MsgJoinPool) GetPoolId() uint64
- func (msg *MsgJoinPool) GetSignBytes() []byte
- func (msg *MsgJoinPool) GetSigners() []sdk.AccAddress
- func (m *MsgJoinPool) GetValaddress() string
- func (m *MsgJoinPool) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinPool) ProtoMessage()
- func (m *MsgJoinPool) Reset()
- func (msg *MsgJoinPool) Route() string
- func (m *MsgJoinPool) Size() (n int)
- func (m *MsgJoinPool) String() string
- func (msg *MsgJoinPool) Type() string
- func (m *MsgJoinPool) Unmarshal(dAtA []byte) error
- func (msg *MsgJoinPool) ValidateBasic() error
- func (m *MsgJoinPool) XXX_DiscardUnknown()
- func (m *MsgJoinPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinPool) XXX_Merge(src proto.Message)
- func (m *MsgJoinPool) XXX_Size() int
- func (m *MsgJoinPool) XXX_Unmarshal(b []byte) error
- type MsgJoinPoolResponse
- func (*MsgJoinPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgJoinPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinPoolResponse) ProtoMessage()
- func (m *MsgJoinPoolResponse) Reset()
- func (m *MsgJoinPoolResponse) Size() (n int)
- func (m *MsgJoinPoolResponse) String() string
- func (m *MsgJoinPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgJoinPoolResponse) XXX_DiscardUnknown()
- func (m *MsgJoinPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgJoinPoolResponse) XXX_Size() int
- func (m *MsgJoinPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgLeavePool
- func (*MsgLeavePool) Descriptor() ([]byte, []int)
- func (m *MsgLeavePool) GetCreator() string
- func (m *MsgLeavePool) GetPoolId() uint64
- func (msg *MsgLeavePool) GetSignBytes() []byte
- func (msg *MsgLeavePool) GetSigners() []sdk.AccAddress
- func (m *MsgLeavePool) Marshal() (dAtA []byte, err error)
- func (m *MsgLeavePool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLeavePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLeavePool) ProtoMessage()
- func (m *MsgLeavePool) Reset()
- func (msg *MsgLeavePool) Route() string
- func (m *MsgLeavePool) Size() (n int)
- func (m *MsgLeavePool) String() string
- func (msg *MsgLeavePool) Type() string
- func (m *MsgLeavePool) Unmarshal(dAtA []byte) error
- func (msg *MsgLeavePool) ValidateBasic() error
- func (m *MsgLeavePool) XXX_DiscardUnknown()
- func (m *MsgLeavePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLeavePool) XXX_Merge(src proto.Message)
- func (m *MsgLeavePool) XXX_Size() int
- func (m *MsgLeavePool) XXX_Unmarshal(b []byte) error
- type MsgLeavePoolResponse
- func (*MsgLeavePoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgLeavePoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgLeavePoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLeavePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLeavePoolResponse) ProtoMessage()
- func (m *MsgLeavePoolResponse) Reset()
- func (m *MsgLeavePoolResponse) Size() (n int)
- func (m *MsgLeavePoolResponse) String() string
- func (m *MsgLeavePoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgLeavePoolResponse) XXX_DiscardUnknown()
- func (m *MsgLeavePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLeavePoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgLeavePoolResponse) XXX_Size() int
- func (m *MsgLeavePoolResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateCommission
- func (*MsgUpdateCommission) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCommission) GetCommission() string
- func (m *MsgUpdateCommission) GetCreator() string
- func (msg *MsgUpdateCommission) GetSignBytes() []byte
- func (msg *MsgUpdateCommission) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateCommission) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCommission) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCommission) ProtoMessage()
- func (m *MsgUpdateCommission) Reset()
- func (msg *MsgUpdateCommission) Route() string
- func (m *MsgUpdateCommission) Size() (n int)
- func (m *MsgUpdateCommission) String() string
- func (msg *MsgUpdateCommission) Type() string
- func (m *MsgUpdateCommission) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateCommission) ValidateBasic() error
- func (m *MsgUpdateCommission) XXX_DiscardUnknown()
- func (m *MsgUpdateCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCommission) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCommission) XXX_Size() int
- func (m *MsgUpdateCommission) XXX_Unmarshal(b []byte) error
- type MsgUpdateCommissionResponse
- func (*MsgUpdateCommissionResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCommissionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCommissionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCommissionResponse) ProtoMessage()
- func (m *MsgUpdateCommissionResponse) Reset()
- func (m *MsgUpdateCommissionResponse) Size() (n int)
- func (m *MsgUpdateCommissionResponse) String() string
- func (m *MsgUpdateCommissionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateCommissionResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCommissionResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCommissionResponse) XXX_Size() int
- func (m *MsgUpdateCommissionResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMetadata
- func (*MsgUpdateMetadata) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMetadata) GetCreator() string
- func (m *MsgUpdateMetadata) GetLogo() string
- func (m *MsgUpdateMetadata) GetMoniker() string
- func (msg *MsgUpdateMetadata) GetSignBytes() []byte
- func (msg *MsgUpdateMetadata) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateMetadata) GetWebsite() string
- func (m *MsgUpdateMetadata) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMetadata) ProtoMessage()
- func (m *MsgUpdateMetadata) Reset()
- func (msg *MsgUpdateMetadata) Route() string
- func (m *MsgUpdateMetadata) Size() (n int)
- func (m *MsgUpdateMetadata) String() string
- func (msg *MsgUpdateMetadata) Type() string
- func (m *MsgUpdateMetadata) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateMetadata) ValidateBasic() error
- func (m *MsgUpdateMetadata) XXX_DiscardUnknown()
- func (m *MsgUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMetadata) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMetadata) XXX_Size() int
- func (m *MsgUpdateMetadata) XXX_Unmarshal(b []byte) error
- type MsgUpdateMetadataResponse
- func (*MsgUpdateMetadataResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMetadataResponse) ProtoMessage()
- func (m *MsgUpdateMetadataResponse) Reset()
- func (m *MsgUpdateMetadataResponse) Size() (n int)
- func (m *MsgUpdateMetadataResponse) String() string
- func (m *MsgUpdateMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMetadataResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMetadataResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMetadataResponse) XXX_Size() int
- func (m *MsgUpdateMetadataResponse) 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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetCommissionChangeTime() uint64
- func (m *Params) GetLeavePoolTime() 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 QUEUE_IDENTIFIER
- 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 STAKER_STATS
- type Staker
- func (*Staker) Descriptor() ([]byte, []int)
- func (m *Staker) GetAddress() string
- func (m *Staker) GetCommission() string
- func (m *Staker) GetLogo() string
- func (m *Staker) GetMoniker() string
- func (m *Staker) GetWebsite() string
- func (m *Staker) Marshal() (dAtA []byte, err error)
- func (m *Staker) MarshalTo(dAtA []byte) (int, error)
- func (m *Staker) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Staker) ProtoMessage()
- func (m *Staker) Reset()
- func (m *Staker) Size() (n int)
- func (m *Staker) String() string
- func (m *Staker) Unmarshal(dAtA []byte) error
- func (m *Staker) XXX_DiscardUnknown()
- func (m *Staker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Staker) XXX_Merge(src proto.Message)
- func (m *Staker) XXX_Size() int
- func (m *Staker) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateStaker(ctx context.Context, req *MsgCreateStaker) (*MsgCreateStakerResponse, error)
- func (*UnimplementedMsgServer) JoinPool(ctx context.Context, req *MsgJoinPool) (*MsgJoinPoolResponse, error)
- func (*UnimplementedMsgServer) LeavePool(ctx context.Context, req *MsgLeavePool) (*MsgLeavePoolResponse, error)
- func (*UnimplementedMsgServer) UpdateCommission(ctx context.Context, req *MsgUpdateCommission) (*MsgUpdateCommissionResponse, error)
- func (*UnimplementedMsgServer) UpdateMetadata(ctx context.Context, req *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- type UpgradeKeeper
- type Valaccount
- func (*Valaccount) Descriptor() ([]byte, []int)
- func (m *Valaccount) GetIsLeaving() bool
- func (m *Valaccount) GetPoints() uint64
- func (m *Valaccount) GetPoolId() uint64
- func (m *Valaccount) GetStaker() string
- func (m *Valaccount) GetValaddress() string
- func (m *Valaccount) Marshal() (dAtA []byte, err error)
- func (m *Valaccount) MarshalTo(dAtA []byte) (int, error)
- func (m *Valaccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Valaccount) ProtoMessage()
- func (m *Valaccount) Reset()
- func (m *Valaccount) Size() (n int)
- func (m *Valaccount) String() string
- func (m *Valaccount) Unmarshal(dAtA []byte) error
- func (m *Valaccount) XXX_DiscardUnknown()
- func (m *Valaccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Valaccount) XXX_Merge(src proto.Message)
- func (m *Valaccount) XXX_Size() int
- func (m *Valaccount) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "stakers" // 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_stakers" )
const ( MaxStakers = 50 DefaultCommission = "0.9" )
const TypeMsgCreateStaker = "create_staker"
const TypeMsgJoinPool = "join_pool"
const TypeMsgLeavePool = "leave_pool"
const TypeMsgUpdateCommission = "update_commission"
const TypeMsgUpdateMetadata = "update_metadata"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrStakeTooLow = errors.Register(ModuleName, 1103, "minimum staking amount of %vkyve not reached") ErrUnstakeTooHigh = errors.Register(ModuleName, 1104, "maximum unstaking amount of %vkyve surpassed") ErrNoStaker = errors.Register(ModuleName, 1105, "sender is no staker") ErrAlreadyJoinedPool = errors.Register(ModuleName, 1106, "already joined pool") ErrAlreadyLeftPool = errors.Register(ModuleName, 1107, "already left pool") ValaddressAlreadyUsed = errors.Register(ModuleName, 1108, "valaddress already used") ErrStringMaxLengthExceeded = errors.Register(ModuleName, 1109, "String length exceeded: %d vs %d") ErrStakerAlreadyCreated = errors.Register(ModuleName, 1110, "Staker already created") ErrValaddressSameAsStaker = errors.Register(ModuleName, 1111, "Valaddress has same address as Valaddress") ErrCanNotJoinDisabledPool = errors.Register(ModuleName, 1112, "can not join disabled pool") ErrInvalidCommission = errors.Register(ModuleName, 1116, "invalid commission %v") ErrPoolLeaveAlreadyInProgress = errors.Register(ModuleName, 1117, "Pool leave is already in progress") )
staking errors
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 ( // ParamsKey is the prefix for all module params defined in params.proto ParamsKey = []byte{0x00} // StakerKeyPrefix is indexed by the staker address // and contains all stakers regardless of the pool // key -> StakerKeyPrefix | <stakerAddr> StakerKeyPrefix = []byte{1} // ValaccountPrefix stores valaccount for each staker and pool // ValaccountPrefix | <poolId> | <staker> ValaccountPrefix = []byte{2, 0} // ValaccountPrefixIndex2 | <staker> | <poolId> ValaccountPrefixIndex2 = []byte{2, 1} // CommissionChangeEntryKeyPrefix | <index> CommissionChangeEntryKeyPrefix = []byte{4, 0} // CommissionChangeEntryKeyPrefixIndex2 | <staker> CommissionChangeEntryKeyPrefixIndex2 = []byte{4, 1} // LeavePoolEntryKeyPrefix | <index> LeavePoolEntryKeyPrefix = []byte{5, 0} // LeavePoolEntryKeyPrefixIndex2 | <staker> | <poolId> LeavePoolEntryKeyPrefixIndex2 = []byte{5, 1} ActiveStakerIndex = []byte{6} )
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 ( ErrInvalidLengthStakers = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStakers = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStakers = 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 DefaultCommissionChangeTime = uint64(60 * 60 * 24 * 5)
DefaultCommissionChangeTime ...
var DefaultLeavePoolTime = uint64(60 * 60 * 24 * 5)
DefaultLeavePoolTime ...
Functions ¶
func ActiveStakerKeyIndex ¶
func CommissionChangeEntryKeyIndex2 ¶
Important: only one queue entry per staker is allowed at a time.
func LeavePoolEntryKey ¶
func LeavePoolEntryKeyIndex2 ¶
func RegisterCodec ¶
func RegisterCodec(_ *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 ValaccountKey ¶
func ValaccountKeyIndex2 ¶
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(moduleName string) sdk.AccAddress
}
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type CommissionChangeEntry ¶
type CommissionChangeEntry struct { // index is needed for the queue-algorithm which // processes the commission changes Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // staker is the address of the affected staker Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"` // commission is the new commission which will // be applied after the waiting time is over. Commission string `protobuf:"bytes,3,opt,name=commission,proto3" json:"commission,omitempty"` // creation_date is the UNIX-timestamp in seconds // when the entry was created. CreationDate int64 `protobuf:"varint,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` }
CommissionChangeEntry stores the information for an upcoming commission change. A commission change is never instant, so delegators have time to redelegate in case they don't agree with the new commission.
func (*CommissionChangeEntry) Descriptor ¶
func (*CommissionChangeEntry) Descriptor() ([]byte, []int)
func (*CommissionChangeEntry) GetCommission ¶
func (m *CommissionChangeEntry) GetCommission() string
func (*CommissionChangeEntry) GetCreationDate ¶
func (m *CommissionChangeEntry) GetCreationDate() int64
func (*CommissionChangeEntry) GetIndex ¶
func (m *CommissionChangeEntry) GetIndex() uint64
func (*CommissionChangeEntry) GetStaker ¶
func (m *CommissionChangeEntry) GetStaker() string
func (*CommissionChangeEntry) Marshal ¶
func (m *CommissionChangeEntry) Marshal() (dAtA []byte, err error)
func (*CommissionChangeEntry) MarshalTo ¶
func (m *CommissionChangeEntry) MarshalTo(dAtA []byte) (int, error)
func (*CommissionChangeEntry) MarshalToSizedBuffer ¶
func (m *CommissionChangeEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CommissionChangeEntry) ProtoMessage ¶
func (*CommissionChangeEntry) ProtoMessage()
func (*CommissionChangeEntry) Reset ¶
func (m *CommissionChangeEntry) Reset()
func (*CommissionChangeEntry) Size ¶
func (m *CommissionChangeEntry) Size() (n int)
func (*CommissionChangeEntry) String ¶
func (m *CommissionChangeEntry) String() string
func (*CommissionChangeEntry) Unmarshal ¶
func (m *CommissionChangeEntry) Unmarshal(dAtA []byte) error
func (*CommissionChangeEntry) XXX_DiscardUnknown ¶
func (m *CommissionChangeEntry) XXX_DiscardUnknown()
func (*CommissionChangeEntry) XXX_Marshal ¶
func (m *CommissionChangeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommissionChangeEntry) XXX_Merge ¶
func (m *CommissionChangeEntry) XXX_Merge(src proto.Message)
func (*CommissionChangeEntry) XXX_Size ¶
func (m *CommissionChangeEntry) XXX_Size() int
func (*CommissionChangeEntry) XXX_Unmarshal ¶
func (m *CommissionChangeEntry) XXX_Unmarshal(b []byte) error
type DelegationKeeper ¶
type DistrKeeper ¶
type EventCreateStaker ¶
type EventCreateStaker struct { // staker is the account address of the protocol node. Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"` // amount ... Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` }
EventCreateStaker is an event emitted when a protocol node stakes in a pool. emitted_by: MsgCreateStaker
func (*EventCreateStaker) Descriptor ¶
func (*EventCreateStaker) Descriptor() ([]byte, []int)
func (*EventCreateStaker) GetAmount ¶
func (m *EventCreateStaker) GetAmount() uint64
func (*EventCreateStaker) GetStaker ¶
func (m *EventCreateStaker) GetStaker() string
func (*EventCreateStaker) Marshal ¶
func (m *EventCreateStaker) Marshal() (dAtA []byte, err error)
func (*EventCreateStaker) MarshalTo ¶
func (m *EventCreateStaker) MarshalTo(dAtA []byte) (int, error)
func (*EventCreateStaker) MarshalToSizedBuffer ¶
func (m *EventCreateStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateStaker) ProtoMessage ¶
func (*EventCreateStaker) ProtoMessage()
func (*EventCreateStaker) Reset ¶
func (m *EventCreateStaker) Reset()
func (*EventCreateStaker) Size ¶
func (m *EventCreateStaker) Size() (n int)
func (*EventCreateStaker) String ¶
func (m *EventCreateStaker) String() string
func (*EventCreateStaker) Unmarshal ¶
func (m *EventCreateStaker) Unmarshal(dAtA []byte) error
func (*EventCreateStaker) XXX_DiscardUnknown ¶
func (m *EventCreateStaker) XXX_DiscardUnknown()
func (*EventCreateStaker) XXX_Marshal ¶
func (m *EventCreateStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateStaker) XXX_Merge ¶
func (m *EventCreateStaker) XXX_Merge(src proto.Message)
func (*EventCreateStaker) XXX_Size ¶
func (m *EventCreateStaker) XXX_Size() int
func (*EventCreateStaker) XXX_Unmarshal ¶
func (m *EventCreateStaker) XXX_Unmarshal(b []byte) error
type EventJoinPool ¶
type EventJoinPool struct { // pool_id is the pool the staker joined PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // staker is the address of the staker Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"` // valaddress is the address of the protocol node which // votes in favor of the staker Valaddress string `protobuf:"bytes,3,opt,name=valaddress,proto3" json:"valaddress,omitempty"` // amount is the amount of funds transferred to the valaddress Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` }
EventJoinPool ... emitted_by: MsgJoinPool
func (*EventJoinPool) Descriptor ¶
func (*EventJoinPool) Descriptor() ([]byte, []int)
func (*EventJoinPool) GetAmount ¶
func (m *EventJoinPool) GetAmount() uint64
func (*EventJoinPool) GetPoolId ¶
func (m *EventJoinPool) GetPoolId() uint64
func (*EventJoinPool) GetStaker ¶
func (m *EventJoinPool) GetStaker() string
func (*EventJoinPool) GetValaddress ¶
func (m *EventJoinPool) GetValaddress() string
func (*EventJoinPool) Marshal ¶
func (m *EventJoinPool) Marshal() (dAtA []byte, err error)
func (*EventJoinPool) MarshalToSizedBuffer ¶
func (m *EventJoinPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventJoinPool) ProtoMessage ¶
func (*EventJoinPool) ProtoMessage()
func (*EventJoinPool) Reset ¶
func (m *EventJoinPool) Reset()
func (*EventJoinPool) Size ¶
func (m *EventJoinPool) Size() (n int)
func (*EventJoinPool) String ¶
func (m *EventJoinPool) String() string
func (*EventJoinPool) Unmarshal ¶
func (m *EventJoinPool) Unmarshal(dAtA []byte) error
func (*EventJoinPool) XXX_DiscardUnknown ¶
func (m *EventJoinPool) XXX_DiscardUnknown()
func (*EventJoinPool) XXX_Marshal ¶
func (m *EventJoinPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventJoinPool) XXX_Merge ¶
func (m *EventJoinPool) XXX_Merge(src proto.Message)
func (*EventJoinPool) XXX_Size ¶
func (m *EventJoinPool) XXX_Size() int
func (*EventJoinPool) XXX_Unmarshal ¶
func (m *EventJoinPool) XXX_Unmarshal(b []byte) error
type EventLeavePool ¶
type EventLeavePool struct { // pool_id ... PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // staker ... Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"` }
EventLeavePool ... emitted_by: EndBlock
func (*EventLeavePool) Descriptor ¶
func (*EventLeavePool) Descriptor() ([]byte, []int)
func (*EventLeavePool) GetPoolId ¶
func (m *EventLeavePool) GetPoolId() uint64
func (*EventLeavePool) GetStaker ¶
func (m *EventLeavePool) GetStaker() string
func (*EventLeavePool) Marshal ¶
func (m *EventLeavePool) Marshal() (dAtA []byte, err error)
func (*EventLeavePool) MarshalToSizedBuffer ¶
func (m *EventLeavePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventLeavePool) ProtoMessage ¶
func (*EventLeavePool) ProtoMessage()
func (*EventLeavePool) Reset ¶
func (m *EventLeavePool) Reset()
func (*EventLeavePool) Size ¶
func (m *EventLeavePool) Size() (n int)
func (*EventLeavePool) String ¶
func (m *EventLeavePool) String() string
func (*EventLeavePool) Unmarshal ¶
func (m *EventLeavePool) Unmarshal(dAtA []byte) error
func (*EventLeavePool) XXX_DiscardUnknown ¶
func (m *EventLeavePool) XXX_DiscardUnknown()
func (*EventLeavePool) XXX_Marshal ¶
func (m *EventLeavePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventLeavePool) XXX_Merge ¶
func (m *EventLeavePool) XXX_Merge(src proto.Message)
func (*EventLeavePool) XXX_Size ¶
func (m *EventLeavePool) XXX_Size() int
func (*EventLeavePool) XXX_Unmarshal ¶
func (m *EventLeavePool) XXX_Unmarshal(b []byte) error
type EventUpdateCommission ¶
type EventUpdateCommission struct { // staker is the account address of the protocol node. Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"` // commission ... Commission string `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"` }
EventUpdateCommission ... emitted_by: EndBlock
func (*EventUpdateCommission) Descriptor ¶
func (*EventUpdateCommission) Descriptor() ([]byte, []int)
func (*EventUpdateCommission) GetCommission ¶
func (m *EventUpdateCommission) GetCommission() string
func (*EventUpdateCommission) GetStaker ¶
func (m *EventUpdateCommission) GetStaker() string
func (*EventUpdateCommission) Marshal ¶
func (m *EventUpdateCommission) Marshal() (dAtA []byte, err error)
func (*EventUpdateCommission) MarshalTo ¶
func (m *EventUpdateCommission) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateCommission) MarshalToSizedBuffer ¶
func (m *EventUpdateCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateCommission) ProtoMessage ¶
func (*EventUpdateCommission) ProtoMessage()
func (*EventUpdateCommission) Reset ¶
func (m *EventUpdateCommission) Reset()
func (*EventUpdateCommission) Size ¶
func (m *EventUpdateCommission) Size() (n int)
func (*EventUpdateCommission) String ¶
func (m *EventUpdateCommission) String() string
func (*EventUpdateCommission) Unmarshal ¶
func (m *EventUpdateCommission) Unmarshal(dAtA []byte) error
func (*EventUpdateCommission) XXX_DiscardUnknown ¶
func (m *EventUpdateCommission) XXX_DiscardUnknown()
func (*EventUpdateCommission) XXX_Marshal ¶
func (m *EventUpdateCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateCommission) XXX_Merge ¶
func (m *EventUpdateCommission) XXX_Merge(src proto.Message)
func (*EventUpdateCommission) XXX_Size ¶
func (m *EventUpdateCommission) XXX_Size() int
func (*EventUpdateCommission) XXX_Unmarshal ¶
func (m *EventUpdateCommission) XXX_Unmarshal(b []byte) error
type EventUpdateMetadata ¶
type EventUpdateMetadata struct { // staker is the account address of the protocol node. Staker string `protobuf:"bytes,1,opt,name=staker,proto3" json:"staker,omitempty"` // moniker ... Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"` // website ... Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"` // logo ... Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"` }
EventUpdateMetadata is an event emitted when a protocol node updates their metadata. emitted_by: MsgUpdateMetadata
func (*EventUpdateMetadata) Descriptor ¶
func (*EventUpdateMetadata) Descriptor() ([]byte, []int)
func (*EventUpdateMetadata) GetLogo ¶
func (m *EventUpdateMetadata) GetLogo() string
func (*EventUpdateMetadata) GetMoniker ¶
func (m *EventUpdateMetadata) GetMoniker() string
func (*EventUpdateMetadata) GetStaker ¶
func (m *EventUpdateMetadata) GetStaker() string
func (*EventUpdateMetadata) GetWebsite ¶
func (m *EventUpdateMetadata) GetWebsite() string
func (*EventUpdateMetadata) Marshal ¶
func (m *EventUpdateMetadata) Marshal() (dAtA []byte, err error)
func (*EventUpdateMetadata) MarshalTo ¶
func (m *EventUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateMetadata) MarshalToSizedBuffer ¶
func (m *EventUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateMetadata) ProtoMessage ¶
func (*EventUpdateMetadata) ProtoMessage()
func (*EventUpdateMetadata) Reset ¶
func (m *EventUpdateMetadata) Reset()
func (*EventUpdateMetadata) Size ¶
func (m *EventUpdateMetadata) Size() (n int)
func (*EventUpdateMetadata) String ¶
func (m *EventUpdateMetadata) String() string
func (*EventUpdateMetadata) Unmarshal ¶
func (m *EventUpdateMetadata) Unmarshal(dAtA []byte) error
func (*EventUpdateMetadata) XXX_DiscardUnknown ¶
func (m *EventUpdateMetadata) XXX_DiscardUnknown()
func (*EventUpdateMetadata) XXX_Marshal ¶
func (m *EventUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateMetadata) XXX_Merge ¶
func (m *EventUpdateMetadata) XXX_Merge(src proto.Message)
func (*EventUpdateMetadata) XXX_Size ¶
func (m *EventUpdateMetadata) XXX_Size() int
func (*EventUpdateMetadata) XXX_Unmarshal ¶
func (m *EventUpdateMetadata) 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"` // staker_list ... StakerList []Staker `protobuf:"bytes,2,rep,name=staker_list,json=stakerList,proto3" json:"staker_list"` // valaccount_list ... ValaccountList []Valaccount `protobuf:"bytes,3,rep,name=valaccount_list,json=valaccountList,proto3" json:"valaccount_list"` // commission_change_entries ... CommissionChangeEntries []CommissionChangeEntry `protobuf:"bytes,4,rep,name=commission_change_entries,json=commissionChangeEntries,proto3" json:"commission_change_entries"` // queue_state_commission ... QueueStateCommission QueueState `protobuf:"bytes,5,opt,name=queue_state_commission,json=queueStateCommission,proto3" json:"queue_state_commission"` // leave_pool_entries ... LeavePoolEntries []LeavePoolEntry `protobuf:"bytes,6,rep,name=leave_pool_entries,json=leavePoolEntries,proto3" json:"leave_pool_entries"` // queue_state_leave ... QueueStateLeave QueueState `protobuf:"bytes,7,opt,name=queue_state_leave,json=queueStateLeave,proto3" json:"queue_state_leave"` }
GenesisState defines the stakers 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) GetCommissionChangeEntries ¶
func (m *GenesisState) GetCommissionChangeEntries() []CommissionChangeEntry
func (*GenesisState) GetLeavePoolEntries ¶
func (m *GenesisState) GetLeavePoolEntries() []LeavePoolEntry
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetQueueStateCommission ¶
func (m *GenesisState) GetQueueStateCommission() QueueState
func (*GenesisState) GetQueueStateLeave ¶
func (m *GenesisState) GetQueueStateLeave() QueueState
func (*GenesisState) GetStakerList ¶
func (m *GenesisState) GetStakerList() []Staker
func (*GenesisState) GetValaccountList ¶
func (m *GenesisState) GetValaccountList() []Valaccount
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 LeavePoolEntry ¶
type LeavePoolEntry struct { // index is needed for the queue-algorithm which // processes the commission changes Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // staker is the address of the affected staker Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"` // pool_id indicates the pool the staker wants to leave PoolId uint64 `protobuf:"varint,3,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // creation_date is the UNIX-timestamp in seconds // when the entry was created. CreationDate int64 `protobuf:"varint,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` }
LeavePoolEntry stores the information for an upcoming pool leave. A staker can't leave a pool instantly. Instead a the `LeaveTime` needs to be awaited. If a staker start to leave a pool, it will be shown in the UI to the delegators.
func (*LeavePoolEntry) Descriptor ¶
func (*LeavePoolEntry) Descriptor() ([]byte, []int)
func (*LeavePoolEntry) GetCreationDate ¶
func (m *LeavePoolEntry) GetCreationDate() int64
func (*LeavePoolEntry) GetIndex ¶
func (m *LeavePoolEntry) GetIndex() uint64
func (*LeavePoolEntry) GetPoolId ¶
func (m *LeavePoolEntry) GetPoolId() uint64
func (*LeavePoolEntry) GetStaker ¶
func (m *LeavePoolEntry) GetStaker() string
func (*LeavePoolEntry) Marshal ¶
func (m *LeavePoolEntry) Marshal() (dAtA []byte, err error)
func (*LeavePoolEntry) MarshalToSizedBuffer ¶
func (m *LeavePoolEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeavePoolEntry) ProtoMessage ¶
func (*LeavePoolEntry) ProtoMessage()
func (*LeavePoolEntry) Reset ¶
func (m *LeavePoolEntry) Reset()
func (*LeavePoolEntry) Size ¶
func (m *LeavePoolEntry) Size() (n int)
func (*LeavePoolEntry) String ¶
func (m *LeavePoolEntry) String() string
func (*LeavePoolEntry) Unmarshal ¶
func (m *LeavePoolEntry) Unmarshal(dAtA []byte) error
func (*LeavePoolEntry) XXX_DiscardUnknown ¶
func (m *LeavePoolEntry) XXX_DiscardUnknown()
func (*LeavePoolEntry) XXX_Marshal ¶
func (m *LeavePoolEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeavePoolEntry) XXX_Merge ¶
func (m *LeavePoolEntry) XXX_Merge(src proto.Message)
func (*LeavePoolEntry) XXX_Size ¶
func (m *LeavePoolEntry) XXX_Size() int
func (*LeavePoolEntry) XXX_Unmarshal ¶
func (m *LeavePoolEntry) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateStaker ... CreateStaker(ctx context.Context, in *MsgCreateStaker, opts ...grpc.CallOption) (*MsgCreateStakerResponse, error) // UpdateMetadata ... UpdateMetadata(ctx context.Context, in *MsgUpdateMetadata, opts ...grpc.CallOption) (*MsgUpdateMetadataResponse, error) // UpdateCommission ... UpdateCommission(ctx context.Context, in *MsgUpdateCommission, opts ...grpc.CallOption) (*MsgUpdateCommissionResponse, error) // JoinPool ... JoinPool(ctx context.Context, in *MsgJoinPool, opts ...grpc.CallOption) (*MsgJoinPoolResponse, error) // LeavePool ... LeavePool(ctx context.Context, in *MsgLeavePool, opts ...grpc.CallOption) (*MsgLeavePoolResponse, error) // UpdateParams defines a governance operation for updating the x/stakers 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 MsgCreateStaker ¶
type MsgCreateStaker struct { // creator ... Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // amount ... Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` }
MsgStakePool defines a SDK message for staking in a pool.
func (*MsgCreateStaker) Descriptor ¶
func (*MsgCreateStaker) Descriptor() ([]byte, []int)
func (*MsgCreateStaker) GetAmount ¶
func (m *MsgCreateStaker) GetAmount() uint64
func (*MsgCreateStaker) GetCreator ¶
func (m *MsgCreateStaker) GetCreator() string
func (*MsgCreateStaker) GetSignBytes ¶
func (msg *MsgCreateStaker) GetSignBytes() []byte
func (*MsgCreateStaker) GetSigners ¶
func (msg *MsgCreateStaker) GetSigners() []sdk.AccAddress
func (*MsgCreateStaker) Marshal ¶
func (m *MsgCreateStaker) Marshal() (dAtA []byte, err error)
func (*MsgCreateStaker) MarshalToSizedBuffer ¶
func (m *MsgCreateStaker) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateStaker) ProtoMessage ¶
func (*MsgCreateStaker) ProtoMessage()
func (*MsgCreateStaker) Reset ¶
func (m *MsgCreateStaker) Reset()
func (*MsgCreateStaker) Route ¶
func (msg *MsgCreateStaker) Route() string
func (*MsgCreateStaker) Size ¶
func (m *MsgCreateStaker) Size() (n int)
func (*MsgCreateStaker) String ¶
func (m *MsgCreateStaker) String() string
func (*MsgCreateStaker) Type ¶
func (msg *MsgCreateStaker) Type() string
func (*MsgCreateStaker) Unmarshal ¶
func (m *MsgCreateStaker) Unmarshal(dAtA []byte) error
func (*MsgCreateStaker) ValidateBasic ¶
func (msg *MsgCreateStaker) ValidateBasic() error
func (*MsgCreateStaker) XXX_DiscardUnknown ¶
func (m *MsgCreateStaker) XXX_DiscardUnknown()
func (*MsgCreateStaker) XXX_Marshal ¶
func (m *MsgCreateStaker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateStaker) XXX_Merge ¶
func (m *MsgCreateStaker) XXX_Merge(src proto.Message)
func (*MsgCreateStaker) XXX_Size ¶
func (m *MsgCreateStaker) XXX_Size() int
func (*MsgCreateStaker) XXX_Unmarshal ¶
func (m *MsgCreateStaker) XXX_Unmarshal(b []byte) error
type MsgCreateStakerResponse ¶
type MsgCreateStakerResponse struct { }
MsgStakePoolResponse defines the Msg/StakePool response type.
func (*MsgCreateStakerResponse) Descriptor ¶
func (*MsgCreateStakerResponse) Descriptor() ([]byte, []int)
func (*MsgCreateStakerResponse) Marshal ¶
func (m *MsgCreateStakerResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateStakerResponse) MarshalTo ¶
func (m *MsgCreateStakerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateStakerResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateStakerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateStakerResponse) ProtoMessage ¶
func (*MsgCreateStakerResponse) ProtoMessage()
func (*MsgCreateStakerResponse) Reset ¶
func (m *MsgCreateStakerResponse) Reset()
func (*MsgCreateStakerResponse) Size ¶
func (m *MsgCreateStakerResponse) Size() (n int)
func (*MsgCreateStakerResponse) String ¶
func (m *MsgCreateStakerResponse) String() string
func (*MsgCreateStakerResponse) Unmarshal ¶
func (m *MsgCreateStakerResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateStakerResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateStakerResponse) XXX_DiscardUnknown()
func (*MsgCreateStakerResponse) XXX_Marshal ¶
func (m *MsgCreateStakerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateStakerResponse) XXX_Merge ¶
func (m *MsgCreateStakerResponse) XXX_Merge(src proto.Message)
func (*MsgCreateStakerResponse) XXX_Size ¶
func (m *MsgCreateStakerResponse) XXX_Size() int
func (*MsgCreateStakerResponse) XXX_Unmarshal ¶
func (m *MsgCreateStakerResponse) XXX_Unmarshal(b []byte) error
type MsgJoinPool ¶
type MsgJoinPool struct { // creator ... Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // pool_id ... PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // valaddress ... Valaddress string `protobuf:"bytes,3,opt,name=valaddress,proto3" json:"valaddress,omitempty"` // amount ... Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` }
MsgJoinPool ...
func (*MsgJoinPool) Descriptor ¶
func (*MsgJoinPool) Descriptor() ([]byte, []int)
func (*MsgJoinPool) GetAmount ¶
func (m *MsgJoinPool) GetAmount() uint64
func (*MsgJoinPool) GetCreator ¶
func (m *MsgJoinPool) GetCreator() string
func (*MsgJoinPool) GetPoolId ¶
func (m *MsgJoinPool) GetPoolId() uint64
func (*MsgJoinPool) GetSignBytes ¶
func (msg *MsgJoinPool) GetSignBytes() []byte
func (*MsgJoinPool) GetSigners ¶
func (msg *MsgJoinPool) GetSigners() []sdk.AccAddress
func (*MsgJoinPool) GetValaddress ¶
func (m *MsgJoinPool) GetValaddress() string
func (*MsgJoinPool) Marshal ¶
func (m *MsgJoinPool) Marshal() (dAtA []byte, err error)
func (*MsgJoinPool) MarshalToSizedBuffer ¶
func (m *MsgJoinPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinPool) ProtoMessage ¶
func (*MsgJoinPool) ProtoMessage()
func (*MsgJoinPool) Reset ¶
func (m *MsgJoinPool) Reset()
func (*MsgJoinPool) Route ¶
func (msg *MsgJoinPool) Route() string
func (*MsgJoinPool) Size ¶
func (m *MsgJoinPool) Size() (n int)
func (*MsgJoinPool) String ¶
func (m *MsgJoinPool) String() string
func (*MsgJoinPool) Type ¶
func (msg *MsgJoinPool) Type() string
func (*MsgJoinPool) Unmarshal ¶
func (m *MsgJoinPool) Unmarshal(dAtA []byte) error
func (*MsgJoinPool) ValidateBasic ¶
func (msg *MsgJoinPool) ValidateBasic() error
func (*MsgJoinPool) XXX_DiscardUnknown ¶
func (m *MsgJoinPool) XXX_DiscardUnknown()
func (*MsgJoinPool) XXX_Marshal ¶
func (m *MsgJoinPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinPool) XXX_Merge ¶
func (m *MsgJoinPool) XXX_Merge(src proto.Message)
func (*MsgJoinPool) XXX_Size ¶
func (m *MsgJoinPool) XXX_Size() int
func (*MsgJoinPool) XXX_Unmarshal ¶
func (m *MsgJoinPool) XXX_Unmarshal(b []byte) error
type MsgJoinPoolResponse ¶
type MsgJoinPoolResponse struct { }
MsgJoinPoolResponse ...
func (*MsgJoinPoolResponse) Descriptor ¶
func (*MsgJoinPoolResponse) Descriptor() ([]byte, []int)
func (*MsgJoinPoolResponse) Marshal ¶
func (m *MsgJoinPoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgJoinPoolResponse) MarshalTo ¶
func (m *MsgJoinPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgJoinPoolResponse) MarshalToSizedBuffer ¶
func (m *MsgJoinPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinPoolResponse) ProtoMessage ¶
func (*MsgJoinPoolResponse) ProtoMessage()
func (*MsgJoinPoolResponse) Reset ¶
func (m *MsgJoinPoolResponse) Reset()
func (*MsgJoinPoolResponse) Size ¶
func (m *MsgJoinPoolResponse) Size() (n int)
func (*MsgJoinPoolResponse) String ¶
func (m *MsgJoinPoolResponse) String() string
func (*MsgJoinPoolResponse) Unmarshal ¶
func (m *MsgJoinPoolResponse) Unmarshal(dAtA []byte) error
func (*MsgJoinPoolResponse) XXX_DiscardUnknown ¶
func (m *MsgJoinPoolResponse) XXX_DiscardUnknown()
func (*MsgJoinPoolResponse) XXX_Marshal ¶
func (m *MsgJoinPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinPoolResponse) XXX_Merge ¶
func (m *MsgJoinPoolResponse) XXX_Merge(src proto.Message)
func (*MsgJoinPoolResponse) XXX_Size ¶
func (m *MsgJoinPoolResponse) XXX_Size() int
func (*MsgJoinPoolResponse) XXX_Unmarshal ¶
func (m *MsgJoinPoolResponse) XXX_Unmarshal(b []byte) error
type MsgLeavePool ¶
type MsgLeavePool struct { // creator ... Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // pool_id ... PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` }
MsgLeavePool ...
func (*MsgLeavePool) Descriptor ¶
func (*MsgLeavePool) Descriptor() ([]byte, []int)
func (*MsgLeavePool) GetCreator ¶
func (m *MsgLeavePool) GetCreator() string
func (*MsgLeavePool) GetPoolId ¶
func (m *MsgLeavePool) GetPoolId() uint64
func (*MsgLeavePool) GetSignBytes ¶
func (msg *MsgLeavePool) GetSignBytes() []byte
func (*MsgLeavePool) GetSigners ¶
func (msg *MsgLeavePool) GetSigners() []sdk.AccAddress
func (*MsgLeavePool) Marshal ¶
func (m *MsgLeavePool) Marshal() (dAtA []byte, err error)
func (*MsgLeavePool) MarshalToSizedBuffer ¶
func (m *MsgLeavePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLeavePool) ProtoMessage ¶
func (*MsgLeavePool) ProtoMessage()
func (*MsgLeavePool) Reset ¶
func (m *MsgLeavePool) Reset()
func (*MsgLeavePool) Route ¶
func (msg *MsgLeavePool) Route() string
func (*MsgLeavePool) Size ¶
func (m *MsgLeavePool) Size() (n int)
func (*MsgLeavePool) String ¶
func (m *MsgLeavePool) String() string
func (*MsgLeavePool) Type ¶
func (msg *MsgLeavePool) Type() string
func (*MsgLeavePool) Unmarshal ¶
func (m *MsgLeavePool) Unmarshal(dAtA []byte) error
func (*MsgLeavePool) ValidateBasic ¶
func (msg *MsgLeavePool) ValidateBasic() error
func (*MsgLeavePool) XXX_DiscardUnknown ¶
func (m *MsgLeavePool) XXX_DiscardUnknown()
func (*MsgLeavePool) XXX_Marshal ¶
func (m *MsgLeavePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLeavePool) XXX_Merge ¶
func (m *MsgLeavePool) XXX_Merge(src proto.Message)
func (*MsgLeavePool) XXX_Size ¶
func (m *MsgLeavePool) XXX_Size() int
func (*MsgLeavePool) XXX_Unmarshal ¶
func (m *MsgLeavePool) XXX_Unmarshal(b []byte) error
type MsgLeavePoolResponse ¶
type MsgLeavePoolResponse struct { }
MsgReactivateStakerResponse ...
func (*MsgLeavePoolResponse) Descriptor ¶
func (*MsgLeavePoolResponse) Descriptor() ([]byte, []int)
func (*MsgLeavePoolResponse) Marshal ¶
func (m *MsgLeavePoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgLeavePoolResponse) MarshalTo ¶
func (m *MsgLeavePoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgLeavePoolResponse) MarshalToSizedBuffer ¶
func (m *MsgLeavePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLeavePoolResponse) ProtoMessage ¶
func (*MsgLeavePoolResponse) ProtoMessage()
func (*MsgLeavePoolResponse) Reset ¶
func (m *MsgLeavePoolResponse) Reset()
func (*MsgLeavePoolResponse) Size ¶
func (m *MsgLeavePoolResponse) Size() (n int)
func (*MsgLeavePoolResponse) String ¶
func (m *MsgLeavePoolResponse) String() string
func (*MsgLeavePoolResponse) Unmarshal ¶
func (m *MsgLeavePoolResponse) Unmarshal(dAtA []byte) error
func (*MsgLeavePoolResponse) XXX_DiscardUnknown ¶
func (m *MsgLeavePoolResponse) XXX_DiscardUnknown()
func (*MsgLeavePoolResponse) XXX_Marshal ¶
func (m *MsgLeavePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLeavePoolResponse) XXX_Merge ¶
func (m *MsgLeavePoolResponse) XXX_Merge(src proto.Message)
func (*MsgLeavePoolResponse) XXX_Size ¶
func (m *MsgLeavePoolResponse) XXX_Size() int
func (*MsgLeavePoolResponse) XXX_Unmarshal ¶
func (m *MsgLeavePoolResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateStaker ... CreateStaker(context.Context, *MsgCreateStaker) (*MsgCreateStakerResponse, error) // UpdateMetadata ... UpdateMetadata(context.Context, *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error) // UpdateCommission ... UpdateCommission(context.Context, *MsgUpdateCommission) (*MsgUpdateCommissionResponse, error) // JoinPool ... JoinPool(context.Context, *MsgJoinPool) (*MsgJoinPoolResponse, error) // LeavePool ... LeavePool(context.Context, *MsgLeavePool) (*MsgLeavePoolResponse, error) // UpdateParams defines a governance operation for updating the x/stakers 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 MsgUpdateCommission ¶
type MsgUpdateCommission struct { // creator ... Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // commission ... Commission string `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"` }
MsgUpdateCommission ...
func (*MsgUpdateCommission) Descriptor ¶
func (*MsgUpdateCommission) Descriptor() ([]byte, []int)
func (*MsgUpdateCommission) GetCommission ¶
func (m *MsgUpdateCommission) GetCommission() string
func (*MsgUpdateCommission) GetCreator ¶
func (m *MsgUpdateCommission) GetCreator() string
func (*MsgUpdateCommission) GetSignBytes ¶
func (msg *MsgUpdateCommission) GetSignBytes() []byte
func (*MsgUpdateCommission) GetSigners ¶
func (msg *MsgUpdateCommission) GetSigners() []sdk.AccAddress
func (*MsgUpdateCommission) Marshal ¶
func (m *MsgUpdateCommission) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCommission) MarshalTo ¶
func (m *MsgUpdateCommission) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCommission) MarshalToSizedBuffer ¶
func (m *MsgUpdateCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCommission) ProtoMessage ¶
func (*MsgUpdateCommission) ProtoMessage()
func (*MsgUpdateCommission) Reset ¶
func (m *MsgUpdateCommission) Reset()
func (*MsgUpdateCommission) Route ¶
func (msg *MsgUpdateCommission) Route() string
func (*MsgUpdateCommission) Size ¶
func (m *MsgUpdateCommission) Size() (n int)
func (*MsgUpdateCommission) String ¶
func (m *MsgUpdateCommission) String() string
func (*MsgUpdateCommission) Type ¶
func (msg *MsgUpdateCommission) Type() string
func (*MsgUpdateCommission) Unmarshal ¶
func (m *MsgUpdateCommission) Unmarshal(dAtA []byte) error
func (*MsgUpdateCommission) ValidateBasic ¶
func (msg *MsgUpdateCommission) ValidateBasic() error
func (*MsgUpdateCommission) XXX_DiscardUnknown ¶
func (m *MsgUpdateCommission) XXX_DiscardUnknown()
func (*MsgUpdateCommission) XXX_Marshal ¶
func (m *MsgUpdateCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCommission) XXX_Merge ¶
func (m *MsgUpdateCommission) XXX_Merge(src proto.Message)
func (*MsgUpdateCommission) XXX_Size ¶
func (m *MsgUpdateCommission) XXX_Size() int
func (*MsgUpdateCommission) XXX_Unmarshal ¶
func (m *MsgUpdateCommission) XXX_Unmarshal(b []byte) error
type MsgUpdateCommissionResponse ¶
type MsgUpdateCommissionResponse struct { }
MsgUpdateCommissionResponse ...
func (*MsgUpdateCommissionResponse) Descriptor ¶
func (*MsgUpdateCommissionResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateCommissionResponse) Marshal ¶
func (m *MsgUpdateCommissionResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCommissionResponse) MarshalTo ¶
func (m *MsgUpdateCommissionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCommissionResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCommissionResponse) ProtoMessage ¶
func (*MsgUpdateCommissionResponse) ProtoMessage()
func (*MsgUpdateCommissionResponse) Reset ¶
func (m *MsgUpdateCommissionResponse) Reset()
func (*MsgUpdateCommissionResponse) Size ¶
func (m *MsgUpdateCommissionResponse) Size() (n int)
func (*MsgUpdateCommissionResponse) String ¶
func (m *MsgUpdateCommissionResponse) String() string
func (*MsgUpdateCommissionResponse) Unmarshal ¶
func (m *MsgUpdateCommissionResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateCommissionResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateCommissionResponse) XXX_DiscardUnknown()
func (*MsgUpdateCommissionResponse) XXX_Marshal ¶
func (m *MsgUpdateCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCommissionResponse) XXX_Merge ¶
func (m *MsgUpdateCommissionResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateCommissionResponse) XXX_Size ¶
func (m *MsgUpdateCommissionResponse) XXX_Size() int
func (*MsgUpdateCommissionResponse) XXX_Unmarshal ¶
func (m *MsgUpdateCommissionResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateMetadata ¶
type MsgUpdateMetadata struct { // creator ... Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // moniker ... Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"` // website ... Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"` // logo Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"` }
MsgUpdateMetadata defines a SDK message for claiming the uploader role.
func (*MsgUpdateMetadata) Descriptor ¶
func (*MsgUpdateMetadata) Descriptor() ([]byte, []int)
func (*MsgUpdateMetadata) GetCreator ¶
func (m *MsgUpdateMetadata) GetCreator() string
func (*MsgUpdateMetadata) GetLogo ¶
func (m *MsgUpdateMetadata) GetLogo() string
func (*MsgUpdateMetadata) GetMoniker ¶
func (m *MsgUpdateMetadata) GetMoniker() string
func (*MsgUpdateMetadata) GetSignBytes ¶
func (msg *MsgUpdateMetadata) GetSignBytes() []byte
func (*MsgUpdateMetadata) GetSigners ¶
func (msg *MsgUpdateMetadata) GetSigners() []sdk.AccAddress
func (*MsgUpdateMetadata) GetWebsite ¶
func (m *MsgUpdateMetadata) GetWebsite() string
func (*MsgUpdateMetadata) Marshal ¶
func (m *MsgUpdateMetadata) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMetadata) MarshalTo ¶
func (m *MsgUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMetadata) MarshalToSizedBuffer ¶
func (m *MsgUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMetadata) ProtoMessage ¶
func (*MsgUpdateMetadata) ProtoMessage()
func (*MsgUpdateMetadata) Reset ¶
func (m *MsgUpdateMetadata) Reset()
func (*MsgUpdateMetadata) Route ¶
func (msg *MsgUpdateMetadata) Route() string
func (*MsgUpdateMetadata) Size ¶
func (m *MsgUpdateMetadata) Size() (n int)
func (*MsgUpdateMetadata) String ¶
func (m *MsgUpdateMetadata) String() string
func (*MsgUpdateMetadata) Type ¶
func (msg *MsgUpdateMetadata) Type() string
func (*MsgUpdateMetadata) Unmarshal ¶
func (m *MsgUpdateMetadata) Unmarshal(dAtA []byte) error
func (*MsgUpdateMetadata) ValidateBasic ¶
func (msg *MsgUpdateMetadata) ValidateBasic() error
func (*MsgUpdateMetadata) XXX_DiscardUnknown ¶
func (m *MsgUpdateMetadata) XXX_DiscardUnknown()
func (*MsgUpdateMetadata) XXX_Marshal ¶
func (m *MsgUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMetadata) XXX_Merge ¶
func (m *MsgUpdateMetadata) XXX_Merge(src proto.Message)
func (*MsgUpdateMetadata) XXX_Size ¶
func (m *MsgUpdateMetadata) XXX_Size() int
func (*MsgUpdateMetadata) XXX_Unmarshal ¶
func (m *MsgUpdateMetadata) XXX_Unmarshal(b []byte) error
type MsgUpdateMetadataResponse ¶
type MsgUpdateMetadataResponse struct { }
MsgUpdateMetadataResponse defines the Msg/MsgUpdateMetadata response type.
func (*MsgUpdateMetadataResponse) Descriptor ¶
func (*MsgUpdateMetadataResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateMetadataResponse) Marshal ¶
func (m *MsgUpdateMetadataResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMetadataResponse) MarshalTo ¶
func (m *MsgUpdateMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMetadataResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMetadataResponse) ProtoMessage ¶
func (*MsgUpdateMetadataResponse) ProtoMessage()
func (*MsgUpdateMetadataResponse) Reset ¶
func (m *MsgUpdateMetadataResponse) Reset()
func (*MsgUpdateMetadataResponse) Size ¶
func (m *MsgUpdateMetadataResponse) Size() (n int)
func (*MsgUpdateMetadataResponse) String ¶
func (m *MsgUpdateMetadataResponse) String() string
func (*MsgUpdateMetadataResponse) Unmarshal ¶
func (m *MsgUpdateMetadataResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateMetadataResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateMetadataResponse) XXX_DiscardUnknown()
func (*MsgUpdateMetadataResponse) XXX_Marshal ¶
func (m *MsgUpdateMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMetadataResponse) XXX_Merge ¶
func (m *MsgUpdateMetadataResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateMetadataResponse) XXX_Size ¶
func (m *MsgUpdateMetadataResponse) XXX_Size() int
func (*MsgUpdateMetadataResponse) XXX_Unmarshal ¶
func (m *MsgUpdateMetadataResponse) 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/stakers 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 Params ¶
type Params struct { // commission_change_time ... CommissionChangeTime uint64 `protobuf:"varint,1,opt,name=commission_change_time,json=commissionChangeTime,proto3" json:"commission_change_time,omitempty"` // commission_change_time ... LeavePoolTime uint64 `protobuf:"varint,2,opt,name=leave_pool_time,json=leavePoolTime,proto3" json:"leave_pool_time,omitempty"` }
Params defines the stakers module parameters.
func (*Params) Descriptor ¶
func (*Params) GetCommissionChangeTime ¶
func (*Params) GetLeavePoolTime ¶
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 QUEUE_IDENTIFIER ¶
type QUEUE_IDENTIFIER []byte
ENUM queue types identifiers
var ( QUEUE_IDENTIFIER_COMMISSION QUEUE_IDENTIFIER = []byte{30, 2} QUEUE_IDENTIFIER_LEAVE QUEUE_IDENTIFIER = []byte{30, 3} )
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 is the tail of the queue. It is the // oldest entry in the queue. If this entry isn't // due, non of the other entries is. LowIndex uint64 `protobuf:"varint,1,opt,name=low_index,json=lowIndex,proto3" json:"low_index,omitempty"` // high_index is the head of the queue. New entries // are added to the top. HighIndex uint64 `protobuf:"varint,2,opt,name=high_index,json=highIndex,proto3" json:"high_index,omitempty"` }
UnbondingState stores the state for the unbonding of stakes and delegations.
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 STAKER_STATS ¶
type STAKER_STATS string
ENUM aggregated data types
var STAKER_STATS_COUNT STAKER_STATS = "total_stakers"
type Staker ¶
type Staker struct { // address ... Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // commission ... Commission string `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"` // moniker ... Moniker string `protobuf:"bytes,3,opt,name=moniker,proto3" json:"moniker,omitempty"` // website ... Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` // logo ... Logo string `protobuf:"bytes,5,opt,name=logo,proto3" json:"logo,omitempty"` }
Staker contains all metadata for a staker Every address can only create one staker (itself)
func (*Staker) Descriptor ¶
func (*Staker) GetAddress ¶
func (*Staker) GetCommission ¶
func (*Staker) GetMoniker ¶
func (*Staker) GetWebsite ¶
func (*Staker) MarshalToSizedBuffer ¶
func (*Staker) ProtoMessage ¶
func (*Staker) ProtoMessage()
func (*Staker) XXX_DiscardUnknown ¶
func (m *Staker) XXX_DiscardUnknown()
func (*Staker) XXX_Marshal ¶
func (*Staker) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateStaker ¶
func (*UnimplementedMsgServer) CreateStaker(ctx context.Context, req *MsgCreateStaker) (*MsgCreateStakerResponse, error)
func (*UnimplementedMsgServer) JoinPool ¶
func (*UnimplementedMsgServer) JoinPool(ctx context.Context, req *MsgJoinPool) (*MsgJoinPoolResponse, error)
func (*UnimplementedMsgServer) LeavePool ¶
func (*UnimplementedMsgServer) LeavePool(ctx context.Context, req *MsgLeavePool) (*MsgLeavePoolResponse, error)
func (*UnimplementedMsgServer) UpdateCommission ¶
func (*UnimplementedMsgServer) UpdateCommission(ctx context.Context, req *MsgUpdateCommission) (*MsgUpdateCommissionResponse, error)
func (*UnimplementedMsgServer) UpdateMetadata ¶
func (*UnimplementedMsgServer) UpdateMetadata(ctx context.Context, req *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, 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)
type UpgradeKeeper ¶
type Valaccount ¶
type Valaccount struct { // pool_id defines the pool in which the address // is allowed to vote in. PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // staker is the address the valaccount is voting for. Staker string `protobuf:"bytes,2,opt,name=staker,proto3" json:"staker,omitempty"` // valaddress is the account stored on the protocol // node which votes for the staker in the given pool Valaddress string `protobuf:"bytes,3,opt,name=valaddress,proto3" json:"valaddress,omitempty"` // When a node is inactive (does not vote at all) // A point is added, after a certain amount of points // is reached the node gets kicked out. Points uint64 `protobuf:"varint,4,opt,name=points,proto3" json:"points,omitempty"` // isLeaving indicates if a staker is leaving the given pool. IsLeaving bool `protobuf:"varint,5,opt,name=is_leaving,json=isLeaving,proto3" json:"is_leaving,omitempty"` }
Valaccount gets authorized by a staker to vote in a given pool by favor of the staker.
func (*Valaccount) Descriptor ¶
func (*Valaccount) Descriptor() ([]byte, []int)
func (*Valaccount) GetIsLeaving ¶
func (m *Valaccount) GetIsLeaving() bool
func (*Valaccount) GetPoints ¶
func (m *Valaccount) GetPoints() uint64
func (*Valaccount) GetPoolId ¶
func (m *Valaccount) GetPoolId() uint64
func (*Valaccount) GetStaker ¶
func (m *Valaccount) GetStaker() string
func (*Valaccount) GetValaddress ¶
func (m *Valaccount) GetValaddress() string
func (*Valaccount) Marshal ¶
func (m *Valaccount) Marshal() (dAtA []byte, err error)
func (*Valaccount) MarshalToSizedBuffer ¶
func (m *Valaccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Valaccount) ProtoMessage ¶
func (*Valaccount) ProtoMessage()
func (*Valaccount) Reset ¶
func (m *Valaccount) Reset()
func (*Valaccount) Size ¶
func (m *Valaccount) Size() (n int)
func (*Valaccount) String ¶
func (m *Valaccount) String() string
func (*Valaccount) Unmarshal ¶
func (m *Valaccount) Unmarshal(dAtA []byte) error
func (*Valaccount) XXX_DiscardUnknown ¶
func (m *Valaccount) XXX_DiscardUnknown()
func (*Valaccount) XXX_Marshal ¶
func (m *Valaccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Valaccount) XXX_Merge ¶
func (m *Valaccount) XXX_Merge(src proto.Message)
func (*Valaccount) XXX_Size ¶
func (m *Valaccount) XXX_Size() int
func (*Valaccount) XXX_Unmarshal ¶
func (m *Valaccount) XXX_Unmarshal(b []byte) error