mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
57a1a4b10d
* refactor param validation test cases to be shared by genesis and params tests * add additional test case for zero staking rewards in order to ensure no regressions in support for turning off rewards * add test case to ensure default params are valid -- prevent regression if defaults change to an invalid state during updates of validation or defaults * zero out parameters in migration -- this module will be used with existing chains and parameters should be set after migrations in each upgrade handler * update StakingRewardsPerSecond to an 18 decimal type in order to reduce error * add community grpc rest endpoints to swagger * Fix copy pasta query name to refer to correct Community module Co-authored-by: drklee3 <derrick@dlee.dev> * generate swagger changes from previous commit --------- Co-authored-by: drklee3 <derrick@dlee.dev>
26 lines
895 B
Protocol Buffer
26 lines
895 B
Protocol Buffer
syntax = "proto3";
|
|
package kava.community.v1beta1;
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/community/types";
|
|
|
|
// Params defines the parameters of the community module.
|
|
message Params {
|
|
// upgrade_time_disable_inflation is the time at which to disable mint and kavadist module inflation.
|
|
// If set to 0, inflation will be disabled from block 1.
|
|
google.protobuf.Timestamp upgrade_time_disable_inflation = 1 [
|
|
(gogoproto.stdtime) = true,
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
// staking_rewards_per_second is the amount paid out to delegators each block from the community account
|
|
string staking_rewards_per_second = 2 [
|
|
(cosmos_proto.scalar) = "cosmos.Dec",
|
|
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
}
|