-
Notifications
You must be signed in to change notification settings - Fork 1
/
coinswap.proto
64 lines (53 loc) · 1.73 KB
/
coinswap.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
syntax = "proto3";
package canto.coinswap.v1;
import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";
option go_package = "github.com/Canto-Network/Canto/v7/x/coinswap/types";
option (gogoproto.goproto_getters_all) = false;
// Input defines the properties of order's input
message Input {
string address = 1;
cosmos.base.v1beta1.Coin coin = 2 [ (gogoproto.nullable) = false ];
}
// Output defines the properties of order's output
message Output {
string address = 1;
cosmos.base.v1beta1.Coin coin = 2 [ (gogoproto.nullable) = false ];
}
message Pool {
string id = 1;
// denom of base coin of the pool
string standard_denom = 2;
// denom of counterparty coin of the pool
string counterparty_denom = 3;
// escrow account for deposit tokens
string escrow_address = 4;
// denom of the liquidity pool coin
string lpt_denom = 5;
}
// Params defines token module's parameters
message Params {
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
string fee = 1 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
];
cosmos.base.v1beta1.Coin pool_creation_fee = 2
[ (gogoproto.nullable) = false ];
string tax_rate = 3 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
];
string max_standard_coin_per_pool = 4 [
(gogoproto.customtype) = "cosmossdk.io/math.Int",
(gogoproto.nullable) = false
];
repeated cosmos.base.v1beta1.Coin max_swap_amount = 6 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.nullable) = false
];
}