tokenomics

package
v0.1.27-dev1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 17 Imported by: 0

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.

DO NOT DELETE this file. It is intentionally added and kept empty to ensure an empty package exists and can be referenced to prevent the ignite CLI from throwing errors during proto generation.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_pocket_tokenomics_event_proto protoreflect.FileDescriptor
View Source
var File_pocket_tokenomics_genesis_proto protoreflect.FileDescriptor
View Source
var File_pocket_tokenomics_params_proto protoreflect.FileDescriptor
View Source
var File_pocket_tokenomics_query_proto protoreflect.FileDescriptor
View Source
var File_pocket_tokenomics_tx_proto protoreflect.FileDescriptor
View Source
var File_pocket_tokenomics_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClaimExpirationReason

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

func (ClaimExpirationReason) Enum

func (ClaimExpirationReason) EnumDescriptor deprecated

func (ClaimExpirationReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClaimExpirationReason.Descriptor instead.

func (ClaimExpirationReason) Number

func (ClaimExpirationReason) String

func (x ClaimExpirationReason) String() string

func (ClaimExpirationReason) Type

type ClaimSettlementResult

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

func (*ClaimSettlementResult) Descriptor() ([]byte, []int)

Deprecated: Use ClaimSettlementResult.ProtoReflect.Descriptor instead.

func (*ClaimSettlementResult) GetBurns

func (x *ClaimSettlementResult) GetBurns() []*MintBurnOp

func (*ClaimSettlementResult) GetClaim

func (x *ClaimSettlementResult) GetClaim() *proof.Claim

func (*ClaimSettlementResult) GetMints

func (x *ClaimSettlementResult) GetMints() []*MintBurnOp

func (*ClaimSettlementResult) GetModToAcctTransfers

func (x *ClaimSettlementResult) GetModToAcctTransfers() []*ModToAcctTransfer

func (*ClaimSettlementResult) GetModToModTransfers

func (x *ClaimSettlementResult) GetModToModTransfers() []*ModToModTransfer

func (*ClaimSettlementResult) ProtoMessage

func (*ClaimSettlementResult) ProtoMessage()

func (*ClaimSettlementResult) ProtoReflect

func (x *ClaimSettlementResult) ProtoReflect() protoreflect.Message

func (*ClaimSettlementResult) Reset

func (x *ClaimSettlementResult) Reset()

func (*ClaimSettlementResult) String

func (x *ClaimSettlementResult) String() string

type EventApplicationOverserviced

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

func (*EventApplicationOverserviced) Descriptor() ([]byte, []int)

Deprecated: Use EventApplicationOverserviced.ProtoReflect.Descriptor instead.

func (*EventApplicationOverserviced) GetApplicationAddr

func (x *EventApplicationOverserviced) GetApplicationAddr() string

func (*EventApplicationOverserviced) GetEffectiveBurn

func (x *EventApplicationOverserviced) GetEffectiveBurn() *v1beta1.Coin

func (*EventApplicationOverserviced) GetExpectedBurn

func (x *EventApplicationOverserviced) GetExpectedBurn() *v1beta1.Coin

func (*EventApplicationOverserviced) GetSupplierOperatorAddr

func (x *EventApplicationOverserviced) GetSupplierOperatorAddr() string

func (*EventApplicationOverserviced) ProtoMessage

func (*EventApplicationOverserviced) ProtoMessage()

func (*EventApplicationOverserviced) ProtoReflect

func (*EventApplicationOverserviced) Reset

func (x *EventApplicationOverserviced) Reset()

func (*EventApplicationOverserviced) String

type EventApplicationReimbursementRequest

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

func (*EventApplicationReimbursementRequest) Descriptor() ([]byte, []int)

Deprecated: Use EventApplicationReimbursementRequest.ProtoReflect.Descriptor instead.

func (*EventApplicationReimbursementRequest) GetAmount

func (*EventApplicationReimbursementRequest) GetApplicationAddr

func (x *EventApplicationReimbursementRequest) GetApplicationAddr() string

func (*EventApplicationReimbursementRequest) GetServiceId

func (x *EventApplicationReimbursementRequest) GetServiceId() string

func (*EventApplicationReimbursementRequest) GetSessionId

func (x *EventApplicationReimbursementRequest) GetSessionId() string

func (*EventApplicationReimbursementRequest) GetSupplierOperatorAddr

func (x *EventApplicationReimbursementRequest) GetSupplierOperatorAddr() string

func (*EventApplicationReimbursementRequest) GetSupplierOwnerAddr

func (x *EventApplicationReimbursementRequest) GetSupplierOwnerAddr() string

func (*EventApplicationReimbursementRequest) ProtoMessage

func (*EventApplicationReimbursementRequest) ProtoMessage()

func (*EventApplicationReimbursementRequest) ProtoReflect

func (*EventApplicationReimbursementRequest) Reset

func (*EventApplicationReimbursementRequest) 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 `` /* 155-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 units 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 onchain 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

func (x *EventClaimExpired) GetClaimedUpokt() *v1beta1.Coin

func (*EventClaimExpired) GetExpirationReason

func (x *EventClaimExpired) GetExpirationReason() ClaimExpirationReason

func (*EventClaimExpired) GetNumClaimedComputeUnits

func (x *EventClaimExpired) GetNumClaimedComputeUnits() uint64

func (*EventClaimExpired) GetNumEstimatedComputeUnits

func (x *EventClaimExpired) GetNumEstimatedComputeUnits() uint64

func (*EventClaimExpired) GetNumRelays

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 `` /* 151-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 units 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

func (x *EventClaimSettled) GetClaimedUpokt() *v1beta1.Coin

func (*EventClaimSettled) GetNumClaimedComputeUnits

func (x *EventClaimSettled) GetNumClaimedComputeUnits() uint64

func (*EventClaimSettled) GetNumEstimatedComputeUnits

func (x *EventClaimSettled) GetNumEstimatedComputeUnits() uint64

func (*EventClaimSettled) GetNumRelays

func (x *EventClaimSettled) GetNumRelays() uint64

func (*EventClaimSettled) GetProofRequirement

func (x *EventClaimSettled) GetProofRequirement() proof.ProofRequirementReason

func (*EventClaimSettled) GetSettlementResult

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

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

func (*EventSupplierSlashed) Descriptor() ([]byte, []int)

Deprecated: Use EventSupplierSlashed.ProtoReflect.Descriptor instead.

func (*EventSupplierSlashed) GetClaim

func (x *EventSupplierSlashed) GetClaim() *proof.Claim

func (*EventSupplierSlashed) GetProofMissingPenalty

func (x *EventSupplierSlashed) GetProofMissingPenalty() *v1beta1.Coin

func (*EventSupplierSlashed) ProtoMessage

func (*EventSupplierSlashed) ProtoMessage()

func (*EventSupplierSlashed) ProtoReflect

func (x *EventSupplierSlashed) ProtoReflect() protoreflect.Message

func (*EventSupplierSlashed) Reset

func (x *EventSupplierSlashed) Reset()

func (*EventSupplierSlashed) String

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

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

func (*MintAllocationPercentages) Descriptor() ([]byte, []int)

Deprecated: Use MintAllocationPercentages.ProtoReflect.Descriptor instead.

func (*MintAllocationPercentages) GetApplication

func (x *MintAllocationPercentages) GetApplication() float64

func (*MintAllocationPercentages) GetDao

func (x *MintAllocationPercentages) GetDao() float64

func (*MintAllocationPercentages) GetProposer

func (x *MintAllocationPercentages) GetProposer() float64

func (*MintAllocationPercentages) GetSourceOwner

func (x *MintAllocationPercentages) GetSourceOwner() float64

func (*MintAllocationPercentages) GetSupplier

func (x *MintAllocationPercentages) GetSupplier() float64

func (*MintAllocationPercentages) ProtoMessage

func (*MintAllocationPercentages) ProtoMessage()

func (*MintAllocationPercentages) ProtoReflect

func (*MintAllocationPercentages) Reset

func (x *MintAllocationPercentages) Reset()

func (*MintAllocationPercentages) String

func (x *MintAllocationPercentages) String() string

type MintBurnOp

type MintBurnOp struct {
	OpReason          SettlementOpReason `` /* 128-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

func (*MintBurnOp) Descriptor() ([]byte, []int)

Deprecated: Use MintBurnOp.ProtoReflect.Descriptor instead.

func (*MintBurnOp) GetCoin

func (x *MintBurnOp) GetCoin() *v1beta1.Coin

func (*MintBurnOp) GetDestinationModule

func (x *MintBurnOp) GetDestinationModule() string

func (*MintBurnOp) GetOpReason

func (x *MintBurnOp) GetOpReason() SettlementOpReason

func (*MintBurnOp) ProtoMessage

func (*MintBurnOp) ProtoMessage()

func (*MintBurnOp) ProtoReflect

func (x *MintBurnOp) ProtoReflect() protoreflect.Message

func (*MintBurnOp) Reset

func (x *MintBurnOp) Reset()

func (*MintBurnOp) String

func (x *MintBurnOp) String() string

type ModToAcctTransfer

type ModToAcctTransfer struct {
	OpReason         SettlementOpReason `` /* 128-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

func (*ModToAcctTransfer) Descriptor() ([]byte, []int)

Deprecated: Use ModToAcctTransfer.ProtoReflect.Descriptor instead.

func (*ModToAcctTransfer) GetCoin

func (x *ModToAcctTransfer) GetCoin() *v1beta1.Coin

func (*ModToAcctTransfer) GetOpReason

func (x *ModToAcctTransfer) GetOpReason() SettlementOpReason

func (*ModToAcctTransfer) GetRecipientAddress

func (x *ModToAcctTransfer) GetRecipientAddress() string

func (*ModToAcctTransfer) GetSenderModule

func (x *ModToAcctTransfer) GetSenderModule() string

func (*ModToAcctTransfer) ProtoMessage

func (*ModToAcctTransfer) ProtoMessage()

func (*ModToAcctTransfer) ProtoReflect

func (x *ModToAcctTransfer) ProtoReflect() protoreflect.Message

func (*ModToAcctTransfer) Reset

func (x *ModToAcctTransfer) Reset()

func (*ModToAcctTransfer) String

func (x *ModToAcctTransfer) String() string

type ModToModTransfer

type ModToModTransfer struct {
	OpReason        SettlementOpReason `` /* 128-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

func (*ModToModTransfer) Descriptor() ([]byte, []int)

Deprecated: Use ModToModTransfer.ProtoReflect.Descriptor instead.

func (*ModToModTransfer) GetCoin

func (x *ModToModTransfer) GetCoin() *v1beta1.Coin

func (*ModToModTransfer) GetOpReason

func (x *ModToModTransfer) GetOpReason() SettlementOpReason

func (*ModToModTransfer) GetRecipientModule

func (x *ModToModTransfer) GetRecipientModule() string

func (*ModToModTransfer) GetSenderModule

func (x *ModToModTransfer) GetSenderModule() string

func (*ModToModTransfer) ProtoMessage

func (*ModToModTransfer) ProtoMessage()

func (*ModToModTransfer) ProtoReflect

func (x *ModToModTransfer) ProtoReflect() protoreflect.Message

func (*ModToModTransfer) Reset

func (x *ModToModTransfer) Reset()

func (*ModToModTransfer) String

func (x *ModToModTransfer) String() string

type MsgUpdateParam

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
	//	*MsgUpdateParam_AsFloat
	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

func (*MsgUpdateParam) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParam.ProtoReflect.Descriptor instead.

func (*MsgUpdateParam) GetAsFloat

func (x *MsgUpdateParam) GetAsFloat() float64

func (*MsgUpdateParam) GetAsMintAllocationPercentages

func (x *MsgUpdateParam) GetAsMintAllocationPercentages() *MintAllocationPercentages

func (*MsgUpdateParam) GetAsString

func (x *MsgUpdateParam) GetAsString() string

func (*MsgUpdateParam) GetAsType

func (x *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType

func (*MsgUpdateParam) GetAuthority

func (x *MsgUpdateParam) GetAuthority() string

func (*MsgUpdateParam) GetName

func (x *MsgUpdateParam) GetName() string

func (*MsgUpdateParam) ProtoMessage

func (*MsgUpdateParam) ProtoMessage()

func (*MsgUpdateParam) ProtoReflect

func (x *MsgUpdateParam) ProtoReflect() protoreflect.Message

func (*MsgUpdateParam) Reset

func (x *MsgUpdateParam) Reset()

func (*MsgUpdateParam) String

func (x *MsgUpdateParam) String() string

type MsgUpdateParamResponse

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

func (*MsgUpdateParamResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParamResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamResponse) GetParams

func (x *MsgUpdateParamResponse) GetParams() *Params

func (*MsgUpdateParamResponse) ProtoMessage

func (*MsgUpdateParamResponse) ProtoMessage()

func (*MsgUpdateParamResponse) ProtoReflect

func (x *MsgUpdateParamResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamResponse) Reset

func (x *MsgUpdateParamResponse) Reset()

func (*MsgUpdateParamResponse) String

func (x *MsgUpdateParamResponse) String() string

type MsgUpdateParam_AsFloat

type MsgUpdateParam_AsFloat struct {
	AsFloat float64 `protobuf:"fixed64,5,opt,name=as_float,json=asFloat,proto3,oneof"`
}

type MsgUpdateParam_AsMintAllocationPercentages

type MsgUpdateParam_AsMintAllocationPercentages struct {
	AsMintAllocationPercentages *MintAllocationPercentages `protobuf:"bytes,3,opt,name=as_mint_allocation_percentages,json=asMintAllocationPercentages,proto3,oneof"`
}

type MsgUpdateParam_AsString

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 {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// 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) GetParams

func (x *MsgUpdateParamsResponse) GetParams() *Params

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 {

	// mint_allocation_percentages represents the distribution of newly minted tokens,
	// at the end of claim settlement, as a result of the Global Mint TLM.
	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
	// global_inflation_per_claim is the percentage of a claim's claimable uPOKT amount which will be minted on settlement.
	GlobalInflationPerClaim float64 `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

Params defines the parameters for the tokenomics module.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetDaoRewardAddress

func (x *Params) GetDaoRewardAddress() string

func (*Params) GetGlobalInflationPerClaim

func (x *Params) GetGlobalInflationPerClaim() float64

func (*Params) GetMintAllocationPercentages

func (x *Params) GetMintAllocationPercentages() *MintAllocationPercentages

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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 SettlementOpReason

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

func (SettlementOpReason) Enum

func (SettlementOpReason) EnumDescriptor deprecated

func (SettlementOpReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use SettlementOpReason.Descriptor instead.

func (SettlementOpReason) Number

func (SettlementOpReason) String

func (x SettlementOpReason) String() string

func (SettlementOpReason) Type

Directories

Path Synopsis
DO NOT DELETE this file.
DO NOT DELETE this file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL