mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
4b8e224f6a
* Revert "Add incentive migrations for earn rewards (#1406)" This reverts commit937e5f339f
. * Revert "Use different accumulator for earn (#1395)" This reverts commitcf009647e6
. * Revert "Add base earn incentive accumulator (#1393)" This reverts commit44a90a8ef9
. * Revert "Add generic incentive `AccumulateRewards` method (#1392)" This reverts commitdce631d3de
. * Revert "Add GetSynchronizedClaim and swap adapter (#1386)" This reverts commitf52a581ea9
. * Revert "Add Initialize/Synchronize Claim methods (#1383)" This reverts commitc2061f626e
. * Revert "Add source adapter interface definition (#1377)" This reverts commit2abb2ce606
. * Revert "Add incentive RewardIndexes types and state methods (#1381)" This reverts commit4a3002b09c
. * Revert "Add AccrualTime type and state methods (#1379)" This reverts commitdf1c2ffc34
. * Revert "Add incentive claim state methods (#1375)" This reverts commit90735e29ed
. * Revert "Add generic Claim type (#1371)" This reverts commit45fc1a7643
. * Regerate protos and minor revert fixes
122 lines
3.1 KiB
Protocol Buffer
122 lines
3.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package kava.incentive.v1beta1;
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/incentive/types";
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
// RewardPeriod stores the state of an ongoing reward
|
|
message RewardPeriod {
|
|
bool active = 1;
|
|
|
|
string collateral_type = 2;
|
|
|
|
google.protobuf.Timestamp start = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.stdtime) = true
|
|
];
|
|
|
|
google.protobuf.Timestamp end = 4 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.stdtime) = true
|
|
];
|
|
|
|
cosmos.base.v1beta1.Coin rewards_per_second = 5 [(gogoproto.nullable) = false];
|
|
}
|
|
|
|
// MultiRewardPeriod supports multiple reward types
|
|
message MultiRewardPeriod {
|
|
bool active = 1;
|
|
|
|
string collateral_type = 2;
|
|
|
|
google.protobuf.Timestamp start = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.stdtime) = true
|
|
];
|
|
|
|
google.protobuf.Timestamp end = 4 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.stdtime) = true
|
|
];
|
|
|
|
repeated cosmos.base.v1beta1.Coin rewards_per_second = 5 [
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
}
|
|
|
|
// Multiplier amount the claim rewards get increased by, along with how long the claim rewards are locked
|
|
message Multiplier {
|
|
string name = 1;
|
|
|
|
int64 months_lockup = 2;
|
|
|
|
bytes factor = 3 [
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
}
|
|
|
|
// MultipliersPerDenom is a map of denoms to a set of multipliers
|
|
message MultipliersPerDenom {
|
|
string denom = 1;
|
|
|
|
repeated Multiplier multipliers = 2 [
|
|
(gogoproto.castrepeated) = "Multipliers",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
}
|
|
|
|
// Params
|
|
message Params {
|
|
repeated RewardPeriod usdx_minting_reward_periods = 1 [
|
|
(gogoproto.customname) = "USDXMintingRewardPeriods",
|
|
(gogoproto.castrepeated) = "RewardPeriods",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
repeated MultiRewardPeriod hard_supply_reward_periods = 2 [
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
repeated MultiRewardPeriod hard_borrow_reward_periods = 3 [
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
repeated MultiRewardPeriod delegator_reward_periods = 4 [
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
repeated MultiRewardPeriod swap_reward_periods = 5 [
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
repeated MultipliersPerDenom claim_multipliers = 6 [
|
|
(gogoproto.castrepeated) = "MultipliersPerDenoms",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
google.protobuf.Timestamp claim_end = 7 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.stdtime) = true
|
|
];
|
|
|
|
repeated MultiRewardPeriod savings_reward_periods = 8 [
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
|
|
repeated MultiRewardPeriod earn_reward_periods = 9 [
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
(gogoproto.nullable) = false
|
|
];
|
|
}
|