Skip to content

Commit

Permalink
feat(mint): new mint params
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux authored and ccamel committed Dec 4, 2023
1 parent 0fe855c commit 90456d0
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 95 deletions.
7 changes: 4 additions & 3 deletions docs/proto/mint.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ and `target_supply` 230M.
| ----- | ---- | ----- | ----------- |
| `inflation` | [string](#string) | | current annual inflation rate |
| `annual_provisions` | [string](#string) | | current annual expected provisions |
| `target_supply` | [string](#string) | | target supply at end of period |

<a name="mint.v1beta1.Params"></a>

Expand All @@ -86,8 +85,10 @@ new inflation will be 12%.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `mint_denom` | [string](#string) | | type of coin to mint |
| `annual_reduction_factor` | [string](#string) | | annual reduction factor inflation rate change |
| `blocks_per_year` | [uint64](#uint64) | | expected blocks per year |
| `inflation_coef` | [string](#string) | | annual inflation coefficient |
| `bounding_adjustment` | [string](#string) | | bounding adjustment |
| `target_bounding_ratio` | [string](#string) | | target boudning ratio |
| `blocks_per_year` | [uint64](#uint64) | | expected blocks per yearmake p |

[//]: # (end messages)

Expand Down
25 changes: 16 additions & 9 deletions proto/mint/v1beta1/mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ message Minter {
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// target supply at end of period
string target_supply = 3 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}

// Params holds parameters for the mint module.
Expand All @@ -44,12 +39,24 @@ message Params {

// type of coin to mint
string mint_denom = 1;
// annual reduction factor inflation rate change
string annual_reduction_factor = 2 [
// annual inflation coefficient
string inflation_coef = 2 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// bounding adjustment
string bounding_adjustment = 3 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// target boudning ratio
string target_bounding_ratio = 4 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// expected blocks per year
uint64 blocks_per_year = 3;
// expected blocks per yearmake p
uint64 blocks_per_year = 5;
}
215 changes: 132 additions & 83 deletions x/mint/types/mint.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90456d0

Please sign in to comment.