From 36a965f0c0a4adc8257f66fd1ab023edb8056d2b Mon Sep 17 00:00:00 2001 From: ccamel Date: Mon, 4 Dec 2023 17:25:02 +0100 Subject: [PATCH] feat(mint): specify token model v2 schemas --- proto/mint/v1beta1/mint.proto | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/proto/mint/v1beta1/mint.proto b/proto/mint/v1beta1/mint.proto index 25575198..05e74f0d 100644 --- a/proto/mint/v1beta1/mint.proto +++ b/proto/mint/v1beta1/mint.proto @@ -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 [ @@ -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; }