Skip to content

Commit

Permalink
feat: update params proto to add inflation change percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Sep 27, 2024
1 parent accc858 commit 164e4fd
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 29 deletions.
7 changes: 4 additions & 3 deletions proto/arkeo/arkeo/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ option go_package = "github.com/arkeonetwork/arkeo/x/arkeo/types";
// Params defines the parameters for the module.
message Params {
option (gogoproto.goproto_stringer) = false;
string CommunityPoolPercentage= 1 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
string DevFundPercentage= 2 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
string GrantFundPercentage= 3 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
string community_pool_percentage= 1 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
string dev_fund_percentage= 2 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
string grant_fund_percentage= 3 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
string inflation_change_percentage = 4 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
}
7 changes: 4 additions & 3 deletions x/arkeo/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ func ParamKeyTable() paramtypes.KeyTable {
// NewParams creates a new Params instance
func NewParams() Params {
return Params{
CommunityPoolPercentage: math.NewInt(10),
DevFundPercentage: math.NewInt(20),
GrantFundPercentage: math.NewInt(20),
CommunityPoolPercentage: math.NewInt(10),
DevFundPercentage: math.NewInt(20),
GrantFundPercentage: math.NewInt(20),
InflationChangePercentage: math.NewInt(13),
}
}

Expand Down
96 changes: 73 additions & 23 deletions x/arkeo/types/params.pb.go

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

0 comments on commit 164e4fd

Please sign in to comment.