Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateDaoRewardAddress(daoRewardAddress any) error
- func ValidateGlobalInflationPerClaim(GlobalInflationPerClaimAny any) error
- func ValidateMintAllocationDao(mintAllocationDao any) error
- func ValidateMintAllocationPercentages(mintAllocationPercentagesAny any) error
- func ValidateMintAllocationProposer(mintAllocationProposer any) error
- func ValidateMintAllocationSourceOwner(mintAllocationSourceOwner any) error
- func ValidateMintAllocationSum(mintAllocationPercentage MintAllocationPercentages) error
- func ValidateMintAllocationSupplier(mintAllocationSupplier any) error
- func ValidateMintApplication(mintApplication any) error
- func ValidateMintEqualsBurnClaimDistribution(mintEqualsBurnClaimDistributionAny any) error
- func ValidateMintRatio(mintRatioAny any) error
- type AccountKeeper
- type ApplicationKeeper
- type BankKeeper
- type ClaimExpirationReason
- type ClaimSettlementResult
- func (r *ClaimSettlementResult) AppendBurn(burn MintBurnOp)
- func (r *ClaimSettlementResult) AppendMint(mint MintBurnOp)
- func (r *ClaimSettlementResult) AppendModToAcctTransfer(transfer ModToAcctTransfer)
- func (r *ClaimSettlementResult) AppendModToModTransfer(transfer ModToModTransfer)
- func (*ClaimSettlementResult) Descriptor() ([]byte, []int)
- func (r *ClaimSettlementResult) GetApplicationAddr() string
- func (m *ClaimSettlementResult) GetBurns() []MintBurnOp
- func (m *ClaimSettlementResult) GetClaim() types.Claim
- func (m *ClaimSettlementResult) GetMints() []MintBurnOp
- func (m *ClaimSettlementResult) GetModToAcctTransfers() []ModToAcctTransfer
- func (m *ClaimSettlementResult) GetModToModTransfers() []ModToModTransfer
- func (r *ClaimSettlementResult) GetNumComputeUnits() (uint64, error)
- func (r *ClaimSettlementResult) GetNumRelays() (uint64, error)
- func (r *ClaimSettlementResult) GetRewardDistribution() map[string]string
- func (r *ClaimSettlementResult) GetServiceId() string
- func (r *ClaimSettlementResult) GetSessionEndHeight() int64
- func (r *ClaimSettlementResult) GetSessionId() string
- func (r *ClaimSettlementResult) GetSupplierOperatorAddr() string
- func (m *ClaimSettlementResult) Marshal() (dAtA []byte, err error)
- func (m *ClaimSettlementResult) MarshalTo(dAtA []byte) (int, error)
- func (m *ClaimSettlementResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClaimSettlementResult) ProtoMessage()
- func (m *ClaimSettlementResult) Reset()
- func (m *ClaimSettlementResult) Size() (n int)
- func (m *ClaimSettlementResult) String() string
- func (m *ClaimSettlementResult) Unmarshal(dAtA []byte) error
- func (m *ClaimSettlementResult) XXX_DiscardUnknown()
- func (m *ClaimSettlementResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClaimSettlementResult) XXX_Merge(src proto.Message)
- func (m *ClaimSettlementResult) XXX_Size() int
- func (m *ClaimSettlementResult) XXX_Unmarshal(b []byte) error
- type EventApplicationOverserviced
- func (*EventApplicationOverserviced) Descriptor() ([]byte, []int)
- func (m *EventApplicationOverserviced) GetApplicationAddr() string
- func (m *EventApplicationOverserviced) GetEffectiveBurn() string
- func (m *EventApplicationOverserviced) GetExpectedBurn() string
- func (m *EventApplicationOverserviced) GetSupplierOperatorAddr() string
- func (m *EventApplicationOverserviced) Marshal() (dAtA []byte, err error)
- func (m *EventApplicationOverserviced) MarshalTo(dAtA []byte) (int, error)
- func (m *EventApplicationOverserviced) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventApplicationOverserviced) ProtoMessage()
- func (m *EventApplicationOverserviced) Reset()
- func (m *EventApplicationOverserviced) Size() (n int)
- func (m *EventApplicationOverserviced) String() string
- func (m *EventApplicationOverserviced) Unmarshal(dAtA []byte) error
- func (m *EventApplicationOverserviced) XXX_DiscardUnknown()
- func (m *EventApplicationOverserviced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventApplicationOverserviced) XXX_Merge(src proto.Message)
- func (m *EventApplicationOverserviced) XXX_Size() int
- func (m *EventApplicationOverserviced) XXX_Unmarshal(b []byte) error
- type EventApplicationReimbursementRequest
- func (*EventApplicationReimbursementRequest) Descriptor() ([]byte, []int)
- func (m *EventApplicationReimbursementRequest) GetAmount() string
- func (m *EventApplicationReimbursementRequest) GetApplicationAddr() string
- func (m *EventApplicationReimbursementRequest) GetServiceId() string
- func (m *EventApplicationReimbursementRequest) GetSessionId() string
- func (m *EventApplicationReimbursementRequest) GetSupplierOperatorAddr() string
- func (m *EventApplicationReimbursementRequest) GetSupplierOwnerAddr() string
- func (m *EventApplicationReimbursementRequest) Marshal() (dAtA []byte, err error)
- func (m *EventApplicationReimbursementRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *EventApplicationReimbursementRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventApplicationReimbursementRequest) ProtoMessage()
- func (m *EventApplicationReimbursementRequest) Reset()
- func (m *EventApplicationReimbursementRequest) Size() (n int)
- func (m *EventApplicationReimbursementRequest) String() string
- func (m *EventApplicationReimbursementRequest) Unmarshal(dAtA []byte) error
- func (m *EventApplicationReimbursementRequest) XXX_DiscardUnknown()
- func (m *EventApplicationReimbursementRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventApplicationReimbursementRequest) XXX_Merge(src proto.Message)
- func (m *EventApplicationReimbursementRequest) XXX_Size() int
- func (m *EventApplicationReimbursementRequest) XXX_Unmarshal(b []byte) error
- type EventClaimDiscarded
- func (*EventClaimDiscarded) Descriptor() ([]byte, []int)
- func (m *EventClaimDiscarded) GetApplicationAddress() string
- func (m *EventClaimDiscarded) GetClaimProofStatusInt() int32
- func (m *EventClaimDiscarded) GetError() string
- func (m *EventClaimDiscarded) GetServiceId() string
- func (m *EventClaimDiscarded) GetSessionEndBlockHeight() int64
- func (m *EventClaimDiscarded) GetSupplierOperatorAddress() string
- func (m *EventClaimDiscarded) Marshal() (dAtA []byte, err error)
- func (m *EventClaimDiscarded) MarshalTo(dAtA []byte) (int, error)
- func (m *EventClaimDiscarded) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventClaimDiscarded) ProtoMessage()
- func (m *EventClaimDiscarded) Reset()
- func (m *EventClaimDiscarded) Size() (n int)
- func (m *EventClaimDiscarded) String() string
- func (m *EventClaimDiscarded) Unmarshal(dAtA []byte) error
- func (m *EventClaimDiscarded) XXX_DiscardUnknown()
- func (m *EventClaimDiscarded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventClaimDiscarded) XXX_Merge(src proto.Message)
- func (m *EventClaimDiscarded) XXX_Size() int
- func (m *EventClaimDiscarded) XXX_Unmarshal(b []byte) error
- type EventClaimExpired
- func (*EventClaimExpired) Descriptor() ([]byte, []int)
- func (m *EventClaimExpired) GetApplicationAddress() string
- func (m *EventClaimExpired) GetClaimProofStatusInt() int32
- func (m *EventClaimExpired) GetClaimedUpokt() string
- func (m *EventClaimExpired) GetExpirationReason() ClaimExpirationReason
- func (m *EventClaimExpired) GetNumClaimedComputeUnits() uint64
- func (m *EventClaimExpired) GetNumEstimatedComputeUnits() uint64
- func (m *EventClaimExpired) GetNumRelays() uint64
- func (m *EventClaimExpired) GetServiceId() string
- func (m *EventClaimExpired) GetSessionEndBlockHeight() int64
- func (m *EventClaimExpired) GetSupplierOperatorAddress() string
- func (m *EventClaimExpired) Marshal() (dAtA []byte, err error)
- func (m *EventClaimExpired) MarshalTo(dAtA []byte) (int, error)
- func (m *EventClaimExpired) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventClaimExpired) ProtoMessage()
- func (m *EventClaimExpired) Reset()
- func (m *EventClaimExpired) Size() (n int)
- func (m *EventClaimExpired) String() string
- func (m *EventClaimExpired) Unmarshal(dAtA []byte) error
- func (m *EventClaimExpired) XXX_DiscardUnknown()
- func (m *EventClaimExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventClaimExpired) XXX_Merge(src proto.Message)
- func (m *EventClaimExpired) XXX_Size() int
- func (m *EventClaimExpired) XXX_Unmarshal(b []byte) error
- type EventClaimSettled
- func (*EventClaimSettled) Descriptor() ([]byte, []int)
- func (m *EventClaimSettled) GetApplicationAddress() string
- func (m *EventClaimSettled) GetClaimProofStatusInt() int32
- func (m *EventClaimSettled) GetClaimedUpokt() string
- func (m *EventClaimSettled) GetNumClaimedComputeUnits() uint64
- func (m *EventClaimSettled) GetNumEstimatedComputeUnits() uint64
- func (m *EventClaimSettled) GetNumRelays() uint64
- func (m *EventClaimSettled) GetProofRequirementInt() int32
- func (m *EventClaimSettled) GetRewardDistribution() map[string]string
- func (m *EventClaimSettled) GetServiceId() string
- func (m *EventClaimSettled) GetSessionEndBlockHeight() int64
- func (m *EventClaimSettled) GetSupplierOperatorAddress() string
- func (m *EventClaimSettled) Marshal() (dAtA []byte, err error)
- func (m *EventClaimSettled) MarshalTo(dAtA []byte) (int, error)
- func (m *EventClaimSettled) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventClaimSettled) ProtoMessage()
- func (m *EventClaimSettled) Reset()
- func (m *EventClaimSettled) Size() (n int)
- func (m *EventClaimSettled) String() string
- func (m *EventClaimSettled) Unmarshal(dAtA []byte) error
- func (m *EventClaimSettled) XXX_DiscardUnknown()
- func (m *EventClaimSettled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventClaimSettled) XXX_Merge(src proto.Message)
- func (m *EventClaimSettled) XXX_Size() int
- func (m *EventClaimSettled) XXX_Unmarshal(b []byte) error
- type EventSupplierSlashed
- func (*EventSupplierSlashed) Descriptor() ([]byte, []int)
- func (m *EventSupplierSlashed) GetApplicationAddress() string
- func (m *EventSupplierSlashed) GetClaimProofStatusInt() int32
- func (m *EventSupplierSlashed) GetProofMissingPenalty() string
- func (m *EventSupplierSlashed) GetServiceId() string
- func (m *EventSupplierSlashed) GetSessionEndBlockHeight() int64
- func (m *EventSupplierSlashed) GetSupplierOperatorAddress() string
- func (m *EventSupplierSlashed) Marshal() (dAtA []byte, err error)
- func (m *EventSupplierSlashed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSupplierSlashed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSupplierSlashed) ProtoMessage()
- func (m *EventSupplierSlashed) Reset()
- func (m *EventSupplierSlashed) Size() (n int)
- func (m *EventSupplierSlashed) String() string
- func (m *EventSupplierSlashed) Unmarshal(dAtA []byte) error
- func (m *EventSupplierSlashed) XXX_DiscardUnknown()
- func (m *EventSupplierSlashed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSupplierSlashed) XXX_Merge(src proto.Message)
- func (m *EventSupplierSlashed) XXX_Size() int
- func (m *EventSupplierSlashed) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MigrationKeeper
- type MintAllocationPercentages
- func (*MintAllocationPercentages) Descriptor() ([]byte, []int)
- func (this *MintAllocationPercentages) Equal(that interface{}) bool
- func (m *MintAllocationPercentages) GetApplication() float64
- func (m *MintAllocationPercentages) GetDao() float64
- func (m *MintAllocationPercentages) GetProposer() float64
- func (m *MintAllocationPercentages) GetSourceOwner() float64
- func (m *MintAllocationPercentages) GetSupplier() float64
- func (m *MintAllocationPercentages) Marshal() (dAtA []byte, err error)
- func (m *MintAllocationPercentages) MarshalTo(dAtA []byte) (int, error)
- func (m *MintAllocationPercentages) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintAllocationPercentages) ProtoMessage()
- func (m *MintAllocationPercentages) Reset()
- func (m *MintAllocationPercentages) Size() (n int)
- func (m *MintAllocationPercentages) String() string
- func (m *MintAllocationPercentages) Sum() float64
- func (m *MintAllocationPercentages) Unmarshal(dAtA []byte) error
- func (m *MintAllocationPercentages) XXX_DiscardUnknown()
- func (m *MintAllocationPercentages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintAllocationPercentages) XXX_Merge(src proto.Message)
- func (m *MintAllocationPercentages) XXX_Size() int
- func (m *MintAllocationPercentages) XXX_Unmarshal(b []byte) error
- type MintBurnOp
- func (*MintBurnOp) Descriptor() ([]byte, []int)
- func (m *MintBurnOp) GetCoin() types1.Coin
- func (m *MintBurnOp) GetDestinationModule() string
- func (m *MintBurnOp) GetOpReason() SettlementOpReason
- func (m *MintBurnOp) Marshal() (dAtA []byte, err error)
- func (m *MintBurnOp) MarshalTo(dAtA []byte) (int, error)
- func (m *MintBurnOp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintBurnOp) ProtoMessage()
- func (m *MintBurnOp) Reset()
- func (m *MintBurnOp) Size() (n int)
- func (m *MintBurnOp) String() string
- func (m *MintBurnOp) Unmarshal(dAtA []byte) error
- func (m *MintBurnOp) Validate() error
- func (m *MintBurnOp) XXX_DiscardUnknown()
- func (m *MintBurnOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintBurnOp) XXX_Merge(src proto.Message)
- func (m *MintBurnOp) XXX_Size() int
- func (m *MintBurnOp) XXX_Unmarshal(b []byte) error
- type MintEqualsBurnClaimDistribution
- func (*MintEqualsBurnClaimDistribution) Descriptor() ([]byte, []int)
- func (this *MintEqualsBurnClaimDistribution) Equal(that interface{}) bool
- func (m *MintEqualsBurnClaimDistribution) GetApplication() float64
- func (m *MintEqualsBurnClaimDistribution) GetDao() float64
- func (m *MintEqualsBurnClaimDistribution) GetProposer() float64
- func (m *MintEqualsBurnClaimDistribution) GetSourceOwner() float64
- func (m *MintEqualsBurnClaimDistribution) GetSupplier() float64
- func (m *MintEqualsBurnClaimDistribution) Marshal() (dAtA []byte, err error)
- func (m *MintEqualsBurnClaimDistribution) MarshalTo(dAtA []byte) (int, error)
- func (m *MintEqualsBurnClaimDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintEqualsBurnClaimDistribution) ProtoMessage()
- func (m *MintEqualsBurnClaimDistribution) Reset()
- func (m *MintEqualsBurnClaimDistribution) Size() (n int)
- func (m *MintEqualsBurnClaimDistribution) String() string
- func (m *MintEqualsBurnClaimDistribution) Sum() float64
- func (m *MintEqualsBurnClaimDistribution) Unmarshal(dAtA []byte) error
- func (m *MintEqualsBurnClaimDistribution) XXX_DiscardUnknown()
- func (m *MintEqualsBurnClaimDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintEqualsBurnClaimDistribution) XXX_Merge(src proto.Message)
- func (m *MintEqualsBurnClaimDistribution) XXX_Size() int
- func (m *MintEqualsBurnClaimDistribution) XXX_Unmarshal(b []byte) error
- type ModToAcctTransfer
- func (*ModToAcctTransfer) Descriptor() ([]byte, []int)
- func (m *ModToAcctTransfer) GetCoin() types1.Coin
- func (m *ModToAcctTransfer) GetOpReason() SettlementOpReason
- func (m *ModToAcctTransfer) GetRecipientAddress() string
- func (m *ModToAcctTransfer) GetSenderModule() string
- func (m *ModToAcctTransfer) Marshal() (dAtA []byte, err error)
- func (m *ModToAcctTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *ModToAcctTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModToAcctTransfer) ProtoMessage()
- func (m *ModToAcctTransfer) Reset()
- func (m *ModToAcctTransfer) Size() (n int)
- func (m *ModToAcctTransfer) String() string
- func (m *ModToAcctTransfer) Unmarshal(dAtA []byte) error
- func (m *ModToAcctTransfer) Validate() error
- func (m *ModToAcctTransfer) XXX_DiscardUnknown()
- func (m *ModToAcctTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModToAcctTransfer) XXX_Merge(src proto.Message)
- func (m *ModToAcctTransfer) XXX_Size() int
- func (m *ModToAcctTransfer) XXX_Unmarshal(b []byte) error
- type ModToModTransfer
- func (*ModToModTransfer) Descriptor() ([]byte, []int)
- func (m *ModToModTransfer) GetCoin() types1.Coin
- func (m *ModToModTransfer) GetOpReason() SettlementOpReason
- func (m *ModToModTransfer) GetRecipientModule() string
- func (m *ModToModTransfer) GetSenderModule() string
- func (m *ModToModTransfer) Marshal() (dAtA []byte, err error)
- func (m *ModToModTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *ModToModTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModToModTransfer) ProtoMessage()
- func (m *ModToModTransfer) Reset()
- func (m *ModToModTransfer) Size() (n int)
- func (m *ModToModTransfer) String() string
- func (m *ModToModTransfer) Unmarshal(dAtA []byte) error
- func (m *ModToModTransfer) Validate() error
- func (m *ModToModTransfer) XXX_DiscardUnknown()
- func (m *ModToModTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModToModTransfer) XXX_Merge(src proto.Message)
- func (m *ModToModTransfer) XXX_Size() int
- func (m *ModToModTransfer) XXX_Unmarshal(b []byte) error
- type Module
- func (*Module) Descriptor() ([]byte, []int)
- func (m *Module) GetAuthority() string
- func (m *Module) Marshal() (dAtA []byte, err error)
- func (m *Module) MarshalTo(dAtA []byte) (int, error)
- func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Module) ProtoMessage()
- func (m *Module) Reset()
- func (m *Module) Size() (n int)
- func (m *Module) String() string
- func (m *Module) Unmarshal(dAtA []byte) error
- func (m *Module) XXX_DiscardUnknown()
- func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Module) XXX_Merge(src proto.Message)
- func (m *Module) XXX_Size() int
- func (m *Module) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateParam
- func (*MsgUpdateParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParam) GetAsFloat() float64
- func (m *MsgUpdateParam) GetAsMintAllocationPercentages() *MintAllocationPercentages
- func (m *MsgUpdateParam) GetAsMintEqualsBurnClaimDistribution() *MintEqualsBurnClaimDistribution
- func (m *MsgUpdateParam) GetAsString() string
- func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
- func (m *MsgUpdateParam) GetAuthority() string
- func (m *MsgUpdateParam) GetName() string
- func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParam) ProtoMessage()
- func (m *MsgUpdateParam) Reset()
- func (m *MsgUpdateParam) Size() (n int)
- func (m *MsgUpdateParam) String() string
- func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParam) ValidateBasic() error
- func (m *MsgUpdateParam) XXX_DiscardUnknown()
- func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
- func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
- func (m *MsgUpdateParam) XXX_Size() int
- func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamResponse
- func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamResponse) ProtoMessage()
- func (m *MsgUpdateParamResponse) Reset()
- func (m *MsgUpdateParamResponse) Size() (n int)
- func (m *MsgUpdateParamResponse) String() string
- func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamResponse) XXX_Size() int
- func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParam_AsFloat
- type MsgUpdateParam_AsMintAllocationPercentages
- type MsgUpdateParam_AsMintEqualsBurnClaimDistribution
- type MsgUpdateParam_AsString
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetDaoRewardAddress() string
- func (m *Params) GetGlobalInflationPerClaim() float64
- func (m *Params) GetMintAllocationPercentages() MintAllocationPercentages
- func (m *Params) GetMintEqualsBurnClaimDistribution() MintEqualsBurnClaimDistribution
- func (m *Params) GetMintRatio() float64
- 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 (params *Params) ValidateBasic() 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 ProofKeeper
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type ServiceKeeper
- type SessionKeeper
- type SettlementOpReason
- type SharedKeeper
- type StakingKeeper
- type SupplierKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "tokenomics" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_tokenomics" )
Variables ¶
var ( // Authority errors ErrTokenomicsInvalidAuthoritySigner = sdkerrors.Register(ModuleName, 1100, "the provided authority address does not match the onchain governance address") ErrTokenomicsAuthorityAddressInvalid = sdkerrors.Register(ModuleName, 1101, "the provided authority address is not a valid bech32 address") // Claim errors ErrTokenomicsClaimSessionHeaderNil = sdkerrors.Register(ModuleName, 1102, "provided claim's session header is nil") ErrTokenomicsClaimSessionHeaderInvalid = sdkerrors.Register(ModuleName, 1103, "provided claim's session header is invalid") ErrTokenomicsClaimRootHashInvalid = sdkerrors.Register(ModuleName, 1109, "the root hash in the claim is invalid") // Supplier errors ErrTokenomicsSupplierOperatorAddressInvalid = sdkerrors.Register(ModuleName, 1104, "the supplier operator address in the claim is not a valid bech32 address") ErrTokenomicsSupplierNotFound = sdkerrors.Register(ModuleName, 1105, "supplier not found") // Application errors ErrTokenomicsApplicationNotFound = sdkerrors.Register(ModuleName, 1106, "application not found") ErrTokenomicsApplicationAddressInvalid = sdkerrors.Register(ModuleName, 1107, "the application address in the claim is not a valid bech32 address") ErrTokenomicsApplicationNewStakeInvalid = sdkerrors.Register(ModuleName, 1110, "application stake cannot be reduced to a -ve amount") // Params errors ErrTokenomicsParamsInvalid = sdkerrors.Register(ModuleName, 1108, "provided params are invalid") ErrTokenomicsParamNameInvalid = sdkerrors.Register(ModuleName, 1111, "the provided param name is invalid") ErrTokenomicsParamInvalid = sdkerrors.Register(ModuleName, 1112, "the provided param is invalid") ErrTokenomicsUnmarshalInvalid = sdkerrors.Register(ModuleName, 1113, "failed to unmarshal the provided bytes") ErrTokenomicsEmittingEventFailed = sdkerrors.Register(ModuleName, 1114, "failed to emit event") // Service errors ErrTokenomicsServiceNotFound = sdkerrors.Register(ModuleName, 1115, "service not found") // Settlement errors ErrTokenomicsConstraint = sdkerrors.Register(ModuleName, 1116, "constraint violation") ErrTokenomicsSettlementInternal = sdkerrors.Register(ModuleName, 1117, "internal claim settlement error") ErrTokenomicsTLMInternal = sdkerrors.Register(ModuleName, 1118, "internal token logic module error") ErrTokenomicsProcessingTLM = sdkerrors.Register(ModuleName, 1119, "failed to process token logic module") ErrTokenomicsCoinIsZero = sdkerrors.Register(ModuleName, 1120, "coin amount cannot be zero") ErrTokenomicsSettlementMint = sdkerrors.Register(ModuleName, 1121, "failed to mint uPOKT while executing settlement state transitions") ErrTokenomicsSettlementBurn = sdkerrors.Register(ModuleName, 1122, "failed to burn uPOKT while executing settlement state transitions") ErrTokenomicsSettlementTransfer = sdkerrors.Register(ModuleName, 1123, "failed to send coins while executing settlement state transitions") )
x/tokenomics module sentinel errors
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 ( ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") )
var ( // DAO TLM Params // DefaultDaoRewardAddress is the localnet DAO account address as specified in the config.yml. // It is only used in tests. KeyDaoRewardAddress = []byte("DaoRewardAddress") ParamDaoRewardAddress = "dao_reward_address" DefaultDaoRewardAddress = "pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw" // GlobalInflation TLM Params KeyGlobalInflationPerClaim = []byte("GlobalInflationPerClaim") ParamGlobalInflationPerClaim = "global_inflation_per_claim" DefaultGlobalInflationPerClaim = float64(0.1) // TODO_CONSIDERATION: Consider renaming this to GlobalInflationPerClaimDistribution // GlobalInflation Supporting TLM Params KeyMintAllocationPercentages = []byte("MintAllocationPercentages") ParamMintAllocationPercentages = "mint_allocation_percentages" DefaultMintAllocationPercentages = MintAllocationPercentages{ Dao: 0.1, Proposer: 0.05, Supplier: 0.7, SourceOwner: 0.15, Application: 0.0, } // MintEqualsBurn Supporting TLM Params KeyMintEqualsBurnClaimDistribution = []byte("MintEqualsBurnClaimDistribution") ParamMintEqualsBurnClaimDistribution = "mint_equals_burn_claim_distribution" DefaultMintEqualsBurnClaimDistribution = MintEqualsBurnClaimDistribution{ Dao: 0.1, Proposer: 0.05, Supplier: 0.7, SourceOwner: 0.15, Application: 0.0, } // PIP-41: MintRatio for deflationary mint mechanism // mint_ratio controls what proportion of burned tokens are minted (0.0 < mint_ratio <= 1.0) // A value of 0.975 means 97.5% of burned tokens are minted, 2.5% permanently removed KeyMintRatio = []byte("MintRatio") ParamMintRatio = "mint_ratio" DefaultMintRatio = float64(1.0) // Default: no deflation (mint equals burn) )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var ClaimExpirationReason_name = map[int32]string{
0: "EXPIRATION_REASON_UNSPECIFIED",
1: "PROOF_MISSING",
2: "PROOF_INVALID",
}
var ClaimExpirationReason_value = map[string]int32{
"EXPIRATION_REASON_UNSPECIFIED": 0,
"PROOF_MISSING": 1,
"PROOF_INVALID": 2,
}
var Msg_serviceDesc = _Msg_serviceDesc
var ParamsKey = []byte("p_tokenomics")
var Query_serviceDesc = _Query_serviceDesc
var SettlementOpReason_name = map[int32]string{
0: "UNSPECIFIED",
11: "UNSPECIFIED_TLM_SUPPLIER_SLASH_MODULE_TRANSFER",
12: "UNSPECIFIED_TLM_SUPPLIER_SLASH_STAKE_BURN",
1: "TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_STAKE_MINT",
2: "TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_STAKE_BURN",
19: "TLM_RELAY_BURN_EQUALS_MINT_TOKENOMICS_CLAIM_DISTRIBUTION_MINT",
4: "TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION",
15: "TLM_RELAY_BURN_EQUALS_MINT_DAO_REWARD_DISTRIBUTION",
17: "TLM_RELAY_BURN_EQUALS_MINT_SOURCE_OWNER_REWARD_DISTRIBUTION",
18: "TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_REWARD_DISTRIBUTION",
20: "TLM_RELAY_BURN_EQUALS_MINT_VALIDATOR_REWARD_DISTRIBUTION",
23: "TLM_RELAY_BURN_EQUALS_MINT_DELEGATOR_REWARD_DISTRIBUTION",
3: "TLM_GLOBAL_MINT_INFLATION",
5: "TLM_GLOBAL_MINT_DAO_REWARD_DISTRIBUTION",
7: "TLM_GLOBAL_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION",
8: "TLM_GLOBAL_MINT_SOURCE_OWNER_REWARD_DISTRIBUTION",
9: "TLM_GLOBAL_MINT_APPLICATION_REWARD_DISTRIBUTION",
21: "TLM_GLOBAL_MINT_VALIDATOR_REWARD_DISTRIBUTION",
24: "TLM_GLOBAL_MINT_DELEGATOR_REWARD_DISTRIBUTION",
10: "TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_DAO_TRANSFER",
13: "TLM_GLOBAL_MINT_SUPPLIER_SHAREHOLDER_REWARD_MODULE_TRANSFER",
14: "TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_MODULE_TRANSFER",
}
var SettlementOpReason_value = map[string]int32{
"UNSPECIFIED": 0,
"UNSPECIFIED_TLM_SUPPLIER_SLASH_MODULE_TRANSFER": 11,
"UNSPECIFIED_TLM_SUPPLIER_SLASH_STAKE_BURN": 12,
"TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_STAKE_MINT": 1,
"TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_STAKE_BURN": 2,
"TLM_RELAY_BURN_EQUALS_MINT_TOKENOMICS_CLAIM_DISTRIBUTION_MINT": 19,
"TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION": 4,
"TLM_RELAY_BURN_EQUALS_MINT_DAO_REWARD_DISTRIBUTION": 15,
"TLM_RELAY_BURN_EQUALS_MINT_SOURCE_OWNER_REWARD_DISTRIBUTION": 17,
"TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_REWARD_DISTRIBUTION": 18,
"TLM_RELAY_BURN_EQUALS_MINT_VALIDATOR_REWARD_DISTRIBUTION": 20,
"TLM_RELAY_BURN_EQUALS_MINT_DELEGATOR_REWARD_DISTRIBUTION": 23,
"TLM_GLOBAL_MINT_INFLATION": 3,
"TLM_GLOBAL_MINT_DAO_REWARD_DISTRIBUTION": 5,
"TLM_GLOBAL_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION": 7,
"TLM_GLOBAL_MINT_SOURCE_OWNER_REWARD_DISTRIBUTION": 8,
"TLM_GLOBAL_MINT_APPLICATION_REWARD_DISTRIBUTION": 9,
"TLM_GLOBAL_MINT_VALIDATOR_REWARD_DISTRIBUTION": 21,
"TLM_GLOBAL_MINT_DELEGATOR_REWARD_DISTRIBUTION": 24,
"TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_DAO_TRANSFER": 10,
"TLM_GLOBAL_MINT_SUPPLIER_SHAREHOLDER_REWARD_MODULE_TRANSFER": 13,
"TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_MODULE_TRANSFER": 14,
}
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶ added in v0.0.3
func RegisterQueryHandler ¶ added in v0.0.3
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.0.3
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.0.3
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.0.3
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.0.3
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateDaoRewardAddress ¶ added in v0.0.11
ValidateDaoRewardAddress validates the DaoRewardAddress param.
func ValidateGlobalInflationPerClaim ¶ added in v0.0.12
ValidateGlobalInflationPerClaim validates the GlobalInflationPerClaim param.
func ValidateMintAllocationDao ¶ added in v0.0.11
ValidateMintAllocationDao validates the MintAllocationDao param.
func ValidateMintAllocationPercentages ¶ added in v0.0.11
func ValidateMintAllocationProposer ¶ added in v0.0.11
ValidateMintAllocationProposer validates the MintAllocationProposer param.
func ValidateMintAllocationSourceOwner ¶ added in v0.0.11
ValidateMintAllocationSourceOwner validates the MintAllocationSourceOwner param.
func ValidateMintAllocationSum ¶ added in v0.0.11
func ValidateMintAllocationSum(mintAllocationPercentage MintAllocationPercentages) error
ValidateMintAllocationSum validates that the sum of all actor mint allocation percentages is exactly 1.
func ValidateMintAllocationSupplier ¶ added in v0.0.11
ValidateMintAllocationSupplier validates the MintAllocationSupplier param.
func ValidateMintApplication ¶ added in v0.1.27
ValidateMintApplication validates the MintApplication param.
func ValidateMintEqualsBurnClaimDistribution ¶ added in v0.1.27
ValidateMintEqualsBurnClaimDistribution validates the MintEqualsBurnClaimDistribution param.
func ValidateMintRatio ¶ added in v0.1.31
ValidateMintRatio validates the MintRatio param. PIP-41: mint_ratio must be in range (0, 1] where: - 0 is exclusive (must mint something) - 1 is inclusive (can mint 100% = no deflation)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
// Getters
GetAccount(ctx context.Context, addr cosmostypes.AccAddress) cosmostypes.AccountI
NewAccountWithAddress(context.Context, cosmostypes.AccAddress) cosmostypes.AccountI
NextAccountNumber(context.Context) uint64
// Setters
SetAccount(context.Context, cosmostypes.AccountI)
}
AccountKeeper defines the expected interface for the Account module.
type ApplicationKeeper ¶
type ApplicationKeeper interface {
// Getters
GetApplication(ctx context.Context, appAddr string) (app apptypes.Application, found bool)
GetAllApplications(ctx context.Context) []apptypes.Application
GetParams(ctx context.Context) (params apptypes.Params)
// Setters
SetApplication(ctx context.Context, app apptypes.Application)
UnbondApplication(ctx context.Context, app *apptypes.Application) error
EndBlockerUnbondApplications(ctx context.Context) error
}
type BankKeeper ¶
type BankKeeper interface {
// Setters
MintCoins(ctx context.Context, moduleName string, amt cosmostypes.Coins) error
BurnCoins(ctx context.Context, moduleName string, amt cosmostypes.Coins) error
// Getters
SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr cosmostypes.AccAddress, amt cosmostypes.Coins) error
SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt cosmostypes.Coins) error
Balance(context.Context, *banktypes.QueryBalanceRequest) (*banktypes.QueryBalanceResponse, error)
}
BankKeeper defines the expected interface for the Bank module.
type ClaimExpirationReason ¶ added in v0.0.5
type ClaimExpirationReason int32
TODO_CONSIDERATION: Consider prefixing these enums with CLAIM_EXPIRATION_REASON_
const ( // Default value, means may be valid ClaimExpirationReason_EXPIRATION_REASON_UNSPECIFIED ClaimExpirationReason = 0 // A proof was required but not submitted ClaimExpirationReason_PROOF_MISSING ClaimExpirationReason = 1 // A proof was submitted but was invalid ClaimExpirationReason_PROOF_INVALID ClaimExpirationReason = 2 )
func (ClaimExpirationReason) EnumDescriptor ¶ added in v0.0.5
func (ClaimExpirationReason) EnumDescriptor() ([]byte, []int)
func (ClaimExpirationReason) String ¶ added in v0.0.5
func (x ClaimExpirationReason) String() string
type ClaimSettlementResult ¶ added in v0.0.11
type ClaimSettlementResult struct {
Claim types.Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim"`
Mints []MintBurnOp `protobuf:"bytes,2,rep,name=mints,proto3" json:"mints"`
Burns []MintBurnOp `protobuf:"bytes,3,rep,name=burns,proto3" json:"burns"`
ModToModTransfers []ModToModTransfer `protobuf:"bytes,4,rep,name=mod_to_mod_transfers,json=modToModTransfers,proto3" json:"mod_to_mod_transfers"`
ModToAcctTransfers []ModToAcctTransfer `protobuf:"bytes,5,rep,name=mod_to_acct_transfers,json=modToAcctTransfers,proto3" json:"mod_to_acct_transfers"`
}
ClaimSettlementResult holds the result of a single claim settlement: mint, burn, and transfer operations.
func (*ClaimSettlementResult) AppendBurn ¶ added in v0.0.11
func (r *ClaimSettlementResult) AppendBurn(burn MintBurnOp)
AppendBurn appends a burn operation to the result.
func (*ClaimSettlementResult) AppendMint ¶ added in v0.0.11
func (r *ClaimSettlementResult) AppendMint(mint MintBurnOp)
AppendMint appends a mint operation to the result.
func (*ClaimSettlementResult) AppendModToAcctTransfer ¶ added in v0.0.11
func (r *ClaimSettlementResult) AppendModToAcctTransfer(transfer ModToAcctTransfer)
AppendModToAcctTransfer appends a module to account transfer operation to the result.
func (*ClaimSettlementResult) AppendModToModTransfer ¶ added in v0.0.11
func (r *ClaimSettlementResult) AppendModToModTransfer(transfer ModToModTransfer)
AppendModToModTransfer appends a module to module transfer operation to the result.
func (*ClaimSettlementResult) Descriptor ¶ added in v0.0.11
func (*ClaimSettlementResult) Descriptor() ([]byte, []int)
func (*ClaimSettlementResult) GetApplicationAddr ¶ added in v0.0.11
func (r *ClaimSettlementResult) GetApplicationAddr() string
GetApplicationAddr returns the application address of the result's claim.
func (*ClaimSettlementResult) GetBurns ¶ added in v0.0.11
func (m *ClaimSettlementResult) GetBurns() []MintBurnOp
func (*ClaimSettlementResult) GetClaim ¶ added in v0.0.11
func (m *ClaimSettlementResult) GetClaim() types.Claim
func (*ClaimSettlementResult) GetMints ¶ added in v0.0.11
func (m *ClaimSettlementResult) GetMints() []MintBurnOp
func (*ClaimSettlementResult) GetModToAcctTransfers ¶ added in v0.0.11
func (m *ClaimSettlementResult) GetModToAcctTransfers() []ModToAcctTransfer
func (*ClaimSettlementResult) GetModToModTransfers ¶ added in v0.0.11
func (m *ClaimSettlementResult) GetModToModTransfers() []ModToModTransfer
func (*ClaimSettlementResult) GetNumComputeUnits ¶ added in v0.0.11
func (r *ClaimSettlementResult) GetNumComputeUnits() (uint64, error)
GetNumComputeUnits returns the number of claimed compute units in the result's claim.
func (*ClaimSettlementResult) GetNumRelays ¶ added in v0.0.11
func (r *ClaimSettlementResult) GetNumRelays() (uint64, error)
GetNumRelays returns the number of relays in the result's claim.
func (*ClaimSettlementResult) GetRewardDistribution ¶ added in v0.1.27
func (r *ClaimSettlementResult) GetRewardDistribution() map[string]string
GetRewardDistribution returns a map of recipient addresses to their total reward amounts as strings. This aggregates all module-to-account transfers for each recipient address in the settlement result, providing a consolidated view of reward distribution.
The returned map contains: - Key: recipient address (string) - Value: total reward amount as a coin string (e.g. "1000upokt")
This is primarily used for event emission and observability purposes.
func (*ClaimSettlementResult) GetServiceId ¶ added in v0.0.11
func (r *ClaimSettlementResult) GetServiceId() string
GetServiceId returns the service ID of the result's claim.
func (*ClaimSettlementResult) GetSessionEndHeight ¶ added in v0.0.11
func (r *ClaimSettlementResult) GetSessionEndHeight() int64
GetSessionEndHeight returns the session end height of the result's claim.
func (*ClaimSettlementResult) GetSessionId ¶ added in v0.0.11
func (r *ClaimSettlementResult) GetSessionId() string
GetSessionId returns the session ID of the result's claim.
func (*ClaimSettlementResult) GetSupplierOperatorAddr ¶ added in v0.0.11
func (r *ClaimSettlementResult) GetSupplierOperatorAddr() string
GetSupplierOperatorAddr returns the supplier address of the result's claim.
func (*ClaimSettlementResult) Marshal ¶ added in v0.0.11
func (m *ClaimSettlementResult) Marshal() (dAtA []byte, err error)
func (*ClaimSettlementResult) MarshalTo ¶ added in v0.0.11
func (m *ClaimSettlementResult) MarshalTo(dAtA []byte) (int, error)
func (*ClaimSettlementResult) MarshalToSizedBuffer ¶ added in v0.0.11
func (m *ClaimSettlementResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClaimSettlementResult) ProtoMessage ¶ added in v0.0.11
func (*ClaimSettlementResult) ProtoMessage()
func (*ClaimSettlementResult) Reset ¶ added in v0.0.11
func (m *ClaimSettlementResult) Reset()
func (*ClaimSettlementResult) Size ¶ added in v0.0.11
func (m *ClaimSettlementResult) Size() (n int)
func (*ClaimSettlementResult) String ¶ added in v0.0.11
func (m *ClaimSettlementResult) String() string
func (*ClaimSettlementResult) Unmarshal ¶ added in v0.0.11
func (m *ClaimSettlementResult) Unmarshal(dAtA []byte) error
func (*ClaimSettlementResult) XXX_DiscardUnknown ¶ added in v0.0.11
func (m *ClaimSettlementResult) XXX_DiscardUnknown()
func (*ClaimSettlementResult) XXX_Marshal ¶ added in v0.0.11
func (m *ClaimSettlementResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClaimSettlementResult) XXX_Merge ¶ added in v0.0.11
func (m *ClaimSettlementResult) XXX_Merge(src proto.Message)
func (*ClaimSettlementResult) XXX_Size ¶ added in v0.0.11
func (m *ClaimSettlementResult) XXX_Size() int
func (*ClaimSettlementResult) XXX_Unmarshal ¶ added in v0.0.11
func (m *ClaimSettlementResult) XXX_Unmarshal(b []byte) error
type EventApplicationOverserviced ¶ added in v0.0.4
type EventApplicationOverserviced struct {
// The application address consuming onchain services
ApplicationAddr string `protobuf:"bytes,1,opt,name=application_addr,json=applicationAddr,proto3" json:"application_addr,omitempty"`
// The supplier operator address providing onchain services
SupplierOperatorAddr string `protobuf:"bytes,2,opt,name=supplier_operator_addr,json=supplierOperatorAddr,proto3" json:"supplier_operator_addr,omitempty"`
// Expected number of tokens to be burnt from the application's stake.
// A function of the actual amount of work claimed to be done.
ExpectedBurn string `protobuf:"bytes,5,opt,name=expected_burn,json=expectedBurn,proto3" json:"expected_burn,omitempty"`
// Actual number of tokens burnt from the application's stake.
// A function of the amount that could be covered (less than) relative to the amount of work claimed to be done.
EffectiveBurn string `protobuf:"bytes,6,opt,name=effective_burn,json=effectiveBurn,proto3" json:"effective_burn,omitempty"`
}
EventApplicationOverserviced is emitted when an Application's stake cannot cover the Supplier's claim. This means the following will ALWAYS be strictly true: effective_burn < expected_burn - Number of tokens burnt from app stake < Number of tokens burnt from supplier stake
func (*EventApplicationOverserviced) Descriptor ¶ added in v0.0.4
func (*EventApplicationOverserviced) Descriptor() ([]byte, []int)
func (*EventApplicationOverserviced) GetApplicationAddr ¶ added in v0.0.4
func (m *EventApplicationOverserviced) GetApplicationAddr() string
func (*EventApplicationOverserviced) GetEffectiveBurn ¶ added in v0.0.4
func (m *EventApplicationOverserviced) GetEffectiveBurn() string
func (*EventApplicationOverserviced) GetExpectedBurn ¶ added in v0.0.4
func (m *EventApplicationOverserviced) GetExpectedBurn() string
func (*EventApplicationOverserviced) GetSupplierOperatorAddr ¶ added in v0.0.8
func (m *EventApplicationOverserviced) GetSupplierOperatorAddr() string
func (*EventApplicationOverserviced) Marshal ¶ added in v0.0.4
func (m *EventApplicationOverserviced) Marshal() (dAtA []byte, err error)
func (*EventApplicationOverserviced) MarshalTo ¶ added in v0.0.4
func (m *EventApplicationOverserviced) MarshalTo(dAtA []byte) (int, error)
func (*EventApplicationOverserviced) MarshalToSizedBuffer ¶ added in v0.0.4
func (m *EventApplicationOverserviced) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventApplicationOverserviced) ProtoMessage ¶ added in v0.0.4
func (*EventApplicationOverserviced) ProtoMessage()
func (*EventApplicationOverserviced) Reset ¶ added in v0.0.4
func (m *EventApplicationOverserviced) Reset()
func (*EventApplicationOverserviced) Size ¶ added in v0.0.4
func (m *EventApplicationOverserviced) Size() (n int)
func (*EventApplicationOverserviced) String ¶ added in v0.0.4
func (m *EventApplicationOverserviced) String() string
func (*EventApplicationOverserviced) Unmarshal ¶ added in v0.0.4
func (m *EventApplicationOverserviced) Unmarshal(dAtA []byte) error
func (*EventApplicationOverserviced) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *EventApplicationOverserviced) XXX_DiscardUnknown()
func (*EventApplicationOverserviced) XXX_Marshal ¶ added in v0.0.4
func (m *EventApplicationOverserviced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventApplicationOverserviced) XXX_Merge ¶ added in v0.0.4
func (m *EventApplicationOverserviced) XXX_Merge(src proto.Message)
func (*EventApplicationOverserviced) XXX_Size ¶ added in v0.0.4
func (m *EventApplicationOverserviced) XXX_Size() int
func (*EventApplicationOverserviced) XXX_Unmarshal ¶ added in v0.0.4
func (m *EventApplicationOverserviced) XXX_Unmarshal(b []byte) error
type EventApplicationReimbursementRequest ¶ added in v0.0.10
type EventApplicationReimbursementRequest struct {
// The application address consuming onchain services requesting reimbursement.
ApplicationAddr string `protobuf:"bytes,1,opt,name=application_addr,json=applicationAddr,proto3" json:"application_addr,omitempty"`
// The supplier operator address providing onchain services
SupplierOperatorAddr string `protobuf:"bytes,2,opt,name=supplier_operator_addr,json=supplierOperatorAddr,proto3" json:"supplier_operator_addr,omitempty"`
// The supplier owner address providing onchain services
SupplierOwnerAddr string `protobuf:"bytes,3,opt,name=supplier_owner_addr,json=supplierOwnerAddr,proto3" json:"supplier_owner_addr,omitempty"`
// The service ID associated with the session where a claim was submitted.
ServiceId string `protobuf:"bytes,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// The session ID associated with the session where a claim was submitted.
SessionId string `protobuf:"bytes,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// The amount of uPOKT to be reimbursed to the application.
Amount string `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount,omitempty"`
}
EventApplicationReimbursementRequest is emitted when an application requests a reimbursement from the DAO. It is intended to prevent self dealing attacks when global inflation is enabled. TODO_DISTANT_FUTURE: Remove this once global inflation is disabled in perpetuity.
func (*EventApplicationReimbursementRequest) Descriptor ¶ added in v0.0.10
func (*EventApplicationReimbursementRequest) Descriptor() ([]byte, []int)
func (*EventApplicationReimbursementRequest) GetAmount ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) GetAmount() string
func (*EventApplicationReimbursementRequest) GetApplicationAddr ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) GetApplicationAddr() string
func (*EventApplicationReimbursementRequest) GetServiceId ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) GetServiceId() string
func (*EventApplicationReimbursementRequest) GetSessionId ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) GetSessionId() string
func (*EventApplicationReimbursementRequest) GetSupplierOperatorAddr ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) GetSupplierOperatorAddr() string
func (*EventApplicationReimbursementRequest) GetSupplierOwnerAddr ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) GetSupplierOwnerAddr() string
func (*EventApplicationReimbursementRequest) Marshal ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) Marshal() (dAtA []byte, err error)
func (*EventApplicationReimbursementRequest) MarshalTo ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) MarshalTo(dAtA []byte) (int, error)
func (*EventApplicationReimbursementRequest) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventApplicationReimbursementRequest) ProtoMessage ¶ added in v0.0.10
func (*EventApplicationReimbursementRequest) ProtoMessage()
func (*EventApplicationReimbursementRequest) Reset ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) Reset()
func (*EventApplicationReimbursementRequest) Size ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) Size() (n int)
func (*EventApplicationReimbursementRequest) String ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) String() string
func (*EventApplicationReimbursementRequest) Unmarshal ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) Unmarshal(dAtA []byte) error
func (*EventApplicationReimbursementRequest) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) XXX_DiscardUnknown()
func (*EventApplicationReimbursementRequest) XXX_Marshal ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventApplicationReimbursementRequest) XXX_Merge ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) XXX_Merge(src proto.Message)
func (*EventApplicationReimbursementRequest) XXX_Size ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) XXX_Size() int
func (*EventApplicationReimbursementRequest) XXX_Unmarshal ¶ added in v0.0.10
func (m *EventApplicationReimbursementRequest) XXX_Unmarshal(b []byte) error
type EventClaimDiscarded ¶ added in v0.1.23
type EventClaimDiscarded struct {
// The error that caused the claim to be discarded.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// The Service ID to which the claim corresponds.
ServiceId string `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// The address of the application which participated in the claimed session.
ApplicationAddress string `protobuf:"bytes,4,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"`
// The end block height of the session to which the claim corresponds.
SessionEndBlockHeight int64 `` /* 129-byte string literal not displayed */
// The validation status of the claim.
// DEV_NOTE: This field uses the integer representation of the ClaimProofStatus
// enum to minimize onchain disk utilization. This is necessary because event
// data is not always protobuf-encoded in the various places and formats that it
// appears in onchain leveldb databases.
// Enum values:
//
// PENDING_VALIDATION = 0;
// VALIDATED = 1;
// INVALID = 2;
ClaimProofStatusInt int32 `protobuf:"varint,6,opt,name=claim_proof_status_int,json=claimProofStatusInt,proto3" json:"claim_proof_status_int,omitempty"`
// The operator address of the supplier whose claim was discarded.
SupplierOperatorAddress string `` /* 132-byte string literal not displayed */
}
EventClaimDiscarded is emitted when a claim is discarded due to unexpected situations. It is used to prevent chain halts in favor of some missing claims.
func (*EventClaimDiscarded) Descriptor ¶ added in v0.1.23
func (*EventClaimDiscarded) Descriptor() ([]byte, []int)
func (*EventClaimDiscarded) GetApplicationAddress ¶ added in v0.1.27
func (m *EventClaimDiscarded) GetApplicationAddress() string
func (*EventClaimDiscarded) GetClaimProofStatusInt ¶ added in v0.1.27
func (m *EventClaimDiscarded) GetClaimProofStatusInt() int32
func (*EventClaimDiscarded) GetError ¶ added in v0.1.23
func (m *EventClaimDiscarded) GetError() string
func (*EventClaimDiscarded) GetServiceId ¶ added in v0.1.27
func (m *EventClaimDiscarded) GetServiceId() string
func (*EventClaimDiscarded) GetSessionEndBlockHeight ¶ added in v0.1.27
func (m *EventClaimDiscarded) GetSessionEndBlockHeight() int64
func (*EventClaimDiscarded) GetSupplierOperatorAddress ¶ added in v0.1.27
func (m *EventClaimDiscarded) GetSupplierOperatorAddress() string
func (*EventClaimDiscarded) Marshal ¶ added in v0.1.23
func (m *EventClaimDiscarded) Marshal() (dAtA []byte, err error)
func (*EventClaimDiscarded) MarshalTo ¶ added in v0.1.23
func (m *EventClaimDiscarded) MarshalTo(dAtA []byte) (int, error)
func (*EventClaimDiscarded) MarshalToSizedBuffer ¶ added in v0.1.23
func (m *EventClaimDiscarded) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventClaimDiscarded) ProtoMessage ¶ added in v0.1.23
func (*EventClaimDiscarded) ProtoMessage()
func (*EventClaimDiscarded) Reset ¶ added in v0.1.23
func (m *EventClaimDiscarded) Reset()
func (*EventClaimDiscarded) Size ¶ added in v0.1.23
func (m *EventClaimDiscarded) Size() (n int)
func (*EventClaimDiscarded) String ¶ added in v0.1.23
func (m *EventClaimDiscarded) String() string
func (*EventClaimDiscarded) Unmarshal ¶ added in v0.1.23
func (m *EventClaimDiscarded) Unmarshal(dAtA []byte) error
func (*EventClaimDiscarded) XXX_DiscardUnknown ¶ added in v0.1.23
func (m *EventClaimDiscarded) XXX_DiscardUnknown()
func (*EventClaimDiscarded) XXX_Marshal ¶ added in v0.1.23
func (m *EventClaimDiscarded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventClaimDiscarded) XXX_Merge ¶ added in v0.1.23
func (m *EventClaimDiscarded) XXX_Merge(src proto.Message)
func (*EventClaimDiscarded) XXX_Size ¶ added in v0.1.23
func (m *EventClaimDiscarded) XXX_Size() int
func (*EventClaimDiscarded) XXX_Unmarshal ¶ added in v0.1.23
func (m *EventClaimDiscarded) XXX_Unmarshal(b []byte) error
type EventClaimExpired ¶ added in v0.0.3
type EventClaimExpired struct {
// The reason why the claim expired, leading to a Supplier being penalized (i.e. burn).
ExpirationReason ClaimExpirationReason `` /* 145-byte string literal not displayed */
// Number of relays claimed to be in the session tree.
NumRelays uint64 `protobuf:"varint,3,opt,name=num_relays,json=numRelays,proto3" json:"num_relays"`
// Number of compute units claimed in the session tree.
// It is a function of the number of relays in the session tree and onchain parameters.
NumClaimedComputeUnits uint64 `protobuf:"varint,4,opt,name=num_claimed_compute_units,json=numClaimedComputeUnits,proto3" json:"num_claimed_compute_units"`
// Number of total estimated compute units of work done.
// It is a function of the number of claimed compute units and the relay difficulty multiplier.
NumEstimatedComputeUnits uint64 `` /* 128-byte string literal not displayed */
// The amount of uPOKT claimed for the work done.
// It is a function of the number of estimated compute units and the compute units to token multiplier.
ClaimedUpokt string `protobuf:"bytes,7,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt"`
// The Service ID to which the claim corresponds.
ServiceId string `protobuf:"bytes,8,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// The address of the application which participated in the claimed session.
ApplicationAddress string `protobuf:"bytes,9,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"`
// The end block height of the session to which the claim corresponds.
SessionEndBlockHeight int64 `` /* 130-byte string literal not displayed */
// The validation status of the claim.
// DEV_NOTE: This field uses the integer representation of the ClaimProofStatus
// enum to minimize onchain disk utilization. This is necessary because event
// data is not always protobuf-encoded in the various places and formats that it
// appears in onchain leveldb databases.
// Enum values:
// PENDING_VALIDATION = 0;
// VALIDATED = 1;
// INVALID = 2;
ClaimProofStatusInt int32 `protobuf:"varint,11,opt,name=claim_proof_status_int,json=claimProofStatusInt,proto3" json:"claim_proof_status_int,omitempty"`
// The operator address of the supplier whose claim expired.
SupplierOperatorAddress string `` /* 133-byte string literal not displayed */
}
EventClaimExpired is emitted during settlement when a claim expires. This is likely the result of a claim requiring an onchain proof not being submitted. The claim cannot be settled, leading to that work never being rewarded.
func (*EventClaimExpired) Descriptor ¶ added in v0.0.3
func (*EventClaimExpired) Descriptor() ([]byte, []int)
func (*EventClaimExpired) GetApplicationAddress ¶ added in v0.1.27
func (m *EventClaimExpired) GetApplicationAddress() string
func (*EventClaimExpired) GetClaimProofStatusInt ¶ added in v0.1.27
func (m *EventClaimExpired) GetClaimProofStatusInt() int32
func (*EventClaimExpired) GetClaimedUpokt ¶ added in v0.0.10
func (m *EventClaimExpired) GetClaimedUpokt() string
func (*EventClaimExpired) GetExpirationReason ¶ added in v0.0.5
func (m *EventClaimExpired) GetExpirationReason() ClaimExpirationReason
func (*EventClaimExpired) GetNumClaimedComputeUnits ¶ added in v0.0.10
func (m *EventClaimExpired) GetNumClaimedComputeUnits() uint64
func (*EventClaimExpired) GetNumEstimatedComputeUnits ¶ added in v0.0.10
func (m *EventClaimExpired) GetNumEstimatedComputeUnits() uint64
func (*EventClaimExpired) GetNumRelays ¶ added in v0.0.3
func (m *EventClaimExpired) GetNumRelays() uint64
func (*EventClaimExpired) GetServiceId ¶ added in v0.1.27
func (m *EventClaimExpired) GetServiceId() string
func (*EventClaimExpired) GetSessionEndBlockHeight ¶ added in v0.1.27
func (m *EventClaimExpired) GetSessionEndBlockHeight() int64
func (*EventClaimExpired) GetSupplierOperatorAddress ¶ added in v0.1.27
func (m *EventClaimExpired) GetSupplierOperatorAddress() string
func (*EventClaimExpired) Marshal ¶ added in v0.0.3
func (m *EventClaimExpired) Marshal() (dAtA []byte, err error)
func (*EventClaimExpired) MarshalTo ¶ added in v0.0.3
func (m *EventClaimExpired) MarshalTo(dAtA []byte) (int, error)
func (*EventClaimExpired) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *EventClaimExpired) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventClaimExpired) ProtoMessage ¶ added in v0.0.3
func (*EventClaimExpired) ProtoMessage()
func (*EventClaimExpired) Reset ¶ added in v0.0.3
func (m *EventClaimExpired) Reset()
func (*EventClaimExpired) Size ¶ added in v0.0.3
func (m *EventClaimExpired) Size() (n int)
func (*EventClaimExpired) String ¶ added in v0.0.3
func (m *EventClaimExpired) String() string
func (*EventClaimExpired) Unmarshal ¶ added in v0.0.3
func (m *EventClaimExpired) Unmarshal(dAtA []byte) error
func (*EventClaimExpired) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *EventClaimExpired) XXX_DiscardUnknown()
func (*EventClaimExpired) XXX_Marshal ¶ added in v0.0.3
func (m *EventClaimExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventClaimExpired) XXX_Merge ¶ added in v0.0.3
func (m *EventClaimExpired) XXX_Merge(src proto.Message)
func (*EventClaimExpired) XXX_Size ¶ added in v0.0.3
func (m *EventClaimExpired) XXX_Size() int
func (*EventClaimExpired) XXX_Unmarshal ¶ added in v0.0.3
func (m *EventClaimExpired) XXX_Unmarshal(b []byte) error
type EventClaimSettled ¶ added in v0.0.3
type EventClaimSettled struct {
// Whether a proof was required for the claim to be settled.
// DEV_NOTE: This field uses the integer representation of the ProofRequirementReason
// enum to minimize onchain disk utilization. This is necessary because event
// data is not always protobuf-encoded in the various places and formats that it
// appears in onchain leveldb databases.
// Enum values:
// NOT_REQUIRED = 0;
// PROBABILISTIC = 1;
// THRESHOLD = 2;
ProofRequirementInt int32 `protobuf:"varint,2,opt,name=proof_requirement_int,json=proofRequirementInt,proto3" json:"proof_requirement_int,omitempty"`
// Number of relays claimed to be in the session tree.
NumRelays uint64 `protobuf:"varint,3,opt,name=num_relays,json=numRelays,proto3" json:"num_relays"`
// Number of compute units claimed in the session tree.
// It is a function of the number of relays in the session tree and onchain parameters.
NumClaimedComputeUnits uint64 `protobuf:"varint,4,opt,name=num_claimed_compute_units,json=numClaimedComputeUnits,proto3" json:"num_claimed_compute_units"`
// Number of estimated compute units claimed in the session tree.
// It is a function of the number of claimed compute units and the relay difficulty multiplier for the particular service.
NumEstimatedComputeUnits uint64 `` /* 128-byte string literal not displayed */
// The uPOKT coin claimed to be rewarded for the work done as a function of
// the number of estimated compute units and the compute units to token multiplier.
ClaimedUpokt string `protobuf:"bytes,8,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt"`
// The Service ID to which the claim corresponds.
ServiceId string `protobuf:"bytes,9,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// The address of the application which participated in the claimed session.
ApplicationAddress string `protobuf:"bytes,10,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"`
// The end block height of the session to which the claim corresponds.
SessionEndBlockHeight int64 `` /* 130-byte string literal not displayed */
// The validation status of the claim.
// DEV_NOTE: This field uses the integer representation of the ClaimProofStatus
// enum to minimize onchain disk utilization. This is necessary because event
// data is not always protobuf-encoded in the various places and formats that it
// appears in onchain leveldb databases.
// Enum values:
// PENDING_VALIDATION = 0;
// VALIDATED = 1;
// INVALID = 2;
ClaimProofStatusInt int32 `protobuf:"varint,12,opt,name=claim_proof_status_int,json=claimProofStatusInt,proto3" json:"claim_proof_status_int,omitempty"`
// The operator address of the supplier who submitted the claim.
SupplierOperatorAddress string `` /* 133-byte string literal not displayed */
// A map of addresses to token amounts corresponding to the distribution of the reward tokens.
RewardDistribution map[string]string `` /* 192-byte string literal not displayed */
}
EventClaimSettled is emitted during settlement whenever a claim is successfully settled. It may or may not require a proof depending on various on-chain parameters and other factors.
func NewEventClaimSettled ¶ added in v0.1.27
func NewEventClaimSettled( numClaimRelays, numClaimComputeUnits, numEstimatedComputeUnits uint64, proofRequirement prooftypes.ProofRequirementReason, claimeduPOKT *cosmostypes.Coin, claimSettlementResult *ClaimSettlementResult, ) *EventClaimSettled
func (*EventClaimSettled) Descriptor ¶ added in v0.0.3
func (*EventClaimSettled) Descriptor() ([]byte, []int)
func (*EventClaimSettled) GetApplicationAddress ¶ added in v0.1.27
func (m *EventClaimSettled) GetApplicationAddress() string
func (*EventClaimSettled) GetClaimProofStatusInt ¶ added in v0.1.27
func (m *EventClaimSettled) GetClaimProofStatusInt() int32
func (*EventClaimSettled) GetClaimedUpokt ¶ added in v0.0.10
func (m *EventClaimSettled) GetClaimedUpokt() string
func (*EventClaimSettled) GetNumClaimedComputeUnits ¶ added in v0.0.10
func (m *EventClaimSettled) GetNumClaimedComputeUnits() uint64
func (*EventClaimSettled) GetNumEstimatedComputeUnits ¶ added in v0.0.10
func (m *EventClaimSettled) GetNumEstimatedComputeUnits() uint64
func (*EventClaimSettled) GetNumRelays ¶ added in v0.0.3
func (m *EventClaimSettled) GetNumRelays() uint64
func (*EventClaimSettled) GetProofRequirementInt ¶ added in v0.1.27
func (m *EventClaimSettled) GetProofRequirementInt() int32
func (*EventClaimSettled) GetRewardDistribution ¶ added in v0.1.27
func (m *EventClaimSettled) GetRewardDistribution() map[string]string
func (*EventClaimSettled) GetServiceId ¶ added in v0.1.27
func (m *EventClaimSettled) GetServiceId() string
func (*EventClaimSettled) GetSessionEndBlockHeight ¶ added in v0.1.27
func (m *EventClaimSettled) GetSessionEndBlockHeight() int64
func (*EventClaimSettled) GetSupplierOperatorAddress ¶ added in v0.1.27
func (m *EventClaimSettled) GetSupplierOperatorAddress() string
func (*EventClaimSettled) Marshal ¶ added in v0.0.3
func (m *EventClaimSettled) Marshal() (dAtA []byte, err error)
func (*EventClaimSettled) MarshalTo ¶ added in v0.0.3
func (m *EventClaimSettled) MarshalTo(dAtA []byte) (int, error)
func (*EventClaimSettled) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *EventClaimSettled) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventClaimSettled) ProtoMessage ¶ added in v0.0.3
func (*EventClaimSettled) ProtoMessage()
func (*EventClaimSettled) Reset ¶ added in v0.0.3
func (m *EventClaimSettled) Reset()
func (*EventClaimSettled) Size ¶ added in v0.0.3
func (m *EventClaimSettled) Size() (n int)
func (*EventClaimSettled) String ¶ added in v0.0.3
func (m *EventClaimSettled) String() string
func (*EventClaimSettled) Unmarshal ¶ added in v0.0.3
func (m *EventClaimSettled) Unmarshal(dAtA []byte) error
func (*EventClaimSettled) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *EventClaimSettled) XXX_DiscardUnknown()
func (*EventClaimSettled) XXX_Marshal ¶ added in v0.0.3
func (m *EventClaimSettled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventClaimSettled) XXX_Merge ¶ added in v0.0.3
func (m *EventClaimSettled) XXX_Merge(src proto.Message)
func (*EventClaimSettled) XXX_Size ¶ added in v0.0.3
func (m *EventClaimSettled) XXX_Size() int
func (*EventClaimSettled) XXX_Unmarshal ¶ added in v0.0.3
func (m *EventClaimSettled) XXX_Unmarshal(b []byte) error
type EventSupplierSlashed ¶ added in v0.0.10
type EventSupplierSlashed struct {
// Amount slashed from the supplier's stake.
// A function of the claim size, supplier stake, and various onchain parameters.
ProofMissingPenalty string `protobuf:"bytes,3,opt,name=proof_missing_penalty,json=proofMissingPenalty,proto3" json:"proof_missing_penalty,omitempty"`
// The Service ID to which the claim corresponds.
ServiceId string `protobuf:"bytes,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// The address of the application which participated in the claimed session.
ApplicationAddress string `protobuf:"bytes,5,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"`
// The end block height of the session to which the claim corresponds.
SessionEndBlockHeight int64 `` /* 129-byte string literal not displayed */
// The validation status of the claim.
// DEV_NOTE: This field uses the integer representation of the ClaimProofStatus
// enum to minimize onchain disk utilization. This is necessary because event
// data is not always protobuf-encoded in the various places and formats that it
// appears in onchain leveldb databases.
// Enum values:
//
// PENDING_VALIDATION = 0;
// VALIDATED = 1;
// INVALID = 2;
ClaimProofStatusInt int32 `protobuf:"varint,7,opt,name=claim_proof_status_int,json=claimProofStatusInt,proto3" json:"claim_proof_status_int,omitempty"`
// The operator address of the supplier that was slashed.
SupplierOperatorAddress string `` /* 132-byte string literal not displayed */
}
EventSupplierSlashed is emitted when a supplier is slashed. This can happen for in cases such as missing or invalid proofs for submitted claims.
func (*EventSupplierSlashed) Descriptor ¶ added in v0.0.10
func (*EventSupplierSlashed) Descriptor() ([]byte, []int)
func (*EventSupplierSlashed) GetApplicationAddress ¶ added in v0.1.27
func (m *EventSupplierSlashed) GetApplicationAddress() string
func (*EventSupplierSlashed) GetClaimProofStatusInt ¶ added in v0.1.27
func (m *EventSupplierSlashed) GetClaimProofStatusInt() int32
func (*EventSupplierSlashed) GetProofMissingPenalty ¶ added in v0.0.11
func (m *EventSupplierSlashed) GetProofMissingPenalty() string
func (*EventSupplierSlashed) GetServiceId ¶ added in v0.1.27
func (m *EventSupplierSlashed) GetServiceId() string
func (*EventSupplierSlashed) GetSessionEndBlockHeight ¶ added in v0.1.27
func (m *EventSupplierSlashed) GetSessionEndBlockHeight() int64
func (*EventSupplierSlashed) GetSupplierOperatorAddress ¶ added in v0.1.27
func (m *EventSupplierSlashed) GetSupplierOperatorAddress() string
func (*EventSupplierSlashed) Marshal ¶ added in v0.0.10
func (m *EventSupplierSlashed) Marshal() (dAtA []byte, err error)
func (*EventSupplierSlashed) MarshalTo ¶ added in v0.0.10
func (m *EventSupplierSlashed) MarshalTo(dAtA []byte) (int, error)
func (*EventSupplierSlashed) MarshalToSizedBuffer ¶ added in v0.0.10
func (m *EventSupplierSlashed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSupplierSlashed) ProtoMessage ¶ added in v0.0.10
func (*EventSupplierSlashed) ProtoMessage()
func (*EventSupplierSlashed) Reset ¶ added in v0.0.10
func (m *EventSupplierSlashed) Reset()
func (*EventSupplierSlashed) Size ¶ added in v0.0.10
func (m *EventSupplierSlashed) Size() (n int)
func (*EventSupplierSlashed) String ¶ added in v0.0.10
func (m *EventSupplierSlashed) String() string
func (*EventSupplierSlashed) Unmarshal ¶ added in v0.0.10
func (m *EventSupplierSlashed) Unmarshal(dAtA []byte) error
func (*EventSupplierSlashed) XXX_DiscardUnknown ¶ added in v0.0.10
func (m *EventSupplierSlashed) XXX_DiscardUnknown()
func (*EventSupplierSlashed) XXX_Marshal ¶ added in v0.0.10
func (m *EventSupplierSlashed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSupplierSlashed) XXX_Merge ¶ added in v0.0.10
func (m *EventSupplierSlashed) XXX_Merge(src proto.Message)
func (*EventSupplierSlashed) XXX_Size ¶ added in v0.0.10
func (m *EventSupplierSlashed) XXX_Size() int
func (*EventSupplierSlashed) XXX_Unmarshal ¶ added in v0.0.10
func (m *EventSupplierSlashed) XXX_Unmarshal(b []byte) error
type GenesisState ¶ added in v0.0.3
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState defines the tokenomics module's genesis state.
func DefaultGenesis ¶ added in v0.0.3
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶ added in v0.0.3
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶ added in v0.0.3
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶ added in v0.0.3
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.0.3
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.0.3
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.0.3
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.0.3
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.0.3
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.0.3
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶ added in v0.0.3
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.0.3
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.0.3
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.0.3
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MigrationKeeper ¶ added in v0.0.14
type MigrationKeeper interface {
// Setters
ImportFromMorseAccountState(ctx context.Context, morseAccountState *migrationtypes.MorseAccountState)
// Getters
GetMorseClaimableAccount(ctx context.Context, morseHexAddress string) (morseAccount migrationtypes.MorseClaimableAccount, isFound bool)
GetAllMorseClaimableAccounts(ctx context.Context) (morseAccounts []migrationtypes.MorseClaimableAccount)
}
type MintAllocationPercentages ¶ added in v0.0.11
type MintAllocationPercentages struct {
// dao - % of newley minted tokens sent to the DAO reward address.
Dao float64 `protobuf:"fixed64,1,opt,name=dao,proto3" json:"dao" yaml:"dao"`
// proposer - % of newley minted tokens sent to the block proposer (i.e. validator0 account address.
Proposer float64 `protobuf:"fixed64,2,opt,name=proposer,proto3" json:"proposer" yaml:"proposer"`
// supplier - % of newley minted tokens sent to the block supplier account address.
Supplier float64 `protobuf:"fixed64,3,opt,name=supplier,proto3" json:"supplier" yaml:"supplier"`
// source_owner - % of newley minted tokens sent to the service source owner account address.
SourceOwner float64 `protobuf:"fixed64,4,opt,name=source_owner,json=sourceOwner,proto3" json:"source_owner" yaml:"source_owner"`
// application - % of newley minted tokens sent to the application account address.
Application float64 `protobuf:"fixed64,5,opt,name=application,proto3" json:"application" yaml:"application"`
}
MintAllocationPercentages captures the distribution of newly minted tokens. The sum of all new tokens minted must equal 1. GlobalMintTLM: Only used by the GlobalMintTLM at the end of claim settlement. TODO_DISTANT_FUTURE: Remove this once global inflation is disabled in perpetuity.
func (*MintAllocationPercentages) Descriptor ¶ added in v0.0.11
func (*MintAllocationPercentages) Descriptor() ([]byte, []int)
func (*MintAllocationPercentages) Equal ¶ added in v0.0.11
func (this *MintAllocationPercentages) Equal(that interface{}) bool
func (*MintAllocationPercentages) GetApplication ¶ added in v0.0.11
func (m *MintAllocationPercentages) GetApplication() float64
func (*MintAllocationPercentages) GetDao ¶ added in v0.0.11
func (m *MintAllocationPercentages) GetDao() float64
func (*MintAllocationPercentages) GetProposer ¶ added in v0.0.11
func (m *MintAllocationPercentages) GetProposer() float64
func (*MintAllocationPercentages) GetSourceOwner ¶ added in v0.0.11
func (m *MintAllocationPercentages) GetSourceOwner() float64
func (*MintAllocationPercentages) GetSupplier ¶ added in v0.0.11
func (m *MintAllocationPercentages) GetSupplier() float64
func (*MintAllocationPercentages) Marshal ¶ added in v0.0.11
func (m *MintAllocationPercentages) Marshal() (dAtA []byte, err error)
func (*MintAllocationPercentages) MarshalTo ¶ added in v0.0.11
func (m *MintAllocationPercentages) MarshalTo(dAtA []byte) (int, error)
func (*MintAllocationPercentages) MarshalToSizedBuffer ¶ added in v0.0.11
func (m *MintAllocationPercentages) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintAllocationPercentages) ProtoMessage ¶ added in v0.0.11
func (*MintAllocationPercentages) ProtoMessage()
func (*MintAllocationPercentages) Reset ¶ added in v0.0.11
func (m *MintAllocationPercentages) Reset()
func (*MintAllocationPercentages) Size ¶ added in v0.0.11
func (m *MintAllocationPercentages) Size() (n int)
func (*MintAllocationPercentages) String ¶ added in v0.0.11
func (m *MintAllocationPercentages) String() string
func (*MintAllocationPercentages) Sum ¶ added in v0.0.11
func (m *MintAllocationPercentages) Sum() float64
Sum returns the sum of all mint allocation percentages. It uses basis points internally for exact arithmetic validation. TODO_IMPROVE(@red-0ne): Use string % representations and big.Rat in the future.
func (*MintAllocationPercentages) Unmarshal ¶ added in v0.0.11
func (m *MintAllocationPercentages) Unmarshal(dAtA []byte) error
func (*MintAllocationPercentages) XXX_DiscardUnknown ¶ added in v0.0.11
func (m *MintAllocationPercentages) XXX_DiscardUnknown()
func (*MintAllocationPercentages) XXX_Marshal ¶ added in v0.0.11
func (m *MintAllocationPercentages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintAllocationPercentages) XXX_Merge ¶ added in v0.0.11
func (m *MintAllocationPercentages) XXX_Merge(src proto.Message)
func (*MintAllocationPercentages) XXX_Size ¶ added in v0.0.11
func (m *MintAllocationPercentages) XXX_Size() int
func (*MintAllocationPercentages) XXX_Unmarshal ¶ added in v0.0.11
func (m *MintAllocationPercentages) XXX_Unmarshal(b []byte) error
type MintBurnOp ¶ added in v0.0.11
type MintBurnOp struct {
OpReason SettlementOpReason `protobuf:"varint,1,opt,name=op_reason,json=opReason,proto3,enum=pocket.tokenomics.SettlementOpReason" json:"op_reason"`
DestinationModule string `protobuf:"bytes,2,opt,name=DestinationModule,proto3" json:"destination_module"`
Coin types1.Coin `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin"`
}
MintBurnOp holds the parameters of a single mint or burn operation.
func (*MintBurnOp) Descriptor ¶ added in v0.0.11
func (*MintBurnOp) Descriptor() ([]byte, []int)
func (*MintBurnOp) GetCoin ¶ added in v0.0.11
func (m *MintBurnOp) GetCoin() types1.Coin
func (*MintBurnOp) GetDestinationModule ¶ added in v0.0.11
func (m *MintBurnOp) GetDestinationModule() string
func (*MintBurnOp) GetOpReason ¶ added in v0.0.11
func (m *MintBurnOp) GetOpReason() SettlementOpReason
func (*MintBurnOp) Marshal ¶ added in v0.0.11
func (m *MintBurnOp) Marshal() (dAtA []byte, err error)
func (*MintBurnOp) MarshalTo ¶ added in v0.0.11
func (m *MintBurnOp) MarshalTo(dAtA []byte) (int, error)
func (*MintBurnOp) MarshalToSizedBuffer ¶ added in v0.0.11
func (m *MintBurnOp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintBurnOp) ProtoMessage ¶ added in v0.0.11
func (*MintBurnOp) ProtoMessage()
func (*MintBurnOp) Reset ¶ added in v0.0.11
func (m *MintBurnOp) Reset()
func (*MintBurnOp) Size ¶ added in v0.0.11
func (m *MintBurnOp) Size() (n int)
func (*MintBurnOp) String ¶ added in v0.0.11
func (m *MintBurnOp) String() string
func (*MintBurnOp) Unmarshal ¶ added in v0.0.11
func (m *MintBurnOp) Unmarshal(dAtA []byte) error
func (*MintBurnOp) Validate ¶ added in v0.0.11
func (m *MintBurnOp) Validate() error
Validate returns an error if the MintBurnOperation has either an unspecified TLM or TLMReason.
func (*MintBurnOp) XXX_DiscardUnknown ¶ added in v0.0.11
func (m *MintBurnOp) XXX_DiscardUnknown()
func (*MintBurnOp) XXX_Marshal ¶ added in v0.0.11
func (m *MintBurnOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintBurnOp) XXX_Merge ¶ added in v0.0.11
func (m *MintBurnOp) XXX_Merge(src proto.Message)
func (*MintBurnOp) XXX_Size ¶ added in v0.0.11
func (m *MintBurnOp) XXX_Size() int
func (*MintBurnOp) XXX_Unmarshal ¶ added in v0.0.11
func (m *MintBurnOp) XXX_Unmarshal(b []byte) error
type MintEqualsBurnClaimDistribution ¶ added in v0.1.27
type MintEqualsBurnClaimDistribution struct {
// dao - % of claimable tokens sent to the DAO reward address.
Dao float64 `protobuf:"fixed64,1,opt,name=dao,proto3" json:"dao" yaml:"dao"`
// TODO_TECHDEBT: Rename "proposer" to "validators" to reflect the work done in #1753.
// This will span all references to the term "proposer" across documentation, functions, protobufs, variables, tooling, etc..
//
// proposer - % of claimable tokens sent to the block proposer (i.e. validator0) account address.
Proposer float64 `protobuf:"fixed64,2,opt,name=proposer,proto3" json:"proposer" yaml:"proposer"`
// supplier - % of claimable tokens sent to the block supplier account address.
Supplier float64 `protobuf:"fixed64,3,opt,name=supplier,proto3" json:"supplier" yaml:"supplier"`
// source_owner - % of claimable tokens sent to the service source owner account address.
SourceOwner float64 `protobuf:"fixed64,4,opt,name=source_owner,json=sourceOwner,proto3" json:"source_owner" yaml:"source_owner"`
// application - % of claimable tokens sent to the application account address.
Application float64 `protobuf:"fixed64,5,opt,name=application,proto3" json:"application" yaml:"application"`
}
MintEqualsBurnClaimDistribution captures the distribution of claimable tokens. The sum of all tokens being burnt from the application's stake must equal 1. GlobalMintEqualsBurnTLM: Only used by the GlobalMintEqualsBurnTLM at the end of claim settlement.
func (*MintEqualsBurnClaimDistribution) Descriptor ¶ added in v0.1.27
func (*MintEqualsBurnClaimDistribution) Descriptor() ([]byte, []int)
func (*MintEqualsBurnClaimDistribution) Equal ¶ added in v0.1.27
func (this *MintEqualsBurnClaimDistribution) Equal(that interface{}) bool
func (*MintEqualsBurnClaimDistribution) GetApplication ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) GetApplication() float64
func (*MintEqualsBurnClaimDistribution) GetDao ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) GetDao() float64
func (*MintEqualsBurnClaimDistribution) GetProposer ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) GetProposer() float64
func (*MintEqualsBurnClaimDistribution) GetSourceOwner ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) GetSourceOwner() float64
func (*MintEqualsBurnClaimDistribution) GetSupplier ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) GetSupplier() float64
func (*MintEqualsBurnClaimDistribution) Marshal ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) Marshal() (dAtA []byte, err error)
func (*MintEqualsBurnClaimDistribution) MarshalTo ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) MarshalTo(dAtA []byte) (int, error)
func (*MintEqualsBurnClaimDistribution) MarshalToSizedBuffer ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintEqualsBurnClaimDistribution) ProtoMessage ¶ added in v0.1.27
func (*MintEqualsBurnClaimDistribution) ProtoMessage()
func (*MintEqualsBurnClaimDistribution) Reset ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) Reset()
func (*MintEqualsBurnClaimDistribution) Size ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) Size() (n int)
func (*MintEqualsBurnClaimDistribution) String ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) String() string
func (*MintEqualsBurnClaimDistribution) Sum ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) Sum() float64
Sum returns the sum of all mint equals burn claim distribution percentages. It uses basis points internally for exact arithmetic validation. TODO_IMPROVE(@red-0ne): Use string % representations and big.Rat in the future.
func (*MintEqualsBurnClaimDistribution) Unmarshal ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) Unmarshal(dAtA []byte) error
func (*MintEqualsBurnClaimDistribution) XXX_DiscardUnknown ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) XXX_DiscardUnknown()
func (*MintEqualsBurnClaimDistribution) XXX_Marshal ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintEqualsBurnClaimDistribution) XXX_Merge ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) XXX_Merge(src proto.Message)
func (*MintEqualsBurnClaimDistribution) XXX_Size ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) XXX_Size() int
func (*MintEqualsBurnClaimDistribution) XXX_Unmarshal ¶ added in v0.1.27
func (m *MintEqualsBurnClaimDistribution) XXX_Unmarshal(b []byte) error
type ModToAcctTransfer ¶ added in v0.0.11
type ModToAcctTransfer struct {
OpReason SettlementOpReason `protobuf:"varint,1,opt,name=op_reason,json=opReason,proto3,enum=pocket.tokenomics.SettlementOpReason" json:"op_reason"`
SenderModule string `protobuf:"bytes,2,opt,name=SenderModule,proto3" json:"sender_module"`
RecipientAddress string `protobuf:"bytes,3,opt,name=RecipientAddress,proto3" json:"recipient_address"`
Coin types1.Coin `protobuf:"bytes,4,opt,name=coin,proto3" json:"coin"`
}
ModToAcctTransfer holds the parameters of a single module to account transfer operation.
func (*ModToAcctTransfer) Descriptor ¶ added in v0.0.11
func (*ModToAcctTransfer) Descriptor() ([]byte, []int)
func (*ModToAcctTransfer) GetCoin ¶ added in v0.0.11
func (m *ModToAcctTransfer) GetCoin() types1.Coin
func (*ModToAcctTransfer) GetOpReason ¶ added in v0.0.11
func (m *ModToAcctTransfer) GetOpReason() SettlementOpReason
func (*ModToAcctTransfer) GetRecipientAddress ¶ added in v0.0.11
func (m *ModToAcctTransfer) GetRecipientAddress() string
func (*ModToAcctTransfer) GetSenderModule ¶ added in v0.0.11
func (m *ModToAcctTransfer) GetSenderModule() string
func (*ModToAcctTransfer) Marshal ¶ added in v0.0.11
func (m *ModToAcctTransfer) Marshal() (dAtA []byte, err error)
func (*ModToAcctTransfer) MarshalTo ¶ added in v0.0.11
func (m *ModToAcctTransfer) MarshalTo(dAtA []byte) (int, error)
func (*ModToAcctTransfer) MarshalToSizedBuffer ¶ added in v0.0.11
func (m *ModToAcctTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModToAcctTransfer) ProtoMessage ¶ added in v0.0.11
func (*ModToAcctTransfer) ProtoMessage()
func (*ModToAcctTransfer) Reset ¶ added in v0.0.11
func (m *ModToAcctTransfer) Reset()
func (*ModToAcctTransfer) Size ¶ added in v0.0.11
func (m *ModToAcctTransfer) Size() (n int)
func (*ModToAcctTransfer) String ¶ added in v0.0.11
func (m *ModToAcctTransfer) String() string
func (*ModToAcctTransfer) Unmarshal ¶ added in v0.0.11
func (m *ModToAcctTransfer) Unmarshal(dAtA []byte) error
func (*ModToAcctTransfer) Validate ¶ added in v0.0.11
func (m *ModToAcctTransfer) Validate() error
Validate returns an error if the ModToAcctTransfer has either an unspecified TLM or TLMReason.
func (*ModToAcctTransfer) XXX_DiscardUnknown ¶ added in v0.0.11
func (m *ModToAcctTransfer) XXX_DiscardUnknown()
func (*ModToAcctTransfer) XXX_Marshal ¶ added in v0.0.11
func (m *ModToAcctTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModToAcctTransfer) XXX_Merge ¶ added in v0.0.11
func (m *ModToAcctTransfer) XXX_Merge(src proto.Message)
func (*ModToAcctTransfer) XXX_Size ¶ added in v0.0.11
func (m *ModToAcctTransfer) XXX_Size() int
func (*ModToAcctTransfer) XXX_Unmarshal ¶ added in v0.0.11
func (m *ModToAcctTransfer) XXX_Unmarshal(b []byte) error
type ModToModTransfer ¶ added in v0.0.11
type ModToModTransfer struct {
OpReason SettlementOpReason `protobuf:"varint,1,opt,name=op_reason,json=opReason,proto3,enum=pocket.tokenomics.SettlementOpReason" json:"op_reason"`
SenderModule string `protobuf:"bytes,2,opt,name=SenderModule,proto3" json:"sender_module"`
RecipientModule string `protobuf:"bytes,3,opt,name=RecipientModule,proto3" json:"recipient_module"`
Coin types1.Coin `protobuf:"bytes,4,opt,name=coin,proto3" json:"coin"`
}
ModToModTransfer holds the parameters of a single module to module transfer operation.
func (*ModToModTransfer) Descriptor ¶ added in v0.0.11
func (*ModToModTransfer) Descriptor() ([]byte, []int)
func (*ModToModTransfer) GetCoin ¶ added in v0.0.11
func (m *ModToModTransfer) GetCoin() types1.Coin
func (*ModToModTransfer) GetOpReason ¶ added in v0.0.11
func (m *ModToModTransfer) GetOpReason() SettlementOpReason
func (*ModToModTransfer) GetRecipientModule ¶ added in v0.0.11
func (m *ModToModTransfer) GetRecipientModule() string
func (*ModToModTransfer) GetSenderModule ¶ added in v0.0.11
func (m *ModToModTransfer) GetSenderModule() string
func (*ModToModTransfer) Marshal ¶ added in v0.0.11
func (m *ModToModTransfer) Marshal() (dAtA []byte, err error)
func (*ModToModTransfer) MarshalTo ¶ added in v0.0.11
func (m *ModToModTransfer) MarshalTo(dAtA []byte) (int, error)
func (*ModToModTransfer) MarshalToSizedBuffer ¶ added in v0.0.11
func (m *ModToModTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModToModTransfer) ProtoMessage ¶ added in v0.0.11
func (*ModToModTransfer) ProtoMessage()
func (*ModToModTransfer) Reset ¶ added in v0.0.11
func (m *ModToModTransfer) Reset()
func (*ModToModTransfer) Size ¶ added in v0.0.11
func (m *ModToModTransfer) Size() (n int)
func (*ModToModTransfer) String ¶ added in v0.0.11
func (m *ModToModTransfer) String() string
func (*ModToModTransfer) Unmarshal ¶ added in v0.0.11
func (m *ModToModTransfer) Unmarshal(dAtA []byte) error
func (*ModToModTransfer) Validate ¶ added in v0.0.11
func (m *ModToModTransfer) Validate() error
Validate returns an error if the ModToModTransfer has either an unspecified TLM or TLMReason.
func (*ModToModTransfer) XXX_DiscardUnknown ¶ added in v0.0.11
func (m *ModToModTransfer) XXX_DiscardUnknown()
func (*ModToModTransfer) XXX_Marshal ¶ added in v0.0.11
func (m *ModToModTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModToModTransfer) XXX_Merge ¶ added in v0.0.11
func (m *ModToModTransfer) XXX_Merge(src proto.Message)
func (*ModToModTransfer) XXX_Size ¶ added in v0.0.11
func (m *ModToModTransfer) XXX_Size() int
func (*ModToModTransfer) XXX_Unmarshal ¶ added in v0.0.11
func (m *ModToModTransfer) XXX_Unmarshal(b []byte) error
type Module ¶ added in v0.1.27
type Module struct {
// authority defines the custom module authority.
// If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
Module is the config object for the module.
func (*Module) Descriptor ¶ added in v0.1.27
func (*Module) GetAuthority ¶ added in v0.1.27
func (*Module) MarshalToSizedBuffer ¶ added in v0.1.27
func (*Module) ProtoMessage ¶ added in v0.1.27
func (*Module) ProtoMessage()
func (*Module) XXX_DiscardUnknown ¶ added in v0.1.27
func (m *Module) XXX_DiscardUnknown()
func (*Module) XXX_Marshal ¶ added in v0.1.27
func (*Module) XXX_Unmarshal ¶ added in v0.1.27
type MsgClient ¶ added in v0.0.3
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
UpdateParam(ctx context.Context, in *MsgUpdateParam, opts ...grpc.CallOption) (*MsgUpdateParamResponse, 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.0.3
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶ added in v0.0.3
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, error)
}
MsgServer is the server API for Msg service.
type MsgUpdateParam ¶ added in v0.0.3
type MsgUpdateParam struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// The (name, as_type) tuple must match the corresponding name and type as specified in the `Params` message in `proof/params.proto.`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to AsType:
// *MsgUpdateParam_AsMintAllocationPercentages
// *MsgUpdateParam_AsString
// *MsgUpdateParam_AsFloat
// *MsgUpdateParam_AsMintEqualsBurnClaimDistribution
AsType isMsgUpdateParam_AsType `protobuf_oneof:"as_type"`
}
MsgUpdateParam is the Msg/UpdateParam request type to update a single param.
func NewMsgUpdateParam ¶ added in v0.0.3
func NewMsgUpdateParam(authority string, name string, asTypeAny any) (*MsgUpdateParam, error)
func (*MsgUpdateParam) Descriptor ¶ added in v0.0.3
func (*MsgUpdateParam) Descriptor() ([]byte, []int)
func (*MsgUpdateParam) GetAsFloat ¶ added in v0.0.12
func (m *MsgUpdateParam) GetAsFloat() float64
func (*MsgUpdateParam) GetAsMintAllocationPercentages ¶ added in v0.0.11
func (m *MsgUpdateParam) GetAsMintAllocationPercentages() *MintAllocationPercentages
func (*MsgUpdateParam) GetAsMintEqualsBurnClaimDistribution ¶ added in v0.1.27
func (m *MsgUpdateParam) GetAsMintEqualsBurnClaimDistribution() *MintEqualsBurnClaimDistribution
func (*MsgUpdateParam) GetAsString ¶ added in v0.0.3
func (m *MsgUpdateParam) GetAsString() string
func (*MsgUpdateParam) GetAsType ¶ added in v0.0.3
func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
func (*MsgUpdateParam) GetAuthority ¶ added in v0.0.3
func (m *MsgUpdateParam) GetAuthority() string
func (*MsgUpdateParam) GetName ¶ added in v0.0.3
func (m *MsgUpdateParam) GetName() string
func (*MsgUpdateParam) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParam) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParam) ProtoMessage()
func (*MsgUpdateParam) Reset ¶ added in v0.0.3
func (m *MsgUpdateParam) Reset()
func (*MsgUpdateParam) Size ¶ added in v0.0.3
func (m *MsgUpdateParam) Size() (n int)
func (*MsgUpdateParam) String ¶ added in v0.0.3
func (m *MsgUpdateParam) String() string
func (*MsgUpdateParam) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error
func (*MsgUpdateParam) ValidateBasic ¶ added in v0.0.3
func (msg *MsgUpdateParam) ValidateBasic() error
ValidateBasic performs a basic validation of the MsgUpdateParam fields. It ensures the parameter name is supported and the parameter type matches the expected type for a given parameter name.
func (*MsgUpdateParam) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParam) XXX_DiscardUnknown()
func (*MsgUpdateParam) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParam) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParam) XXX_Merge(src proto.Message)
func (*MsgUpdateParam) XXX_OneofWrappers ¶ added in v0.0.3
func (*MsgUpdateParam) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*MsgUpdateParam) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParam) XXX_Size() int
func (*MsgUpdateParam) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParam) XXX_Unmarshal(b []byte) error
type MsgUpdateParamResponse ¶ added in v0.0.3
type MsgUpdateParamResponse struct {
}
MsgUpdateParamResponse defines the response structure for executing a MsgUpdateParam message after a single param update.
func (*MsgUpdateParamResponse) Descriptor ¶ added in v0.0.3
func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamResponse) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamResponse) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamResponse) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParamResponse) ProtoMessage()
func (*MsgUpdateParamResponse) Reset ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) Reset()
func (*MsgUpdateParamResponse) Size ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) Size() (n int)
func (*MsgUpdateParamResponse) String ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) String() string
func (*MsgUpdateParamResponse) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamResponse) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamResponse) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamResponse) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) XXX_Size() int
func (*MsgUpdateParamResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParam_AsFloat ¶ added in v0.0.12
type MsgUpdateParam_AsFloat struct {
AsFloat float64 `protobuf:"fixed64,5,opt,name=as_float,json=asFloat,proto3,oneof" json:"as_float"`
}
func (*MsgUpdateParam_AsFloat) MarshalTo ¶ added in v0.0.12
func (m *MsgUpdateParam_AsFloat) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsFloat) MarshalToSizedBuffer ¶ added in v0.0.12
func (m *MsgUpdateParam_AsFloat) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsFloat) Size ¶ added in v0.0.12
func (m *MsgUpdateParam_AsFloat) Size() (n int)
type MsgUpdateParam_AsMintAllocationPercentages ¶ added in v0.0.11
type MsgUpdateParam_AsMintAllocationPercentages struct {
AsMintAllocationPercentages *MintAllocationPercentages `` /* 180-byte string literal not displayed */
}
func (*MsgUpdateParam_AsMintAllocationPercentages) MarshalTo ¶ added in v0.0.11
func (m *MsgUpdateParam_AsMintAllocationPercentages) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsMintAllocationPercentages) MarshalToSizedBuffer ¶ added in v0.0.11
func (m *MsgUpdateParam_AsMintAllocationPercentages) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsMintAllocationPercentages) Size ¶ added in v0.0.11
func (m *MsgUpdateParam_AsMintAllocationPercentages) Size() (n int)
type MsgUpdateParam_AsMintEqualsBurnClaimDistribution ¶ added in v0.1.27
type MsgUpdateParam_AsMintEqualsBurnClaimDistribution struct {
AsMintEqualsBurnClaimDistribution *MintEqualsBurnClaimDistribution `` /* 210-byte string literal not displayed */
}
func (*MsgUpdateParam_AsMintEqualsBurnClaimDistribution) MarshalTo ¶ added in v0.1.27
func (m *MsgUpdateParam_AsMintEqualsBurnClaimDistribution) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsMintEqualsBurnClaimDistribution) MarshalToSizedBuffer ¶ added in v0.1.27
func (m *MsgUpdateParam_AsMintEqualsBurnClaimDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsMintEqualsBurnClaimDistribution) Size ¶ added in v0.1.27
func (m *MsgUpdateParam_AsMintEqualsBurnClaimDistribution) Size() (n int)
type MsgUpdateParam_AsString ¶ added in v0.0.3
type MsgUpdateParam_AsString struct {
AsString string `protobuf:"bytes,4,opt,name=as_string,json=asString,proto3,oneof" json:"as_string"`
}
func (*MsgUpdateParam_AsString) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParam_AsString) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsString) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParam_AsString) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParam_AsString) Size ¶ added in v0.0.3
func (m *MsgUpdateParam_AsString) Size() (n int)
type MsgUpdateParams ¶ added in v0.0.3
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the tokenomics parameters to update.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
MsgUpdateParams is the Msg/UpdateParams request type to update all params at once.
func NewMsgUpdateParams ¶ added in v0.0.3
func NewMsgUpdateParams(authority string) *MsgUpdateParams
func (*MsgUpdateParams) Descriptor ¶ added in v0.0.3
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.0.3
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.0.3
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.0.3
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v0.0.3
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.0.3
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v0.0.3
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.0.3
type MsgUpdateParamsResponse struct {
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.0.3
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.0.3
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.0.3
type Params struct {
// dao_reward_address is where the DAO's portion of claims submitted are distributed.
DaoRewardAddress string `` /* 127-byte string literal not displayed */
// mint_allocation_percentages represents the distribution of newly minted tokens.
// GlobalMintTLM: Only used by the GlobalMintTLM at the end of claim settlement.
MintAllocationPercentages MintAllocationPercentages `` /* 163-byte string literal not displayed */
// global_inflation_per_claim is the percentage of a claim's claimable uPOKT amount to be minted on settlement.
// GlobalMintTLM: Only used by the GlobalMintTLM at the end of claim settlement.
GlobalInflationPerClaim float64 `` /* 160-byte string literal not displayed */
// mint_equals_burn_claim_distribution controls how the settlement amount is distributed
// when global inflation is disabled (global_inflation_per_claim = 0).
// MintEqualsBurnTLM: Only used by the MintEqualsBurnTLM at the end of claim settlement.
MintEqualsBurnClaimDistribution MintEqualsBurnClaimDistribution `` /* 193-byte string literal not displayed */
// mint_ratio is the proportion of burned tokens to mint (0.0 < mint_ratio <= 1.0).
// PIP-41: A value of 0.975 means 97.5% of burned tokens are minted, 2.5% permanently removed.
// MintEqualsBurnTLM: Only used by the MintEqualsBurnTLM at the end of claim settlement.
// Default: 1.0 (no deflation - mint equals burn for backward compatibility)
MintRatio float64 `protobuf:"fixed64,9,opt,name=mint_ratio,json=mintRatio,proto3" json:"mint_ratio" yaml:"mint_ratio"`
}
Params defines the parameters for the tokenomics module.
func DefaultParams ¶ added in v0.0.3
func DefaultParams() Params
DefaultParams returns a default set of parameters
func NewParams ¶ added in v0.0.3
func NewParams( daoRewardAddress string, mintAllocationPercentages MintAllocationPercentages, globalInflationPerClaim float64, mintEqualsBurnClaimDistribution MintEqualsBurnClaimDistribution, mintRatio float64, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶ added in v0.0.3
func (*Params) GetDaoRewardAddress ¶ added in v0.0.11
func (*Params) GetGlobalInflationPerClaim ¶ added in v0.0.12
func (*Params) GetMintAllocationPercentages ¶ added in v0.0.11
func (m *Params) GetMintAllocationPercentages() MintAllocationPercentages
func (*Params) GetMintEqualsBurnClaimDistribution ¶ added in v0.1.27
func (m *Params) GetMintEqualsBurnClaimDistribution() MintEqualsBurnClaimDistribution
func (*Params) GetMintRatio ¶ added in v0.1.31
func (*Params) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Params) ParamSetPairs ¶ added in v0.0.3
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶ added in v0.0.3
func (*Params) ProtoMessage()
func (*Params) ValidateBasic ¶ added in v0.0.3
ValidateBasic does a sanity check on the provided params.
func (*Params) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.0.3
func (*Params) XXX_Unmarshal ¶ added in v0.0.3
type ProofKeeper ¶
type ProofKeeper interface {
// Getters
GetAllClaims(ctx context.Context) []prooftypes.Claim
GetProof(ctx context.Context, sessionId, supplierOperatorAddr string) (proof prooftypes.Proof, isProofFound bool)
GetSessionEndHeightClaimsIterator(ctx context.Context, sessionEndHeight int64) sharedtypes.RecordIterator[prooftypes.Claim]
ProofRequirementForClaim(ctx context.Context, claim *prooftypes.Claim) (prooftypes.ProofRequirementReason, error)
GetAllProofs(ctx context.Context) []prooftypes.Proof
GetParams(ctx context.Context) prooftypes.Params
// Setters
RemoveClaim(ctx context.Context, sessionId, supplierOperatorAddr string)
RemoveProof(ctx context.Context, sessionId, supplierOperatorAddr string)
UpsertClaim(ctx context.Context, claim prooftypes.Claim)
UpsertProof(ctx context.Context, claim prooftypes.Proof)
SetParams(ctx context.Context, params prooftypes.Params) error
// Only used for testing & simulation
ValidateSubmittedProofs(ctx cosmostypes.Context) (numValidProofs, numInvalidProofs uint64, err error)
}
type QueryClient ¶ added in v0.0.3
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.0.3
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶ added in v0.0.3
type QueryParamsRequest struct {
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.0.3
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.0.3
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.0.3
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.0.3
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.0.3
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v0.0.3
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.0.3
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.0.3
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.0.3
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.0.3
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.0.3
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}
QueryServer is the server API for Query service.
type ServiceKeeper ¶ added in v0.0.6
type ServiceKeeper interface {
// Getters
GetService(ctx context.Context, serviceID string) (sharedtypes.Service, bool)
GetRelayMiningDifficulty(ctx context.Context, serviceID string) (servicetypes.RelayMiningDifficulty, bool)
// GetRelayMiningDifficultyAtHeight returns the relay mining difficulty that was
// effective at the given height for a specific service. This is used for historical
// difficulty lookups during settlement.
GetRelayMiningDifficultyAtHeight(ctx context.Context, serviceID string, height int64) (servicetypes.RelayMiningDifficulty, bool)
GetParams(ctx context.Context) servicetypes.Params
// Setters
UpdateRelayMiningDifficulty(ctx context.Context, relaysPerServiceMap map[string]uint64) (map[string]servicetypes.RelayMiningDifficulty, error)
SetService(ctx context.Context, service sharedtypes.Service)
SetParams(ctx context.Context, params servicetypes.Params) error
}
type SessionKeeper ¶ added in v0.0.4
type SessionKeeper interface {
// Getters
GetSession(context.Context, *sessiontypes.QueryGetSessionRequest) (*sessiontypes.QueryGetSessionResponse, error)
GetBlockHash(ctx context.Context, height int64) []byte
GetParams(ctx context.Context) sessiontypes.Params
// Setters
StoreBlockHash(ctx context.Context)
}
type SettlementOpReason ¶ added in v0.0.11
type SettlementOpReason int32
SettlementOpReason is a distinct, tlm-specific causal reason for a given operation.
const ( // UNSPECIFIED is the default value for SettlementOpReason // It is used as a field type for objects which need to distinguish whether a SettlementOpReason has been specified it or not. SettlementOpReason_UNSPECIFIED SettlementOpReason = 0 // All TLMs: Penalization: Slash, burn, etc... SettlementOpReason_UNSPECIFIED_TLM_SUPPLIER_SLASH_MODULE_TRANSFER SettlementOpReason = 11 SettlementOpReason_UNSPECIFIED_TLM_SUPPLIER_SLASH_STAKE_BURN SettlementOpReason = 12 // MintEqualsBurnTlm: Value transfer (credit/debit aka mint/burn) SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_STAKE_MINT SettlementOpReason = 1 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_STAKE_BURN SettlementOpReason = 2 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_TOKENOMICS_CLAIM_DISTRIBUTION_MINT SettlementOpReason = 19 // MintEqualsBurnTlm: Reward distribution SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION SettlementOpReason = 4 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_DAO_REWARD_DISTRIBUTION SettlementOpReason = 15 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_SOURCE_OWNER_REWARD_DISTRIBUTION SettlementOpReason = 17 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_REWARD_DISTRIBUTION SettlementOpReason = 18 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_VALIDATOR_REWARD_DISTRIBUTION SettlementOpReason = 20 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_DELEGATOR_REWARD_DISTRIBUTION SettlementOpReason = 23 // GlobalMintTLM: Inflation SettlementOpReason_TLM_GLOBAL_MINT_INFLATION SettlementOpReason = 3 // GlobalMintTLM: Reward distribution SettlementOpReason_TLM_GLOBAL_MINT_DAO_REWARD_DISTRIBUTION SettlementOpReason = 5 SettlementOpReason_TLM_GLOBAL_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION SettlementOpReason = 7 SettlementOpReason_TLM_GLOBAL_MINT_SOURCE_OWNER_REWARD_DISTRIBUTION SettlementOpReason = 8 SettlementOpReason_TLM_GLOBAL_MINT_APPLICATION_REWARD_DISTRIBUTION SettlementOpReason = 9 SettlementOpReason_TLM_GLOBAL_MINT_VALIDATOR_REWARD_DISTRIBUTION SettlementOpReason = 21 SettlementOpReason_TLM_GLOBAL_MINT_DELEGATOR_REWARD_DISTRIBUTION SettlementOpReason = 24 // GlobalMintTLM: Self-servicing mitigation SettlementOpReason_TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_DAO_TRANSFER SettlementOpReason = 10 // GlobalMintTLM: Module accounting SettlementOpReason_TLM_GLOBAL_MINT_SUPPLIER_SHAREHOLDER_REWARD_MODULE_TRANSFER SettlementOpReason = 13 SettlementOpReason_TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_MODULE_TRANSFER SettlementOpReason = 14 )
func (SettlementOpReason) EnumDescriptor ¶ added in v0.0.11
func (SettlementOpReason) EnumDescriptor() ([]byte, []int)
func (SettlementOpReason) String ¶ added in v0.0.11
func (x SettlementOpReason) String() string
type SharedKeeper ¶ added in v0.0.3
type SharedKeeper interface {
GetParams(ctx context.Context) sharedtypes.Params
// GetParamsAtHeight returns the session params that were effective at the given height.
// This is used for historical session queries to ensure correct session boundaries.
SetParams(ctx context.Context, params sharedtypes.Params) error
}
type StakingKeeper ¶ added in v0.1.28
type StakingKeeper interface {
// GetValidatorByConsAddr gets a validator by consensus address
GetValidatorByConsAddr(ctx context.Context, consAddr cosmostypes.ConsAddress) (stakingtypes.Validator, error)
// GetValidatorDelegations gets all delegations to a validator
GetValidatorDelegations(ctx context.Context, valAddr cosmostypes.ValAddress) ([]stakingtypes.Delegation, error)
// GetBondedValidatorsByPower gets all bonded validators sorted by voting power
GetBondedValidatorsByPower(ctx context.Context) ([]stakingtypes.Validator, error)
}
StakingKeeper defines the expected interface for the Staking module.
type SupplierKeeper ¶ added in v0.0.4
type SupplierKeeper interface {
// Getters
GetParams(ctx context.Context) suppliertypes.Params
GetSupplier(ctx context.Context, supplierOperatorAddr string) (supplier sharedtypes.Supplier, found bool)
GetDehydratedSupplier(ctx context.Context, supplierOperatorAddr string) (supplier sharedtypes.Supplier, found bool)
GetSupplierActiveServiceConfig(ctx context.Context, supplier *sharedtypes.Supplier, serviceId string) (activeServiceConfigs []*sharedtypes.SupplierServiceConfig)
// Setters
SetAndIndexDehydratedSupplier(ctx context.Context, supplier sharedtypes.Supplier)
SetDehydratedSupplier(ctx context.Context, supplier sharedtypes.Supplier)
}
type UnimplementedMsgServer ¶ added in v0.0.3
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParam ¶ added in v0.0.3
func (*UnimplementedMsgServer) UpdateParam(ctx context.Context, req *MsgUpdateParam) (*MsgUpdateParamResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.0.3
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.0.3
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶ added in v0.0.3
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Source Files
¶
- codec.go
- errors.go
- event.pb.go
- event_claim_settled.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- keys.go
- message_update_param.go
- message_update_params.go
- mint_allocation_percentage.go
- mint_equals_burn_claim_distribution.go
- module.pb.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- settlement_result.go
- tx.pb.go
- types.go
- types.pb.go