Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetImmatureTotalRewardKey(acc sdk.AccAddress) []byte
- func GetIndividualRewardIteratorKey(epoch sdkmath.Int) []byte
- func GetIndividualRewardKey(acc sdk.AccAddress, epoch sdkmath.Int) []byte
- func GetMatureTotalRewardKey(acc sdk.AccAddress) []byte
- func GetTotalRewardKey(epoch sdkmath.Int) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data GenesisState) error
- func VolumeReportStoreKey(epoch sdkmath.Int) []byte
- type AccountKeeper
- type BLSSignatureInfo
- func (*BLSSignatureInfo) Descriptor() ([]byte, []int)
- func (this *BLSSignatureInfo) Equal(that interface{}) bool
- func (m *BLSSignatureInfo) GetPubKeys() [][]byte
- func (m *BLSSignatureInfo) GetSignature() []byte
- func (m *BLSSignatureInfo) GetTxData() []byte
- func (m *BLSSignatureInfo) Marshal() (dAtA []byte, err error)
- func (m *BLSSignatureInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *BLSSignatureInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BLSSignatureInfo) ProtoMessage()
- func (m *BLSSignatureInfo) Reset()
- func (m *BLSSignatureInfo) Size() (n int)
- func (m *BLSSignatureInfo) String() string
- func (m *BLSSignatureInfo) Unmarshal(dAtA []byte) error
- func (m *BLSSignatureInfo) XXX_DiscardUnknown()
- func (m *BLSSignatureInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BLSSignatureInfo) XXX_Merge(src proto.Message)
- func (m *BLSSignatureInfo) XXX_Size() int
- func (m *BLSSignatureInfo) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type BaseBLSSignatureInfo
- type DistrKeeper
- type DistributeGoal
- func (d DistributeGoal) AddMiningRewardToMetaNode(reward sdk.Coin) DistributeGoal
- func (d DistributeGoal) AddMiningRewardToResourceNode(reward sdk.Coin) DistributeGoal
- func (d DistributeGoal) AddStakeMiningRewardToValidator(reward sdk.Coin) DistributeGoal
- func (d DistributeGoal) AddStakeTrafficRewardToValidator(reward sdk.Coin) DistributeGoal
- func (d DistributeGoal) AddTrafficRewardToMetaNode(reward sdk.Coin) DistributeGoal
- func (d DistributeGoal) AddTrafficRewardToResourceNode(reward sdk.Coin) DistributeGoal
- func (d DistributeGoal) String() string
- type EventFoundationDeposit
- func (*EventFoundationDeposit) Descriptor() ([]byte, []int)
- func (m *EventFoundationDeposit) GetAmount() string
- func (m *EventFoundationDeposit) Marshal() (dAtA []byte, err error)
- func (m *EventFoundationDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *EventFoundationDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventFoundationDeposit) ProtoMessage()
- func (m *EventFoundationDeposit) Reset()
- func (m *EventFoundationDeposit) Size() (n int)
- func (m *EventFoundationDeposit) String() string
- func (m *EventFoundationDeposit) Unmarshal(dAtA []byte) error
- func (m *EventFoundationDeposit) XXX_DiscardUnknown()
- func (m *EventFoundationDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventFoundationDeposit) XXX_Merge(src proto.Message)
- func (m *EventFoundationDeposit) XXX_Size() int
- func (m *EventFoundationDeposit) XXX_Unmarshal(b []byte) error
- type EventSlashing
- func (*EventSlashing) Descriptor() ([]byte, []int)
- func (m *EventSlashing) GetAmount() string
- func (m *EventSlashing) GetNetworkAddress() string
- func (m *EventSlashing) GetSlashingType() string
- func (m *EventSlashing) GetSuspend() string
- func (m *EventSlashing) GetWalletAddress() string
- func (m *EventSlashing) Marshal() (dAtA []byte, err error)
- func (m *EventSlashing) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSlashing) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSlashing) ProtoMessage()
- func (m *EventSlashing) Reset()
- func (m *EventSlashing) Size() (n int)
- func (m *EventSlashing) String() string
- func (m *EventSlashing) Unmarshal(dAtA []byte) error
- func (m *EventSlashing) XXX_DiscardUnknown()
- func (m *EventSlashing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSlashing) XXX_Merge(src proto.Message)
- func (m *EventSlashing) XXX_Size() int
- func (m *EventSlashing) XXX_Unmarshal(b []byte) error
- type EventVolumeReport
- func (*EventVolumeReport) Descriptor() ([]byte, []int)
- func (m *EventVolumeReport) GetEpoch() string
- func (m *EventVolumeReport) GetReportReference() string
- func (m *EventVolumeReport) Marshal() (dAtA []byte, err error)
- func (m *EventVolumeReport) MarshalTo(dAtA []byte) (int, error)
- func (m *EventVolumeReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventVolumeReport) ProtoMessage()
- func (m *EventVolumeReport) Reset()
- func (m *EventVolumeReport) Size() (n int)
- func (m *EventVolumeReport) String() string
- func (m *EventVolumeReport) Unmarshal(dAtA []byte) error
- func (m *EventVolumeReport) XXX_DiscardUnknown()
- func (m *EventVolumeReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventVolumeReport) XXX_Merge(src proto.Message)
- func (m *EventVolumeReport) XXX_Size() int
- func (m *EventVolumeReport) XXX_Unmarshal(b []byte) error
- type EventWithdraw
- func (*EventWithdraw) Descriptor() ([]byte, []int)
- func (m *EventWithdraw) GetAmount() string
- func (m *EventWithdraw) GetTargetAddress() string
- func (m *EventWithdraw) GetWalletAddress() string
- func (m *EventWithdraw) Marshal() (dAtA []byte, err error)
- func (m *EventWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *EventWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventWithdraw) ProtoMessage()
- func (m *EventWithdraw) Reset()
- func (m *EventWithdraw) Size() (n int)
- func (m *EventWithdraw) String() string
- func (m *EventWithdraw) Unmarshal(dAtA []byte) error
- func (m *EventWithdraw) XXX_DiscardUnknown()
- func (m *EventWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventWithdraw) XXX_Merge(src proto.Message)
- func (m *EventWithdraw) XXX_Size() int
- func (m *EventWithdraw) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (this *GenesisState) Equal(that interface{}) bool
- func (m *GenesisState) GetImmatureTotalInfo() []ImmatureTotal
- func (m *GenesisState) GetIndividualRewardInfo() []Reward
- func (m *GenesisState) GetMatureTotalInfo() []MatureTotal
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRewardTotalInfo() []RewardTotal
- func (m *GenesisState) GetTotalMinedToken() types.Coin
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type ImmatureTotal
- func (*ImmatureTotal) Descriptor() ([]byte, []int)
- func (this *ImmatureTotal) Equal(that interface{}) bool
- func (m *ImmatureTotal) GetValue() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *ImmatureTotal) GetWalletAddress() string
- func (m *ImmatureTotal) Marshal() (dAtA []byte, err error)
- func (m *ImmatureTotal) MarshalTo(dAtA []byte) (int, error)
- func (m *ImmatureTotal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ImmatureTotal) ProtoMessage()
- func (m *ImmatureTotal) Reset()
- func (m *ImmatureTotal) Size() (n int)
- func (m *ImmatureTotal) String() string
- func (m *ImmatureTotal) Unmarshal(dAtA []byte) error
- func (m *ImmatureTotal) XXX_DiscardUnknown()
- func (m *ImmatureTotal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ImmatureTotal) XXX_Merge(src proto.Message)
- func (m *ImmatureTotal) XXX_Size() int
- func (m *ImmatureTotal) XXX_Unmarshal(b []byte) error
- type MatureTotal
- func (*MatureTotal) Descriptor() ([]byte, []int)
- func (this *MatureTotal) Equal(that interface{}) bool
- func (m *MatureTotal) GetValue() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MatureTotal) GetWalletAddress() string
- func (m *MatureTotal) Marshal() (dAtA []byte, err error)
- func (m *MatureTotal) MarshalTo(dAtA []byte) (int, error)
- func (m *MatureTotal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MatureTotal) ProtoMessage()
- func (m *MatureTotal) Reset()
- func (m *MatureTotal) Size() (n int)
- func (m *MatureTotal) String() string
- func (m *MatureTotal) Unmarshal(dAtA []byte) error
- func (m *MatureTotal) XXX_DiscardUnknown()
- func (m *MatureTotal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MatureTotal) XXX_Merge(src proto.Message)
- func (m *MatureTotal) XXX_Size() int
- func (m *MatureTotal) XXX_Unmarshal(b []byte) error
- type Metrics
- func (*Metrics) Descriptor() ([]byte, []int)
- func (this *Metrics) Equal(that interface{}) bool
- func (m *Metrics) Marshal() (dAtA []byte, err error)
- func (m *Metrics) MarshalTo(dAtA []byte) (int, error)
- func (m *Metrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metrics) ProtoMessage()
- func (m *Metrics) Reset()
- func (m *Metrics) Size() (n int)
- func (m *Metrics) String() string
- func (m *Metrics) Unmarshal(dAtA []byte) error
- func (m *Metrics) XXX_DiscardUnknown()
- func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metrics) XXX_Merge(src proto.Message)
- func (m *Metrics) XXX_Size() int
- func (m *Metrics) XXX_Unmarshal(b []byte) error
- type MiningRewardParam
- func (*MiningRewardParam) Descriptor() ([]byte, []int)
- func (this *MiningRewardParam) Equal(that interface{}) bool
- func (m *MiningRewardParam) GetMiningReward() types.Coin
- func (m *MiningRewardParam) GetTotalMinedValveEnd() types.Coin
- func (m *MiningRewardParam) GetTotalMinedValveStart() types.Coin
- func (m *MiningRewardParam) Marshal() (dAtA []byte, err error)
- func (m *MiningRewardParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MiningRewardParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MiningRewardParam) ProtoMessage()
- func (m *MiningRewardParam) Reset()
- func (m *MiningRewardParam) Size() (n int)
- func (m *MiningRewardParam) String() string
- func (m *MiningRewardParam) Unmarshal(dAtA []byte) error
- func (m *MiningRewardParam) XXX_DiscardUnknown()
- func (m *MiningRewardParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MiningRewardParam) XXX_Merge(src proto.Message)
- func (m *MiningRewardParam) XXX_Size() int
- func (m *MiningRewardParam) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgFoundationDeposit
- func (*MsgFoundationDeposit) Descriptor() ([]byte, []int)
- func (this *MsgFoundationDeposit) Equal(that interface{}) bool
- func (m *MsgFoundationDeposit) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgFoundationDeposit) GetFrom() string
- func (msg MsgFoundationDeposit) GetSignBytes() []byte
- func (msg MsgFoundationDeposit) GetSigners() []sdk.AccAddress
- func (m *MsgFoundationDeposit) GetWeb3Msg() (*stratos.Web3Msg, error)
- func (m *MsgFoundationDeposit) Marshal() (dAtA []byte, err error)
- func (m *MsgFoundationDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFoundationDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFoundationDeposit) ProtoMessage()
- func (m *MsgFoundationDeposit) Reset()
- func (msg MsgFoundationDeposit) Route() string
- func (m *MsgFoundationDeposit) Size() (n int)
- func (m *MsgFoundationDeposit) String() string
- func (msg MsgFoundationDeposit) Type() string
- func (m *MsgFoundationDeposit) Unmarshal(dAtA []byte) error
- func (msg MsgFoundationDeposit) ValidateBasic() error
- func (m *MsgFoundationDeposit) XXX_DiscardUnknown()
- func (m *MsgFoundationDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFoundationDeposit) XXX_Merge(src proto.Message)
- func (m *MsgFoundationDeposit) XXX_Size() int
- func (m *MsgFoundationDeposit) XXX_Unmarshal(b []byte) error
- type MsgFoundationDepositResponse
- func (*MsgFoundationDepositResponse) Descriptor() ([]byte, []int)
- func (this *MsgFoundationDepositResponse) Equal(that interface{}) bool
- func (m *MsgFoundationDepositResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFoundationDepositResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFoundationDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFoundationDepositResponse) ProtoMessage()
- func (m *MsgFoundationDepositResponse) Reset()
- func (m *MsgFoundationDepositResponse) Size() (n int)
- func (m *MsgFoundationDepositResponse) String() string
- func (m *MsgFoundationDepositResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFoundationDepositResponse) XXX_DiscardUnknown()
- func (m *MsgFoundationDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFoundationDepositResponse) XXX_Merge(src proto.Message)
- func (m *MsgFoundationDepositResponse) XXX_Size() int
- func (m *MsgFoundationDepositResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSlashingResourceNode
- func (*MsgSlashingResourceNode) Descriptor() ([]byte, []int)
- func (this *MsgSlashingResourceNode) Equal(that interface{}) bool
- func (m *MsgSlashingResourceNode) GetNetworkAddress() string
- func (m *MsgSlashingResourceNode) GetReporterOwner() []string
- func (m *MsgSlashingResourceNode) GetReporters() []string
- func (msg MsgSlashingResourceNode) GetSignBytes() []byte
- func (msg MsgSlashingResourceNode) GetSigners() []sdk.AccAddress
- func (m *MsgSlashingResourceNode) GetSuspend() bool
- func (m *MsgSlashingResourceNode) GetWalletAddress() string
- func (m *MsgSlashingResourceNode) GetWeb3Msg() (*stratos.Web3Msg, error)
- func (m *MsgSlashingResourceNode) Marshal() (dAtA []byte, err error)
- func (m *MsgSlashingResourceNode) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSlashingResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSlashingResourceNode) ProtoMessage()
- func (m *MsgSlashingResourceNode) Reset()
- func (msg MsgSlashingResourceNode) Route() string
- func (m *MsgSlashingResourceNode) Size() (n int)
- func (m *MsgSlashingResourceNode) String() string
- func (msg MsgSlashingResourceNode) Type() string
- func (m *MsgSlashingResourceNode) Unmarshal(dAtA []byte) error
- func (msg MsgSlashingResourceNode) ValidateBasic() error
- func (m *MsgSlashingResourceNode) XXX_DiscardUnknown()
- func (m *MsgSlashingResourceNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSlashingResourceNode) XXX_Merge(src proto.Message)
- func (m *MsgSlashingResourceNode) XXX_Size() int
- func (m *MsgSlashingResourceNode) XXX_Unmarshal(b []byte) error
- type MsgSlashingResourceNodeResponse
- func (*MsgSlashingResourceNodeResponse) Descriptor() ([]byte, []int)
- func (this *MsgSlashingResourceNodeResponse) Equal(that interface{}) bool
- func (m *MsgSlashingResourceNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSlashingResourceNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSlashingResourceNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSlashingResourceNodeResponse) ProtoMessage()
- func (m *MsgSlashingResourceNodeResponse) Reset()
- func (m *MsgSlashingResourceNodeResponse) Size() (n int)
- func (m *MsgSlashingResourceNodeResponse) String() string
- func (m *MsgSlashingResourceNodeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSlashingResourceNodeResponse) XXX_DiscardUnknown()
- func (m *MsgSlashingResourceNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSlashingResourceNodeResponse) XXX_Merge(src proto.Message)
- func (m *MsgSlashingResourceNodeResponse) XXX_Size() int
- func (m *MsgSlashingResourceNodeResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (this *MsgUpdateParams) Equal(that interface{}) bool
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg *MsgUpdateParams) GetSignBytes() []byte
- 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 (msg *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg *MsgUpdateParams) Type() 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 (this *MsgUpdateParamsResponse) Equal(that interface{}) bool
- 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 MsgVolumeReport
- func (*MsgVolumeReport) Descriptor() ([]byte, []int)
- func (this *MsgVolumeReport) Equal(that interface{}) bool
- func (msg MsgVolumeReport) GetBLSSignBytes() []byte
- func (m *MsgVolumeReport) GetBLSSignature() BLSSignatureInfo
- func (m *MsgVolumeReport) GetReportReference() string
- func (m *MsgVolumeReport) GetReporter() string
- func (m *MsgVolumeReport) GetReporterOwner() string
- func (msg MsgVolumeReport) GetSignBytes() []byte
- func (msg MsgVolumeReport) GetSigners() []sdk.AccAddress
- func (m *MsgVolumeReport) GetWalletVolumes() []SingleWalletVolume
- func (m *MsgVolumeReport) GetWeb3Msg() (*stratos.Web3Msg, error)
- func (m *MsgVolumeReport) Marshal() (dAtA []byte, err error)
- func (m *MsgVolumeReport) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVolumeReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVolumeReport) ProtoMessage()
- func (m *MsgVolumeReport) Reset()
- func (msg MsgVolumeReport) Route() string
- func (m *MsgVolumeReport) Size() (n int)
- func (m *MsgVolumeReport) String() string
- func (msg MsgVolumeReport) Type() string
- func (m *MsgVolumeReport) Unmarshal(dAtA []byte) error
- func (msg MsgVolumeReport) ValidateBasic() error
- func (m *MsgVolumeReport) XXX_DiscardUnknown()
- func (m *MsgVolumeReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVolumeReport) XXX_Merge(src proto.Message)
- func (m *MsgVolumeReport) XXX_Size() int
- func (m *MsgVolumeReport) XXX_Unmarshal(b []byte) error
- type MsgVolumeReportResponse
- func (*MsgVolumeReportResponse) Descriptor() ([]byte, []int)
- func (this *MsgVolumeReportResponse) Equal(that interface{}) bool
- func (m *MsgVolumeReportResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVolumeReportResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVolumeReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVolumeReportResponse) ProtoMessage()
- func (m *MsgVolumeReportResponse) Reset()
- func (m *MsgVolumeReportResponse) Size() (n int)
- func (m *MsgVolumeReportResponse) String() string
- func (m *MsgVolumeReportResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVolumeReportResponse) XXX_DiscardUnknown()
- func (m *MsgVolumeReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVolumeReportResponse) XXX_Merge(src proto.Message)
- func (m *MsgVolumeReportResponse) XXX_Size() int
- func (m *MsgVolumeReportResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdraw
- func (*MsgWithdraw) Descriptor() ([]byte, []int)
- func (this *MsgWithdraw) Equal(that interface{}) bool
- func (m *MsgWithdraw) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (msg MsgWithdraw) GetSignBytes() []byte
- func (msg MsgWithdraw) GetSigners() []sdk.AccAddress
- func (m *MsgWithdraw) GetTargetAddress() string
- func (m *MsgWithdraw) GetWalletAddress() string
- func (m *MsgWithdraw) GetWeb3Msg() (*stratos.Web3Msg, error)
- func (m *MsgWithdraw) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdraw) ProtoMessage()
- func (m *MsgWithdraw) Reset()
- func (msg MsgWithdraw) Route() string
- func (m *MsgWithdraw) Size() (n int)
- func (m *MsgWithdraw) String() string
- func (msg MsgWithdraw) Type() string
- func (m *MsgWithdraw) Unmarshal(dAtA []byte) error
- func (msg MsgWithdraw) ValidateBasic() error
- func (m *MsgWithdraw) XXX_DiscardUnknown()
- func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdraw) XXX_Merge(src proto.Message)
- func (m *MsgWithdraw) XXX_Size() int
- func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error
- type MsgWithdrawResponse
- func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
- func (this *MsgWithdrawResponse) Equal(that interface{}) bool
- func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawResponse) ProtoMessage()
- func (m *MsgWithdrawResponse) Reset()
- func (m *MsgWithdrawResponse) Size() (n int)
- func (m *MsgWithdrawResponse) String() string
- func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawResponse) XXX_Size() int
- func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetBondDenom() string
- func (m *Params) GetInitialTotalSupply() types.Coin
- func (m *Params) GetMatureEpoch() int64
- func (m *Params) GetMiningRewardParams() []MiningRewardParam
- func (m *Params) GetRewardDenom() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (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 ParamsSubspace
- type QueryCirculationSupplyRequest
- func (*QueryCirculationSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryCirculationSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCirculationSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCirculationSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCirculationSupplyRequest) ProtoMessage()
- func (m *QueryCirculationSupplyRequest) Reset()
- func (m *QueryCirculationSupplyRequest) Size() (n int)
- func (m *QueryCirculationSupplyRequest) String() string
- func (m *QueryCirculationSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCirculationSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryCirculationSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCirculationSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryCirculationSupplyRequest) XXX_Size() int
- func (m *QueryCirculationSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryCirculationSupplyResponse
- func (*QueryCirculationSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryCirculationSupplyResponse) GetCirculationSupply() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryCirculationSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCirculationSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCirculationSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCirculationSupplyResponse) ProtoMessage()
- func (m *QueryCirculationSupplyResponse) Reset()
- func (m *QueryCirculationSupplyResponse) Size() (n int)
- func (m *QueryCirculationSupplyResponse) String() string
- func (m *QueryCirculationSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCirculationSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryCirculationSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCirculationSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryCirculationSupplyResponse) XXX_Size() int
- func (m *QueryCirculationSupplyResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryMetricsRequest
- func (*QueryMetricsRequest) Descriptor() ([]byte, []int)
- func (m *QueryMetricsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMetricsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMetricsRequest) ProtoMessage()
- func (m *QueryMetricsRequest) Reset()
- func (m *QueryMetricsRequest) Size() (n int)
- func (m *QueryMetricsRequest) String() string
- func (m *QueryMetricsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMetricsRequest) XXX_DiscardUnknown()
- func (m *QueryMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMetricsRequest) XXX_Merge(src proto.Message)
- func (m *QueryMetricsRequest) XXX_Size() int
- func (m *QueryMetricsRequest) XXX_Unmarshal(b []byte) error
- type QueryMetricsResponse
- func (*QueryMetricsResponse) Descriptor() ([]byte, []int)
- func (m *QueryMetricsResponse) GetMetrics() Metrics
- func (m *QueryMetricsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMetricsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMetricsResponse) ProtoMessage()
- func (m *QueryMetricsResponse) Reset()
- func (m *QueryMetricsResponse) Size() (n int)
- func (m *QueryMetricsResponse) String() string
- func (m *QueryMetricsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMetricsResponse) XXX_DiscardUnknown()
- func (m *QueryMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMetricsResponse) XXX_Merge(src proto.Message)
- func (m *QueryMetricsResponse) XXX_Size() int
- func (m *QueryMetricsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() *Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsByEpochRequest
- func (*QueryRewardsByEpochRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByEpochRequest) GetEpoch() int64
- func (m *QueryRewardsByEpochRequest) GetPagination() *query.PageRequest
- func (m *QueryRewardsByEpochRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByEpochRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByEpochRequest) ProtoMessage()
- func (m *QueryRewardsByEpochRequest) Reset()
- func (m *QueryRewardsByEpochRequest) Size() (n int)
- func (m *QueryRewardsByEpochRequest) String() string
- func (m *QueryRewardsByEpochRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByEpochRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsByEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByEpochRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByEpochRequest) XXX_Size() int
- func (m *QueryRewardsByEpochRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsByEpochResponse
- func (*QueryRewardsByEpochResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByEpochResponse) GetPagination() *query.PageResponse
- func (m *QueryRewardsByEpochResponse) GetRewards() []*Reward
- func (m *QueryRewardsByEpochResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByEpochResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByEpochResponse) ProtoMessage()
- func (m *QueryRewardsByEpochResponse) Reset()
- func (m *QueryRewardsByEpochResponse) Size() (n int)
- func (m *QueryRewardsByEpochResponse) String() string
- func (m *QueryRewardsByEpochResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByEpochResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsByEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByEpochResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByEpochResponse) XXX_Size() int
- func (m *QueryRewardsByEpochResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsByWalletAndEpochRequest
- func (*QueryRewardsByWalletAndEpochRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByWalletAndEpochRequest) GetEpoch() int64
- func (m *QueryRewardsByWalletAndEpochRequest) GetPagination() *query.PageRequest
- func (m *QueryRewardsByWalletAndEpochRequest) GetWalletAddress() string
- func (m *QueryRewardsByWalletAndEpochRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByWalletAndEpochRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByWalletAndEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByWalletAndEpochRequest) ProtoMessage()
- func (m *QueryRewardsByWalletAndEpochRequest) Reset()
- func (m *QueryRewardsByWalletAndEpochRequest) Size() (n int)
- func (m *QueryRewardsByWalletAndEpochRequest) String() string
- func (m *QueryRewardsByWalletAndEpochRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByWalletAndEpochRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsByWalletAndEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByWalletAndEpochRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByWalletAndEpochRequest) XXX_Size() int
- func (m *QueryRewardsByWalletAndEpochRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsByWalletAndEpochResponse
- func (*QueryRewardsByWalletAndEpochResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByWalletAndEpochResponse) GetPagination() *query.PageResponse
- func (m *QueryRewardsByWalletAndEpochResponse) GetRewards() []*Reward
- func (m *QueryRewardsByWalletAndEpochResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByWalletAndEpochResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByWalletAndEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByWalletAndEpochResponse) ProtoMessage()
- func (m *QueryRewardsByWalletAndEpochResponse) Reset()
- func (m *QueryRewardsByWalletAndEpochResponse) Size() (n int)
- func (m *QueryRewardsByWalletAndEpochResponse) String() string
- func (m *QueryRewardsByWalletAndEpochResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByWalletAndEpochResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsByWalletAndEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByWalletAndEpochResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByWalletAndEpochResponse) XXX_Size() int
- func (m *QueryRewardsByWalletAndEpochResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsByWalletRequest
- func (*QueryRewardsByWalletRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByWalletRequest) GetWalletAddress() string
- func (m *QueryRewardsByWalletRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByWalletRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByWalletRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByWalletRequest) ProtoMessage()
- func (m *QueryRewardsByWalletRequest) Reset()
- func (m *QueryRewardsByWalletRequest) Size() (n int)
- func (m *QueryRewardsByWalletRequest) String() string
- func (m *QueryRewardsByWalletRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByWalletRequest) XXX_DiscardUnknown()
- func (m *QueryRewardsByWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByWalletRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByWalletRequest) XXX_Size() int
- func (m *QueryRewardsByWalletRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardsByWalletResponse
- func (*QueryRewardsByWalletResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsByWalletResponse) GetRewards() *RewardByWallet
- func (m *QueryRewardsByWalletResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsByWalletResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsByWalletResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsByWalletResponse) ProtoMessage()
- func (m *QueryRewardsByWalletResponse) Reset()
- func (m *QueryRewardsByWalletResponse) Size() (n int)
- func (m *QueryRewardsByWalletResponse) String() string
- func (m *QueryRewardsByWalletResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsByWalletResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsByWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsByWalletResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsByWalletResponse) XXX_Size() int
- func (m *QueryRewardsByWalletResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySlashingByOwnerRequest
- func (*QuerySlashingByOwnerRequest) Descriptor() ([]byte, []int)
- func (m *QuerySlashingByOwnerRequest) GetWalletAddress() string
- func (m *QuerySlashingByOwnerRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySlashingByOwnerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySlashingByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySlashingByOwnerRequest) ProtoMessage()
- func (m *QuerySlashingByOwnerRequest) Reset()
- func (m *QuerySlashingByOwnerRequest) Size() (n int)
- func (m *QuerySlashingByOwnerRequest) String() string
- func (m *QuerySlashingByOwnerRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySlashingByOwnerRequest) XXX_DiscardUnknown()
- func (m *QuerySlashingByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySlashingByOwnerRequest) XXX_Merge(src proto.Message)
- func (m *QuerySlashingByOwnerRequest) XXX_Size() int
- func (m *QuerySlashingByOwnerRequest) XXX_Unmarshal(b []byte) error
- type QuerySlashingByOwnerResponse
- func (*QuerySlashingByOwnerResponse) Descriptor() ([]byte, []int)
- func (m *QuerySlashingByOwnerResponse) GetSlashing() string
- func (m *QuerySlashingByOwnerResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySlashingByOwnerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySlashingByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySlashingByOwnerResponse) ProtoMessage()
- func (m *QuerySlashingByOwnerResponse) Reset()
- func (m *QuerySlashingByOwnerResponse) Size() (n int)
- func (m *QuerySlashingByOwnerResponse) String() string
- func (m *QuerySlashingByOwnerResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySlashingByOwnerResponse) XXX_DiscardUnknown()
- func (m *QuerySlashingByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySlashingByOwnerResponse) XXX_Merge(src proto.Message)
- func (m *QuerySlashingByOwnerResponse) XXX_Size() int
- func (m *QuerySlashingByOwnerResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalMinedTokenRequest
- func (*QueryTotalMinedTokenRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalMinedTokenRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalMinedTokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalMinedTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalMinedTokenRequest) ProtoMessage()
- func (m *QueryTotalMinedTokenRequest) Reset()
- func (m *QueryTotalMinedTokenRequest) Size() (n int)
- func (m *QueryTotalMinedTokenRequest) String() string
- func (m *QueryTotalMinedTokenRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalMinedTokenRequest) XXX_DiscardUnknown()
- func (m *QueryTotalMinedTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalMinedTokenRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalMinedTokenRequest) XXX_Size() int
- func (m *QueryTotalMinedTokenRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalMinedTokenResponse
- func (*QueryTotalMinedTokenResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalMinedTokenResponse) GetTotalMinedToken() types.Coin
- func (m *QueryTotalMinedTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalMinedTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalMinedTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalMinedTokenResponse) ProtoMessage()
- func (m *QueryTotalMinedTokenResponse) Reset()
- func (m *QueryTotalMinedTokenResponse) Size() (n int)
- func (m *QueryTotalMinedTokenResponse) String() string
- func (m *QueryTotalMinedTokenResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalMinedTokenResponse) XXX_DiscardUnknown()
- func (m *QueryTotalMinedTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalMinedTokenResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalMinedTokenResponse) XXX_Size() int
- func (m *QueryTotalMinedTokenResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalRewardByEpochRequest
- func (*QueryTotalRewardByEpochRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalRewardByEpochRequest) GetEpoch() int64
- func (m *QueryTotalRewardByEpochRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalRewardByEpochRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalRewardByEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalRewardByEpochRequest) ProtoMessage()
- func (m *QueryTotalRewardByEpochRequest) Reset()
- func (m *QueryTotalRewardByEpochRequest) Size() (n int)
- func (m *QueryTotalRewardByEpochRequest) String() string
- func (m *QueryTotalRewardByEpochRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalRewardByEpochRequest) XXX_DiscardUnknown()
- func (m *QueryTotalRewardByEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalRewardByEpochRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalRewardByEpochRequest) XXX_Size() int
- func (m *QueryTotalRewardByEpochRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalRewardByEpochResponse
- func (*QueryTotalRewardByEpochResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalRewardByEpochResponse) GetIsLegacy() bool
- func (m *QueryTotalRewardByEpochResponse) GetTotalReward() TotalReward
- func (m *QueryTotalRewardByEpochResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalRewardByEpochResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalRewardByEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalRewardByEpochResponse) ProtoMessage()
- func (m *QueryTotalRewardByEpochResponse) Reset()
- func (m *QueryTotalRewardByEpochResponse) Size() (n int)
- func (m *QueryTotalRewardByEpochResponse) String() string
- func (m *QueryTotalRewardByEpochResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalRewardByEpochResponse) XXX_DiscardUnknown()
- func (m *QueryTotalRewardByEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalRewardByEpochResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalRewardByEpochResponse) XXX_Size() int
- func (m *QueryTotalRewardByEpochResponse) XXX_Unmarshal(b []byte) error
- type QueryVolumeReportRequest
- func (*QueryVolumeReportRequest) Descriptor() ([]byte, []int)
- func (m *QueryVolumeReportRequest) GetEpoch() int64
- func (m *QueryVolumeReportRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVolumeReportRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVolumeReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVolumeReportRequest) ProtoMessage()
- func (m *QueryVolumeReportRequest) Reset()
- func (m *QueryVolumeReportRequest) Size() (n int)
- func (m *QueryVolumeReportRequest) String() string
- func (m *QueryVolumeReportRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVolumeReportRequest) XXX_DiscardUnknown()
- func (m *QueryVolumeReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVolumeReportRequest) XXX_Merge(src proto.Message)
- func (m *QueryVolumeReportRequest) XXX_Size() int
- func (m *QueryVolumeReportRequest) XXX_Unmarshal(b []byte) error
- type QueryVolumeReportResponse
- func (*QueryVolumeReportResponse) Descriptor() ([]byte, []int)
- func (m *QueryVolumeReportResponse) GetReportInfo() *ReportInfo
- func (m *QueryVolumeReportResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVolumeReportResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVolumeReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVolumeReportResponse) ProtoMessage()
- func (m *QueryVolumeReportResponse) Reset()
- func (m *QueryVolumeReportResponse) Size() (n int)
- func (m *QueryVolumeReportResponse) String() string
- func (m *QueryVolumeReportResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVolumeReportResponse) XXX_DiscardUnknown()
- func (m *QueryVolumeReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVolumeReportResponse) XXX_Merge(src proto.Message)
- func (m *QueryVolumeReportResponse) XXX_Size() int
- func (m *QueryVolumeReportResponse) XXX_Unmarshal(b []byte) error
- type RegisterKeeper
- type ReportInfo
- func (*ReportInfo) Descriptor() ([]byte, []int)
- func (m *ReportInfo) GetEpoch() int64
- func (m *ReportInfo) GetReference() string
- func (m *ReportInfo) GetReporter() string
- func (m *ReportInfo) GetTxHash() string
- func (m *ReportInfo) Marshal() (dAtA []byte, err error)
- func (m *ReportInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ReportInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReportInfo) ProtoMessage()
- func (m *ReportInfo) Reset()
- func (m *ReportInfo) Size() (n int)
- func (m *ReportInfo) String() string
- func (m *ReportInfo) Unmarshal(dAtA []byte) error
- func (m *ReportInfo) XXX_DiscardUnknown()
- func (m *ReportInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReportInfo) XXX_Merge(src proto.Message)
- func (m *ReportInfo) XXX_Size() int
- func (m *ReportInfo) XXX_Unmarshal(b []byte) error
- type Reward
- func (r Reward) AddRewardFromMiningPool(reward sdk.Coin) Reward
- func (r Reward) AddRewardFromTrafficPool(reward sdk.Coin) Reward
- func (*Reward) Descriptor() ([]byte, []int)
- func (this *Reward) Equal(that interface{}) bool
- func (m *Reward) GetRewardFromMiningPool() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Reward) GetRewardFromTrafficPool() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Reward) GetWalletAddress() string
- func (r Reward) HrpString() string
- func (m *Reward) Marshal() (dAtA []byte, err error)
- func (m *Reward) MarshalTo(dAtA []byte) (int, error)
- func (m *Reward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Reward) ProtoMessage()
- func (m *Reward) Reset()
- func (m *Reward) Size() (n int)
- func (m *Reward) String() string
- func (m *Reward) Unmarshal(dAtA []byte) error
- func (m *Reward) XXX_DiscardUnknown()
- func (m *Reward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reward) XXX_Merge(src proto.Message)
- func (m *Reward) XXX_Size() int
- func (m *Reward) XXX_Unmarshal(b []byte) error
- type RewardByWallet
- func (*RewardByWallet) Descriptor() ([]byte, []int)
- func (m *RewardByWallet) GetImmatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *RewardByWallet) GetMatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *RewardByWallet) GetWalletAddress() string
- func (m *RewardByWallet) Marshal() (dAtA []byte, err error)
- func (m *RewardByWallet) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardByWallet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardByWallet) ProtoMessage()
- func (m *RewardByWallet) Reset()
- func (m *RewardByWallet) Size() (n int)
- func (m *RewardByWallet) String() string
- func (m *RewardByWallet) Unmarshal(dAtA []byte) error
- func (m *RewardByWallet) XXX_DiscardUnknown()
- func (m *RewardByWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardByWallet) XXX_Merge(src proto.Message)
- func (m *RewardByWallet) XXX_Size() int
- func (m *RewardByWallet) XXX_Unmarshal(b []byte) error
- type RewardTotal
- func (*RewardTotal) Descriptor() ([]byte, []int)
- func (this *RewardTotal) Equal(that interface{}) bool
- func (m *RewardTotal) GetTotalReward() TotalReward
- func (m *RewardTotal) Marshal() (dAtA []byte, err error)
- func (m *RewardTotal) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardTotal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardTotal) ProtoMessage()
- func (m *RewardTotal) Reset()
- func (m *RewardTotal) Size() (n int)
- func (m *RewardTotal) String() string
- func (m *RewardTotal) Unmarshal(dAtA []byte) error
- func (m *RewardTotal) XXX_DiscardUnknown()
- func (m *RewardTotal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardTotal) XXX_Merge(src proto.Message)
- func (m *RewardTotal) XXX_Size() int
- func (m *RewardTotal) XXX_Unmarshal(b []byte) error
- type SingleWalletVolume
- func (*SingleWalletVolume) Descriptor() ([]byte, []int)
- func (this *SingleWalletVolume) Equal(that interface{}) bool
- func (m *SingleWalletVolume) GetWalletAddress() string
- func (m *SingleWalletVolume) Marshal() (dAtA []byte, err error)
- func (m *SingleWalletVolume) MarshalTo(dAtA []byte) (int, error)
- func (m *SingleWalletVolume) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SingleWalletVolume) ProtoMessage()
- func (m *SingleWalletVolume) Reset()
- func (m *SingleWalletVolume) Size() (n int)
- func (m *SingleWalletVolume) String() string
- func (m *SingleWalletVolume) Unmarshal(dAtA []byte) error
- func (m *SingleWalletVolume) XXX_DiscardUnknown()
- func (m *SingleWalletVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SingleWalletVolume) XXX_Merge(src proto.Message)
- func (m *SingleWalletVolume) XXX_Size() int
- func (m *SingleWalletVolume) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type TotalReward
- func (*TotalReward) Descriptor() ([]byte, []int)
- func (this *TotalReward) Equal(that interface{}) bool
- func (m *TotalReward) GetMiningReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *TotalReward) GetTrafficReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *TotalReward) Marshal() (dAtA []byte, err error)
- func (m *TotalReward) MarshalTo(dAtA []byte) (int, error)
- func (m *TotalReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TotalReward) ProtoMessage()
- func (m *TotalReward) Reset()
- func (m *TotalReward) Size() (n int)
- func (m *TotalReward) String() string
- func (m *TotalReward) Unmarshal(dAtA []byte) error
- func (m *TotalReward) XXX_DiscardUnknown()
- func (m *TotalReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TotalReward) XXX_Merge(src proto.Message)
- func (m *TotalReward) XXX_Size() int
- func (m *TotalReward) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) HandleMsgFoundationDeposit(ctx context.Context, req *MsgFoundationDeposit) (*MsgFoundationDepositResponse, error)
- func (*UnimplementedMsgServer) HandleMsgSlashingResourceNode(ctx context.Context, req *MsgSlashingResourceNode) (*MsgSlashingResourceNodeResponse, error)
- func (*UnimplementedMsgServer) HandleMsgVolumeReport(ctx context.Context, req *MsgVolumeReport) (*MsgVolumeReportResponse, error)
- func (*UnimplementedMsgServer) HandleMsgWithdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CirculationSupply(ctx context.Context, req *QueryCirculationSupplyRequest) (*QueryCirculationSupplyResponse, error)
- func (*UnimplementedQueryServer) Metrics(ctx context.Context, req *QueryMetricsRequest) (*QueryMetricsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RewardsByEpoch(ctx context.Context, req *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error)
- func (*UnimplementedQueryServer) RewardsByWallet(ctx context.Context, req *QueryRewardsByWalletRequest) (*QueryRewardsByWalletResponse, error)
- func (*UnimplementedQueryServer) RewardsByWalletAndEpoch(ctx context.Context, req *QueryRewardsByWalletAndEpochRequest) (*QueryRewardsByWalletAndEpochResponse, error)
- func (*UnimplementedQueryServer) SlashingByOwner(ctx context.Context, req *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error)
- func (*UnimplementedQueryServer) TotalMinedToken(ctx context.Context, req *QueryTotalMinedTokenRequest) (*QueryTotalMinedTokenResponse, error)
- func (*UnimplementedQueryServer) TotalRewardByEpoch(ctx context.Context, req *QueryTotalRewardByEpochRequest) (*QueryTotalRewardByEpochResponse, error)
- func (*UnimplementedQueryServer) VolumeReport(ctx context.Context, req *QueryVolumeReportRequest) (*QueryVolumeReportResponse, error)
- type VolumeReportRecord
- func (*VolumeReportRecord) Descriptor() ([]byte, []int)
- func (this *VolumeReportRecord) Equal(that interface{}) bool
- func (m *VolumeReportRecord) GetReportReference() string
- func (m *VolumeReportRecord) GetReporter() string
- func (m *VolumeReportRecord) GetTxHash() string
- func (m *VolumeReportRecord) Marshal() (dAtA []byte, err error)
- func (m *VolumeReportRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *VolumeReportRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VolumeReportRecord) ProtoMessage()
- func (m *VolumeReportRecord) Reset()
- func (m *VolumeReportRecord) Size() (n int)
- func (m *VolumeReportRecord) String() string
- func (m *VolumeReportRecord) Unmarshal(dAtA []byte) error
- func (m *VolumeReportRecord) XXX_DiscardUnknown()
- func (m *VolumeReportRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VolumeReportRecord) XXX_Merge(src proto.Message)
- func (m *VolumeReportRecord) XXX_Size() int
- func (m *VolumeReportRecord) XXX_Unmarshal(b []byte) error
- type WalletVolumes
- func (*WalletVolumes) Descriptor() ([]byte, []int)
- func (this *WalletVolumes) Equal(that interface{}) bool
- func (m *WalletVolumes) GetVolumes() []SingleWalletVolume
- func (m *WalletVolumes) Marshal() (dAtA []byte, err error)
- func (m *WalletVolumes) MarshalTo(dAtA []byte) (int, error)
- func (m *WalletVolumes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WalletVolumes) ProtoMessage()
- func (m *WalletVolumes) Reset()
- func (m *WalletVolumes) Size() (n int)
- func (m *WalletVolumes) String() string
- func (m *WalletVolumes) Unmarshal(dAtA []byte) error
- func (m *WalletVolumes) XXX_DiscardUnknown()
- func (m *WalletVolumes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletVolumes) XXX_Merge(src proto.Message)
- func (m *WalletVolumes) XXX_Size() int
- func (m *WalletVolumes) XXX_Unmarshal(b []byte) error
Constants ¶
const ( FoundationAccount = "foundation_account" TotalRewardPool = "total_reward_pool" )
const ( // ModuleName is the name of the module ModuleName = "pot" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName )
const ( TypeMsgVolumeReport = "volume_report" TypeMsgWithdraw = "withdraw" TypeMsgFoundationDeposit = "foundation_deposit" TypeMsgSlashingResourceNode = "slashing_resource_node" TypeMsgUpdateParams = "update_params" )
const ( DefaultBondDenom = stratos.Wei DefaultRewardDenom = stratos.Wei DefaultMatureEpoch = 2016 )
const (
QueryDefaultLimit = 100
)
Variables ¶
var ( ErrInvalid = errors.Register(ModuleName, codeErrInvalid, "error invalid") ErrOutOfIssuance = errors.Register(ModuleName, codeErrOutOfIssuance, "mining reward reaches the issuance limit") ErrWithdrawAmountInvalid = errors.Register(ModuleName, codeErrWithdrawAmountInvalid, "withdraw amount is invalid") ErrMissingWalletAddress = errors.Register(ModuleName, codeErrMissingWalletAddress, "missing wallet address") ErrMissingTargetAddress = errors.Register(ModuleName, codeErrMissingTargetAddress, "missing target address") ErrInsufficientMatureTotal = errors.Register(ModuleName, codeErrInsufficientMatureTotal, "insufficient mature total") ErrMatureEpoch = errors.Register(ModuleName, codeErrMatureEpoch, "the value of epoch must be positive and greater than its previous one") ErrMiningRewardParams = errors.Register(ModuleName, codeErrMiningRewardParams, "invalid mining reward param") ErrCommunityTax = errors.Register(ModuleName, codeErrCommunityTax, "invalid community tax param") ErrInitialTotalSupply = errors.Register(ModuleName, codeErrInitialTotalSupply, "invalid initial total supply param") ErrEmptyFromAddr = errors.Register(ModuleName, codeErrEmptyFromAddr, "missing from address") ErrEmptyReporterAddr = errors.Register(ModuleName, codeErrEmptyReporterAddr, "missing reporter address") ErrEmptyWalletVolumes = errors.Register(ModuleName, codeErrEmptyWalletVolumes, "wallet volumes list empty") ErrEpochNotPositive = errors.Register(ModuleName, codeErrEpochNotPositive, "report epoch is not positive") ErrEmptyReportReference = errors.Register(ModuleName, codeErrEmptyReportReference, "missing report reference") ErrReporterOwnerAddr = errors.Register(ModuleName, codeErrReporterOwnerAddr, "invalid reporter owner address") ErrNegativeVolume = errors.Register(ModuleName, codeErrNegativeVolume, "report volume is negative") ErrFoundationDepositAmountInvalid = errors.Register(ModuleName, codeErrFoundationDepositAmountInvalid, "foundation deposit amount is invalid") ErrBLSSignatureInvalid = errors.Register(ModuleName, codeErrBLSSignatureInvalid, "BLS signature is invalid") ErrBLSTxDataInvalid = errors.Register(ModuleName, codeErrBLSTxDataInvalid, "BLS signature txData is invalid") ErrBLSPubkeysInvalid = errors.Register(ModuleName, codeErrBLSPubkeysInvalid, "BLS signature pubkeys are invalid") ErrBLSVerifyFailed = errors.Register(ModuleName, codeErrBLSVerifyFailed, "BLS signature verify failed") ErrBLSNotReachThreshold = errors.Register(ModuleName, codeErrBLSNotReachThreshold, "BLS signed meta-nodes does not reach the threshold") ErrReporterAddress = errors.Register(ModuleName, codeErrReporterAddress, "invalid reporter address") ErrInvalidAmount = errors.Register(ModuleName, codeErrInvalidAmount, "invalid amount") ErrInvalidAddress = errors.Register(ModuleName, codeErrInvalidAddress, "invalid address") ErrInvalidDenom = errors.Register(ModuleName, codeErrInvalidDenom, "invalid denomination") ErrWithdrawFailure = errors.Register(ModuleName, codeErrWithdrawFailure, "failure during withdraw") ErrFoundationDepositFailure = errors.Register(ModuleName, codeErrFoundationDepositFailure, "failure during foundation deposit") ErrSlashingResourceNodeFailure = errors.Register(ModuleName, codeErrSlashingResourceNodeFailure, "failure during slashing resource node") ErrVolumeReport = errors.Register(ModuleName, codeErrVolumeReport, "volume report failed") ErrReporterAddressOrOwner = errors.Register(ModuleName, codeErrReporterAddressOrOwner, "invalid reporter address or owner address") ErrTotalSupplyCapHit = errors.Register(ModuleName, codeErrTotalSupplyCapHit, "minting not completed because total supply cap is hit") ErrInsufficientCommunityPool = errors.Register(ModuleName, codeErrInsufficientCommunityPool, "burning not completed as a result of insufficient balance in community pool") ErrEmitEvent = errors.Register(ModuleName, codeErrEmitEvent, "failed to emit event") )
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = 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 ( TotalMinedTokensKeyPrefix = []byte{0x01} LastDistributedEpochKeyPrefix = []byte{0x02} IndividualRewardKeyPrefix = []byte{0x03} // key: prefix{address}_{epoch}, the amount that is matured at {epoch} MatureTotalRewardKeyPrefix = []byte{0x04} // key: prefix{address} ImmatureTotalRewardKeyPrefix = []byte{0x05} // key: prefix{address} VolumeReportStoreKeyPrefix = []byte{0x06} // VolumeReportStoreKeyPrefix prefix for volumeReport store MaturedEpochKeyPrefix = []byte{0x07} TotalRewardKeyPrefix = []byte{0x08} // key: prefix{epoch} ParamsKey = []byte{0x20} )
var ( DefaultCommunityTax = sdkmath.LegacyNewDecWithPrec(2, 2) // 2% DefaultInitialTotalSupply = sdk.NewCoin(DefaultBondDenom, sdkmath.NewInt(1e8).MulRaw(stratos.StosToWei), ) //100,000,000 stos )
var ( KeyBondDenom = []byte("BondDenom") KeyRewardDenom = []byte("RewardDenom") KeyMatureEpoch = []byte("MatureEpoch") KeyMiningRewardParams = []byte("MiningRewardParams") KeyCommunityTax = []byte("CommunityTax") KeyInitialTotalSupply = []byte("InitialTotalSupply") )
Parameter store keys
var ( ErrInvalidLengthPot = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPot = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPot = 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 ModuleCdc *codec.LegacyAmino
ModuleCdc references the global x/pot module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding as Amino is still used for that purpose.
The actual codec used for serialization should be provided to x/pot and defined at the application level.
Functions ¶
func GetImmatureTotalRewardKey ¶
func GetImmatureTotalRewardKey(acc sdk.AccAddress) []byte
GetImmatureTotalRewardKey prefix{address}
func GetIndividualRewardIteratorKey ¶ added in v0.7.0
func GetIndividualRewardKey ¶
func GetIndividualRewardKey(acc sdk.AccAddress, epoch sdkmath.Int) []byte
GetIndividualRewardKey prefix{epoch}_{account}, the amount that is matured at {epoch}
func GetMatureTotalRewardKey ¶
func GetMatureTotalRewardKey(acc sdk.AccAddress) []byte
GetMatureTotalRewardKey prefix{address}
func GetTotalRewardKey ¶ added in v0.12.0
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable for pot module Deprecated: now params can be accessed on key `0x20` on the pot store.
func RegisterInterfaces ¶ added in v0.8.0
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the x/register interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶ added in v0.8.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec RegisterCodec registers concrete types on codec
func RegisterMsgServer ¶ added in v0.8.0
func RegisterQueryHandler ¶ added in v0.8.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.8.0
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.8.0
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.8.0
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.8.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the pot genesis parameters
func VolumeReportStoreKey ¶
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI // only used for simulation GetModuleAddress(name string) sdk.AccAddress }
AccountKeeper defines the expected account keeper (noalias)
type BLSSignatureInfo ¶ added in v0.6.0
type BLSSignatureInfo struct { PubKeys [][]byte `protobuf:"bytes,1,rep,name=pub_keys,json=pubKeys,proto3" json:"pub_keys" yaml:"pub_keys"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature" yaml:"signature"` TxData []byte `protobuf:"bytes,3,opt,name=txData,proto3" json:"tx_data" yaml:"tx_data"` }
func NewBLSSignatureInfo ¶ added in v0.6.0
func NewBLSSignatureInfo(pubKeys [][]byte, signature []byte, txData []byte) BLSSignatureInfo
func (*BLSSignatureInfo) Descriptor ¶ added in v0.8.0
func (*BLSSignatureInfo) Descriptor() ([]byte, []int)
func (*BLSSignatureInfo) Equal ¶ added in v0.12.0
func (this *BLSSignatureInfo) Equal(that interface{}) bool
func (*BLSSignatureInfo) GetPubKeys ¶ added in v0.8.0
func (m *BLSSignatureInfo) GetPubKeys() [][]byte
func (*BLSSignatureInfo) GetSignature ¶ added in v0.8.0
func (m *BLSSignatureInfo) GetSignature() []byte
func (*BLSSignatureInfo) GetTxData ¶ added in v0.8.0
func (m *BLSSignatureInfo) GetTxData() []byte
func (*BLSSignatureInfo) Marshal ¶ added in v0.8.0
func (m *BLSSignatureInfo) Marshal() (dAtA []byte, err error)
func (*BLSSignatureInfo) MarshalTo ¶ added in v0.8.0
func (m *BLSSignatureInfo) MarshalTo(dAtA []byte) (int, error)
func (*BLSSignatureInfo) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *BLSSignatureInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BLSSignatureInfo) ProtoMessage ¶ added in v0.8.0
func (*BLSSignatureInfo) ProtoMessage()
func (*BLSSignatureInfo) Reset ¶ added in v0.8.0
func (m *BLSSignatureInfo) Reset()
func (*BLSSignatureInfo) Size ¶ added in v0.8.0
func (m *BLSSignatureInfo) Size() (n int)
func (*BLSSignatureInfo) String ¶ added in v0.8.0
func (m *BLSSignatureInfo) String() string
func (*BLSSignatureInfo) Unmarshal ¶ added in v0.8.0
func (m *BLSSignatureInfo) Unmarshal(dAtA []byte) error
func (*BLSSignatureInfo) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *BLSSignatureInfo) XXX_DiscardUnknown()
func (*BLSSignatureInfo) XXX_Marshal ¶ added in v0.8.0
func (m *BLSSignatureInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BLSSignatureInfo) XXX_Merge ¶ added in v0.8.0
func (m *BLSSignatureInfo) XXX_Merge(src proto.Message)
func (*BLSSignatureInfo) XXX_Size ¶ added in v0.8.0
func (m *BLSSignatureInfo) XXX_Size() int
func (*BLSSignatureInfo) XXX_Unmarshal ¶ added in v0.8.0
func (m *BLSSignatureInfo) XXX_Unmarshal(b []byte) error
type BankKeeper ¶ added in v0.8.0
type BankKeeper interface { SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin GetSupply(ctx sdk.Context, denom string) sdk.Coin MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type BaseBLSSignatureInfo ¶ added in v0.8.0
type DistrKeeper ¶ added in v0.9.0
type DistributeGoal ¶
type DistributeGoal struct { StakeMiningRewardToValidator sdk.Coin `json:"stake_mining_reward_to_validator" yaml:"stake_mining_reward_to_validator"` // 20% mining reward StakeTrafficRewardToValidator sdk.Coin `json:"stake_traffic_reward_to_validator" yaml:"stake_traffic_reward_to_validator"` // 20% traffic reward MiningRewardToMetaNode sdk.Coin `json:"mining_reward_to_meta_node" yaml:"mining_reward_to_meta_node"` // 20% of mining reward, distribute equally TrafficRewardToMetaNode sdk.Coin `json:"traffic_reward_to_meta_node" yaml:"traffic_reward_to_meta_node"` // 20% of traffic reward, distribute equally MiningRewardToResourceNode sdk.Coin `json:"mining_reward_to_resource_node" yaml:"mining_reward_to_resource_node"` // 60% of mining reward, distribute by traffic contribution TrafficRewardToResourceNode sdk.Coin `json:"traffic_reward_to_resource_node" yaml:"traffic_reward_to_resource_node"` // 60% of traffic reward, distribute by traffic contribution }
func InitDistributeGoal ¶
func InitDistributeGoal() DistributeGoal
func NewDistributeGoal ¶
func (DistributeGoal) AddMiningRewardToMetaNode ¶ added in v0.9.0
func (d DistributeGoal) AddMiningRewardToMetaNode(reward sdk.Coin) DistributeGoal
func (DistributeGoal) AddMiningRewardToResourceNode ¶ added in v0.9.0
func (d DistributeGoal) AddMiningRewardToResourceNode(reward sdk.Coin) DistributeGoal
func (DistributeGoal) AddStakeMiningRewardToValidator ¶ added in v0.9.0
func (d DistributeGoal) AddStakeMiningRewardToValidator(reward sdk.Coin) DistributeGoal
func (DistributeGoal) AddStakeTrafficRewardToValidator ¶ added in v0.9.0
func (d DistributeGoal) AddStakeTrafficRewardToValidator(reward sdk.Coin) DistributeGoal
func (DistributeGoal) AddTrafficRewardToMetaNode ¶ added in v0.9.0
func (d DistributeGoal) AddTrafficRewardToMetaNode(reward sdk.Coin) DistributeGoal
func (DistributeGoal) AddTrafficRewardToResourceNode ¶ added in v0.9.0
func (d DistributeGoal) AddTrafficRewardToResourceNode(reward sdk.Coin) DistributeGoal
func (DistributeGoal) String ¶
func (d DistributeGoal) String() string
String returns a human readable string representation of a Reward.
type EventFoundationDeposit ¶ added in v0.12.0
type EventFoundationDeposit struct {
Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
}
EventFoundationDeposit is emitted on Msg/MsgFoundationDeposit
func (*EventFoundationDeposit) Descriptor ¶ added in v0.12.0
func (*EventFoundationDeposit) Descriptor() ([]byte, []int)
func (*EventFoundationDeposit) GetAmount ¶ added in v0.12.0
func (m *EventFoundationDeposit) GetAmount() string
func (*EventFoundationDeposit) Marshal ¶ added in v0.12.0
func (m *EventFoundationDeposit) Marshal() (dAtA []byte, err error)
func (*EventFoundationDeposit) MarshalTo ¶ added in v0.12.0
func (m *EventFoundationDeposit) MarshalTo(dAtA []byte) (int, error)
func (*EventFoundationDeposit) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *EventFoundationDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventFoundationDeposit) ProtoMessage ¶ added in v0.12.0
func (*EventFoundationDeposit) ProtoMessage()
func (*EventFoundationDeposit) Reset ¶ added in v0.12.0
func (m *EventFoundationDeposit) Reset()
func (*EventFoundationDeposit) Size ¶ added in v0.12.0
func (m *EventFoundationDeposit) Size() (n int)
func (*EventFoundationDeposit) String ¶ added in v0.12.0
func (m *EventFoundationDeposit) String() string
func (*EventFoundationDeposit) Unmarshal ¶ added in v0.12.0
func (m *EventFoundationDeposit) Unmarshal(dAtA []byte) error
func (*EventFoundationDeposit) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *EventFoundationDeposit) XXX_DiscardUnknown()
func (*EventFoundationDeposit) XXX_Marshal ¶ added in v0.12.0
func (m *EventFoundationDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventFoundationDeposit) XXX_Merge ¶ added in v0.12.0
func (m *EventFoundationDeposit) XXX_Merge(src proto.Message)
func (*EventFoundationDeposit) XXX_Size ¶ added in v0.12.0
func (m *EventFoundationDeposit) XXX_Size() int
func (*EventFoundationDeposit) XXX_Unmarshal ¶ added in v0.12.0
func (m *EventFoundationDeposit) XXX_Unmarshal(b []byte) error
type EventSlashing ¶ added in v0.12.0
type EventSlashing struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` SlashingType string `protobuf:"bytes,4,opt,name=slashing_type,json=slashingType,proto3" json:"slashing_type,omitempty"` Suspend string `protobuf:"bytes,5,opt,name=suspend,proto3" json:"suspend,omitempty"` }
EventSlashing is emitted on Msg/MsgSlashingResourceNode
func (*EventSlashing) Descriptor ¶ added in v0.12.0
func (*EventSlashing) Descriptor() ([]byte, []int)
func (*EventSlashing) GetAmount ¶ added in v0.12.0
func (m *EventSlashing) GetAmount() string
func (*EventSlashing) GetNetworkAddress ¶ added in v0.12.0
func (m *EventSlashing) GetNetworkAddress() string
func (*EventSlashing) GetSlashingType ¶ added in v0.12.0
func (m *EventSlashing) GetSlashingType() string
func (*EventSlashing) GetSuspend ¶ added in v0.12.0
func (m *EventSlashing) GetSuspend() string
func (*EventSlashing) GetWalletAddress ¶ added in v0.12.0
func (m *EventSlashing) GetWalletAddress() string
func (*EventSlashing) Marshal ¶ added in v0.12.0
func (m *EventSlashing) Marshal() (dAtA []byte, err error)
func (*EventSlashing) MarshalTo ¶ added in v0.12.0
func (m *EventSlashing) MarshalTo(dAtA []byte) (int, error)
func (*EventSlashing) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *EventSlashing) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSlashing) ProtoMessage ¶ added in v0.12.0
func (*EventSlashing) ProtoMessage()
func (*EventSlashing) Reset ¶ added in v0.12.0
func (m *EventSlashing) Reset()
func (*EventSlashing) Size ¶ added in v0.12.0
func (m *EventSlashing) Size() (n int)
func (*EventSlashing) String ¶ added in v0.12.0
func (m *EventSlashing) String() string
func (*EventSlashing) Unmarshal ¶ added in v0.12.0
func (m *EventSlashing) Unmarshal(dAtA []byte) error
func (*EventSlashing) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *EventSlashing) XXX_DiscardUnknown()
func (*EventSlashing) XXX_Marshal ¶ added in v0.12.0
func (m *EventSlashing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSlashing) XXX_Merge ¶ added in v0.12.0
func (m *EventSlashing) XXX_Merge(src proto.Message)
func (*EventSlashing) XXX_Size ¶ added in v0.12.0
func (m *EventSlashing) XXX_Size() int
func (*EventSlashing) XXX_Unmarshal ¶ added in v0.12.0
func (m *EventSlashing) XXX_Unmarshal(b []byte) error
type EventVolumeReport ¶ added in v0.12.0
type EventVolumeReport struct { ReportReference string `protobuf:"bytes,1,opt,name=report_reference,json=reportReference,proto3" json:"report_reference,omitempty"` Epoch string `protobuf:"bytes,2,opt,name=epoch,proto3" json:"epoch,omitempty"` }
EventVolumeReport is emitted on Msg/MsgVolumeReport
func (*EventVolumeReport) Descriptor ¶ added in v0.12.0
func (*EventVolumeReport) Descriptor() ([]byte, []int)
func (*EventVolumeReport) GetEpoch ¶ added in v0.12.0
func (m *EventVolumeReport) GetEpoch() string
func (*EventVolumeReport) GetReportReference ¶ added in v0.12.0
func (m *EventVolumeReport) GetReportReference() string
func (*EventVolumeReport) Marshal ¶ added in v0.12.0
func (m *EventVolumeReport) Marshal() (dAtA []byte, err error)
func (*EventVolumeReport) MarshalTo ¶ added in v0.12.0
func (m *EventVolumeReport) MarshalTo(dAtA []byte) (int, error)
func (*EventVolumeReport) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *EventVolumeReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventVolumeReport) ProtoMessage ¶ added in v0.12.0
func (*EventVolumeReport) ProtoMessage()
func (*EventVolumeReport) Reset ¶ added in v0.12.0
func (m *EventVolumeReport) Reset()
func (*EventVolumeReport) Size ¶ added in v0.12.0
func (m *EventVolumeReport) Size() (n int)
func (*EventVolumeReport) String ¶ added in v0.12.0
func (m *EventVolumeReport) String() string
func (*EventVolumeReport) Unmarshal ¶ added in v0.12.0
func (m *EventVolumeReport) Unmarshal(dAtA []byte) error
func (*EventVolumeReport) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *EventVolumeReport) XXX_DiscardUnknown()
func (*EventVolumeReport) XXX_Marshal ¶ added in v0.12.0
func (m *EventVolumeReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventVolumeReport) XXX_Merge ¶ added in v0.12.0
func (m *EventVolumeReport) XXX_Merge(src proto.Message)
func (*EventVolumeReport) XXX_Size ¶ added in v0.12.0
func (m *EventVolumeReport) XXX_Size() int
func (*EventVolumeReport) XXX_Unmarshal ¶ added in v0.12.0
func (m *EventVolumeReport) XXX_Unmarshal(b []byte) error
type EventWithdraw ¶ added in v0.12.0
type EventWithdraw struct { Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` WalletAddress string `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` TargetAddress string `protobuf:"bytes,3,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"` }
EventWithdraw is emitted on Msg/MsgWithdraw
func (*EventWithdraw) Descriptor ¶ added in v0.12.0
func (*EventWithdraw) Descriptor() ([]byte, []int)
func (*EventWithdraw) GetAmount ¶ added in v0.12.0
func (m *EventWithdraw) GetAmount() string
func (*EventWithdraw) GetTargetAddress ¶ added in v0.12.0
func (m *EventWithdraw) GetTargetAddress() string
func (*EventWithdraw) GetWalletAddress ¶ added in v0.12.0
func (m *EventWithdraw) GetWalletAddress() string
func (*EventWithdraw) Marshal ¶ added in v0.12.0
func (m *EventWithdraw) Marshal() (dAtA []byte, err error)
func (*EventWithdraw) MarshalTo ¶ added in v0.12.0
func (m *EventWithdraw) MarshalTo(dAtA []byte) (int, error)
func (*EventWithdraw) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *EventWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventWithdraw) ProtoMessage ¶ added in v0.12.0
func (*EventWithdraw) ProtoMessage()
func (*EventWithdraw) Reset ¶ added in v0.12.0
func (m *EventWithdraw) Reset()
func (*EventWithdraw) Size ¶ added in v0.12.0
func (m *EventWithdraw) Size() (n int)
func (*EventWithdraw) String ¶ added in v0.12.0
func (m *EventWithdraw) String() string
func (*EventWithdraw) Unmarshal ¶ added in v0.12.0
func (m *EventWithdraw) Unmarshal(dAtA []byte) error
func (*EventWithdraw) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *EventWithdraw) XXX_DiscardUnknown()
func (*EventWithdraw) XXX_Marshal ¶ added in v0.12.0
func (m *EventWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventWithdraw) XXX_Merge ¶ added in v0.12.0
func (m *EventWithdraw) XXX_Merge(src proto.Message)
func (*EventWithdraw) XXX_Size ¶ added in v0.12.0
func (m *EventWithdraw) XXX_Size() int
func (*EventWithdraw) XXX_Unmarshal ¶ added in v0.12.0
func (m *EventWithdraw) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` TotalMinedToken types.Coin `protobuf:"bytes,2,opt,name=total_mined_token,json=totalMinedToken,proto3" json:"total_mined_token" yaml:"total_mined_token"` LastDistributedEpoch github_com_cosmos_cosmos_sdk_types.Int `` /* 193-byte string literal not displayed */ ImmatureTotalInfo []ImmatureTotal `` /* 131-byte string literal not displayed */ MatureTotalInfo []MatureTotal `protobuf:"bytes,5,rep,name=mature_total_info,json=matureTotalInfo,proto3" json:"mature_total_info" yaml:"mature_total_info"` IndividualRewardInfo []Reward `` /* 143-byte string literal not displayed */ MaturedEpoch github_com_cosmos_cosmos_sdk_types.Int `` /* 158-byte string literal not displayed */ RewardTotalInfo []RewardTotal `protobuf:"bytes,8,rep,name=reward_total_info,json=rewardTotalInfo,proto3" json:"reward_total_info" yaml:"reward_total_info"` }
GenesisState defines the register module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState - default GenesisState used by Cosmos Hub
func NewGenesisState ¶
func NewGenesisState(params Params, totalMinedToken sdk.Coin, lastDistributedEpoch sdkmath.Int, immatureTotalInfo []ImmatureTotal, matureTotalInfo []MatureTotal, individualRewardInfo []Reward, maturedEpoch sdkmath.Int, rewardTotalInfo []RewardTotal, ) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶ added in v0.8.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Equal ¶ added in v0.12.0
func (this *GenesisState) Equal(that interface{}) bool
func (*GenesisState) GetImmatureTotalInfo ¶ added in v0.8.0
func (m *GenesisState) GetImmatureTotalInfo() []ImmatureTotal
func (*GenesisState) GetIndividualRewardInfo ¶ added in v0.8.0
func (m *GenesisState) GetIndividualRewardInfo() []Reward
func (*GenesisState) GetMatureTotalInfo ¶ added in v0.8.0
func (m *GenesisState) GetMatureTotalInfo() []MatureTotal
func (*GenesisState) GetParams ¶ added in v0.8.0
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRewardTotalInfo ¶ added in v0.12.0
func (m *GenesisState) GetRewardTotalInfo() []RewardTotal
func (*GenesisState) GetTotalMinedToken ¶ added in v0.8.0
func (m *GenesisState) GetTotalMinedToken() types.Coin
func (*GenesisState) Marshal ¶ added in v0.8.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.8.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.8.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.8.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.8.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.8.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.8.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.8.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.8.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.8.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.8.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type ImmatureTotal ¶ added in v0.7.0
type ImmatureTotal struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"` Value github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=value,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"value" yaml:"value"` }
func NewImmatureTotal ¶ added in v0.7.0
func NewImmatureTotal(walletAddress sdk.AccAddress, value sdk.Coins) ImmatureTotal
func (*ImmatureTotal) Descriptor ¶ added in v0.8.0
func (*ImmatureTotal) Descriptor() ([]byte, []int)
func (*ImmatureTotal) Equal ¶ added in v0.12.0
func (this *ImmatureTotal) Equal(that interface{}) bool
func (*ImmatureTotal) GetValue ¶ added in v0.8.0
func (m *ImmatureTotal) GetValue() github_com_cosmos_cosmos_sdk_types.Coins
func (*ImmatureTotal) GetWalletAddress ¶ added in v0.8.0
func (m *ImmatureTotal) GetWalletAddress() string
func (*ImmatureTotal) Marshal ¶ added in v0.8.0
func (m *ImmatureTotal) Marshal() (dAtA []byte, err error)
func (*ImmatureTotal) MarshalTo ¶ added in v0.8.0
func (m *ImmatureTotal) MarshalTo(dAtA []byte) (int, error)
func (*ImmatureTotal) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *ImmatureTotal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ImmatureTotal) ProtoMessage ¶ added in v0.8.0
func (*ImmatureTotal) ProtoMessage()
func (*ImmatureTotal) Reset ¶ added in v0.8.0
func (m *ImmatureTotal) Reset()
func (*ImmatureTotal) Size ¶ added in v0.8.0
func (m *ImmatureTotal) Size() (n int)
func (*ImmatureTotal) String ¶ added in v0.8.0
func (m *ImmatureTotal) String() string
func (*ImmatureTotal) Unmarshal ¶ added in v0.8.0
func (m *ImmatureTotal) Unmarshal(dAtA []byte) error
func (*ImmatureTotal) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *ImmatureTotal) XXX_DiscardUnknown()
func (*ImmatureTotal) XXX_Marshal ¶ added in v0.8.0
func (m *ImmatureTotal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImmatureTotal) XXX_Merge ¶ added in v0.8.0
func (m *ImmatureTotal) XXX_Merge(src proto.Message)
func (*ImmatureTotal) XXX_Size ¶ added in v0.8.0
func (m *ImmatureTotal) XXX_Size() int
func (*ImmatureTotal) XXX_Unmarshal ¶ added in v0.8.0
func (m *ImmatureTotal) XXX_Unmarshal(b []byte) error
type MatureTotal ¶ added in v0.7.0
type MatureTotal struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"` Value github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=value,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"value" yaml:"value"` }
func NewMatureTotal ¶ added in v0.7.0
func NewMatureTotal(walletAddress sdk.AccAddress, value sdk.Coins) MatureTotal
func (*MatureTotal) Descriptor ¶ added in v0.8.0
func (*MatureTotal) Descriptor() ([]byte, []int)
func (*MatureTotal) Equal ¶ added in v0.12.0
func (this *MatureTotal) Equal(that interface{}) bool
func (*MatureTotal) GetValue ¶ added in v0.8.0
func (m *MatureTotal) GetValue() github_com_cosmos_cosmos_sdk_types.Coins
func (*MatureTotal) GetWalletAddress ¶ added in v0.8.0
func (m *MatureTotal) GetWalletAddress() string
func (*MatureTotal) Marshal ¶ added in v0.8.0
func (m *MatureTotal) Marshal() (dAtA []byte, err error)
func (*MatureTotal) MarshalTo ¶ added in v0.8.0
func (m *MatureTotal) MarshalTo(dAtA []byte) (int, error)
func (*MatureTotal) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MatureTotal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MatureTotal) ProtoMessage ¶ added in v0.8.0
func (*MatureTotal) ProtoMessage()
func (*MatureTotal) Reset ¶ added in v0.8.0
func (m *MatureTotal) Reset()
func (*MatureTotal) Size ¶ added in v0.8.0
func (m *MatureTotal) Size() (n int)
func (*MatureTotal) String ¶ added in v0.8.0
func (m *MatureTotal) String() string
func (*MatureTotal) Unmarshal ¶ added in v0.8.0
func (m *MatureTotal) Unmarshal(dAtA []byte) error
func (*MatureTotal) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MatureTotal) XXX_DiscardUnknown()
func (*MatureTotal) XXX_Marshal ¶ added in v0.8.0
func (m *MatureTotal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MatureTotal) XXX_Merge ¶ added in v0.8.0
func (m *MatureTotal) XXX_Merge(src proto.Message)
func (*MatureTotal) XXX_Size ¶ added in v0.8.0
func (m *MatureTotal) XXX_Size() int
func (*MatureTotal) XXX_Unmarshal ¶ added in v0.8.0
func (m *MatureTotal) XXX_Unmarshal(b []byte) error
type Metrics ¶ added in v0.11.3
type Metrics struct { TotalSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */ TotalMiningSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 181-byte string literal not displayed */ TotalMinedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 177-byte string literal not displayed */ TotalResourceNodesDeposit github_com_cosmos_cosmos_sdk_types.Int `` /* 216-byte string literal not displayed */ TotalBondedDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 197-byte string literal not displayed */ TotalUnbondedDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 205-byte string literal not displayed */ TotalUnbondingDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 209-byte string literal not displayed */ CirculationSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 178-byte string literal not displayed */ TotalMiningReward github_com_cosmos_cosmos_sdk_types.Int `` /* 181-byte string literal not displayed */ ChainMiningReward github_com_cosmos_cosmos_sdk_types.Int `` /* 182-byte string literal not displayed */ ResourceMiningReward github_com_cosmos_cosmos_sdk_types.Int `` /* 194-byte string literal not displayed */ MetaMiningReward github_com_cosmos_cosmos_sdk_types.Int `` /* 178-byte string literal not displayed */ ResourceNodeDeposit github_com_cosmos_cosmos_sdk_types.Int `` /* 190-byte string literal not displayed */ MetaNodeDeposit github_com_cosmos_cosmos_sdk_types.Int `` /* 174-byte string literal not displayed */ UnissuedPrepay github_com_cosmos_cosmos_sdk_types.Int `` /* 167-byte string literal not displayed */ }
func (*Metrics) Descriptor ¶ added in v0.11.3
func (*Metrics) MarshalToSizedBuffer ¶ added in v0.11.3
func (*Metrics) ProtoMessage ¶ added in v0.11.3
func (*Metrics) ProtoMessage()
func (*Metrics) XXX_DiscardUnknown ¶ added in v0.11.3
func (m *Metrics) XXX_DiscardUnknown()
func (*Metrics) XXX_Marshal ¶ added in v0.11.3
func (*Metrics) XXX_Unmarshal ¶ added in v0.11.3
type MiningRewardParam ¶
type MiningRewardParam struct { TotalMinedValveStart types.Coin `` /* 146-byte string literal not displayed */ TotalMinedValveEnd types.Coin `` /* 138-byte string literal not displayed */ MiningReward types.Coin `protobuf:"bytes,3,opt,name=mining_reward,json=miningReward,proto3" json:"mining_reward" yaml:"mining_reward"` BlockChainPercentageInBp github_com_cosmos_cosmos_sdk_types.Int `` /* 215-byte string literal not displayed */ ResourceNodePercentageInBp github_com_cosmos_cosmos_sdk_types.Int `` /* 223-byte string literal not displayed */ MetaNodePercentageInBp github_com_cosmos_cosmos_sdk_types.Int `` /* 207-byte string literal not displayed */ }
func NewMiningRewardParam ¶
func (*MiningRewardParam) Descriptor ¶ added in v0.8.0
func (*MiningRewardParam) Descriptor() ([]byte, []int)
func (*MiningRewardParam) Equal ¶ added in v0.12.0
func (this *MiningRewardParam) Equal(that interface{}) bool
func (*MiningRewardParam) GetMiningReward ¶ added in v0.8.0
func (m *MiningRewardParam) GetMiningReward() types.Coin
func (*MiningRewardParam) GetTotalMinedValveEnd ¶ added in v0.8.0
func (m *MiningRewardParam) GetTotalMinedValveEnd() types.Coin
func (*MiningRewardParam) GetTotalMinedValveStart ¶ added in v0.8.0
func (m *MiningRewardParam) GetTotalMinedValveStart() types.Coin
func (*MiningRewardParam) Marshal ¶ added in v0.8.0
func (m *MiningRewardParam) Marshal() (dAtA []byte, err error)
func (*MiningRewardParam) MarshalTo ¶ added in v0.8.0
func (m *MiningRewardParam) MarshalTo(dAtA []byte) (int, error)
func (*MiningRewardParam) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MiningRewardParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MiningRewardParam) ProtoMessage ¶ added in v0.8.0
func (*MiningRewardParam) ProtoMessage()
func (*MiningRewardParam) Reset ¶ added in v0.8.0
func (m *MiningRewardParam) Reset()
func (*MiningRewardParam) Size ¶ added in v0.8.0
func (m *MiningRewardParam) Size() (n int)
func (*MiningRewardParam) String ¶ added in v0.8.0
func (m *MiningRewardParam) String() string
func (*MiningRewardParam) Unmarshal ¶ added in v0.8.0
func (m *MiningRewardParam) Unmarshal(dAtA []byte) error
func (*MiningRewardParam) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MiningRewardParam) XXX_DiscardUnknown()
func (*MiningRewardParam) XXX_Marshal ¶ added in v0.8.0
func (m *MiningRewardParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MiningRewardParam) XXX_Merge ¶ added in v0.8.0
func (m *MiningRewardParam) XXX_Merge(src proto.Message)
func (*MiningRewardParam) XXX_Size ¶ added in v0.8.0
func (m *MiningRewardParam) XXX_Size() int
func (*MiningRewardParam) XXX_Unmarshal ¶ added in v0.8.0
func (m *MiningRewardParam) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.8.0
type MsgClient interface { HandleMsgVolumeReport(ctx context.Context, in *MsgVolumeReport, opts ...grpc.CallOption) (*MsgVolumeReportResponse, error) HandleMsgWithdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error) HandleMsgFoundationDeposit(ctx context.Context, in *MsgFoundationDeposit, opts ...grpc.CallOption) (*MsgFoundationDepositResponse, error) HandleMsgSlashingResourceNode(ctx context.Context, in *MsgSlashingResourceNode, opts ...grpc.CallOption) (*MsgSlashingResourceNodeResponse, error) // UpdateParams defined a governance operation for updating the x/pot module parameters. // The authority is hard-coded to the Cosmos SDK 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 ¶ added in v0.8.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgFoundationDeposit ¶ added in v0.5.0
type MsgFoundationDeposit struct { Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from" yaml:"from"` }
MsgFoundationDeposit - encapsulates an FoundationDeposit transaction as an SDK message
func NewMsgFoundationDeposit ¶ added in v0.5.0
func NewMsgFoundationDeposit(amount sdk.Coins, from sdk.AccAddress) *MsgFoundationDeposit
func (*MsgFoundationDeposit) Descriptor ¶ added in v0.8.0
func (*MsgFoundationDeposit) Descriptor() ([]byte, []int)
func (*MsgFoundationDeposit) Equal ¶ added in v0.12.0
func (this *MsgFoundationDeposit) Equal(that interface{}) bool
func (*MsgFoundationDeposit) GetAmount ¶ added in v0.8.0
func (m *MsgFoundationDeposit) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgFoundationDeposit) GetFrom ¶ added in v0.8.0
func (m *MsgFoundationDeposit) GetFrom() string
func (MsgFoundationDeposit) GetSignBytes ¶ added in v0.5.0
func (msg MsgFoundationDeposit) GetSignBytes() []byte
GetSignBytes gets the bytes for the message signer to sign on
func (MsgFoundationDeposit) GetSigners ¶ added in v0.5.0
func (msg MsgFoundationDeposit) GetSigners() []sdk.AccAddress
GetSigners Implement
func (*MsgFoundationDeposit) GetWeb3Msg ¶ added in v0.12.0
func (m *MsgFoundationDeposit) GetWeb3Msg() (*stratos.Web3Msg, error)
func (*MsgFoundationDeposit) Marshal ¶ added in v0.8.0
func (m *MsgFoundationDeposit) Marshal() (dAtA []byte, err error)
func (*MsgFoundationDeposit) MarshalTo ¶ added in v0.8.0
func (m *MsgFoundationDeposit) MarshalTo(dAtA []byte) (int, error)
func (*MsgFoundationDeposit) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgFoundationDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFoundationDeposit) ProtoMessage ¶ added in v0.8.0
func (*MsgFoundationDeposit) ProtoMessage()
func (*MsgFoundationDeposit) Reset ¶ added in v0.8.0
func (m *MsgFoundationDeposit) Reset()
func (MsgFoundationDeposit) Route ¶ added in v0.5.0
func (msg MsgFoundationDeposit) Route() string
Route Implement
func (*MsgFoundationDeposit) Size ¶ added in v0.8.0
func (m *MsgFoundationDeposit) Size() (n int)
func (*MsgFoundationDeposit) String ¶ added in v0.8.0
func (m *MsgFoundationDeposit) String() string
func (MsgFoundationDeposit) Type ¶ added in v0.5.0
func (msg MsgFoundationDeposit) Type() string
Type Implement
func (*MsgFoundationDeposit) Unmarshal ¶ added in v0.8.0
func (m *MsgFoundationDeposit) Unmarshal(dAtA []byte) error
func (MsgFoundationDeposit) ValidateBasic ¶ added in v0.5.0
func (msg MsgFoundationDeposit) ValidateBasic() error
ValidateBasic validity check for the AnteHandler
func (*MsgFoundationDeposit) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgFoundationDeposit) XXX_DiscardUnknown()
func (*MsgFoundationDeposit) XXX_Marshal ¶ added in v0.8.0
func (m *MsgFoundationDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFoundationDeposit) XXX_Merge ¶ added in v0.8.0
func (m *MsgFoundationDeposit) XXX_Merge(src proto.Message)
func (*MsgFoundationDeposit) XXX_Size ¶ added in v0.8.0
func (m *MsgFoundationDeposit) XXX_Size() int
func (*MsgFoundationDeposit) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgFoundationDeposit) XXX_Unmarshal(b []byte) error
type MsgFoundationDepositResponse ¶ added in v0.8.0
type MsgFoundationDepositResponse struct { }
MsgFoundationDepositResponse defines the MsgFoundationDeposit response type
func (*MsgFoundationDepositResponse) Descriptor ¶ added in v0.8.0
func (*MsgFoundationDepositResponse) Descriptor() ([]byte, []int)
func (*MsgFoundationDepositResponse) Equal ¶ added in v0.12.0
func (this *MsgFoundationDepositResponse) Equal(that interface{}) bool
func (*MsgFoundationDepositResponse) Marshal ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) Marshal() (dAtA []byte, err error)
func (*MsgFoundationDepositResponse) MarshalTo ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgFoundationDepositResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFoundationDepositResponse) ProtoMessage ¶ added in v0.8.0
func (*MsgFoundationDepositResponse) ProtoMessage()
func (*MsgFoundationDepositResponse) Reset ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) Reset()
func (*MsgFoundationDepositResponse) Size ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) Size() (n int)
func (*MsgFoundationDepositResponse) String ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) String() string
func (*MsgFoundationDepositResponse) Unmarshal ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) Unmarshal(dAtA []byte) error
func (*MsgFoundationDepositResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) XXX_DiscardUnknown()
func (*MsgFoundationDepositResponse) XXX_Marshal ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFoundationDepositResponse) XXX_Merge ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) XXX_Merge(src proto.Message)
func (*MsgFoundationDepositResponse) XXX_Size ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) XXX_Size() int
func (*MsgFoundationDepositResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgFoundationDepositResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v0.8.0
type MsgServer interface { HandleMsgVolumeReport(context.Context, *MsgVolumeReport) (*MsgVolumeReportResponse, error) HandleMsgWithdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error) HandleMsgFoundationDeposit(context.Context, *MsgFoundationDeposit) (*MsgFoundationDepositResponse, error) HandleMsgSlashingResourceNode(context.Context, *MsgSlashingResourceNode) (*MsgSlashingResourceNodeResponse, error) // UpdateParams defined a governance operation for updating the x/pot module parameters. // The authority is hard-coded to the Cosmos SDK x/gov module account UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSlashingResourceNode ¶ added in v0.6.2
type MsgSlashingResourceNode struct { Reporters []string `protobuf:"bytes,1,rep,name=reporters,proto3" json:"reporters" yaml:"reporters"` ReporterOwner []string `protobuf:"bytes,2,rep,name=reporter_owner,json=reporterOwner,proto3" json:"reporter_owner" yaml:"reporter_owner"` NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` WalletAddress string `protobuf:"bytes,4,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"` Slashing github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=slashing,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"slashing" yaml:"slashing"` Suspend bool `protobuf:"varint,6,opt,name=suspend,proto3" json:"suspend" yaml:"suspend"` }
MsgRemoveMetaNode - encapsulates an MsgRemoveMetaNode transaction as an SDK message
func NewMsgSlashingResourceNode ¶ added in v0.6.2
func NewMsgSlashingResourceNode(reporters []stratos.SdsAddress, reporterOwner []sdk.AccAddress, networkAddress stratos.SdsAddress, walletAddress sdk.AccAddress, slashing sdkmath.Int, suspend bool) *MsgSlashingResourceNode
func (*MsgSlashingResourceNode) Descriptor ¶ added in v0.8.0
func (*MsgSlashingResourceNode) Descriptor() ([]byte, []int)
func (*MsgSlashingResourceNode) Equal ¶ added in v0.12.0
func (this *MsgSlashingResourceNode) Equal(that interface{}) bool
func (*MsgSlashingResourceNode) GetNetworkAddress ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) GetNetworkAddress() string
func (*MsgSlashingResourceNode) GetReporterOwner ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) GetReporterOwner() []string
func (*MsgSlashingResourceNode) GetReporters ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) GetReporters() []string
func (MsgSlashingResourceNode) GetSignBytes ¶ added in v0.6.2
func (msg MsgSlashingResourceNode) GetSignBytes() []byte
func (MsgSlashingResourceNode) GetSigners ¶ added in v0.6.2
func (msg MsgSlashingResourceNode) GetSigners() []sdk.AccAddress
func (*MsgSlashingResourceNode) GetSuspend ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) GetSuspend() bool
func (*MsgSlashingResourceNode) GetWalletAddress ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) GetWalletAddress() string
func (*MsgSlashingResourceNode) GetWeb3Msg ¶ added in v0.12.0
func (m *MsgSlashingResourceNode) GetWeb3Msg() (*stratos.Web3Msg, error)
func (*MsgSlashingResourceNode) Marshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) Marshal() (dAtA []byte, err error)
func (*MsgSlashingResourceNode) MarshalTo ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) MarshalTo(dAtA []byte) (int, error)
func (*MsgSlashingResourceNode) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSlashingResourceNode) ProtoMessage ¶ added in v0.8.0
func (*MsgSlashingResourceNode) ProtoMessage()
func (*MsgSlashingResourceNode) Reset ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) Reset()
func (MsgSlashingResourceNode) Route ¶ added in v0.6.2
func (msg MsgSlashingResourceNode) Route() string
func (*MsgSlashingResourceNode) Size ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) Size() (n int)
func (*MsgSlashingResourceNode) String ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) String() string
func (MsgSlashingResourceNode) Type ¶ added in v0.6.2
func (msg MsgSlashingResourceNode) Type() string
func (*MsgSlashingResourceNode) Unmarshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) Unmarshal(dAtA []byte) error
func (MsgSlashingResourceNode) ValidateBasic ¶ added in v0.6.2
func (msg MsgSlashingResourceNode) ValidateBasic() error
func (*MsgSlashingResourceNode) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) XXX_DiscardUnknown()
func (*MsgSlashingResourceNode) XXX_Marshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSlashingResourceNode) XXX_Merge ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) XXX_Merge(src proto.Message)
func (*MsgSlashingResourceNode) XXX_Size ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) XXX_Size() int
func (*MsgSlashingResourceNode) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNode) XXX_Unmarshal(b []byte) error
type MsgSlashingResourceNodeResponse ¶ added in v0.8.0
type MsgSlashingResourceNodeResponse struct { }
MsgSlashingResourceNodeResponse defines the Msg/MsgSlashingResourceNode response type.
func (*MsgSlashingResourceNodeResponse) Descriptor ¶ added in v0.8.0
func (*MsgSlashingResourceNodeResponse) Descriptor() ([]byte, []int)
func (*MsgSlashingResourceNodeResponse) Equal ¶ added in v0.12.0
func (this *MsgSlashingResourceNodeResponse) Equal(that interface{}) bool
func (*MsgSlashingResourceNodeResponse) Marshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) Marshal() (dAtA []byte, err error)
func (*MsgSlashingResourceNodeResponse) MarshalTo ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSlashingResourceNodeResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSlashingResourceNodeResponse) ProtoMessage ¶ added in v0.8.0
func (*MsgSlashingResourceNodeResponse) ProtoMessage()
func (*MsgSlashingResourceNodeResponse) Reset ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) Reset()
func (*MsgSlashingResourceNodeResponse) Size ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) Size() (n int)
func (*MsgSlashingResourceNodeResponse) String ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) String() string
func (*MsgSlashingResourceNodeResponse) Unmarshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) Unmarshal(dAtA []byte) error
func (*MsgSlashingResourceNodeResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) XXX_DiscardUnknown()
func (*MsgSlashingResourceNodeResponse) XXX_Marshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSlashingResourceNodeResponse) XXX_Merge ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) XXX_Merge(src proto.Message)
func (*MsgSlashingResourceNodeResponse) XXX_Size ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) XXX_Size() int
func (*MsgSlashingResourceNodeResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgSlashingResourceNodeResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶ added in v0.12.0
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/pot parameters to update. // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams defines a Msg for updating the x/pot module parameters.
func NewMsgUpdateParams ¶ added in v0.12.0
func NewMsgUpdateParams(params Params, authority string) *MsgUpdateParams
func (*MsgUpdateParams) Descriptor ¶ added in v0.12.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) Equal ¶ added in v0.12.0
func (this *MsgUpdateParams) Equal(that interface{}) bool
func (*MsgUpdateParams) GetAuthority ¶ added in v0.12.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.12.0
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) GetSignBytes ¶ added in v0.12.0
func (msg *MsgUpdateParams) GetSignBytes() []byte
GetSigners implements legacytx.LegacyMsg
func (*MsgUpdateParams) GetSigners ¶ added in v0.12.0
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSignBytes implements sdk.Msg
func (*MsgUpdateParams) Marshal ¶ added in v0.12.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.12.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.12.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.12.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶ added in v0.12.0
func (msg *MsgUpdateParams) Route() string
Route implements legacytx.LegacyMsg
func (*MsgUpdateParams) Size ¶ added in v0.12.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.12.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶ added in v0.12.0
func (msg *MsgUpdateParams) Type() string
Type implements legacytx.LegacyMsg
func (*MsgUpdateParams) Unmarshal ¶ added in v0.12.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v0.12.0
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.12.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.12.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.12.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.12.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.12.0
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.12.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Equal ¶ added in v0.12.0
func (this *MsgUpdateParamsResponse) Equal(that interface{}) bool
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.12.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.12.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgVolumeReport ¶
type MsgVolumeReport struct { WalletVolumes []SingleWalletVolume `protobuf:"bytes,1,rep,name=wallet_volumes,json=walletVolumes,proto3" json:"wallet_volumes" yaml:"wallet_volumes"` Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter" yaml:"reporter"` Epoch github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=epoch,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"epoch" yaml:"epoch"` ReportReference string `protobuf:"bytes,4,opt,name=report_reference,json=reportReference,proto3" json:"report_reference" yaml:"report_reference"` ReporterOwner string `protobuf:"bytes,5,opt,name=reporter_owner,json=reporterOwner,proto3" json:"reporter_owner" yaml:"reporter_owner"` BLSSignature BLSSignatureInfo `protobuf:"bytes,6,opt,name=BLS_signature,json=BLSSignature,proto3" json:"bls_signature" yaml:"bls_signature"` }
MsgVolumeReport encapsulates an VolumeReport transaction as an SDK message.
func NewMsgVolumeReport ¶
func NewMsgVolumeReport( walletVolumes []SingleWalletVolume, reporter stratos.SdsAddress, epoch sdkmath.Int, reportReference string, reporterOwner sdk.AccAddress, ) *MsgVolumeReport
NewMsgVolumeReport creates a new MsgVolumeReport instance
func (*MsgVolumeReport) Descriptor ¶ added in v0.8.0
func (*MsgVolumeReport) Descriptor() ([]byte, []int)
func (*MsgVolumeReport) Equal ¶ added in v0.12.0
func (this *MsgVolumeReport) Equal(that interface{}) bool
func (MsgVolumeReport) GetBLSSignBytes ¶ added in v0.10.0
func (msg MsgVolumeReport) GetBLSSignBytes() []byte
func (*MsgVolumeReport) GetBLSSignature ¶ added in v0.8.0
func (m *MsgVolumeReport) GetBLSSignature() BLSSignatureInfo
func (*MsgVolumeReport) GetReportReference ¶ added in v0.8.0
func (m *MsgVolumeReport) GetReportReference() string
func (*MsgVolumeReport) GetReporter ¶ added in v0.8.0
func (m *MsgVolumeReport) GetReporter() string
func (*MsgVolumeReport) GetReporterOwner ¶ added in v0.8.0
func (m *MsgVolumeReport) GetReporterOwner() string
func (MsgVolumeReport) GetSignBytes ¶
func (msg MsgVolumeReport) GetSignBytes() []byte
GetSignBytes gets the bytes for the message signer to sign on
func (MsgVolumeReport) GetSigners ¶
func (msg MsgVolumeReport) GetSigners() []sdk.AccAddress
GetSigners Implement
func (*MsgVolumeReport) GetWalletVolumes ¶ added in v0.8.0
func (m *MsgVolumeReport) GetWalletVolumes() []SingleWalletVolume
func (*MsgVolumeReport) GetWeb3Msg ¶ added in v0.12.0
func (m *MsgVolumeReport) GetWeb3Msg() (*stratos.Web3Msg, error)
func (*MsgVolumeReport) Marshal ¶ added in v0.8.0
func (m *MsgVolumeReport) Marshal() (dAtA []byte, err error)
func (*MsgVolumeReport) MarshalTo ¶ added in v0.8.0
func (m *MsgVolumeReport) MarshalTo(dAtA []byte) (int, error)
func (*MsgVolumeReport) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgVolumeReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVolumeReport) ProtoMessage ¶ added in v0.8.0
func (*MsgVolumeReport) ProtoMessage()
func (*MsgVolumeReport) Reset ¶ added in v0.8.0
func (m *MsgVolumeReport) Reset()
func (*MsgVolumeReport) Size ¶ added in v0.8.0
func (m *MsgVolumeReport) Size() (n int)
func (*MsgVolumeReport) String ¶ added in v0.8.0
func (m *MsgVolumeReport) String() string
func (*MsgVolumeReport) Unmarshal ¶ added in v0.8.0
func (m *MsgVolumeReport) Unmarshal(dAtA []byte) error
func (MsgVolumeReport) ValidateBasic ¶
func (msg MsgVolumeReport) ValidateBasic() error
ValidateBasic validity check for the AnteHandler
func (*MsgVolumeReport) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgVolumeReport) XXX_DiscardUnknown()
func (*MsgVolumeReport) XXX_Marshal ¶ added in v0.8.0
func (m *MsgVolumeReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVolumeReport) XXX_Merge ¶ added in v0.8.0
func (m *MsgVolumeReport) XXX_Merge(src proto.Message)
func (*MsgVolumeReport) XXX_Size ¶ added in v0.8.0
func (m *MsgVolumeReport) XXX_Size() int
func (*MsgVolumeReport) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgVolumeReport) XXX_Unmarshal(b []byte) error
type MsgVolumeReportResponse ¶ added in v0.8.0
type MsgVolumeReportResponse struct { }
MsgVolumeReportResponse defines the MsgVolumeReport response type
func (*MsgVolumeReportResponse) Descriptor ¶ added in v0.8.0
func (*MsgVolumeReportResponse) Descriptor() ([]byte, []int)
func (*MsgVolumeReportResponse) Equal ¶ added in v0.12.0
func (this *MsgVolumeReportResponse) Equal(that interface{}) bool
func (*MsgVolumeReportResponse) Marshal ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) Marshal() (dAtA []byte, err error)
func (*MsgVolumeReportResponse) MarshalTo ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgVolumeReportResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVolumeReportResponse) ProtoMessage ¶ added in v0.8.0
func (*MsgVolumeReportResponse) ProtoMessage()
func (*MsgVolumeReportResponse) Reset ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) Reset()
func (*MsgVolumeReportResponse) Size ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) Size() (n int)
func (*MsgVolumeReportResponse) String ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) String() string
func (*MsgVolumeReportResponse) Unmarshal ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) Unmarshal(dAtA []byte) error
func (*MsgVolumeReportResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) XXX_DiscardUnknown()
func (*MsgVolumeReportResponse) XXX_Marshal ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVolumeReportResponse) XXX_Merge ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) XXX_Merge(src proto.Message)
func (*MsgVolumeReportResponse) XXX_Size ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) XXX_Size() int
func (*MsgVolumeReportResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgVolumeReportResponse) XXX_Unmarshal(b []byte) error
type MsgWithdraw ¶
type MsgWithdraw struct { Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` WalletAddress string `protobuf:"bytes,2,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"` TargetAddress string `protobuf:"bytes,3,opt,name=target_address,json=targetAddress,proto3" json:"target_address" yaml:"target_address"` }
MsgWithdraw encapsulates an withdraw transaction as an SDK message.
func NewMsgWithdraw ¶
func NewMsgWithdraw(amount sdk.Coins, walletAddress sdk.AccAddress, targetAddress sdk.AccAddress) *MsgWithdraw
func (*MsgWithdraw) Descriptor ¶ added in v0.8.0
func (*MsgWithdraw) Descriptor() ([]byte, []int)
func (*MsgWithdraw) Equal ¶ added in v0.12.0
func (this *MsgWithdraw) Equal(that interface{}) bool
func (*MsgWithdraw) GetAmount ¶ added in v0.8.0
func (m *MsgWithdraw) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (MsgWithdraw) GetSignBytes ¶
func (msg MsgWithdraw) GetSignBytes() []byte
GetSignBytes gets the bytes for the message signer to sign on
func (MsgWithdraw) GetSigners ¶
func (msg MsgWithdraw) GetSigners() []sdk.AccAddress
GetSigners Implement
func (*MsgWithdraw) GetTargetAddress ¶ added in v0.8.0
func (m *MsgWithdraw) GetTargetAddress() string
func (*MsgWithdraw) GetWalletAddress ¶ added in v0.8.0
func (m *MsgWithdraw) GetWalletAddress() string
func (*MsgWithdraw) GetWeb3Msg ¶ added in v0.12.0
func (m *MsgWithdraw) GetWeb3Msg() (*stratos.Web3Msg, error)
func (*MsgWithdraw) Marshal ¶ added in v0.8.0
func (m *MsgWithdraw) Marshal() (dAtA []byte, err error)
func (*MsgWithdraw) MarshalTo ¶ added in v0.8.0
func (m *MsgWithdraw) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdraw) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdraw) ProtoMessage ¶ added in v0.8.0
func (*MsgWithdraw) ProtoMessage()
func (*MsgWithdraw) Reset ¶ added in v0.8.0
func (m *MsgWithdraw) Reset()
func (*MsgWithdraw) Size ¶ added in v0.8.0
func (m *MsgWithdraw) Size() (n int)
func (*MsgWithdraw) String ¶ added in v0.8.0
func (m *MsgWithdraw) String() string
func (*MsgWithdraw) Unmarshal ¶ added in v0.8.0
func (m *MsgWithdraw) Unmarshal(dAtA []byte) error
func (MsgWithdraw) ValidateBasic ¶
func (msg MsgWithdraw) ValidateBasic() error
ValidateBasic validity check for the AnteHandler
func (*MsgWithdraw) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgWithdraw) XXX_DiscardUnknown()
func (*MsgWithdraw) XXX_Marshal ¶ added in v0.8.0
func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdraw) XXX_Merge ¶ added in v0.8.0
func (m *MsgWithdraw) XXX_Merge(src proto.Message)
func (*MsgWithdraw) XXX_Size ¶ added in v0.8.0
func (m *MsgWithdraw) XXX_Size() int
func (*MsgWithdraw) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error
type MsgWithdrawResponse ¶ added in v0.8.0
type MsgWithdrawResponse struct { }
MsgWithdrawResponse defines the Msg/MsgWithdraw response type.
func (*MsgWithdrawResponse) Descriptor ¶ added in v0.8.0
func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawResponse) Equal ¶ added in v0.12.0
func (this *MsgWithdrawResponse) Equal(that interface{}) bool
func (*MsgWithdrawResponse) Marshal ¶ added in v0.8.0
func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawResponse) MarshalTo ¶ added in v0.8.0
func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawResponse) ProtoMessage ¶ added in v0.8.0
func (*MsgWithdrawResponse) ProtoMessage()
func (*MsgWithdrawResponse) Reset ¶ added in v0.8.0
func (m *MsgWithdrawResponse) Reset()
func (*MsgWithdrawResponse) Size ¶ added in v0.8.0
func (m *MsgWithdrawResponse) Size() (n int)
func (*MsgWithdrawResponse) String ¶ added in v0.8.0
func (m *MsgWithdrawResponse) String() string
func (*MsgWithdrawResponse) Unmarshal ¶ added in v0.8.0
func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgWithdrawResponse) XXX_DiscardUnknown()
func (*MsgWithdrawResponse) XXX_Marshal ¶ added in v0.8.0
func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawResponse) XXX_Merge ¶ added in v0.8.0
func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawResponse) XXX_Size ¶ added in v0.8.0
func (m *MsgWithdrawResponse) XXX_Size() int
func (*MsgWithdrawResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { BondDenom string `protobuf:"bytes,1,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom" yaml:"bond_denom"` RewardDenom string `protobuf:"bytes,2,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom" yaml:"reward_denom"` MatureEpoch int64 `protobuf:"varint,3,opt,name=mature_epoch,json=matureEpoch,proto3" json:"mature_epoch" yaml:"mature_epoch"` MiningRewardParams []MiningRewardParam `` /* 135-byte string literal not displayed */ CommunityTax github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */ InitialTotalSupply types.Coin `` /* 135-byte string literal not displayed */ }
Params defines the PoT module parameters
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns the default distribution parameters
func NewParams ¶
func NewParams(bondDenom string, rewardDenom string, matureEpoch int64, miningRewardParams []MiningRewardParam, communityTax sdkmath.LegacyDec, initialTotalSupply sdk.Coin) Params
NewParams creates a new Params object
func (*Params) Descriptor ¶ added in v0.8.0
func (*Params) GetBondDenom ¶ added in v0.8.0
func (*Params) GetInitialTotalSupply ¶ added in v0.10.0
func (*Params) GetMatureEpoch ¶ added in v0.8.0
func (*Params) GetMiningRewardParams ¶ added in v0.8.0
func (m *Params) GetMiningRewardParams() []MiningRewardParam
func (*Params) GetRewardDenom ¶ added in v0.8.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.8.0
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs - Implements params.ParamSet Deprecated.
func (*Params) ProtoMessage ¶ added in v0.8.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.8.0
func (*Params) XXX_Unmarshal ¶ added in v0.8.0
type ParamsSubspace ¶ added in v0.12.0
type ParamsSubspace interface {
GetParamSet(ctx sdk.Context, ps paramstypes.ParamSet)
}
ParamsSubspace defines an interface that implements the legacy x/params ParamsSubspace type.
NOTE: This is used solely for migration of x/params managed parameters.
type QueryCirculationSupplyRequest ¶ added in v0.10.0
type QueryCirculationSupplyRequest struct { }
func (*QueryCirculationSupplyRequest) Descriptor ¶ added in v0.10.0
func (*QueryCirculationSupplyRequest) Descriptor() ([]byte, []int)
func (*QueryCirculationSupplyRequest) Marshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) Marshal() (dAtA []byte, err error)
func (*QueryCirculationSupplyRequest) MarshalTo ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCirculationSupplyRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCirculationSupplyRequest) ProtoMessage ¶ added in v0.10.0
func (*QueryCirculationSupplyRequest) ProtoMessage()
func (*QueryCirculationSupplyRequest) Reset ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) Reset()
func (*QueryCirculationSupplyRequest) Size ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) Size() (n int)
func (*QueryCirculationSupplyRequest) String ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) String() string
func (*QueryCirculationSupplyRequest) Unmarshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) Unmarshal(dAtA []byte) error
func (*QueryCirculationSupplyRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) XXX_DiscardUnknown()
func (*QueryCirculationSupplyRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCirculationSupplyRequest) XXX_Merge ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) XXX_Merge(src proto.Message)
func (*QueryCirculationSupplyRequest) XXX_Size ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) XXX_Size() int
func (*QueryCirculationSupplyRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyRequest) XXX_Unmarshal(b []byte) error
type QueryCirculationSupplyResponse ¶ added in v0.10.0
type QueryCirculationSupplyResponse struct {
CirculationSupply github_com_cosmos_cosmos_sdk_types.Coins `` /* 156-byte string literal not displayed */
}
func (*QueryCirculationSupplyResponse) Descriptor ¶ added in v0.10.0
func (*QueryCirculationSupplyResponse) Descriptor() ([]byte, []int)
func (*QueryCirculationSupplyResponse) GetCirculationSupply ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) GetCirculationSupply() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryCirculationSupplyResponse) Marshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) Marshal() (dAtA []byte, err error)
func (*QueryCirculationSupplyResponse) MarshalTo ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCirculationSupplyResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCirculationSupplyResponse) ProtoMessage ¶ added in v0.10.0
func (*QueryCirculationSupplyResponse) ProtoMessage()
func (*QueryCirculationSupplyResponse) Reset ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) Reset()
func (*QueryCirculationSupplyResponse) Size ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) Size() (n int)
func (*QueryCirculationSupplyResponse) String ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) String() string
func (*QueryCirculationSupplyResponse) Unmarshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) Unmarshal(dAtA []byte) error
func (*QueryCirculationSupplyResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) XXX_DiscardUnknown()
func (*QueryCirculationSupplyResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCirculationSupplyResponse) XXX_Merge ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) XXX_Merge(src proto.Message)
func (*QueryCirculationSupplyResponse) XXX_Size ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) XXX_Size() int
func (*QueryCirculationSupplyResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryCirculationSupplyResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶ added in v0.8.0
type QueryClient interface { // VolumeReport queries VolumeReport info for given epoch. VolumeReport(ctx context.Context, in *QueryVolumeReportRequest, opts ...grpc.CallOption) (*QueryVolumeReportResponse, error) // RewardsByEpoch queries Pot rewards by a given epoch. RewardsByEpoch(ctx context.Context, in *QueryRewardsByEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByEpochResponse, error) // RewardsByOwner queries Pot rewards by a given beneficiary address. RewardsByWallet(ctx context.Context, in *QueryRewardsByWalletRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletResponse, error) // RewardsByWalletAndEpoch queries Pot rewards by a given beneficiary address at the specific epoch. RewardsByWalletAndEpoch(ctx context.Context, in *QueryRewardsByWalletAndEpochRequest, opts ...grpc.CallOption) (*QueryRewardsByWalletAndEpochResponse, error) // SlashingByOwner queries Pot slashing by owner wallet address. SlashingByOwner(ctx context.Context, in *QuerySlashingByOwnerRequest, opts ...grpc.CallOption) (*QuerySlashingByOwnerResponse, error) // Params queries POT module Params info. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) TotalMinedToken(ctx context.Context, in *QueryTotalMinedTokenRequest, opts ...grpc.CallOption) (*QueryTotalMinedTokenResponse, error) CirculationSupply(ctx context.Context, in *QueryCirculationSupplyRequest, opts ...grpc.CallOption) (*QueryCirculationSupplyResponse, error) TotalRewardByEpoch(ctx context.Context, in *QueryTotalRewardByEpochRequest, opts ...grpc.CallOption) (*QueryTotalRewardByEpochResponse, error) Metrics(ctx context.Context, in *QueryMetricsRequest, opts ...grpc.CallOption) (*QueryMetricsResponse, 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 ¶ added in v0.8.0
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryMetricsRequest ¶ added in v0.11.3
type QueryMetricsRequest struct { }
func (*QueryMetricsRequest) Descriptor ¶ added in v0.11.3
func (*QueryMetricsRequest) Descriptor() ([]byte, []int)
func (*QueryMetricsRequest) Marshal ¶ added in v0.11.3
func (m *QueryMetricsRequest) Marshal() (dAtA []byte, err error)
func (*QueryMetricsRequest) MarshalTo ¶ added in v0.11.3
func (m *QueryMetricsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMetricsRequest) MarshalToSizedBuffer ¶ added in v0.11.3
func (m *QueryMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMetricsRequest) ProtoMessage ¶ added in v0.11.3
func (*QueryMetricsRequest) ProtoMessage()
func (*QueryMetricsRequest) Reset ¶ added in v0.11.3
func (m *QueryMetricsRequest) Reset()
func (*QueryMetricsRequest) Size ¶ added in v0.11.3
func (m *QueryMetricsRequest) Size() (n int)
func (*QueryMetricsRequest) String ¶ added in v0.11.3
func (m *QueryMetricsRequest) String() string
func (*QueryMetricsRequest) Unmarshal ¶ added in v0.11.3
func (m *QueryMetricsRequest) Unmarshal(dAtA []byte) error
func (*QueryMetricsRequest) XXX_DiscardUnknown ¶ added in v0.11.3
func (m *QueryMetricsRequest) XXX_DiscardUnknown()
func (*QueryMetricsRequest) XXX_Marshal ¶ added in v0.11.3
func (m *QueryMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMetricsRequest) XXX_Merge ¶ added in v0.11.3
func (m *QueryMetricsRequest) XXX_Merge(src proto.Message)
func (*QueryMetricsRequest) XXX_Size ¶ added in v0.11.3
func (m *QueryMetricsRequest) XXX_Size() int
func (*QueryMetricsRequest) XXX_Unmarshal ¶ added in v0.11.3
func (m *QueryMetricsRequest) XXX_Unmarshal(b []byte) error
type QueryMetricsResponse ¶ added in v0.11.3
type QueryMetricsResponse struct {
Metrics Metrics `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics"`
}
func (*QueryMetricsResponse) Descriptor ¶ added in v0.11.3
func (*QueryMetricsResponse) Descriptor() ([]byte, []int)
func (*QueryMetricsResponse) GetMetrics ¶ added in v0.11.3
func (m *QueryMetricsResponse) GetMetrics() Metrics
func (*QueryMetricsResponse) Marshal ¶ added in v0.11.3
func (m *QueryMetricsResponse) Marshal() (dAtA []byte, err error)
func (*QueryMetricsResponse) MarshalTo ¶ added in v0.11.3
func (m *QueryMetricsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMetricsResponse) MarshalToSizedBuffer ¶ added in v0.11.3
func (m *QueryMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMetricsResponse) ProtoMessage ¶ added in v0.11.3
func (*QueryMetricsResponse) ProtoMessage()
func (*QueryMetricsResponse) Reset ¶ added in v0.11.3
func (m *QueryMetricsResponse) Reset()
func (*QueryMetricsResponse) Size ¶ added in v0.11.3
func (m *QueryMetricsResponse) Size() (n int)
func (*QueryMetricsResponse) String ¶ added in v0.11.3
func (m *QueryMetricsResponse) String() string
func (*QueryMetricsResponse) Unmarshal ¶ added in v0.11.3
func (m *QueryMetricsResponse) Unmarshal(dAtA []byte) error
func (*QueryMetricsResponse) XXX_DiscardUnknown ¶ added in v0.11.3
func (m *QueryMetricsResponse) XXX_DiscardUnknown()
func (*QueryMetricsResponse) XXX_Marshal ¶ added in v0.11.3
func (m *QueryMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMetricsResponse) XXX_Merge ¶ added in v0.11.3
func (m *QueryMetricsResponse) XXX_Merge(src proto.Message)
func (*QueryMetricsResponse) XXX_Size ¶ added in v0.11.3
func (m *QueryMetricsResponse) XXX_Size() int
func (*QueryMetricsResponse) XXX_Unmarshal ¶ added in v0.11.3
func (m *QueryMetricsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.8.0
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.8.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.8.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.8.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.8.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.8.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.8.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.8.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.8.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.8.0
type QueryParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v0.8.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.8.0
func (m *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) Marshal ¶ added in v0.8.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.8.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.8.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.8.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.8.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.8.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.8.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsByEpochRequest ¶ added in v0.10.0
type QueryRewardsByEpochRequest struct { Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRewardsByEpochRequest is request type for the Query/RewardsByEpoch by a given epoch RPC method
func (*QueryRewardsByEpochRequest) Descriptor ¶ added in v0.10.0
func (*QueryRewardsByEpochRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsByEpochRequest) GetEpoch ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) GetEpoch() int64
func (*QueryRewardsByEpochRequest) GetPagination ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) GetPagination() *query.PageRequest
func (*QueryRewardsByEpochRequest) Marshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByEpochRequest) MarshalTo ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByEpochRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByEpochRequest) ProtoMessage ¶ added in v0.10.0
func (*QueryRewardsByEpochRequest) ProtoMessage()
func (*QueryRewardsByEpochRequest) Reset ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) Reset()
func (*QueryRewardsByEpochRequest) Size ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) Size() (n int)
func (*QueryRewardsByEpochRequest) String ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) String() string
func (*QueryRewardsByEpochRequest) Unmarshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsByEpochRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) XXX_DiscardUnknown()
func (*QueryRewardsByEpochRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByEpochRequest) XXX_Merge ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsByEpochRequest) XXX_Size ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) XXX_Size() int
func (*QueryRewardsByEpochRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsByEpochResponse ¶ added in v0.10.0
type QueryRewardsByEpochResponse struct { Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRewardsByEpochResponse is response type for the Query/RewardsByEpoch RPC method
func (*QueryRewardsByEpochResponse) Descriptor ¶ added in v0.10.0
func (*QueryRewardsByEpochResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsByEpochResponse) GetPagination ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) GetPagination() *query.PageResponse
func (*QueryRewardsByEpochResponse) GetRewards ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) GetRewards() []*Reward
func (*QueryRewardsByEpochResponse) Marshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByEpochResponse) MarshalTo ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByEpochResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByEpochResponse) ProtoMessage ¶ added in v0.10.0
func (*QueryRewardsByEpochResponse) ProtoMessage()
func (*QueryRewardsByEpochResponse) Reset ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) Reset()
func (*QueryRewardsByEpochResponse) Size ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) Size() (n int)
func (*QueryRewardsByEpochResponse) String ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) String() string
func (*QueryRewardsByEpochResponse) Unmarshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsByEpochResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) XXX_DiscardUnknown()
func (*QueryRewardsByEpochResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByEpochResponse) XXX_Merge ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsByEpochResponse) XXX_Size ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) XXX_Size() int
func (*QueryRewardsByEpochResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryRewardsByEpochResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsByWalletAndEpochRequest ¶ added in v0.12.0
type QueryRewardsByWalletAndEpochRequest struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` Epoch int64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryRewardsByWalletAndEpochRequest) Descriptor ¶ added in v0.12.0
func (*QueryRewardsByWalletAndEpochRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsByWalletAndEpochRequest) GetEpoch ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) GetEpoch() int64
func (*QueryRewardsByWalletAndEpochRequest) GetPagination ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) GetPagination() *query.PageRequest
func (*QueryRewardsByWalletAndEpochRequest) GetWalletAddress ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) GetWalletAddress() string
func (*QueryRewardsByWalletAndEpochRequest) Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByWalletAndEpochRequest) MarshalTo ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByWalletAndEpochRequest) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByWalletAndEpochRequest) ProtoMessage ¶ added in v0.12.0
func (*QueryRewardsByWalletAndEpochRequest) ProtoMessage()
func (*QueryRewardsByWalletAndEpochRequest) Reset ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) Reset()
func (*QueryRewardsByWalletAndEpochRequest) Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) Size() (n int)
func (*QueryRewardsByWalletAndEpochRequest) String ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) String() string
func (*QueryRewardsByWalletAndEpochRequest) Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsByWalletAndEpochRequest) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) XXX_DiscardUnknown()
func (*QueryRewardsByWalletAndEpochRequest) XXX_Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByWalletAndEpochRequest) XXX_Merge ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsByWalletAndEpochRequest) XXX_Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) XXX_Size() int
func (*QueryRewardsByWalletAndEpochRequest) XXX_Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsByWalletAndEpochResponse ¶ added in v0.12.0
type QueryRewardsByWalletAndEpochResponse struct { Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryRewardsByWalletAndEpochResponse) Descriptor ¶ added in v0.12.0
func (*QueryRewardsByWalletAndEpochResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsByWalletAndEpochResponse) GetPagination ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) GetPagination() *query.PageResponse
func (*QueryRewardsByWalletAndEpochResponse) GetRewards ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) GetRewards() []*Reward
func (*QueryRewardsByWalletAndEpochResponse) Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByWalletAndEpochResponse) MarshalTo ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByWalletAndEpochResponse) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByWalletAndEpochResponse) ProtoMessage ¶ added in v0.12.0
func (*QueryRewardsByWalletAndEpochResponse) ProtoMessage()
func (*QueryRewardsByWalletAndEpochResponse) Reset ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) Reset()
func (*QueryRewardsByWalletAndEpochResponse) Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) Size() (n int)
func (*QueryRewardsByWalletAndEpochResponse) String ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) String() string
func (*QueryRewardsByWalletAndEpochResponse) Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsByWalletAndEpochResponse) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) XXX_DiscardUnknown()
func (*QueryRewardsByWalletAndEpochResponse) XXX_Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByWalletAndEpochResponse) XXX_Merge ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsByWalletAndEpochResponse) XXX_Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) XXX_Size() int
func (*QueryRewardsByWalletAndEpochResponse) XXX_Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletAndEpochResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsByWalletRequest ¶ added in v0.12.0
type QueryRewardsByWalletRequest struct {
WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
}
QueryRewardsByOwnerRequest is request type for the Query/RewardsByOwner by a given owner RPC method
func (*QueryRewardsByWalletRequest) Descriptor ¶ added in v0.12.0
func (*QueryRewardsByWalletRequest) Descriptor() ([]byte, []int)
func (*QueryRewardsByWalletRequest) GetWalletAddress ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) GetWalletAddress() string
func (*QueryRewardsByWalletRequest) Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByWalletRequest) MarshalTo ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByWalletRequest) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByWalletRequest) ProtoMessage ¶ added in v0.12.0
func (*QueryRewardsByWalletRequest) ProtoMessage()
func (*QueryRewardsByWalletRequest) Reset ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) Reset()
func (*QueryRewardsByWalletRequest) Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) Size() (n int)
func (*QueryRewardsByWalletRequest) String ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) String() string
func (*QueryRewardsByWalletRequest) Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardsByWalletRequest) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) XXX_DiscardUnknown()
func (*QueryRewardsByWalletRequest) XXX_Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByWalletRequest) XXX_Merge ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) XXX_Merge(src proto.Message)
func (*QueryRewardsByWalletRequest) XXX_Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) XXX_Size() int
func (*QueryRewardsByWalletRequest) XXX_Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletRequest) XXX_Unmarshal(b []byte) error
type QueryRewardsByWalletResponse ¶ added in v0.12.0
type QueryRewardsByWalletResponse struct {
Rewards *RewardByWallet `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"`
}
QueryRewardsByOwnerResponse is response type for the Query/RewardsByOwner RPC method
func (*QueryRewardsByWalletResponse) Descriptor ¶ added in v0.12.0
func (*QueryRewardsByWalletResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsByWalletResponse) GetRewards ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) GetRewards() *RewardByWallet
func (*QueryRewardsByWalletResponse) Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsByWalletResponse) MarshalTo ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsByWalletResponse) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsByWalletResponse) ProtoMessage ¶ added in v0.12.0
func (*QueryRewardsByWalletResponse) ProtoMessage()
func (*QueryRewardsByWalletResponse) Reset ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) Reset()
func (*QueryRewardsByWalletResponse) Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) Size() (n int)
func (*QueryRewardsByWalletResponse) String ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) String() string
func (*QueryRewardsByWalletResponse) Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsByWalletResponse) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) XXX_DiscardUnknown()
func (*QueryRewardsByWalletResponse) XXX_Marshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsByWalletResponse) XXX_Merge ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsByWalletResponse) XXX_Size ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) XXX_Size() int
func (*QueryRewardsByWalletResponse) XXX_Unmarshal ¶ added in v0.12.0
func (m *QueryRewardsByWalletResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.8.0
type QueryServer interface { // VolumeReport queries VolumeReport info for given epoch. VolumeReport(context.Context, *QueryVolumeReportRequest) (*QueryVolumeReportResponse, error) // RewardsByEpoch queries Pot rewards by a given epoch. RewardsByEpoch(context.Context, *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error) // RewardsByOwner queries Pot rewards by a given beneficiary address. RewardsByWallet(context.Context, *QueryRewardsByWalletRequest) (*QueryRewardsByWalletResponse, error) // RewardsByWalletAndEpoch queries Pot rewards by a given beneficiary address at the specific epoch. RewardsByWalletAndEpoch(context.Context, *QueryRewardsByWalletAndEpochRequest) (*QueryRewardsByWalletAndEpochResponse, error) // SlashingByOwner queries Pot slashing by owner wallet address. SlashingByOwner(context.Context, *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error) // Params queries POT module Params info. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) TotalMinedToken(context.Context, *QueryTotalMinedTokenRequest) (*QueryTotalMinedTokenResponse, error) CirculationSupply(context.Context, *QueryCirculationSupplyRequest) (*QueryCirculationSupplyResponse, error) TotalRewardByEpoch(context.Context, *QueryTotalRewardByEpochRequest) (*QueryTotalRewardByEpochResponse, error) Metrics(context.Context, *QueryMetricsRequest) (*QueryMetricsResponse, error) }
QueryServer is the server API for Query service.
type QuerySlashingByOwnerRequest ¶ added in v0.10.0
type QuerySlashingByOwnerRequest struct {
WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
}
QuerySlashingByOwnerRequest is request type for the Query/Slashing by a given owner RPC method
func (*QuerySlashingByOwnerRequest) Descriptor ¶ added in v0.10.0
func (*QuerySlashingByOwnerRequest) Descriptor() ([]byte, []int)
func (*QuerySlashingByOwnerRequest) GetWalletAddress ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) GetWalletAddress() string
func (*QuerySlashingByOwnerRequest) Marshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) Marshal() (dAtA []byte, err error)
func (*QuerySlashingByOwnerRequest) MarshalTo ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySlashingByOwnerRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySlashingByOwnerRequest) ProtoMessage ¶ added in v0.10.0
func (*QuerySlashingByOwnerRequest) ProtoMessage()
func (*QuerySlashingByOwnerRequest) Reset ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) Reset()
func (*QuerySlashingByOwnerRequest) Size ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) Size() (n int)
func (*QuerySlashingByOwnerRequest) String ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) String() string
func (*QuerySlashingByOwnerRequest) Unmarshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) Unmarshal(dAtA []byte) error
func (*QuerySlashingByOwnerRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) XXX_DiscardUnknown()
func (*QuerySlashingByOwnerRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySlashingByOwnerRequest) XXX_Merge ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) XXX_Merge(src proto.Message)
func (*QuerySlashingByOwnerRequest) XXX_Size ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) XXX_Size() int
func (*QuerySlashingByOwnerRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerRequest) XXX_Unmarshal(b []byte) error
type QuerySlashingByOwnerResponse ¶ added in v0.10.0
type QuerySlashingByOwnerResponse struct {
Slashing string `protobuf:"bytes,1,opt,name=slashing,proto3" json:"slashing,omitempty"`
}
QuerySlashingByOwnerResponse is response type for the Query/Slashing RPC method
func (*QuerySlashingByOwnerResponse) Descriptor ¶ added in v0.10.0
func (*QuerySlashingByOwnerResponse) Descriptor() ([]byte, []int)
func (*QuerySlashingByOwnerResponse) GetSlashing ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) GetSlashing() string
func (*QuerySlashingByOwnerResponse) Marshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) Marshal() (dAtA []byte, err error)
func (*QuerySlashingByOwnerResponse) MarshalTo ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySlashingByOwnerResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySlashingByOwnerResponse) ProtoMessage ¶ added in v0.10.0
func (*QuerySlashingByOwnerResponse) ProtoMessage()
func (*QuerySlashingByOwnerResponse) Reset ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) Reset()
func (*QuerySlashingByOwnerResponse) Size ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) Size() (n int)
func (*QuerySlashingByOwnerResponse) String ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) String() string
func (*QuerySlashingByOwnerResponse) Unmarshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) Unmarshal(dAtA []byte) error
func (*QuerySlashingByOwnerResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) XXX_DiscardUnknown()
func (*QuerySlashingByOwnerResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySlashingByOwnerResponse) XXX_Merge ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) XXX_Merge(src proto.Message)
func (*QuerySlashingByOwnerResponse) XXX_Size ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) XXX_Size() int
func (*QuerySlashingByOwnerResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QuerySlashingByOwnerResponse) XXX_Unmarshal(b []byte) error
type QueryTotalMinedTokenRequest ¶ added in v0.10.0
type QueryTotalMinedTokenRequest struct { }
func (*QueryTotalMinedTokenRequest) Descriptor ¶ added in v0.10.0
func (*QueryTotalMinedTokenRequest) Descriptor() ([]byte, []int)
func (*QueryTotalMinedTokenRequest) Marshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalMinedTokenRequest) MarshalTo ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalMinedTokenRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalMinedTokenRequest) ProtoMessage ¶ added in v0.10.0
func (*QueryTotalMinedTokenRequest) ProtoMessage()
func (*QueryTotalMinedTokenRequest) Reset ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) Reset()
func (*QueryTotalMinedTokenRequest) Size ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) Size() (n int)
func (*QueryTotalMinedTokenRequest) String ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) String() string
func (*QueryTotalMinedTokenRequest) Unmarshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalMinedTokenRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) XXX_DiscardUnknown()
func (*QueryTotalMinedTokenRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalMinedTokenRequest) XXX_Merge ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) XXX_Merge(src proto.Message)
func (*QueryTotalMinedTokenRequest) XXX_Size ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) XXX_Size() int
func (*QueryTotalMinedTokenRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenRequest) XXX_Unmarshal(b []byte) error
type QueryTotalMinedTokenResponse ¶ added in v0.10.0
type QueryTotalMinedTokenResponse struct {
TotalMinedToken types.Coin `protobuf:"bytes,1,opt,name=total_mined_token,json=totalMinedToken,proto3" json:"total_mined_token" yaml:"total_mined_token"`
}
func (*QueryTotalMinedTokenResponse) Descriptor ¶ added in v0.10.0
func (*QueryTotalMinedTokenResponse) Descriptor() ([]byte, []int)
func (*QueryTotalMinedTokenResponse) GetTotalMinedToken ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) GetTotalMinedToken() types.Coin
func (*QueryTotalMinedTokenResponse) Marshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalMinedTokenResponse) MarshalTo ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalMinedTokenResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalMinedTokenResponse) ProtoMessage ¶ added in v0.10.0
func (*QueryTotalMinedTokenResponse) ProtoMessage()
func (*QueryTotalMinedTokenResponse) Reset ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) Reset()
func (*QueryTotalMinedTokenResponse) Size ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) Size() (n int)
func (*QueryTotalMinedTokenResponse) String ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) String() string
func (*QueryTotalMinedTokenResponse) Unmarshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalMinedTokenResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) XXX_DiscardUnknown()
func (*QueryTotalMinedTokenResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalMinedTokenResponse) XXX_Merge ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) XXX_Merge(src proto.Message)
func (*QueryTotalMinedTokenResponse) XXX_Size ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) XXX_Size() int
func (*QueryTotalMinedTokenResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryTotalMinedTokenResponse) XXX_Unmarshal(b []byte) error
type QueryTotalRewardByEpochRequest ¶ added in v0.11.0
type QueryTotalRewardByEpochRequest struct {
Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
}
func (*QueryTotalRewardByEpochRequest) Descriptor ¶ added in v0.11.0
func (*QueryTotalRewardByEpochRequest) Descriptor() ([]byte, []int)
func (*QueryTotalRewardByEpochRequest) GetEpoch ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) GetEpoch() int64
func (*QueryTotalRewardByEpochRequest) Marshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalRewardByEpochRequest) MarshalTo ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalRewardByEpochRequest) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalRewardByEpochRequest) ProtoMessage ¶ added in v0.11.0
func (*QueryTotalRewardByEpochRequest) ProtoMessage()
func (*QueryTotalRewardByEpochRequest) Reset ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) Reset()
func (*QueryTotalRewardByEpochRequest) Size ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) Size() (n int)
func (*QueryTotalRewardByEpochRequest) String ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) String() string
func (*QueryTotalRewardByEpochRequest) Unmarshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalRewardByEpochRequest) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) XXX_DiscardUnknown()
func (*QueryTotalRewardByEpochRequest) XXX_Marshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalRewardByEpochRequest) XXX_Merge ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) XXX_Merge(src proto.Message)
func (*QueryTotalRewardByEpochRequest) XXX_Size ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) XXX_Size() int
func (*QueryTotalRewardByEpochRequest) XXX_Unmarshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochRequest) XXX_Unmarshal(b []byte) error
type QueryTotalRewardByEpochResponse ¶ added in v0.11.0
type QueryTotalRewardByEpochResponse struct { TotalReward TotalReward `protobuf:"bytes,1,opt,name=total_reward,json=totalReward,proto3" json:"total_reward" yaml:"total_reward"` IsLegacy bool `protobuf:"varint,2,opt,name=is_legacy,json=isLegacy,proto3" json:"is_legacy" yaml:"is_legacy"` }
func (*QueryTotalRewardByEpochResponse) Descriptor ¶ added in v0.11.0
func (*QueryTotalRewardByEpochResponse) Descriptor() ([]byte, []int)
func (*QueryTotalRewardByEpochResponse) GetIsLegacy ¶ added in v0.12.0
func (m *QueryTotalRewardByEpochResponse) GetIsLegacy() bool
func (*QueryTotalRewardByEpochResponse) GetTotalReward ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) GetTotalReward() TotalReward
func (*QueryTotalRewardByEpochResponse) Marshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalRewardByEpochResponse) MarshalTo ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalRewardByEpochResponse) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalRewardByEpochResponse) ProtoMessage ¶ added in v0.11.0
func (*QueryTotalRewardByEpochResponse) ProtoMessage()
func (*QueryTotalRewardByEpochResponse) Reset ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) Reset()
func (*QueryTotalRewardByEpochResponse) Size ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) Size() (n int)
func (*QueryTotalRewardByEpochResponse) String ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) String() string
func (*QueryTotalRewardByEpochResponse) Unmarshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalRewardByEpochResponse) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) XXX_DiscardUnknown()
func (*QueryTotalRewardByEpochResponse) XXX_Marshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalRewardByEpochResponse) XXX_Merge ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) XXX_Merge(src proto.Message)
func (*QueryTotalRewardByEpochResponse) XXX_Size ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) XXX_Size() int
func (*QueryTotalRewardByEpochResponse) XXX_Unmarshal ¶ added in v0.11.0
func (m *QueryTotalRewardByEpochResponse) XXX_Unmarshal(b []byte) error
type QueryVolumeReportRequest ¶ added in v0.8.0
type QueryVolumeReportRequest struct { // epoch defines the epoch number to query for. Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` }
QueryVolumeReportRequest is request type for the Query/VolumeReport RPC method
func (*QueryVolumeReportRequest) Descriptor ¶ added in v0.8.0
func (*QueryVolumeReportRequest) Descriptor() ([]byte, []int)
func (*QueryVolumeReportRequest) GetEpoch ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) GetEpoch() int64
func (*QueryVolumeReportRequest) Marshal ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) Marshal() (dAtA []byte, err error)
func (*QueryVolumeReportRequest) MarshalTo ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVolumeReportRequest) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVolumeReportRequest) ProtoMessage ¶ added in v0.8.0
func (*QueryVolumeReportRequest) ProtoMessage()
func (*QueryVolumeReportRequest) Reset ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) Reset()
func (*QueryVolumeReportRequest) Size ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) Size() (n int)
func (*QueryVolumeReportRequest) String ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) String() string
func (*QueryVolumeReportRequest) Unmarshal ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) Unmarshal(dAtA []byte) error
func (*QueryVolumeReportRequest) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) XXX_DiscardUnknown()
func (*QueryVolumeReportRequest) XXX_Marshal ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVolumeReportRequest) XXX_Merge ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) XXX_Merge(src proto.Message)
func (*QueryVolumeReportRequest) XXX_Size ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) XXX_Size() int
func (*QueryVolumeReportRequest) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryVolumeReportRequest) XXX_Unmarshal(b []byte) error
type QueryVolumeReportResponse ¶ added in v0.8.0
type QueryVolumeReportResponse struct { // node defines the the volumeReport info. ReportInfo *ReportInfo `protobuf:"bytes,1,opt,name=report_info,json=reportInfo,proto3" json:"report_info,omitempty"` }
QueryVolumeReportResponse is response type for the Query/ResourceNode RPC method
func (*QueryVolumeReportResponse) Descriptor ¶ added in v0.8.0
func (*QueryVolumeReportResponse) Descriptor() ([]byte, []int)
func (*QueryVolumeReportResponse) GetReportInfo ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) GetReportInfo() *ReportInfo
func (*QueryVolumeReportResponse) Marshal ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) Marshal() (dAtA []byte, err error)
func (*QueryVolumeReportResponse) MarshalTo ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVolumeReportResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVolumeReportResponse) ProtoMessage ¶ added in v0.8.0
func (*QueryVolumeReportResponse) ProtoMessage()
func (*QueryVolumeReportResponse) Reset ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) Reset()
func (*QueryVolumeReportResponse) Size ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) Size() (n int)
func (*QueryVolumeReportResponse) String ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) String() string
func (*QueryVolumeReportResponse) Unmarshal ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) Unmarshal(dAtA []byte) error
func (*QueryVolumeReportResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) XXX_DiscardUnknown()
func (*QueryVolumeReportResponse) XXX_Marshal ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVolumeReportResponse) XXX_Merge ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) XXX_Merge(src proto.Message)
func (*QueryVolumeReportResponse) XXX_Size ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) XXX_Size() int
func (*QueryVolumeReportResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryVolumeReportResponse) XXX_Unmarshal(b []byte) error
type RegisterKeeper ¶ added in v0.8.0
type RegisterKeeper interface { GetMetaNode(ctx sdk.Context, p2pAddress stratos.SdsAddress) (metaNode types.MetaNode, found bool) GetResourceNode(ctx sdk.Context, p2pAddress stratos.SdsAddress) (resourceNode types.ResourceNode, found bool) SetResourceNode(ctx sdk.Context, resourceNode types.ResourceNode) GetSlashing(ctx sdk.Context, walletAddress sdk.AccAddress) (res sdkmath.Int) SetSlashing(ctx sdk.Context, walletAddress sdk.AccAddress, slashing sdkmath.Int) DeductSlashing(ctx sdk.Context, walletAddress sdk.AccAddress, coins sdk.Coins, slashingDenom string) (remaining, deducted sdk.Coins) GetRemainingOzoneLimit(ctx sdk.Context) (value sdkmath.Int) SetRemainingOzoneLimit(ctx sdk.Context, value sdkmath.Int) GetTotalUnissuedPrepay(ctx sdk.Context) (totalUnissuedPrepay sdk.Coin) GetDepositNozRate(ctx sdk.Context) (depositNozRate sdkmath.LegacyDec) GetResourceNodeBondedToken(ctx sdk.Context) (token sdk.Coin) GetResourceNodeNotBondedToken(ctx sdk.Context) (token sdk.Coin) GetMetaNodeBondedToken(ctx sdk.Context) (token sdk.Coin) GetEffectiveTotalDeposit(ctx sdk.Context) (deposit sdkmath.Int) GetResourceNodeIterator(ctx sdk.Context) sdk.Iterator GetMetaNodeIterator(ctx sdk.Context) sdk.Iterator GetBondedMetaNodeCnt(ctx sdk.Context) sdkmath.Int DecreaseOzoneLimitBySubtractDeposit(ctx sdk.Context, deposit sdkmath.Int) (ozoneLimitChange sdkmath.Int) IncreaseOzoneLimitByAddDeposit(ctx sdk.Context, deposit sdkmath.Int) (ozoneLimitChange sdkmath.Int) GetUnbondingNodeBalance(ctx sdk.Context, networkAddr stratos.SdsAddress) sdkmath.Int OwnMetaNode(ctx sdk.Context, ownerAddr sdk.AccAddress, p2pAddr stratos.SdsAddress) (found bool) }
type ReportInfo ¶ added in v0.4.0
type ReportInfo struct { Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Reporter string `protobuf:"bytes,4,opt,name=reporter,proto3" json:"reporter,omitempty"` }
func (*ReportInfo) Descriptor ¶ added in v0.8.0
func (*ReportInfo) Descriptor() ([]byte, []int)
func (*ReportInfo) GetEpoch ¶ added in v0.8.0
func (m *ReportInfo) GetEpoch() int64
func (*ReportInfo) GetReference ¶ added in v0.8.0
func (m *ReportInfo) GetReference() string
func (*ReportInfo) GetReporter ¶ added in v0.8.0
func (m *ReportInfo) GetReporter() string
func (*ReportInfo) GetTxHash ¶ added in v0.8.0
func (m *ReportInfo) GetTxHash() string
func (*ReportInfo) Marshal ¶ added in v0.8.0
func (m *ReportInfo) Marshal() (dAtA []byte, err error)
func (*ReportInfo) MarshalTo ¶ added in v0.8.0
func (m *ReportInfo) MarshalTo(dAtA []byte) (int, error)
func (*ReportInfo) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *ReportInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReportInfo) ProtoMessage ¶ added in v0.8.0
func (*ReportInfo) ProtoMessage()
func (*ReportInfo) Reset ¶ added in v0.8.0
func (m *ReportInfo) Reset()
func (*ReportInfo) Size ¶ added in v0.8.0
func (m *ReportInfo) Size() (n int)
func (*ReportInfo) String ¶ added in v0.8.0
func (m *ReportInfo) String() string
func (*ReportInfo) Unmarshal ¶ added in v0.8.0
func (m *ReportInfo) Unmarshal(dAtA []byte) error
func (*ReportInfo) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *ReportInfo) XXX_DiscardUnknown()
func (*ReportInfo) XXX_Marshal ¶ added in v0.8.0
func (m *ReportInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReportInfo) XXX_Merge ¶ added in v0.8.0
func (m *ReportInfo) XXX_Merge(src proto.Message)
func (*ReportInfo) XXX_Size ¶ added in v0.8.0
func (m *ReportInfo) XXX_Size() int
func (*ReportInfo) XXX_Unmarshal ¶ added in v0.8.0
func (m *ReportInfo) XXX_Unmarshal(b []byte) error
type Reward ¶
type Reward struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"` RewardFromMiningPool github_com_cosmos_cosmos_sdk_types.Coins `` /* 200-byte string literal not displayed */ RewardFromTrafficPool github_com_cosmos_cosmos_sdk_types.Coins `` /* 204-byte string literal not displayed */ }
func NewDefaultReward ¶
func NewDefaultReward(walletAddress sdk.AccAddress) Reward
func (Reward) AddRewardFromMiningPool ¶
func (Reward) AddRewardFromTrafficPool ¶
func (*Reward) Descriptor ¶ added in v0.8.0
func (*Reward) GetRewardFromMiningPool ¶ added in v0.8.0
func (m *Reward) GetRewardFromMiningPool() github_com_cosmos_cosmos_sdk_types.Coins
func (*Reward) GetRewardFromTrafficPool ¶ added in v0.8.0
func (m *Reward) GetRewardFromTrafficPool() github_com_cosmos_cosmos_sdk_types.Coins
func (*Reward) GetWalletAddress ¶ added in v0.8.0
func (Reward) HrpString ¶ added in v0.8.0
HrpString returns a human-readable string representation of a Reward.
func (*Reward) MarshalToSizedBuffer ¶ added in v0.8.0
func (*Reward) ProtoMessage ¶ added in v0.8.0
func (*Reward) ProtoMessage()
func (*Reward) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *Reward) XXX_DiscardUnknown()
func (*Reward) XXX_Marshal ¶ added in v0.8.0
func (*Reward) XXX_Unmarshal ¶ added in v0.8.0
type RewardByWallet ¶ added in v0.12.0
type RewardByWallet struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` MatureTotalReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ ImmatureTotalReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 164-byte string literal not displayed */ }
func NewRewardByWallet ¶ added in v0.12.0
func NewRewardByWallet( walletAddress sdk.AccAddress, matureTotal sdk.Coins, immatureTotal sdk.Coins, ) *RewardByWallet
NewRewardByWallet creates a new instance of RewardByWallet
func (*RewardByWallet) Descriptor ¶ added in v0.12.0
func (*RewardByWallet) Descriptor() ([]byte, []int)
func (*RewardByWallet) GetImmatureTotalReward ¶ added in v0.12.0
func (m *RewardByWallet) GetImmatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins
func (*RewardByWallet) GetMatureTotalReward ¶ added in v0.12.0
func (m *RewardByWallet) GetMatureTotalReward() github_com_cosmos_cosmos_sdk_types.Coins
func (*RewardByWallet) GetWalletAddress ¶ added in v0.12.0
func (m *RewardByWallet) GetWalletAddress() string
func (*RewardByWallet) Marshal ¶ added in v0.12.0
func (m *RewardByWallet) Marshal() (dAtA []byte, err error)
func (*RewardByWallet) MarshalTo ¶ added in v0.12.0
func (m *RewardByWallet) MarshalTo(dAtA []byte) (int, error)
func (*RewardByWallet) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *RewardByWallet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardByWallet) ProtoMessage ¶ added in v0.12.0
func (*RewardByWallet) ProtoMessage()
func (*RewardByWallet) Reset ¶ added in v0.12.0
func (m *RewardByWallet) Reset()
func (*RewardByWallet) Size ¶ added in v0.12.0
func (m *RewardByWallet) Size() (n int)
func (*RewardByWallet) String ¶ added in v0.12.0
func (m *RewardByWallet) String() string
func (*RewardByWallet) Unmarshal ¶ added in v0.12.0
func (m *RewardByWallet) Unmarshal(dAtA []byte) error
func (*RewardByWallet) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *RewardByWallet) XXX_DiscardUnknown()
func (*RewardByWallet) XXX_Marshal ¶ added in v0.12.0
func (m *RewardByWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardByWallet) XXX_Merge ¶ added in v0.12.0
func (m *RewardByWallet) XXX_Merge(src proto.Message)
func (*RewardByWallet) XXX_Size ¶ added in v0.12.0
func (m *RewardByWallet) XXX_Size() int
func (*RewardByWallet) XXX_Unmarshal ¶ added in v0.12.0
func (m *RewardByWallet) XXX_Unmarshal(b []byte) error
type RewardTotal ¶ added in v0.12.0
type RewardTotal struct { Epoch github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=epoch,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"epoch" yaml:"epoch"` TotalReward TotalReward `protobuf:"bytes,2,opt,name=total_reward,json=totalReward,proto3" json:"total_reward" yaml:"total_reward"` }
func NewRewardTotal ¶ added in v0.12.0
func NewRewardTotal(epoch sdkmath.Int, reward TotalReward) RewardTotal
func (*RewardTotal) Descriptor ¶ added in v0.12.0
func (*RewardTotal) Descriptor() ([]byte, []int)
func (*RewardTotal) Equal ¶ added in v0.12.0
func (this *RewardTotal) Equal(that interface{}) bool
func (*RewardTotal) GetTotalReward ¶ added in v0.12.0
func (m *RewardTotal) GetTotalReward() TotalReward
func (*RewardTotal) Marshal ¶ added in v0.12.0
func (m *RewardTotal) Marshal() (dAtA []byte, err error)
func (*RewardTotal) MarshalTo ¶ added in v0.12.0
func (m *RewardTotal) MarshalTo(dAtA []byte) (int, error)
func (*RewardTotal) MarshalToSizedBuffer ¶ added in v0.12.0
func (m *RewardTotal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardTotal) ProtoMessage ¶ added in v0.12.0
func (*RewardTotal) ProtoMessage()
func (*RewardTotal) Reset ¶ added in v0.12.0
func (m *RewardTotal) Reset()
func (*RewardTotal) Size ¶ added in v0.12.0
func (m *RewardTotal) Size() (n int)
func (*RewardTotal) String ¶ added in v0.12.0
func (m *RewardTotal) String() string
func (*RewardTotal) Unmarshal ¶ added in v0.12.0
func (m *RewardTotal) Unmarshal(dAtA []byte) error
func (*RewardTotal) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *RewardTotal) XXX_DiscardUnknown()
func (*RewardTotal) XXX_Marshal ¶ added in v0.12.0
func (m *RewardTotal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardTotal) XXX_Merge ¶ added in v0.12.0
func (m *RewardTotal) XXX_Merge(src proto.Message)
func (*RewardTotal) XXX_Size ¶ added in v0.12.0
func (m *RewardTotal) XXX_Size() int
func (*RewardTotal) XXX_Unmarshal ¶ added in v0.12.0
func (m *RewardTotal) XXX_Unmarshal(b []byte) error
type SingleWalletVolume ¶ added in v0.6.0
type SingleWalletVolume struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address" yaml:"wallet_address"` Volume github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=volume,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"volume" yaml:"volume"` }
func NewSingleWalletVolume ¶ added in v0.6.0
func NewSingleWalletVolume( walletAddress sdk.AccAddress, volume sdkmath.Int, ) SingleWalletVolume
NewSingleWalletVolume creates a new Msg<Action> instance
func (*SingleWalletVolume) Descriptor ¶ added in v0.8.0
func (*SingleWalletVolume) Descriptor() ([]byte, []int)
func (*SingleWalletVolume) Equal ¶ added in v0.12.0
func (this *SingleWalletVolume) Equal(that interface{}) bool
func (*SingleWalletVolume) GetWalletAddress ¶ added in v0.8.0
func (m *SingleWalletVolume) GetWalletAddress() string
func (*SingleWalletVolume) Marshal ¶ added in v0.8.0
func (m *SingleWalletVolume) Marshal() (dAtA []byte, err error)
func (*SingleWalletVolume) MarshalTo ¶ added in v0.8.0
func (m *SingleWalletVolume) MarshalTo(dAtA []byte) (int, error)
func (*SingleWalletVolume) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *SingleWalletVolume) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SingleWalletVolume) ProtoMessage ¶ added in v0.8.0
func (*SingleWalletVolume) ProtoMessage()
func (*SingleWalletVolume) Reset ¶ added in v0.8.0
func (m *SingleWalletVolume) Reset()
func (*SingleWalletVolume) Size ¶ added in v0.8.0
func (m *SingleWalletVolume) Size() (n int)
func (*SingleWalletVolume) String ¶ added in v0.8.0
func (m *SingleWalletVolume) String() string
func (*SingleWalletVolume) Unmarshal ¶ added in v0.8.0
func (m *SingleWalletVolume) Unmarshal(dAtA []byte) error
func (*SingleWalletVolume) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *SingleWalletVolume) XXX_DiscardUnknown()
func (*SingleWalletVolume) XXX_Marshal ¶ added in v0.8.0
func (m *SingleWalletVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SingleWalletVolume) XXX_Merge ¶ added in v0.8.0
func (m *SingleWalletVolume) XXX_Merge(src proto.Message)
func (*SingleWalletVolume) XXX_Size ¶ added in v0.8.0
func (m *SingleWalletVolume) XXX_Size() int
func (*SingleWalletVolume) XXX_Unmarshal ¶ added in v0.8.0
func (m *SingleWalletVolume) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶ added in v0.8.0
type StakingKeeper interface { TotalBondedTokens(ctx sdk.Context) sdkmath.Int IterateUnbondingDelegations(ctx sdk.Context, fn func(index int64, ubd stakingtypes.UnbondingDelegation) (stop bool)) }
type TotalReward ¶ added in v0.11.0
type TotalReward struct { MiningReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 162-byte string literal not displayed */ TrafficReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 166-byte string literal not displayed */ }
func (*TotalReward) Descriptor ¶ added in v0.11.0
func (*TotalReward) Descriptor() ([]byte, []int)
func (*TotalReward) Equal ¶ added in v0.12.0
func (this *TotalReward) Equal(that interface{}) bool
func (*TotalReward) GetMiningReward ¶ added in v0.11.0
func (m *TotalReward) GetMiningReward() github_com_cosmos_cosmos_sdk_types.Coins
func (*TotalReward) GetTrafficReward ¶ added in v0.11.0
func (m *TotalReward) GetTrafficReward() github_com_cosmos_cosmos_sdk_types.Coins
func (*TotalReward) Marshal ¶ added in v0.11.0
func (m *TotalReward) Marshal() (dAtA []byte, err error)
func (*TotalReward) MarshalTo ¶ added in v0.11.0
func (m *TotalReward) MarshalTo(dAtA []byte) (int, error)
func (*TotalReward) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *TotalReward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TotalReward) ProtoMessage ¶ added in v0.11.0
func (*TotalReward) ProtoMessage()
func (*TotalReward) Reset ¶ added in v0.11.0
func (m *TotalReward) Reset()
func (*TotalReward) Size ¶ added in v0.11.0
func (m *TotalReward) Size() (n int)
func (*TotalReward) String ¶ added in v0.11.0
func (m *TotalReward) String() string
func (*TotalReward) Unmarshal ¶ added in v0.11.0
func (m *TotalReward) Unmarshal(dAtA []byte) error
func (*TotalReward) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *TotalReward) XXX_DiscardUnknown()
func (*TotalReward) XXX_Marshal ¶ added in v0.11.0
func (m *TotalReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TotalReward) XXX_Merge ¶ added in v0.11.0
func (m *TotalReward) XXX_Merge(src proto.Message)
func (*TotalReward) XXX_Size ¶ added in v0.11.0
func (m *TotalReward) XXX_Size() int
func (*TotalReward) XXX_Unmarshal ¶ added in v0.11.0
func (m *TotalReward) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶ added in v0.8.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) HandleMsgFoundationDeposit ¶ added in v0.8.0
func (*UnimplementedMsgServer) HandleMsgFoundationDeposit(ctx context.Context, req *MsgFoundationDeposit) (*MsgFoundationDepositResponse, error)
func (*UnimplementedMsgServer) HandleMsgSlashingResourceNode ¶ added in v0.8.0
func (*UnimplementedMsgServer) HandleMsgSlashingResourceNode(ctx context.Context, req *MsgSlashingResourceNode) (*MsgSlashingResourceNodeResponse, error)
func (*UnimplementedMsgServer) HandleMsgVolumeReport ¶ added in v0.8.0
func (*UnimplementedMsgServer) HandleMsgVolumeReport(ctx context.Context, req *MsgVolumeReport) (*MsgVolumeReportResponse, error)
func (*UnimplementedMsgServer) HandleMsgWithdraw ¶ added in v0.8.0
func (*UnimplementedMsgServer) HandleMsgWithdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.12.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.8.0
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CirculationSupply ¶ added in v0.10.0
func (*UnimplementedQueryServer) CirculationSupply(ctx context.Context, req *QueryCirculationSupplyRequest) (*QueryCirculationSupplyResponse, error)
func (*UnimplementedQueryServer) Metrics ¶ added in v0.11.3
func (*UnimplementedQueryServer) Metrics(ctx context.Context, req *QueryMetricsRequest) (*QueryMetricsResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.8.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RewardsByEpoch ¶ added in v0.10.0
func (*UnimplementedQueryServer) RewardsByEpoch(ctx context.Context, req *QueryRewardsByEpochRequest) (*QueryRewardsByEpochResponse, error)
func (*UnimplementedQueryServer) RewardsByWallet ¶ added in v0.12.0
func (*UnimplementedQueryServer) RewardsByWallet(ctx context.Context, req *QueryRewardsByWalletRequest) (*QueryRewardsByWalletResponse, error)
func (*UnimplementedQueryServer) RewardsByWalletAndEpoch ¶ added in v0.12.0
func (*UnimplementedQueryServer) RewardsByWalletAndEpoch(ctx context.Context, req *QueryRewardsByWalletAndEpochRequest) (*QueryRewardsByWalletAndEpochResponse, error)
func (*UnimplementedQueryServer) SlashingByOwner ¶ added in v0.10.0
func (*UnimplementedQueryServer) SlashingByOwner(ctx context.Context, req *QuerySlashingByOwnerRequest) (*QuerySlashingByOwnerResponse, error)
func (*UnimplementedQueryServer) TotalMinedToken ¶ added in v0.10.0
func (*UnimplementedQueryServer) TotalMinedToken(ctx context.Context, req *QueryTotalMinedTokenRequest) (*QueryTotalMinedTokenResponse, error)
func (*UnimplementedQueryServer) TotalRewardByEpoch ¶ added in v0.11.0
func (*UnimplementedQueryServer) TotalRewardByEpoch(ctx context.Context, req *QueryTotalRewardByEpochRequest) (*QueryTotalRewardByEpochResponse, error)
func (*UnimplementedQueryServer) VolumeReport ¶ added in v0.8.0
func (*UnimplementedQueryServer) VolumeReport(ctx context.Context, req *QueryVolumeReportRequest) (*QueryVolumeReportResponse, error)
type VolumeReportRecord ¶ added in v0.5.0
type VolumeReportRecord struct { Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter" yaml:"reporter"` ReportReference string `protobuf:"bytes,2,opt,name=report_reference,json=reportReference,proto3" json:"report_reference" yaml:"report_reference"` TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash" yaml:"tx_hash"` }
func NewReportRecord ¶ added in v0.4.0
func NewReportRecord(reporter stratos.SdsAddress, reportReference string, txHash string) VolumeReportRecord
func (*VolumeReportRecord) Descriptor ¶ added in v0.8.0
func (*VolumeReportRecord) Descriptor() ([]byte, []int)
func (*VolumeReportRecord) Equal ¶ added in v0.12.0
func (this *VolumeReportRecord) Equal(that interface{}) bool
func (*VolumeReportRecord) GetReportReference ¶ added in v0.8.0
func (m *VolumeReportRecord) GetReportReference() string
func (*VolumeReportRecord) GetReporter ¶ added in v0.8.0
func (m *VolumeReportRecord) GetReporter() string
func (*VolumeReportRecord) GetTxHash ¶ added in v0.8.0
func (m *VolumeReportRecord) GetTxHash() string
func (*VolumeReportRecord) Marshal ¶ added in v0.8.0
func (m *VolumeReportRecord) Marshal() (dAtA []byte, err error)
func (*VolumeReportRecord) MarshalTo ¶ added in v0.8.0
func (m *VolumeReportRecord) MarshalTo(dAtA []byte) (int, error)
func (*VolumeReportRecord) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *VolumeReportRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VolumeReportRecord) ProtoMessage ¶ added in v0.8.0
func (*VolumeReportRecord) ProtoMessage()
func (*VolumeReportRecord) Reset ¶ added in v0.8.0
func (m *VolumeReportRecord) Reset()
func (*VolumeReportRecord) Size ¶ added in v0.8.0
func (m *VolumeReportRecord) Size() (n int)
func (*VolumeReportRecord) String ¶ added in v0.8.0
func (m *VolumeReportRecord) String() string
func (*VolumeReportRecord) Unmarshal ¶ added in v0.8.0
func (m *VolumeReportRecord) Unmarshal(dAtA []byte) error
func (*VolumeReportRecord) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *VolumeReportRecord) XXX_DiscardUnknown()
func (*VolumeReportRecord) XXX_Marshal ¶ added in v0.8.0
func (m *VolumeReportRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VolumeReportRecord) XXX_Merge ¶ added in v0.8.0
func (m *VolumeReportRecord) XXX_Merge(src proto.Message)
func (*VolumeReportRecord) XXX_Size ¶ added in v0.8.0
func (m *VolumeReportRecord) XXX_Size() int
func (*VolumeReportRecord) XXX_Unmarshal ¶ added in v0.8.0
func (m *VolumeReportRecord) XXX_Unmarshal(b []byte) error
type WalletVolumes ¶ added in v0.10.0
type WalletVolumes struct {
Volumes []SingleWalletVolume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes" yaml:"volumes"`
}
func (*WalletVolumes) Descriptor ¶ added in v0.10.0
func (*WalletVolumes) Descriptor() ([]byte, []int)
func (*WalletVolumes) Equal ¶ added in v0.12.0
func (this *WalletVolumes) Equal(that interface{}) bool
func (*WalletVolumes) GetVolumes ¶ added in v0.10.0
func (m *WalletVolumes) GetVolumes() []SingleWalletVolume
func (*WalletVolumes) Marshal ¶ added in v0.10.0
func (m *WalletVolumes) Marshal() (dAtA []byte, err error)
func (*WalletVolumes) MarshalTo ¶ added in v0.10.0
func (m *WalletVolumes) MarshalTo(dAtA []byte) (int, error)
func (*WalletVolumes) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *WalletVolumes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WalletVolumes) ProtoMessage ¶ added in v0.10.0
func (*WalletVolumes) ProtoMessage()
func (*WalletVolumes) Reset ¶ added in v0.10.0
func (m *WalletVolumes) Reset()
func (*WalletVolumes) Size ¶ added in v0.10.0
func (m *WalletVolumes) Size() (n int)
func (*WalletVolumes) String ¶ added in v0.10.0
func (m *WalletVolumes) String() string
func (*WalletVolumes) Unmarshal ¶ added in v0.10.0
func (m *WalletVolumes) Unmarshal(dAtA []byte) error
func (*WalletVolumes) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *WalletVolumes) XXX_DiscardUnknown()
func (*WalletVolumes) XXX_Marshal ¶ added in v0.10.0
func (m *WalletVolumes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletVolumes) XXX_Merge ¶ added in v0.10.0
func (m *WalletVolumes) XXX_Merge(src proto.Message)
func (*WalletVolumes) XXX_Size ¶ added in v0.10.0
func (m *WalletVolumes) XXX_Size() int
func (*WalletVolumes) XXX_Unmarshal ¶ added in v0.10.0
func (m *WalletVolumes) XXX_Unmarshal(b []byte) error