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 ValidateMintAllocationApplication(mintAllocationApplication 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
- 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) 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() *types1.Coin
- func (m *EventApplicationOverserviced) GetExpectedBurn() *types1.Coin
- 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() *types1.Coin
- 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 EventClaimExpired
- func (*EventClaimExpired) Descriptor() ([]byte, []int)
- func (m *EventClaimExpired) GetClaim() *types.Claim
- func (m *EventClaimExpired) GetClaimedUpokt() *types1.Coin
- func (m *EventClaimExpired) GetExpirationReason() ClaimExpirationReason
- func (m *EventClaimExpired) GetNumClaimedComputeUnits() uint64
- func (m *EventClaimExpired) GetNumEstimatedComputeUnits() uint64
- func (m *EventClaimExpired) GetNumRelays() uint64
- 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) GetClaim() *types.Claim
- func (m *EventClaimSettled) GetClaimedUpokt() *types1.Coin
- func (m *EventClaimSettled) GetNumClaimedComputeUnits() uint64
- func (m *EventClaimSettled) GetNumEstimatedComputeUnits() uint64
- func (m *EventClaimSettled) GetNumRelays() uint64
- func (m *EventClaimSettled) GetProofRequirement() types.ProofRequirementReason
- func (m *EventClaimSettled) GetSettlementResult() ClaimSettlementResult
- 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) GetClaim() *types.Claim
- func (m *EventSupplierSlashed) GetProofMissingPenalty() *types1.Coin
- 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 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 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 MsgClient
- type MsgServer
- type MsgUpdateParam
- func (*MsgUpdateParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParam) GetAsMintAllocationPercentages() *MintAllocationPercentages
- 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) GetParams() *Params
- 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_AsMintAllocationPercentages
- 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) GetMintAllocationPercentages() MintAllocationPercentages
- 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 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 ( ErrTokenomicsInvalidSigner = sdkerrors.Register(ModuleName, 1100, "the provided authority address does not match the on-chain governance address") ErrTokenomicsAddressInvalid = sdkerrors.Register(ModuleName, 1101, "the provided authority address is not a valid bech32 address") ErrTokenomicsSessionHeaderNil = sdkerrors.Register(ModuleName, 1102, "provided claim's session header is nil") ErrTokenomicsSessionHeaderInvalid = sdkerrors.Register(ModuleName, 1103, "provided claim's session header is invalid") 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") 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") ErrTokenomicsParamsInvalid = sdkerrors.Register(ModuleName, 1108, "provided params are invalid") ErrTokenomicsRootHashInvalid = sdkerrors.Register(ModuleName, 1109, "the root hash in the claim is invalid") ErrTokenomicsApplicationNewStakeInvalid = sdkerrors.Register(ModuleName, 1110, "application stake cannot be reduced to a -ve amount") 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") ErrTokenomicsServiceNotFound = sdkerrors.Register(ModuleName, 1115, "service not found") ErrTokenomicsConstraint = sdkerrors.Register(ModuleName, 1116, "constraint violation") ErrTokenomicsSettlementInternal = sdkerrors.Register(ModuleName, 1117, "internal token logic module 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") ErrTokenomicsSettlementModuleMint = sdkerrors.Register(ModuleName, 1121, "failed to mint uPOKT while executing settlement state transitions") ErrTokenomicsSettlementModuleBurn = 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 ( KeyMintAllocationPercentages = []byte("MintAllocationPercentages") ParamMintAllocationPercentages = "mint_allocation_percentages" DefaultMintAllocationPercentages = MintAllocationPercentages{ Dao: 0.1, Proposer: 0.05, Supplier: 0.7, SourceOwner: 0.15, Application: 0.0, } KeyDaoRewardAddress = []byte("DaoRewardAddress") ParamDaoRewardAddress = "dao_reward_address" // DefaultDaoRewardAddress is the localnet DAO account address as specified in the config.yml. // It is only used in tests. DefaultDaoRewardAddress = "pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw" )
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 ParamsKey = []byte("p_tokenomics")
var SettlementOpReason_name = map[int32]string{
0: "UNSPECIFIED",
1: "TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_STAKE_MINT",
2: "TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_STAKE_BURN",
3: "TLM_GLOBAL_MINT_INFLATION",
4: "TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION",
5: "TLM_GLOBAL_MINT_DAO_REWARD_DISTRIBUTION",
6: "TLM_GLOBAL_MINT_PROPOSER_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",
10: "TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_DAO_TRANSFER",
11: "UNSPECIFIED_TLM_SUPPLIER_SLASH_MODULE_TRANSFER",
12: "UNSPECIFIED_TLM_SUPPLIER_SLASH_STAKE_BURN",
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,
"TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_STAKE_MINT": 1,
"TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_STAKE_BURN": 2,
"TLM_GLOBAL_MINT_INFLATION": 3,
"TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION": 4,
"TLM_GLOBAL_MINT_DAO_REWARD_DISTRIBUTION": 5,
"TLM_GLOBAL_MINT_PROPOSER_REWARD_DISTRIBUTION": 6,
"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_REIMBURSEMENT_REQUEST_ESCROW_DAO_TRANSFER": 10,
"UNSPECIFIED_TLM_SUPPLIER_SLASH_MODULE_TRANSFER": 11,
"UNSPECIFIED_TLM_SUPPLIER_SLASH_STAKE_BURN": 12,
"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 ValidateMintAllocationApplication ¶ added in v0.0.11
ValidateMintAllocationApplication validates the MintAllocationApplication 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.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { // Only used for testing & simulation GetAccount(ctx context.Context, addr cosmostypes.AccAddress) cosmostypes.AccountI SetAccount(context.Context, cosmostypes.AccountI) // Return a new account with the next account number and the specified address. Does not save the new account to the store. NewAccountWithAddress(context.Context, cosmostypes.AccAddress) cosmostypes.AccountI // Fetch the next account number, and increment the internal counter. NextAccountNumber(context.Context) uint64 }
AccountKeeper defines the expected interface for the Account module.
type ApplicationKeeper ¶
type ApplicationKeeper interface { GetApplication(ctx context.Context, appAddr string) (app apptypes.Application, found bool) SetApplication(ctx context.Context, app apptypes.Application) GetAllApplications(ctx context.Context) []apptypes.Application UnbondApplication(ctx context.Context, app *apptypes.Application) error EndBlockerUnbondApplications(ctx context.Context) error }
type BankKeeper ¶
type BankKeeper interface { MintCoins(ctx context.Context, moduleName string, amt cosmostypes.Coins) error BurnCoins(ctx context.Context, moduleName string, amt cosmostypes.Coins) error // We use the bankkeeper SendXXX instead of DelegateXX methods // because their purpose is to "escrow" funds on behalf of an account rather // than "delegate" funds from one account to another which is more closely // linked to staking. 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
const ( ClaimExpirationReason_EXPIRATION_REASON_UNSPECIFIED ClaimExpirationReason = 0 ClaimExpirationReason_PROOF_MISSING ClaimExpirationReason = 1 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"` }
SettlementResult holds mint, burn, and transfer operations that result from a single claim settlement.
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) 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 { ApplicationAddr string `protobuf:"bytes,1,opt,name=application_addr,json=applicationAddr,proto3" json:"application_addr,omitempty"` SupplierOperatorAddr string `protobuf:"bytes,2,opt,name=supplier_operator_addr,json=supplierOperatorAddr,proto3" json:"supplier_operator_addr,omitempty"` // Expected burn is the amount the supplier is claiming for work done // to service the application during the session. // This is usually the amount in the Claim submitted. ExpectedBurn *types1.Coin `protobuf:"bytes,3,opt,name=expected_burn,json=expectedBurn,proto3" json:"expected_burn,omitempty"` // Effective burn is the amount that is actually being paid to the supplier // for the work done. It is less than the expected burn (claim amount) and // is a function of the relay mining algorithm. // E.g. The application's stake divided by the number of suppliers in a session. EffectiveBurn *types1.Coin `protobuf:"bytes,4,opt,name=effective_burn,json=effectiveBurn,proto3" json:"effective_burn,omitempty"` }
EventApplicationOverserviced is emitted when an application has less stake than what a supplier is claiming (i.e. amount available for burning is insufficient). This means the following will ALWAYS be strictly true: effective_burn < expected_burn.
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() *types1.Coin
func (*EventApplicationOverserviced) GetExpectedBurn ¶ added in v0.0.4
func (m *EventApplicationOverserviced) GetExpectedBurn() *types1.Coin
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 { ApplicationAddr string `protobuf:"bytes,1,opt,name=application_addr,json=applicationAddr,proto3" json:"application_addr,omitempty"` SupplierOperatorAddr string `protobuf:"bytes,2,opt,name=supplier_operator_addr,json=supplierOperatorAddr,proto3" json:"supplier_operator_addr,omitempty"` SupplierOwnerAddr string `protobuf:"bytes,3,opt,name=supplier_owner_addr,json=supplierOwnerAddr,proto3" json:"supplier_owner_addr,omitempty"` ServiceId string `protobuf:"bytes,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` SessionId string `protobuf:"bytes,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Amount *types1.Coin `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` }
EventApplicationReimbursementRequest is emitted when an application requests a reimbursement.
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() *types1.Coin
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 EventClaimExpired ¶ added in v0.0.3
type EventClaimExpired struct { Claim *types.Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim"` // The reason why the claim expired, leading to a Supplier being penalized (i.e. burn). ExpirationReason ClaimExpirationReason `` /* 147-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 as a function of the number of relays // and the compute units per relay for the particular service. 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 as 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 uints to token multiplier. ClaimedUpokt *types1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt"` }
EventClaimExpired is an event emitted during settlement whenever a claim requiring an on-chain proof doesn't have one. 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) GetClaim ¶ added in v0.0.3
func (m *EventClaimExpired) GetClaim() *types.Claim
func (*EventClaimExpired) GetClaimedUpokt ¶ added in v0.0.10
func (m *EventClaimExpired) GetClaimedUpokt() *types1.Coin
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) 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 { Claim *types.Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim"` // The reason why the claim was settled, leading to a Supplier being rewarded (i.e. mint). ProofRequirement types.ProofRequirementReason `` /* 143-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 as a function of the number of relays // and the compute units per relay for the particular service. 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 as 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 uints to token multiplier. ClaimedUpokt *types1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt"` // SettlementResult holds mint, burn, and transfer operations on a per-claim basis. SettlementResult ClaimSettlementResult `protobuf:"bytes,7,opt,name=settlement_result,json=settlementResult,proto3" json:"settlement_result"` }
EventClaimSettled is an event emitted whenever a claim is settled. The proof_required determines whether the claim requires a proof that has been submitted or not
func (*EventClaimSettled) Descriptor ¶ added in v0.0.3
func (*EventClaimSettled) Descriptor() ([]byte, []int)
func (*EventClaimSettled) GetClaim ¶ added in v0.0.3
func (m *EventClaimSettled) GetClaim() *types.Claim
func (*EventClaimSettled) GetClaimedUpokt ¶ added in v0.0.10
func (m *EventClaimSettled) GetClaimedUpokt() *types1.Coin
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) GetProofRequirement ¶ added in v0.0.3
func (m *EventClaimSettled) GetProofRequirement() types.ProofRequirementReason
func (*EventClaimSettled) GetSettlementResult ¶ added in v0.0.11
func (m *EventClaimSettled) GetSettlementResult() ClaimSettlementResult
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 { Claim *types.Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"` // Amount slashed from the supplier's stake due to the expired claims. // This is a function of the number of expired claims and proof missing penalty. ProofMissingPenalty *types1.Coin `protobuf:"bytes,2,opt,name=proof_missing_penalty,json=proofMissingPenalty,proto3" json:"proof_missing_penalty,omitempty"` }
EventSupplierSlashed is emitted when a supplier is slashed for not providing, or provided invalid required proofs for claims.
func (*EventSupplierSlashed) Descriptor ¶ added in v0.0.10
func (*EventSupplierSlashed) Descriptor() ([]byte, []int)
func (*EventSupplierSlashed) GetClaim ¶ added in v0.0.11
func (m *EventSupplierSlashed) GetClaim() *types.Claim
func (*EventSupplierSlashed) GetProofMissingPenalty ¶ added in v0.0.11
func (m *EventSupplierSlashed) GetProofMissingPenalty() *types1.Coin
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 MintAllocationPercentages ¶ added in v0.0.11
type MintAllocationPercentages struct { // dao is the percentage of the minted tokens which are sent // to the DAO reward address during claim settlement. Dao float64 `protobuf:"fixed64,1,opt,name=dao,proto3" json:"dao" yaml:"dao"` // proposer is the percentage of the minted tokens which are sent // to the block proposer account address during claim settlement. Proposer float64 `protobuf:"fixed64,2,opt,name=proposer,proto3" json:"proposer" yaml:"proposer"` // supplier is the percentage of the minted tokens which are sent // to the block supplier account address during claim settlement. Supplier float64 `protobuf:"fixed64,3,opt,name=supplier,proto3" json:"supplier" yaml:"supplier"` // source_owner is the percentage of the minted tokens which are sent // to the service source owner account address during claim settlement. SourceOwner float64 `protobuf:"fixed64,4,opt,name=source_owner,json=sourceOwner,proto3" json:"source_owner" yaml:"source_owner"` // allocation_application is the percentage of the minted tokens which are sent // to the application account address during claim settlement. Application float64 `protobuf:"fixed64,5,opt,name=application,proto3" json:"application" yaml:"application"` }
MintAllocationPercentages represents the distribution of newly minted tokens, at the end of claim settlement, as a result of the Global Mint TLM.
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.
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=poktroll.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"` }
MintBurnOperation holds the parameters of a 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 ModToAcctTransfer ¶ added in v0.0.11
type ModToAcctTransfer struct { OpReason SettlementOpReason `protobuf:"varint,1,opt,name=op_reason,json=opReason,proto3,enum=poktroll.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 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=poktroll.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 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 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 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) GetAsMintAllocationPercentages ¶ added in v0.0.11
func (m *MsgUpdateParam) GetAsMintAllocationPercentages() *MintAllocationPercentages
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 {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
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) GetParams ¶ added in v0.0.3
func (m *MsgUpdateParamResponse) GetParams() *Params
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_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_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 x/tokenomics parameters to update. // NOTE: All parameters must be supplied. 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 { MintAllocationPercentages MintAllocationPercentages `` /* 160-byte string literal not displayed */ // dao_reward_address is the address to which mint_allocation_dao percentage of the // minted tokens are at the end of claim settlement. DaoRewardAddress string `` /* 127-byte string literal not displayed */ }
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( mintAllocationPercentages MintAllocationPercentages, daoRewardAddress string, ) 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) GetMintAllocationPercentages ¶ added in v0.0.11
func (m *Params) GetMintAllocationPercentages() MintAllocationPercentages
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 { GetAllClaims(ctx context.Context) []prooftypes.Claim RemoveClaim(ctx context.Context, sessionId, supplierOperatorAddr string) GetProof(ctx context.Context, sessionId, supplierOperatorAddr string) (proof prooftypes.Proof, isProofFound bool) RemoveProof(ctx context.Context, sessionId, supplierOperatorAddr string) AllClaims(ctx context.Context, req *prooftypes.QueryAllClaimsRequest) (*prooftypes.QueryAllClaimsResponse, error) EnsureValidProof(ctx context.Context, proof *prooftypes.Proof) error ProofRequirementForClaim(ctx context.Context, claim *prooftypes.Claim) (prooftypes.ProofRequirementReason, error) // Only used for testing & simulation GetAllProofs(ctx context.Context) []prooftypes.Proof UpsertClaim(ctx context.Context, claim prooftypes.Claim) UpsertProof(ctx context.Context, claim prooftypes.Proof) GetParams(ctx context.Context) prooftypes.Params SetParams(ctx context.Context, params prooftypes.Params) 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 { GetService(ctx context.Context, serviceID string) (sharedtypes.Service, bool) GetRelayMiningDifficulty(ctx context.Context, serviceID string) (servicetypes.RelayMiningDifficulty, bool) UpdateRelayMiningDifficulty(ctx context.Context, relaysPerServiceMap map[string]uint64) (map[string]servicetypes.RelayMiningDifficulty, error) // Only used for testing & simulation SetService(ctx context.Context, service sharedtypes.Service) }
type SessionKeeper ¶ added in v0.0.4
type SessionKeeper interface { GetSession(context.Context, *sessiontypes.QueryGetSessionRequest) (*sessiontypes.QueryGetSessionResponse, error) GetBlockHash(ctx context.Context, height int64) []byte StoreBlockHash(ctx context.Context) GetParams(ctx context.Context) sessiontypes.Params }
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 // Value transfer (credit/debit) SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_STAKE_MINT SettlementOpReason = 1 SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_APPLICATION_STAKE_BURN SettlementOpReason = 2 // Inflation SettlementOpReason_TLM_GLOBAL_MINT_INFLATION SettlementOpReason = 3 // Reward distribution SettlementOpReason_TLM_RELAY_BURN_EQUALS_MINT_SUPPLIER_SHAREHOLDER_REWARD_DISTRIBUTION SettlementOpReason = 4 SettlementOpReason_TLM_GLOBAL_MINT_DAO_REWARD_DISTRIBUTION SettlementOpReason = 5 SettlementOpReason_TLM_GLOBAL_MINT_PROPOSER_REWARD_DISTRIBUTION SettlementOpReason = 6 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 // Self-servicing mitigation SettlementOpReason_TLM_GLOBAL_MINT_REIMBURSEMENT_REQUEST_ESCROW_DAO_TRANSFER SettlementOpReason = 10 // Penalization SettlementOpReason_UNSPECIFIED_TLM_SUPPLIER_SLASH_MODULE_TRANSFER SettlementOpReason = 11 SettlementOpReason_UNSPECIFIED_TLM_SUPPLIER_SLASH_STAKE_BURN SettlementOpReason = 12 // 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 {}
type SupplierKeeper ¶ added in v0.0.4
type SupplierKeeper interface { GetParams(ctx context.Context) suppliertypes.Params GetSupplier(ctx context.Context, supplierOperatorAddr string) (supplier sharedtypes.Supplier, found bool) GetAllSuppliers(ctx context.Context) (suppliers []sharedtypes.Supplier) SetSupplier(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)