syntax = "proto3";

package juno.mint;

import "gogoproto/gogo.proto";

option go_package = "github.com/CosmosContracts/juno/x/mint/types";

// Minter represents the minting state.
message Minter {
  // current annual inflation rate
  string inflation = 1 [
    (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
    (gogoproto.nullable) = false
  ];
  uint64 phase = 2;
  uint64 start_phase_block = 3
      [ (gogoproto.moretags) = "yaml:\"start_phase_block\"" ];
  // current annual expected provisions
  string annual_provisions = 4 [
    (gogoproto.moretags) = "yaml:\"annual_provisions\"",
    (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
    (gogoproto.nullable) = false
  ];
  string target_supply = 5 [
    (gogoproto.moretags) = "yaml:\"target_supply\"",
    (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
    (gogoproto.nullable) = false
  ];
}

// Params holds parameters for the mint module.
message Params {
  option (gogoproto.goproto_stringer) = false;

  // type of coin to mint
  string mint_denom = 1;
  // expected blocks per year
  uint64 blocks_per_year = 2
      [ (gogoproto.moretags) = "yaml:\"blocks_per_year\"" ];
}
