2022-01-08 00:39:27 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.kavadist.v1beta1;
|
|
|
|
|
2022-09-29 19:27:40 +00:00
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
2022-11-22 23:22:07 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
2022-01-08 00:39:27 +00:00
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/kavadist/types";
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
2022-01-08 00:39:27 +00:00
|
|
|
option (gogoproto.goproto_stringer_all) = false;
|
|
|
|
|
|
|
|
// Params governance parameters for kavadist module
|
|
|
|
message Params {
|
2022-11-22 23:22:07 +00:00
|
|
|
bool active = 1;
|
|
|
|
repeated Period periods = 3 [(gogoproto.nullable) = false];
|
2022-09-29 19:27:40 +00:00
|
|
|
InfrastructureParams infrastructure_params = 4 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2022-10-05 22:56:39 +00:00
|
|
|
// InfrastructureParams define the parameters for infrastructure rewards.
|
2022-09-29 19:27:40 +00:00
|
|
|
message InfrastructureParams {
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated Period infrastructure_periods = 1 [
|
|
|
|
(gogoproto.castrepeated) = "Periods",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
|
|
|
repeated CoreReward core_rewards = 2 [
|
|
|
|
(gogoproto.castrepeated) = "CoreRewards",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
|
|
|
repeated PartnerReward partner_rewards = 3 [
|
|
|
|
(gogoproto.castrepeated) = "PartnerRewards",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-10-03 23:37:29 +00:00
|
|
|
option (gogoproto.goproto_stringer) = true;
|
2022-09-29 19:27:40 +00:00
|
|
|
}
|
|
|
|
|
2022-10-05 22:56:39 +00:00
|
|
|
// CoreReward defines the reward weights for core infrastructure providers.
|
2022-09-29 19:27:40 +00:00
|
|
|
message CoreReward {
|
2022-10-03 23:37:29 +00:00
|
|
|
bytes address = 1 [
|
2022-09-29 19:27:40 +00:00
|
|
|
(cosmos_proto.scalar) = "cosmos.AddressBytes",
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"
|
2022-09-29 19:27:40 +00:00
|
|
|
];
|
|
|
|
string weight = 2 [
|
2022-11-22 23:22:07 +00:00
|
|
|
(cosmos_proto.scalar) = "cosmos.Dec",
|
2022-09-29 19:27:40 +00:00
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.nullable) = false
|
2022-09-29 19:27:40 +00:00
|
|
|
];
|
2022-10-03 23:37:29 +00:00
|
|
|
option (gogoproto.goproto_stringer) = true;
|
2022-09-29 19:27:40 +00:00
|
|
|
}
|
|
|
|
|
2022-10-05 22:56:39 +00:00
|
|
|
// PartnerRewards defines the reward schedule for partner infrastructure providers.
|
2022-09-29 19:27:40 +00:00
|
|
|
message PartnerReward {
|
2022-10-03 23:37:29 +00:00
|
|
|
bytes address = 1 [
|
2022-09-29 19:27:40 +00:00
|
|
|
(cosmos_proto.scalar) = "cosmos.AddressBytes",
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"
|
2022-09-29 19:27:40 +00:00
|
|
|
];
|
2022-10-03 23:37:29 +00:00
|
|
|
cosmos.base.v1beta1.Coin rewards_per_second = 2 [(gogoproto.nullable) = false];
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_stringer) = true;
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Period stores the specified start and end dates, and the inflation, expressed as a decimal
|
|
|
|
// representing the yearly APR of KAVA tokens that will be minted during that period
|
|
|
|
message Period {
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
|
|
|
// example "2020-03-01T15:20:00Z"
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp start = 1 [
|
|
|
|
(gogoproto.stdtime) = true,
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
// example "2020-06-01T15:20:00Z"
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp end = 2 [
|
|
|
|
(gogoproto.stdtime) = true,
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
// example "1.000000003022265980" - 10% inflation
|
2022-11-22 23:22:07 +00:00
|
|
|
bytes inflation = 3 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|