-
Notifications
You must be signed in to change notification settings - Fork 3
/
data.proto
281 lines (241 loc) · 5.61 KB
/
data.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
syntax = "proto3";
package api_pb;
option go_package = "github.com/MinterTeam/node-grpc-gateway/gen/go;api_pb";
import "resources.proto";
message SendData {
Coin coin = 1;
string to = 2;
string value = 3;
}
message SellCoinData {
Coin coin_to_sell = 1;
string value_to_sell = 2;
Coin coin_to_buy = 3;
string minimum_value_to_buy = 4;
}
message SellAllCoinData {
Coin coin_to_sell = 1;
Coin coin_to_buy = 2;
string minimum_value_to_buy = 3;
}
message BuyCoinData {
Coin coin_to_buy = 1;
string value_to_buy = 2;
Coin coin_to_sell = 3;
string maximum_value_to_sell = 4;
}
message CreateCoinData {
string name = 1;
string symbol = 2;
string initial_amount = 3;
string initial_reserve = 4;
uint64 constant_reserve_ratio = 5;
string max_supply = 6;
}
message DeclareCandidacyData {
string address = 1;
string pub_key = 2;
uint64 commission = 3;
Coin coin = 4;
string stake = 5;
}
message DelegateData {
string pub_key = 1;
Coin coin = 2;
string value = 3;
}
message UnbondData {
string pub_key = 1;
Coin coin = 2;
string value = 3;
}
message RedeemCheckData {
string raw_check = 1;
string proof = 2;
}
message SetCandidateOnData {
string pub_key = 1;
}
message SetCandidateOffData {
string pub_key = 1;
}
message CreateMultisigData {
uint64 threshold = 1;
repeated uint64 weights = 2;
repeated string addresses = 3;
}
message MultiSendData {
repeated SendData list = 1;
}
message EditCandidateData {
string pub_key = 1;
string reward_address = 3;
string owner_address = 4;
string control_address = 5;
}
message SetHaltBlockData {
string pub_key = 1;
uint64 height = 2;
}
message RecreateCoinData {
string name = 1;
string symbol = 2;
string initial_amount = 3;
string initial_reserve = 4;
uint64 constant_reserve_ratio = 5;
string max_supply = 6;
}
message EditCoinOwnerData {
string symbol = 1;
string new_owner = 2;
}
message EditMultisigData {
uint64 threshold = 1;
repeated uint64 weights = 2;
repeated string addresses = 3;
}
message EditCandidatePublicKeyData {
string pub_key = 1;
string new_pub_key = 2;
}
message CreateSwapPoolData {
Coin coin0 = 1;
Coin coin1 = 2;
string volume0 = 3;
string volume1 = 4;
}
message AddLiquidityData {
Coin coin0 = 1;
Coin coin1 = 2;
string volume0 = 3;
string maximum_volume1 = 4;
}
message RemoveLiquidityData {
Coin coin0 = 1;
Coin coin1 = 2;
string liquidity = 3;
string minimum_volume0 = 4;
string minimum_volume1 = 5;
}
message SellSwapPoolData {
repeated Coin coins = 1;
string value_to_sell = 2;
string minimum_value_to_buy = 4;
}
message SellAllSwapPoolData {
repeated Coin coins = 1;
string minimum_value_to_buy = 3;
}
message BuySwapPoolData {
repeated Coin coins = 1;
string value_to_buy = 2;
string maximum_value_to_sell = 4;
}
message EditCandidateCommission {
string pub_key = 1;
uint64 commission = 2;
}
message MintTokenData {
Coin coin = 1;
string value = 2;
}
message BurnTokenData {
Coin coin = 1;
string value = 2;
}
message CreateTokenData {
string name = 1;
string symbol = 2;
string initial_amount = 3;
string max_supply = 4;
bool mintable = 5;
bool burnable = 6;
}
message RecreateTokenData {
string name = 1;
string symbol = 2;
string initial_amount = 3;
string max_supply = 4;
bool mintable = 5;
bool burnable = 6;
}
message VoteCommissionData {
string pub_key = 1;
uint64 height = 2;
Coin coin = 3;
string payload_byte = 4;
string send = 5;
string buy_bancor = 38;
string sell_bancor = 39;
string sell_all_bancor = 40;
string buy_pool_base = 41;
string buy_pool_delta = 53;
string sell_pool_base = 42;
string sell_pool_delta = 54;
string sell_all_pool_base = 43;
string sell_all_pool_delta = 55;
string create_ticker3 = 7;
string create_ticker4 = 8;
string create_ticker5 = 9;
string create_ticker6 = 10;
string create_ticker7_10 = 11;
string create_coin = 34;
string create_token = 35;
string recreate_coin = 36;
string recreate_token = 37;
string declare_candidacy = 13;
string delegate = 14;
string unbond = 15;
string redeem_check = 16;
string set_candidate_on = 44;
string set_candidate_off = 45;
string create_multisig = 18;
string multisend_base = 51;
string multisend_delta = 52;
string edit_candidate = 20;
string set_halt_block = 21;
string edit_ticker_owner = 22;
string edit_multisig = 23;
string edit_candidate_public_key = 25;
string create_swap_pool = 48;
string add_liquidity = 49;
string remove_liquidity = 50;
string edit_candidate_commission = 28;
string mint_token = 46;
string burn_token = 47;
string vote_commission = 31;
string vote_update = 32;
string failed_tx = 56;
string add_limit_order = 57;
string remove_limit_order = 58;
string move_stake = 59;
string lock_stake = 60;
string lock = 61;
}
message VoteUpdateData {
string pub_key = 1;
uint64 height = 2;
string version = 3;
}
message AddLimitOrderData {
Coin coin_to_sell = 1;
string value_to_sell = 2;
Coin coin_to_buy = 3;
string value_to_buy = 4;
}
message RemoveLimitOrderData {
uint64 id = 1;
}
message MoveStakeData {
string from_pub_key = 1;
string to_pub_key = 4;
Coin coin = 2;
string value = 3;
}
message LockStakeData {
}
message LockData {
uint64 due_block = 1;
Coin coin = 2;
string value = 3;
}