Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions proto/initia/distribution/v1/distribution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package initia.distribution.v1;

import "amino/amino.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/initia-labs/initia/x/distribution/types";
Expand All @@ -17,7 +18,9 @@ message Params {
string community_tax = 1 [
(gogoproto.moretags) = "yaml:\"community_tax\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
bool withdraw_addr_enabled = 2 [(gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""];
repeated RewardWeight reward_weights = 3 [
Expand All @@ -33,7 +36,9 @@ message RewardWeight {
string weight = 2 [
(gogoproto.moretags) = "yaml:\"weight\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
}

Expand Down
7 changes: 6 additions & 1 deletion proto/initia/dynamicfee/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";
package initia.dynamicfee.v1;

import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/initia-labs/initia/x/dynamic-fee/types";
Expand All @@ -13,29 +14,33 @@ message Params {
(gogoproto.moretags) = "yaml:\"base_gas_price\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];

string min_base_gas_price = 2 [
(gogoproto.moretags) = "yaml:\"min_base_gas_price\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];

string max_base_gas_price = 3 [
(gogoproto.moretags) = "yaml:\"max_base_gas_price\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];

string max_change_rate = 4 [
(gogoproto.moretags) = "yaml:\"max_change_rate\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];

int64 target_gas = 5;
}
}
4 changes: 3 additions & 1 deletion proto/initia/move/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ message MsgWhitelist {
// RewardWeight is registered to distribution's Params
string reward_weight = 3 [
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
}

Expand Down
7 changes: 6 additions & 1 deletion proto/initia/move/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";
package initia.move.v1;

import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/initia-labs/initia/x/move/types";
Expand All @@ -19,6 +20,7 @@ message Params {
(gogoproto.moretags) = "yaml:\"base_min_gas_price\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true,
deprecated = true
];
Expand All @@ -28,6 +30,7 @@ message Params {
(gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];

Expand All @@ -49,6 +52,7 @@ message RawParams {
(gogoproto.moretags) = "yaml:\"base_min_gas_price\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true,
deprecated = true
];
Expand All @@ -58,6 +62,7 @@ message RawParams {
(gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];

Expand Down Expand Up @@ -136,4 +141,4 @@ message ExecuteAuthorizationItem {
string module_name = 2;
// FunctionName is the name of function to execute with wildcard '*' support
repeated string function_names = 3 [(gogoproto.nullable) = true];
}
}
17 changes: 13 additions & 4 deletions proto/initia/mstaking/v1/staking.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package initia.mstaking.v1;

import "amino/amino.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
Expand All @@ -19,19 +20,25 @@ message CommissionRates {
// rate is the commission rate charged to delegators, as a fraction.
string rate = 1 [
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
// max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
string max_rate = 2 [
(gogoproto.moretags) = "yaml:\"max_rate\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
// max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
string max_change_rate = 3 [
(gogoproto.moretags) = "yaml:\"max_change_rate\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
}

Expand Down Expand Up @@ -336,7 +343,9 @@ message Params {
string min_commission_rate = 7 [
(gogoproto.moretags) = "yaml:\"min_commission_rate\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
}

Expand Down
5 changes: 4 additions & 1 deletion proto/initia/mstaking/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ message MsgEditValidator {
// REF: #2373
string commission_rate = 3 [
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.moretags) = "yaml:\"commission_rate\""
(gogoproto.moretags) = "yaml:\"commission_rate\"",
(gogoproto.nullable) = true,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
}

Expand Down
6 changes: 5 additions & 1 deletion proto/initia/reward/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
syntax = "proto3";
package initia.reward.v1;

import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
Expand Down Expand Up @@ -45,7 +47,9 @@ message QueryAnnualProvisionsResponse {
// annual_provisions is the current minting annual provisions value.
bytes annual_provisions = 1 [
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
}

Expand Down
9 changes: 7 additions & 2 deletions proto/initia/reward/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";
package initia.reward.v1;

import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";

Expand All @@ -24,7 +25,9 @@ message Params {
string release_rate = 3 [
(gogoproto.moretags) = "yaml:\"release_rate\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
// The dilution rate of release rate.
// if `(block.timestamp - last_dilute_timestamp) < dilution_period`:
Expand All @@ -33,7 +36,9 @@ message Params {
string dilution_rate = 4 [
(gogoproto.moretags) = "yaml:\"dilution_rate\"",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
(gogoproto.nullable) = false,
(cosmos_proto.scalar) = "cosmos.Dec",
(amino.dont_omitempty) = true
];
bool release_enabled = 5;
}
Loading
Loading