Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type ClaimExpirationReason
- func (ClaimExpirationReason) Descriptor() protoreflect.EnumDescriptor
- func (x ClaimExpirationReason) Enum() *ClaimExpirationReason
- func (ClaimExpirationReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClaimExpirationReason) Number() protoreflect.EnumNumber
- func (x ClaimExpirationReason) String() string
- func (ClaimExpirationReason) Type() protoreflect.EnumType
- type ClaimSettlementResult
- func (*ClaimSettlementResult) Descriptor() ([]byte, []int)deprecated
- func (x *ClaimSettlementResult) GetBurns() []*MintBurnOp
- func (x *ClaimSettlementResult) GetClaim() *proof.Claim
- func (x *ClaimSettlementResult) GetMints() []*MintBurnOp
- func (x *ClaimSettlementResult) GetModToAcctTransfers() []*ModToAcctTransfer
- func (x *ClaimSettlementResult) GetModToModTransfers() []*ModToModTransfer
- func (*ClaimSettlementResult) ProtoMessage()
- func (x *ClaimSettlementResult) ProtoReflect() protoreflect.Message
- func (x *ClaimSettlementResult) Reset()
- func (x *ClaimSettlementResult) String() string
- type EventApplicationOverserviced
- func (*EventApplicationOverserviced) Descriptor() ([]byte, []int)deprecated
- func (x *EventApplicationOverserviced) GetApplicationAddr() string
- func (x *EventApplicationOverserviced) GetEffectiveBurn() *v1beta1.Coin
- func (x *EventApplicationOverserviced) GetExpectedBurn() *v1beta1.Coin
- func (x *EventApplicationOverserviced) GetSupplierOperatorAddr() string
- func (*EventApplicationOverserviced) ProtoMessage()
- func (x *EventApplicationOverserviced) ProtoReflect() protoreflect.Message
- func (x *EventApplicationOverserviced) Reset()
- func (x *EventApplicationOverserviced) String() string
- type EventApplicationReimbursementRequest
- func (*EventApplicationReimbursementRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventApplicationReimbursementRequest) GetAmount() *v1beta1.Coin
- func (x *EventApplicationReimbursementRequest) GetApplicationAddr() string
- func (x *EventApplicationReimbursementRequest) GetServiceId() string
- func (x *EventApplicationReimbursementRequest) GetSessionId() string
- func (x *EventApplicationReimbursementRequest) GetSupplierOperatorAddr() string
- func (x *EventApplicationReimbursementRequest) GetSupplierOwnerAddr() string
- func (*EventApplicationReimbursementRequest) ProtoMessage()
- func (x *EventApplicationReimbursementRequest) ProtoReflect() protoreflect.Message
- func (x *EventApplicationReimbursementRequest) Reset()
- func (x *EventApplicationReimbursementRequest) String() string
- type EventClaimExpired
- func (*EventClaimExpired) Descriptor() ([]byte, []int)deprecated
- func (x *EventClaimExpired) GetClaim() *proof.Claim
- func (x *EventClaimExpired) GetClaimedUpokt() *v1beta1.Coin
- func (x *EventClaimExpired) GetExpirationReason() ClaimExpirationReason
- func (x *EventClaimExpired) GetNumClaimedComputeUnits() uint64
- func (x *EventClaimExpired) GetNumEstimatedComputeUnits() uint64
- func (x *EventClaimExpired) GetNumRelays() uint64
- func (*EventClaimExpired) ProtoMessage()
- func (x *EventClaimExpired) ProtoReflect() protoreflect.Message
- func (x *EventClaimExpired) Reset()
- func (x *EventClaimExpired) String() string
- type EventClaimSettled
- func (*EventClaimSettled) Descriptor() ([]byte, []int)deprecated
- func (x *EventClaimSettled) GetClaim() *proof.Claim
- func (x *EventClaimSettled) GetClaimedUpokt() *v1beta1.Coin
- func (x *EventClaimSettled) GetNumClaimedComputeUnits() uint64
- func (x *EventClaimSettled) GetNumEstimatedComputeUnits() uint64
- func (x *EventClaimSettled) GetNumRelays() uint64
- func (x *EventClaimSettled) GetProofRequirement() proof.ProofRequirementReason
- func (x *EventClaimSettled) GetSettlementResult() *ClaimSettlementResult
- func (*EventClaimSettled) ProtoMessage()
- func (x *EventClaimSettled) ProtoReflect() protoreflect.Message
- func (x *EventClaimSettled) Reset()
- func (x *EventClaimSettled) String() string
- type EventSupplierSlashed
- func (*EventSupplierSlashed) Descriptor() ([]byte, []int)deprecated
- func (x *EventSupplierSlashed) GetClaim() *proof.Claim
- func (x *EventSupplierSlashed) GetProofMissingPenalty() *v1beta1.Coin
- func (*EventSupplierSlashed) ProtoMessage()
- func (x *EventSupplierSlashed) ProtoReflect() protoreflect.Message
- func (x *EventSupplierSlashed) Reset()
- func (x *EventSupplierSlashed) String() string
- type GenesisState
- type MintAllocationPercentages
- func (*MintAllocationPercentages) Descriptor() ([]byte, []int)deprecated
- func (x *MintAllocationPercentages) GetApplication() float64
- func (x *MintAllocationPercentages) GetDao() float64
- func (x *MintAllocationPercentages) GetProposer() float64
- func (x *MintAllocationPercentages) GetSourceOwner() float64
- func (x *MintAllocationPercentages) GetSupplier() float64
- func (*MintAllocationPercentages) ProtoMessage()
- func (x *MintAllocationPercentages) ProtoReflect() protoreflect.Message
- func (x *MintAllocationPercentages) Reset()
- func (x *MintAllocationPercentages) String() string
- type MintBurnOp
- func (*MintBurnOp) Descriptor() ([]byte, []int)deprecated
- func (x *MintBurnOp) GetCoin() *v1beta1.Coin
- func (x *MintBurnOp) GetDestinationModule() string
- func (x *MintBurnOp) GetOpReason() SettlementOpReason
- func (*MintBurnOp) ProtoMessage()
- func (x *MintBurnOp) ProtoReflect() protoreflect.Message
- func (x *MintBurnOp) Reset()
- func (x *MintBurnOp) String() string
- type ModToAcctTransfer
- func (*ModToAcctTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *ModToAcctTransfer) GetCoin() *v1beta1.Coin
- func (x *ModToAcctTransfer) GetOpReason() SettlementOpReason
- func (x *ModToAcctTransfer) GetRecipientAddress() string
- func (x *ModToAcctTransfer) GetSenderModule() string
- func (*ModToAcctTransfer) ProtoMessage()
- func (x *ModToAcctTransfer) ProtoReflect() protoreflect.Message
- func (x *ModToAcctTransfer) Reset()
- func (x *ModToAcctTransfer) String() string
- type ModToModTransfer
- func (*ModToModTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *ModToModTransfer) GetCoin() *v1beta1.Coin
- func (x *ModToModTransfer) GetOpReason() SettlementOpReason
- func (x *ModToModTransfer) GetRecipientModule() string
- func (x *ModToModTransfer) GetSenderModule() string
- func (*ModToModTransfer) ProtoMessage()
- func (x *ModToModTransfer) ProtoReflect() protoreflect.Message
- func (x *ModToModTransfer) Reset()
- func (x *ModToModTransfer) String() string
- type MsgClient
- type MsgServer
- type MsgUpdateParam
- func (*MsgUpdateParam) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParam) GetAsMintAllocationPercentages() *MintAllocationPercentages
- func (x *MsgUpdateParam) GetAsString() string
- func (x *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
- func (x *MsgUpdateParam) GetAuthority() string
- func (x *MsgUpdateParam) GetName() string
- func (*MsgUpdateParam) ProtoMessage()
- func (x *MsgUpdateParam) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParam) Reset()
- func (x *MsgUpdateParam) String() string
- type MsgUpdateParamResponse
- func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParamResponse) GetParams() *Params
- func (*MsgUpdateParamResponse) ProtoMessage()
- func (x *MsgUpdateParamResponse) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParamResponse) Reset()
- func (x *MsgUpdateParamResponse) String() string
- type MsgUpdateParam_AsMintAllocationPercentages
- type MsgUpdateParam_AsString
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetDaoRewardAddress() string
- func (x *Params) GetMintAllocationPercentages() *MintAllocationPercentages
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryClient
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type SettlementOpReason
- func (SettlementOpReason) Descriptor() protoreflect.EnumDescriptor
- func (x SettlementOpReason) Enum() *SettlementOpReason
- func (SettlementOpReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x SettlementOpReason) Number() protoreflect.EnumNumber
- func (x SettlementOpReason) String() string
- func (SettlementOpReason) Type() protoreflect.EnumType
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Msg_UpdateParams_FullMethodName = "/poktroll.tokenomics.Msg/UpdateParams" Msg_UpdateParam_FullMethodName = "/poktroll.tokenomics.Msg/UpdateParam" )
const (
Query_Params_FullMethodName = "/poktroll.tokenomics.Query/Params"
)
Variables ¶
var ( ClaimExpirationReason_name = map[int32]string{ 0: "EXPIRATION_REASON_UNSPECIFIED", 1: "PROOF_MISSING", 2: "PROOF_INVALID", } ClaimExpirationReason_value = map[string]int32{ "EXPIRATION_REASON_UNSPECIFIED": 0, "PROOF_MISSING": 1, "PROOF_INVALID": 2, } )
Enum value maps for ClaimExpirationReason.
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", } 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, } )
Enum value maps for SettlementOpReason.
var File_poktroll_tokenomics_event_proto protoreflect.FileDescriptor
var File_poktroll_tokenomics_genesis_proto protoreflect.FileDescriptor
var File_poktroll_tokenomics_params_proto protoreflect.FileDescriptor
var File_poktroll_tokenomics_query_proto protoreflect.FileDescriptor
var File_poktroll_tokenomics_tx_proto protoreflect.FileDescriptor
var File_poktroll_tokenomics_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "poktroll.tokenomics.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "UpdateParam", Handler: _Msg_UpdateParam_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/tokenomics/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "poktroll.tokenomics.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/tokenomics/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶ added in v0.0.3
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶ added in v0.0.3
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type ClaimExpirationReason ¶ added in v0.0.5
type ClaimExpirationReason int32
const ( ClaimExpirationReason_EXPIRATION_REASON_UNSPECIFIED ClaimExpirationReason = 0 // Default value, means may be valid ClaimExpirationReason_PROOF_MISSING ClaimExpirationReason = 1 ClaimExpirationReason_PROOF_INVALID ClaimExpirationReason = 2 )
func (ClaimExpirationReason) Descriptor ¶ added in v0.0.5
func (ClaimExpirationReason) Descriptor() protoreflect.EnumDescriptor
func (ClaimExpirationReason) Enum ¶ added in v0.0.5
func (x ClaimExpirationReason) Enum() *ClaimExpirationReason
func (ClaimExpirationReason) EnumDescriptor
deprecated
added in
v0.0.5
func (ClaimExpirationReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClaimExpirationReason.Descriptor instead.
func (ClaimExpirationReason) Number ¶ added in v0.0.5
func (x ClaimExpirationReason) Number() protoreflect.EnumNumber
func (ClaimExpirationReason) String ¶ added in v0.0.5
func (x ClaimExpirationReason) String() string
func (ClaimExpirationReason) Type ¶ added in v0.0.5
func (ClaimExpirationReason) Type() protoreflect.EnumType
type ClaimSettlementResult ¶ added in v0.0.11
type ClaimSettlementResult struct { Claim *proof.Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"` Mints []*MintBurnOp `protobuf:"bytes,2,rep,name=mints,proto3" json:"mints,omitempty"` Burns []*MintBurnOp `protobuf:"bytes,3,rep,name=burns,proto3" json:"burns,omitempty"` ModToModTransfers []*ModToModTransfer `protobuf:"bytes,4,rep,name=mod_to_mod_transfers,json=modToModTransfers,proto3" json:"mod_to_mod_transfers,omitempty"` ModToAcctTransfers []*ModToAcctTransfer `protobuf:"bytes,5,rep,name=mod_to_acct_transfers,json=modToAcctTransfers,proto3" json:"mod_to_acct_transfers,omitempty"` // contains filtered or unexported fields }
SettlementResult holds mint, burn, and transfer operations that result from a single claim settlement.
func (*ClaimSettlementResult) Descriptor
deprecated
added in
v0.0.11
func (*ClaimSettlementResult) Descriptor() ([]byte, []int)
Deprecated: Use ClaimSettlementResult.ProtoReflect.Descriptor instead.
func (*ClaimSettlementResult) GetBurns ¶ added in v0.0.11
func (x *ClaimSettlementResult) GetBurns() []*MintBurnOp
func (*ClaimSettlementResult) GetClaim ¶ added in v0.0.11
func (x *ClaimSettlementResult) GetClaim() *proof.Claim
func (*ClaimSettlementResult) GetMints ¶ added in v0.0.11
func (x *ClaimSettlementResult) GetMints() []*MintBurnOp
func (*ClaimSettlementResult) GetModToAcctTransfers ¶ added in v0.0.11
func (x *ClaimSettlementResult) GetModToAcctTransfers() []*ModToAcctTransfer
func (*ClaimSettlementResult) GetModToModTransfers ¶ added in v0.0.11
func (x *ClaimSettlementResult) GetModToModTransfers() []*ModToModTransfer
func (*ClaimSettlementResult) ProtoMessage ¶ added in v0.0.11
func (*ClaimSettlementResult) ProtoMessage()
func (*ClaimSettlementResult) ProtoReflect ¶ added in v0.0.11
func (x *ClaimSettlementResult) ProtoReflect() protoreflect.Message
func (*ClaimSettlementResult) Reset ¶ added in v0.0.11
func (x *ClaimSettlementResult) Reset()
func (*ClaimSettlementResult) String ¶ added in v0.0.11
func (x *ClaimSettlementResult) String() string
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 *v1beta1.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 *v1beta1.Coin `protobuf:"bytes,4,opt,name=effective_burn,json=effectiveBurn,proto3" json:"effective_burn,omitempty"` // contains filtered or unexported fields }
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
deprecated
added in
v0.0.4
func (*EventApplicationOverserviced) Descriptor() ([]byte, []int)
Deprecated: Use EventApplicationOverserviced.ProtoReflect.Descriptor instead.
func (*EventApplicationOverserviced) GetApplicationAddr ¶ added in v0.0.4
func (x *EventApplicationOverserviced) GetApplicationAddr() string
func (*EventApplicationOverserviced) GetEffectiveBurn ¶ added in v0.0.4
func (x *EventApplicationOverserviced) GetEffectiveBurn() *v1beta1.Coin
func (*EventApplicationOverserviced) GetExpectedBurn ¶ added in v0.0.4
func (x *EventApplicationOverserviced) GetExpectedBurn() *v1beta1.Coin
func (*EventApplicationOverserviced) GetSupplierOperatorAddr ¶ added in v0.0.8
func (x *EventApplicationOverserviced) GetSupplierOperatorAddr() string
func (*EventApplicationOverserviced) ProtoMessage ¶ added in v0.0.4
func (*EventApplicationOverserviced) ProtoMessage()
func (*EventApplicationOverserviced) ProtoReflect ¶ added in v0.0.4
func (x *EventApplicationOverserviced) ProtoReflect() protoreflect.Message
func (*EventApplicationOverserviced) Reset ¶ added in v0.0.4
func (x *EventApplicationOverserviced) Reset()
func (*EventApplicationOverserviced) String ¶ added in v0.0.4
func (x *EventApplicationOverserviced) String() string
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 *v1beta1.Coin `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
EventApplicationReimbursementRequest is emitted when an application requests a reimbursement.
func (*EventApplicationReimbursementRequest) Descriptor
deprecated
added in
v0.0.10
func (*EventApplicationReimbursementRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventApplicationReimbursementRequest.ProtoReflect.Descriptor instead.
func (*EventApplicationReimbursementRequest) GetAmount ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) GetAmount() *v1beta1.Coin
func (*EventApplicationReimbursementRequest) GetApplicationAddr ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) GetApplicationAddr() string
func (*EventApplicationReimbursementRequest) GetServiceId ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) GetServiceId() string
func (*EventApplicationReimbursementRequest) GetSessionId ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) GetSessionId() string
func (*EventApplicationReimbursementRequest) GetSupplierOperatorAddr ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) GetSupplierOperatorAddr() string
func (*EventApplicationReimbursementRequest) GetSupplierOwnerAddr ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) GetSupplierOwnerAddr() string
func (*EventApplicationReimbursementRequest) ProtoMessage ¶ added in v0.0.10
func (*EventApplicationReimbursementRequest) ProtoMessage()
func (*EventApplicationReimbursementRequest) ProtoReflect ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) ProtoReflect() protoreflect.Message
func (*EventApplicationReimbursementRequest) Reset ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) Reset()
func (*EventApplicationReimbursementRequest) String ¶ added in v0.0.10
func (x *EventApplicationReimbursementRequest) String() string
type EventClaimExpired ¶
type EventClaimExpired struct { Claim *proof.Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"` // The reason why the claim expired, leading to a Supplier being penalized (i.e. burn). ExpirationReason ClaimExpirationReason `` /* 157-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,omitempty"` // 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 `` /* 132-byte string literal not displayed */ // 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 `` /* 138-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 *v1beta1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*EventClaimExpired) Descriptor() ([]byte, []int)
Deprecated: Use EventClaimExpired.ProtoReflect.Descriptor instead.
func (*EventClaimExpired) GetClaim ¶
func (x *EventClaimExpired) GetClaim() *proof.Claim
func (*EventClaimExpired) GetClaimedUpokt ¶ added in v0.0.10
func (x *EventClaimExpired) GetClaimedUpokt() *v1beta1.Coin
func (*EventClaimExpired) GetExpirationReason ¶ added in v0.0.5
func (x *EventClaimExpired) GetExpirationReason() ClaimExpirationReason
func (*EventClaimExpired) GetNumClaimedComputeUnits ¶ added in v0.0.10
func (x *EventClaimExpired) GetNumClaimedComputeUnits() uint64
func (*EventClaimExpired) GetNumEstimatedComputeUnits ¶ added in v0.0.10
func (x *EventClaimExpired) GetNumEstimatedComputeUnits() uint64
func (*EventClaimExpired) GetNumRelays ¶ added in v0.0.3
func (x *EventClaimExpired) GetNumRelays() uint64
func (*EventClaimExpired) ProtoMessage ¶
func (*EventClaimExpired) ProtoMessage()
func (*EventClaimExpired) ProtoReflect ¶
func (x *EventClaimExpired) ProtoReflect() protoreflect.Message
func (*EventClaimExpired) Reset ¶
func (x *EventClaimExpired) Reset()
func (*EventClaimExpired) String ¶
func (x *EventClaimExpired) String() string
type EventClaimSettled ¶
type EventClaimSettled struct { Claim *proof.Claim `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"` // The reason why the claim was settled, leading to a Supplier being rewarded (i.e. mint). ProofRequirement proof.ProofRequirementReason `` /* 153-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,omitempty"` // 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 `` /* 132-byte string literal not displayed */ // 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 `` /* 138-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 *v1beta1.Coin `protobuf:"bytes,6,opt,name=claimed_upokt,json=claimedUpokt,proto3" json:"claimed_upokt,omitempty"` // 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,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*EventClaimSettled) Descriptor() ([]byte, []int)
Deprecated: Use EventClaimSettled.ProtoReflect.Descriptor instead.
func (*EventClaimSettled) GetClaim ¶
func (x *EventClaimSettled) GetClaim() *proof.Claim
func (*EventClaimSettled) GetClaimedUpokt ¶ added in v0.0.10
func (x *EventClaimSettled) GetClaimedUpokt() *v1beta1.Coin
func (*EventClaimSettled) GetNumClaimedComputeUnits ¶ added in v0.0.10
func (x *EventClaimSettled) GetNumClaimedComputeUnits() uint64
func (*EventClaimSettled) GetNumEstimatedComputeUnits ¶ added in v0.0.10
func (x *EventClaimSettled) GetNumEstimatedComputeUnits() uint64
func (*EventClaimSettled) GetNumRelays ¶ added in v0.0.3
func (x *EventClaimSettled) GetNumRelays() uint64
func (*EventClaimSettled) GetProofRequirement ¶ added in v0.0.3
func (x *EventClaimSettled) GetProofRequirement() proof.ProofRequirementReason
func (*EventClaimSettled) GetSettlementResult ¶ added in v0.0.11
func (x *EventClaimSettled) GetSettlementResult() *ClaimSettlementResult
func (*EventClaimSettled) ProtoMessage ¶
func (*EventClaimSettled) ProtoMessage()
func (*EventClaimSettled) ProtoReflect ¶
func (x *EventClaimSettled) ProtoReflect() protoreflect.Message
func (*EventClaimSettled) Reset ¶
func (x *EventClaimSettled) Reset()
func (*EventClaimSettled) String ¶
func (x *EventClaimSettled) String() string
type EventSupplierSlashed ¶ added in v0.0.10
type EventSupplierSlashed struct { Claim *proof.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 *v1beta1.Coin `protobuf:"bytes,2,opt,name=proof_missing_penalty,json=proofMissingPenalty,proto3" json:"proof_missing_penalty,omitempty"` // contains filtered or unexported fields }
EventSupplierSlashed is emitted when a supplier is slashed for not providing, or provided invalid required proofs for claims.
func (*EventSupplierSlashed) Descriptor
deprecated
added in
v0.0.10
func (*EventSupplierSlashed) Descriptor() ([]byte, []int)
Deprecated: Use EventSupplierSlashed.ProtoReflect.Descriptor instead.
func (*EventSupplierSlashed) GetClaim ¶ added in v0.0.11
func (x *EventSupplierSlashed) GetClaim() *proof.Claim
func (*EventSupplierSlashed) GetProofMissingPenalty ¶ added in v0.0.11
func (x *EventSupplierSlashed) GetProofMissingPenalty() *v1beta1.Coin
func (*EventSupplierSlashed) ProtoMessage ¶ added in v0.0.10
func (*EventSupplierSlashed) ProtoMessage()
func (*EventSupplierSlashed) ProtoReflect ¶ added in v0.0.10
func (x *EventSupplierSlashed) ProtoReflect() protoreflect.Message
func (*EventSupplierSlashed) Reset ¶ added in v0.0.10
func (x *EventSupplierSlashed) Reset()
func (*EventSupplierSlashed) String ¶ added in v0.0.10
func (x *EventSupplierSlashed) String() string
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
GenesisState defines the tokenomics module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
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,omitempty"` // 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,omitempty"` // 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,omitempty"` // 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,omitempty"` // 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,omitempty"` // contains filtered or unexported fields }
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
deprecated
added in
v0.0.11
func (*MintAllocationPercentages) Descriptor() ([]byte, []int)
Deprecated: Use MintAllocationPercentages.ProtoReflect.Descriptor instead.
func (*MintAllocationPercentages) GetApplication ¶ added in v0.0.11
func (x *MintAllocationPercentages) GetApplication() float64
func (*MintAllocationPercentages) GetDao ¶ added in v0.0.11
func (x *MintAllocationPercentages) GetDao() float64
func (*MintAllocationPercentages) GetProposer ¶ added in v0.0.11
func (x *MintAllocationPercentages) GetProposer() float64
func (*MintAllocationPercentages) GetSourceOwner ¶ added in v0.0.11
func (x *MintAllocationPercentages) GetSourceOwner() float64
func (*MintAllocationPercentages) GetSupplier ¶ added in v0.0.11
func (x *MintAllocationPercentages) GetSupplier() float64
func (*MintAllocationPercentages) ProtoMessage ¶ added in v0.0.11
func (*MintAllocationPercentages) ProtoMessage()
func (*MintAllocationPercentages) ProtoReflect ¶ added in v0.0.11
func (x *MintAllocationPercentages) ProtoReflect() protoreflect.Message
func (*MintAllocationPercentages) Reset ¶ added in v0.0.11
func (x *MintAllocationPercentages) Reset()
func (*MintAllocationPercentages) String ¶ added in v0.0.11
func (x *MintAllocationPercentages) String() string
type MintBurnOp ¶ added in v0.0.11
type MintBurnOp struct { OpReason SettlementOpReason `` /* 130-byte string literal not displayed */ DestinationModule string `protobuf:"bytes,2,opt,name=DestinationModule,proto3" json:"DestinationModule,omitempty"` Coin *v1beta1.Coin `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"` // contains filtered or unexported fields }
MintBurnOperation holds the parameters of a mint or burn operation.
func (*MintBurnOp) Descriptor
deprecated
added in
v0.0.11
func (*MintBurnOp) Descriptor() ([]byte, []int)
Deprecated: Use MintBurnOp.ProtoReflect.Descriptor instead.
func (*MintBurnOp) GetCoin ¶ added in v0.0.11
func (x *MintBurnOp) GetCoin() *v1beta1.Coin
func (*MintBurnOp) GetDestinationModule ¶ added in v0.0.11
func (x *MintBurnOp) GetDestinationModule() string
func (*MintBurnOp) GetOpReason ¶ added in v0.0.11
func (x *MintBurnOp) GetOpReason() SettlementOpReason
func (*MintBurnOp) ProtoMessage ¶ added in v0.0.11
func (*MintBurnOp) ProtoMessage()
func (*MintBurnOp) ProtoReflect ¶ added in v0.0.11
func (x *MintBurnOp) ProtoReflect() protoreflect.Message
func (*MintBurnOp) Reset ¶ added in v0.0.11
func (x *MintBurnOp) Reset()
func (*MintBurnOp) String ¶ added in v0.0.11
func (x *MintBurnOp) String() string
type ModToAcctTransfer ¶ added in v0.0.11
type ModToAcctTransfer struct { OpReason SettlementOpReason `` /* 130-byte string literal not displayed */ SenderModule string `protobuf:"bytes,2,opt,name=SenderModule,proto3" json:"SenderModule,omitempty"` RecipientAddress string `protobuf:"bytes,3,opt,name=RecipientAddress,proto3" json:"RecipientAddress,omitempty"` // bech32 address Coin *v1beta1.Coin `protobuf:"bytes,4,opt,name=coin,proto3" json:"coin,omitempty"` // contains filtered or unexported fields }
ModToAcctTransfer holds the parameters of a module to account transfer operation.
func (*ModToAcctTransfer) Descriptor
deprecated
added in
v0.0.11
func (*ModToAcctTransfer) Descriptor() ([]byte, []int)
Deprecated: Use ModToAcctTransfer.ProtoReflect.Descriptor instead.
func (*ModToAcctTransfer) GetCoin ¶ added in v0.0.11
func (x *ModToAcctTransfer) GetCoin() *v1beta1.Coin
func (*ModToAcctTransfer) GetOpReason ¶ added in v0.0.11
func (x *ModToAcctTransfer) GetOpReason() SettlementOpReason
func (*ModToAcctTransfer) GetRecipientAddress ¶ added in v0.0.11
func (x *ModToAcctTransfer) GetRecipientAddress() string
func (*ModToAcctTransfer) GetSenderModule ¶ added in v0.0.11
func (x *ModToAcctTransfer) GetSenderModule() string
func (*ModToAcctTransfer) ProtoMessage ¶ added in v0.0.11
func (*ModToAcctTransfer) ProtoMessage()
func (*ModToAcctTransfer) ProtoReflect ¶ added in v0.0.11
func (x *ModToAcctTransfer) ProtoReflect() protoreflect.Message
func (*ModToAcctTransfer) Reset ¶ added in v0.0.11
func (x *ModToAcctTransfer) Reset()
func (*ModToAcctTransfer) String ¶ added in v0.0.11
func (x *ModToAcctTransfer) String() string
type ModToModTransfer ¶ added in v0.0.11
type ModToModTransfer struct { OpReason SettlementOpReason `` /* 130-byte string literal not displayed */ SenderModule string `protobuf:"bytes,2,opt,name=SenderModule,proto3" json:"SenderModule,omitempty"` RecipientModule string `protobuf:"bytes,3,opt,name=RecipientModule,proto3" json:"RecipientModule,omitempty"` // This the semantic module named that can be found by searching for "ModuleName =" in the codebase Coin *v1beta1.Coin `protobuf:"bytes,4,opt,name=coin,proto3" json:"coin,omitempty"` // contains filtered or unexported fields }
ModToModTransfer holds the parameters of a module to module transfer operation.
func (*ModToModTransfer) Descriptor
deprecated
added in
v0.0.11
func (*ModToModTransfer) Descriptor() ([]byte, []int)
Deprecated: Use ModToModTransfer.ProtoReflect.Descriptor instead.
func (*ModToModTransfer) GetCoin ¶ added in v0.0.11
func (x *ModToModTransfer) GetCoin() *v1beta1.Coin
func (*ModToModTransfer) GetOpReason ¶ added in v0.0.11
func (x *ModToModTransfer) GetOpReason() SettlementOpReason
func (*ModToModTransfer) GetRecipientModule ¶ added in v0.0.11
func (x *ModToModTransfer) GetRecipientModule() string
func (*ModToModTransfer) GetSenderModule ¶ added in v0.0.11
func (x *ModToModTransfer) GetSenderModule() string
func (*ModToModTransfer) ProtoMessage ¶ added in v0.0.11
func (*ModToModTransfer) ProtoMessage()
func (*ModToModTransfer) ProtoReflect ¶ added in v0.0.11
func (x *ModToModTransfer) ProtoReflect() protoreflect.Message
func (*ModToModTransfer) Reset ¶ added in v0.0.11
func (x *ModToModTransfer) Reset()
func (*ModToModTransfer) String ¶ added in v0.0.11
func (x *ModToModTransfer) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Msg defines the Msg service.
func NewMsgClient ¶ added in v0.0.3
func NewMsgClient(cc grpc.ClientConnInterface) 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) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
Msg defines the Msg service.
type MsgUpdateParam ¶ added in v0.0.2
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 assignable to AsType: // // *MsgUpdateParam_AsMintAllocationPercentages // *MsgUpdateParam_AsString AsType isMsgUpdateParam_AsType `protobuf_oneof:"as_type"` // contains filtered or unexported fields }
MsgUpdateParam is the Msg/UpdateParam request type to update a single param.
func (*MsgUpdateParam) Descriptor
deprecated
added in
v0.0.2
func (*MsgUpdateParam) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParam.ProtoReflect.Descriptor instead.
func (*MsgUpdateParam) GetAsMintAllocationPercentages ¶ added in v0.0.11
func (x *MsgUpdateParam) GetAsMintAllocationPercentages() *MintAllocationPercentages
func (*MsgUpdateParam) GetAsString ¶ added in v0.0.2
func (x *MsgUpdateParam) GetAsString() string
func (*MsgUpdateParam) GetAsType ¶ added in v0.0.2
func (x *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType
func (*MsgUpdateParam) GetAuthority ¶ added in v0.0.2
func (x *MsgUpdateParam) GetAuthority() string
func (*MsgUpdateParam) GetName ¶ added in v0.0.2
func (x *MsgUpdateParam) GetName() string
func (*MsgUpdateParam) ProtoMessage ¶ added in v0.0.2
func (*MsgUpdateParam) ProtoMessage()
func (*MsgUpdateParam) ProtoReflect ¶ added in v0.0.2
func (x *MsgUpdateParam) ProtoReflect() protoreflect.Message
func (*MsgUpdateParam) Reset ¶ added in v0.0.2
func (x *MsgUpdateParam) Reset()
func (*MsgUpdateParam) String ¶ added in v0.0.2
func (x *MsgUpdateParam) String() string
type MsgUpdateParamResponse ¶ added in v0.0.2
type MsgUpdateParamResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParamResponse defines the response structure for executing a MsgUpdateParam message after a single param update.
func (*MsgUpdateParamResponse) Descriptor
deprecated
added in
v0.0.2
func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamResponse) GetParams ¶ added in v0.0.2
func (x *MsgUpdateParamResponse) GetParams() *Params
func (*MsgUpdateParamResponse) ProtoMessage ¶ added in v0.0.2
func (*MsgUpdateParamResponse) ProtoMessage()
func (*MsgUpdateParamResponse) ProtoReflect ¶ added in v0.0.2
func (x *MsgUpdateParamResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamResponse) Reset ¶ added in v0.0.2
func (x *MsgUpdateParamResponse) Reset()
func (*MsgUpdateParamResponse) String ¶ added in v0.0.2
func (x *MsgUpdateParamResponse) String() string
type MsgUpdateParam_AsMintAllocationPercentages ¶ added in v0.0.11
type MsgUpdateParam_AsMintAllocationPercentages struct {
AsMintAllocationPercentages *MintAllocationPercentages `protobuf:"bytes,3,opt,name=as_mint_allocation_percentages,json=asMintAllocationPercentages,proto3,oneof"`
}
type MsgUpdateParam_AsString ¶ added in v0.0.2
type MsgUpdateParam_AsString struct {
AsString string `protobuf:"bytes,4,opt,name=as_string,json=asString,proto3,oneof"`
}
type MsgUpdateParams ¶
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,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type to update all params at once.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct { MintAllocationPercentages *MintAllocationPercentages `` /* 138-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 `protobuf:"bytes,6,opt,name=dao_reward_address,json=daoRewardAddress,proto3" json:"dao_reward_address,omitempty"` // Bech32 cosmos address // contains filtered or unexported fields }
Params defines the parameters for the tokenomics module.
func (*Params) Descriptor
deprecated
func (*Params) GetDaoRewardAddress ¶ added in v0.0.11
func (*Params) GetMintAllocationPercentages ¶ added in v0.0.11
func (x *Params) GetMintAllocationPercentages() *MintAllocationPercentages
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Query defines the gRPC querier service.
func NewQueryClient ¶ added in v0.0.3
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶ added in v0.0.3
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
Query defines the gRPC querier service.
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) Descriptor ¶ added in v0.0.11
func (SettlementOpReason) Descriptor() protoreflect.EnumDescriptor
func (SettlementOpReason) Enum ¶ added in v0.0.11
func (x SettlementOpReason) Enum() *SettlementOpReason
func (SettlementOpReason) EnumDescriptor
deprecated
added in
v0.0.11
func (SettlementOpReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use SettlementOpReason.Descriptor instead.
func (SettlementOpReason) Number ¶ added in v0.0.11
func (x SettlementOpReason) Number() protoreflect.EnumNumber
func (SettlementOpReason) String ¶ added in v0.0.11
func (x SettlementOpReason) String() string
func (SettlementOpReason) Type ¶ added in v0.0.11
func (SettlementOpReason) Type() protoreflect.EnumType
type UnimplementedMsgServer ¶ added in v0.0.3
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) UpdateParam ¶ added in v0.0.3
func (UnimplementedMsgServer) UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶ added in v0.0.3
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.0.3
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Params ¶ added in v0.0.3
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
type UnsafeMsgServer ¶ added in v0.0.3
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶ added in v0.0.3
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.