2022-01-08 00:39:27 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.issuance.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "google/protobuf/duration.proto";
|
|
|
|
|
2024-05-01 03:17:24 +00:00
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/issuance/types";
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
// GenesisState defines the issuance module's genesis state.
|
|
|
|
message GenesisState {
|
2024-04-05 14:14:49 +00:00
|
|
|
// params defines all the parameters of the module.
|
2022-01-08 00:39:27 +00:00
|
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2022-11-03 18:49:53 +00:00
|
|
|
repeated AssetSupply supplies = 2 [(gogoproto.nullable) = false];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Params defines the parameters for the issuance module.
|
|
|
|
message Params {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
|
2022-11-03 18:49:53 +00:00
|
|
|
repeated Asset assets = 1 [(gogoproto.nullable) = false];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Asset type for assets in the issuance module
|
|
|
|
message Asset {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
string owner = 1;
|
|
|
|
string denom = 2;
|
2022-11-03 18:49:53 +00:00
|
|
|
repeated string blocked_addresses = 3;
|
2022-11-22 23:22:07 +00:00
|
|
|
bool paused = 4;
|
|
|
|
bool blockable = 5;
|
|
|
|
RateLimit rate_limit = 6 [(gogoproto.nullable) = false];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// RateLimit parameters for rate-limiting the supply of an issued asset
|
|
|
|
message RateLimit {
|
2022-11-03 18:49:53 +00:00
|
|
|
bool active = 1;
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
bytes limit = 2 [
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.jsontag) = "limit,omitempty"
|
2022-01-08 00:39:27 +00:00
|
|
|
];
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Duration time_period = 3 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdduration) = true
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// AssetSupply contains information about an asset's rate-limited supply (the
|
|
|
|
// total supply of the asset is tracked in the top-level supply module)
|
|
|
|
message AssetSupply {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
|
|
|
|
cosmos.base.v1beta1.Coin current_supply = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Duration time_elapsed = 2 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.stdduration) = true
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|