mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-10-05 00:45:17 +00:00
bc260d8091
* add community params type * add get/set params methods * add community genesis state type * add community init/export genesis * add querier methods for params * add query cli cmd * update changelog * update protonet genesis * Add `RewardsPerSecond` param to `x/community` module (#1707) * Add RewardsPerSecond param to community * Update rewards per second param to int * Add rewards_per_second to protonet genesis * Use default rewards per second of 744191 * Include value if negative in Validate error * Rename RewardsPerSecond param to StakingRewardsPerSecond * Add changelog entry * Add param migration, update consensus version to 2 * Update proto docs * Update staking_rewards_per_second param name in protonet genesis (#1730) * Update godoc Co-authored-by: Robert Pirtle <Astropirtle@gmail.com> * add genesis state tests * document what 0 upgrade time means * update kvtool to include new params --------- Co-authored-by: drklee3 <derrick@dlee.dev> Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
26 lines
889 B
Protocol Buffer
26 lines
889 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.Int",
|
|
(gogoproto.customtype) = "cosmossdk.io/math.Int",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
}
|