Skip to content

Commit

Permalink
feat(mint): specify token model v2 schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Dec 4, 2023
1 parent 919dccc commit 36a965f
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions proto/mint/v1beta1/mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import "gogoproto/gogo.proto";

option go_package = "github.com/okp4/okp4d/x/mint/types";

// Minter represents the minting state within the blockchain, tasked with the continuous calculation and distribution
// of tokens to validators.
// Minter represents the minting state within the blockchain.
//
// This calculation occurs with each block, where the minting module dynamically recalculates the annual `inflation` rate.
// Using the resulting inflation rate, it deduces the quantity of tokens to be provisioned for the upcoming year.
// At each block, the minting module recalculates the annual inflation rate dynamically. It then determines the total
// amount of tokens to be provisioned for the upcoming year based on this rate.
//
// Furthermore, based on the current block's position within the year, it computes the exact number of tokens to be
// minted for that specific block.
// Additionally, the module computes the precise number of tokens to be minted for the current block, taking into account
// its position within the annual cycle.
message Minter {
// Represents the current annual inflation rate.
string inflation = 1 [
Expand Down Expand Up @@ -42,18 +41,6 @@ message Params {
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// Bonding adjustment
string bonding_adjustment = 3 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// Represent the target bonding ratio to reach
string target_bonding_ratio = 4 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// Estimated blocks per year
uint64 blocks_per_year = 5;
uint64 blocks_per_year = 3;
}

0 comments on commit 36a965f

Please sign in to comment.