2022-01-08 00:39:27 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.incentive.v1beta1;
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
2022-01-08 00:39:27 +00:00
|
|
|
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;
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp start = 3 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdtime) = true
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp end = 4 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdtime) = true
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp start = 3 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdtime) = true
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp end = 4 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdtime) = true
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated cosmos.base.v1beta1.Coin rewards_per_second = 5 [
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
2022-12-22 01:08:16 +00:00
|
|
|
// Multiplier amount the claim rewards get increased by, along with how long the claim rewards are locked
|
2022-01-08 00:39:27 +00:00
|
|
|
message Multiplier {
|
|
|
|
string name = 1;
|
|
|
|
|
|
|
|
int64 months_lockup = 2;
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
bytes factor = 3 [
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// MultipliersPerDenom is a map of denoms to a set of multipliers
|
|
|
|
message MultipliersPerDenom {
|
|
|
|
string denom = 1;
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated Multiplier multipliers = 2 [
|
|
|
|
(gogoproto.castrepeated) = "Multipliers",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Params
|
|
|
|
message Params {
|
|
|
|
repeated RewardPeriod usdx_minting_reward_periods = 1 [
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.customname) = "USDXMintingRewardPeriods",
|
2022-01-08 00:39:27 +00:00
|
|
|
(gogoproto.castrepeated) = "RewardPeriods",
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.nullable) = false
|
2022-01-08 00:39:27 +00:00
|
|
|
];
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultiRewardPeriod hard_supply_reward_periods = 2 [
|
|
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultiRewardPeriod hard_borrow_reward_periods = 3 [
|
|
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultiRewardPeriod delegator_reward_periods = 4 [
|
|
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultiRewardPeriod swap_reward_periods = 5 [
|
|
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultipliersPerDenom claim_multipliers = 6 [
|
|
|
|
(gogoproto.castrepeated) = "MultipliersPerDenoms",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp claim_end = 7 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdtime) = true
|
|
|
|
];
|
2022-04-04 20:01:48 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultiRewardPeriod savings_reward_periods = 8 [
|
|
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-09-22 18:26:08 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultiRewardPeriod earn_reward_periods = 9 [
|
|
|
|
(gogoproto.castrepeated) = "MultiRewardPeriods",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|