syntax = "proto3";
package elys.commitment;

import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/elys-network/elys/x/commitment/types";

message LegacyParams {
  repeated VestingInfo vesting_infos = 1 [ (gogoproto.nullable) = false ];
  repeated cosmos.base.v1beta1.Coin total_committed = 2 [
    (gogoproto.nullable) = false,
    (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
  ];
  uint64 number_of_commitments = 3;
  bool enable_vest_now = 4;

  uint64 start_atom_stakers_height = 5;
  uint64 end_atom_stakers_height = 6;
  uint64 start_cadets_height = 7;
  uint64 end_cadets_height = 8;
  uint64 start_nft_holders_height = 9;
  uint64 end_nft_holders_height = 10;
  uint64 start_governors_height = 11;
  uint64 end_governors_height = 12;
}

message Params {
  repeated VestingInfo vesting_infos = 1 [ (gogoproto.nullable) = false ];
  repeated cosmos.base.v1beta1.Coin total_committed = 2 [
    (gogoproto.nullable) = false,
    (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
  ];
  uint64 number_of_commitments = 3;
  bool enable_vest_now = 4;

  uint64 start_airdrop_claim_height = 5;
  uint64 end_airdrop_claim_height = 6;
  bool enable_claim = 7;
  uint64 start_kol_claim_height = 8;
  uint64 end_kol_claim_height = 9;
}

message VestingInfo {
  string base_denom = 1;
  string vesting_denom = 2;
  int64 num_blocks = 3;
  string vest_now_factor = 4 [
    (cosmos_proto.scalar) = "cosmos.Int",
    (gogoproto.customtype) = "cosmossdk.io/math.Int",
    (gogoproto.nullable) = false
  ];
  int64 num_max_vestings = 5;
}

enum EarnType {
  ALL_PROGRAM = 0;
  USDC_PROGRAM = 1;
  ELYS_PROGRAM = 2;
  EDEN_PROGRAM = 3;
  EDENB_PROGRAM = 4;
  LP_MINING_PROGRAM = 5;
}