-
Notifications
You must be signed in to change notification settings - Fork 169
/
quota.proto
67 lines (63 loc) · 2.73 KB
/
quota.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
syntax = "proto3";
package umee.uibc.v1;
import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "cosmos_proto/cosmos.proto";
option go_package = "github.com/umee-network/umee/v6/x/uibc";
// Params of x/uibc module
message Params {
// ibc_status defines the IBC ICS20 status (transfer quota or transfers disabled).
IBCTransferStatus ibc_status = 1;
// total_quota defines the total outflow limit of ibc-transfer in USD
string total_quota = 2 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// token_quota defines the outflow limit per token in USD
string token_quota = 3 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// quota_duration defines quota expires for each ibc-transfer denom in seconds
google.protobuf.Duration quota_duration = 4 [
(gogoproto.nullable) = false,
(gogoproto.stdduration) = true,
(gogoproto.jsontag) = "quota_duration,omitempty",
(gogoproto.moretags) = "yaml:\"quota_duration\""
];
// inflow_outflow_quota_base defines the inflow outflow quota base of ibc-transfer in USD
string inflow_outflow_quota_base = 5 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// inflow_outflow_quota_rate defines the rate of total inflows
string inflow_outflow_quota_rate = 6 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
// inflow_outflow_token_quota_base defines the inflow outflow quota base for token
string inflow_outflow_token_quota_base = 7 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
}
// IBCTransferStatus status of ibc-transfer quota check for inflow and outflow
enum IBCTransferStatus {
// UNSPECIFIED defines a no-op status.
IBC_TRANSFER_STATUS_UNSPECIFIED = 0;
// DISABLED: all inflow and outflow quota checks are disabled.
IBC_TRANSFER_STATUS_QUOTA_DISABLED = 1;
// ENABLED: all inflow and outflow quota checks are enabled.
IBC_TRANSFER_STATUS_QUOTA_ENABLED = 2;
// DISABLED OUT: outflow quota check is disabled, while the inflow quota check is enabled.
IBC_TRANSFER_STATUS_QUOTA_OUT_DISABLED = 3;
// DISABLED IN: inflow quota check is disabled, while the outflow quota check is enabled.
IBC_TRANSFER_STATUS_QUOTA_IN_DISABLED = 4;
// PAUSED: all IBC transfers are paused.
IBC_TRANSFER_STATUS_TRANSFERS_PAUSED = 5;
}