2022-01-08 00:39:27 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.incentive.v1beta1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
2022-11-22 23:22:07 +00:00
|
|
|
import "google/protobuf/timestamp.proto";
|
2022-01-08 00:39:27 +00:00
|
|
|
import "kava/incentive/v1beta1/claims.proto";
|
|
|
|
import "kava/incentive/v1beta1/params.proto";
|
|
|
|
|
|
|
|
// import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
// import "cosmos/base/v1beta1/coins.proto";
|
|
|
|
|
2024-05-01 03:17:24 +00:00
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/incentive/types";
|
2022-01-08 00:39:27 +00:00
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
|
|
|
|
// AccumulationTime stores the previous reward distribution time and its corresponding collateral type
|
|
|
|
message AccumulationTime {
|
|
|
|
string collateral_type = 1;
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp previous_accumulation_time = 2 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdtime) = true
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GenesisRewardState groups together the global state for a particular reward so it can be exported in genesis.
|
|
|
|
message GenesisRewardState {
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated AccumulationTime accumulation_times = 1 [
|
|
|
|
(gogoproto.castrepeated) = "AccumulationTimes",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated MultiRewardIndex multi_reward_indexes = 2 [
|
|
|
|
(gogoproto.castrepeated) = "MultiRewardIndexes",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GenesisState is the state that must be provided at genesis.
|
|
|
|
message GenesisState {
|
|
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
GenesisRewardState usdx_reward_state = 2 [
|
|
|
|
(gogoproto.customname) = "USDXRewardState",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
GenesisRewardState hard_supply_reward_state = 3 [(gogoproto.nullable) = false];
|
|
|
|
|
|
|
|
GenesisRewardState hard_borrow_reward_state = 4 [(gogoproto.nullable) = false];
|
|
|
|
|
|
|
|
GenesisRewardState delegator_reward_state = 5 [(gogoproto.nullable) = false];
|
|
|
|
|
|
|
|
GenesisRewardState swap_reward_state = 6 [(gogoproto.nullable) = false];
|
|
|
|
|
|
|
|
repeated USDXMintingClaim usdx_minting_claims = 7 [
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.customname) = "USDXMintingClaims",
|
2022-01-08 00:39:27 +00:00
|
|
|
(gogoproto.castrepeated) = "USDXMintingClaims",
|
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 HardLiquidityProviderClaim hard_liquidity_provider_claims = 8 [
|
|
|
|
(gogoproto.castrepeated) = "HardLiquidityProviderClaims",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated DelegatorClaim delegator_claims = 9 [
|
|
|
|
(gogoproto.castrepeated) = "DelegatorClaims",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated SwapClaim swap_claims = 10 [
|
|
|
|
(gogoproto.castrepeated) = "SwapClaims",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-04-04 20:01:48 +00:00
|
|
|
|
|
|
|
GenesisRewardState savings_reward_state = 11 [(gogoproto.nullable) = false];
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated SavingsClaim savings_claims = 12 [
|
|
|
|
(gogoproto.castrepeated) = "SavingsClaims",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-09-22 18:26:08 +00:00
|
|
|
|
|
|
|
GenesisRewardState earn_reward_state = 13 [(gogoproto.nullable) = false];
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated EarnClaim earn_claims = 14 [
|
|
|
|
(gogoproto.castrepeated) = "EarnClaims",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|