@zoguxprotocol/proto 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/codegen/cosmos/bundle.ts +126 -126
- package/src/codegen/zogux/bridge/token.ts +24 -6
- package/src/codegen/zogux/bundle.ts +174 -165
- package/src/codegen/zogux/clob/clob_pair.ts +10 -24
- package/src/codegen/zogux/feetiers/genesis.ts +16 -2
- package/src/codegen/zogux/feetiers/params.ts +182 -0
- package/src/codegen/zogux/feetiers/query.lcd.ts +9 -1
- package/src/codegen/zogux/feetiers/query.rpc.Query.ts +15 -1
- package/src/codegen/zogux/feetiers/query.ts +108 -1
- package/src/codegen/zogux/feetiers/tx.rpc.msg.ts +11 -1
- package/src/codegen/zogux/feetiers/tx.ts +116 -1
- package/src/codegen/zogux/indexer/events/events.ts +182 -0
- package/src/codegen/zogux/ratelimit/limit_params.ts +1 -1
- package/src/codegen/zogux/spots/fee_tier.ts +114 -0
- package/src/codegen/zogux/spots/genesis.ts +84 -0
- package/src/codegen/zogux/spots/market.ts +162 -0
- package/src/codegen/zogux/spots/price.ts +86 -0
- package/src/codegen/zogux/token/query.ts +12 -0
- package/src/codegen/zogux/token/tx.ts +1 -0
|
@@ -108,96 +108,100 @@ import * as _252 from "./sending/genesis";
|
|
|
108
108
|
import * as _253 from "./sending/query";
|
|
109
109
|
import * as _254 from "./sending/transfer";
|
|
110
110
|
import * as _255 from "./sending/tx";
|
|
111
|
-
import * as _256 from "./
|
|
112
|
-
import * as _257 from "./
|
|
113
|
-
import * as _258 from "./
|
|
114
|
-
import * as _259 from "./
|
|
115
|
-
import * as _260 from "./stats/
|
|
116
|
-
import * as _261 from "./
|
|
117
|
-
import * as _262 from "./
|
|
118
|
-
import * as _263 from "./
|
|
119
|
-
import * as _264 from "./
|
|
120
|
-
import * as _265 from "./subaccounts/
|
|
121
|
-
import * as _266 from "./subaccounts/
|
|
122
|
-
import * as _267 from "./subaccounts/
|
|
123
|
-
import * as _268 from "./
|
|
124
|
-
import * as _269 from "./
|
|
125
|
-
import * as _270 from "./
|
|
126
|
-
import * as _271 from "./
|
|
127
|
-
import * as _272 from "./
|
|
128
|
-
import * as _273 from "./
|
|
129
|
-
import * as _274 from "./
|
|
130
|
-
import * as _275 from "./
|
|
131
|
-
import * as _276 from "./vault/
|
|
132
|
-
import * as _277 from "./vault/
|
|
133
|
-
import * as _278 from "./
|
|
134
|
-
import * as _279 from "./
|
|
135
|
-
import * as _280 from "./
|
|
136
|
-
import * as _281 from "./
|
|
137
|
-
import * as
|
|
138
|
-
import * as
|
|
139
|
-
import * as
|
|
140
|
-
import * as
|
|
141
|
-
import * as _346 from "./
|
|
142
|
-
import * as _347 from "./
|
|
143
|
-
import * as _348 from "./
|
|
144
|
-
import * as _349 from "./
|
|
145
|
-
import * as _350 from "./
|
|
146
|
-
import * as _351 from "./
|
|
147
|
-
import * as _352 from "./
|
|
148
|
-
import * as _353 from "./
|
|
149
|
-
import * as _354 from "./
|
|
150
|
-
import * as _355 from "./
|
|
151
|
-
import * as _356 from "./
|
|
152
|
-
import * as _357 from "./
|
|
153
|
-
import * as _358 from "./
|
|
154
|
-
import * as _359 from "./
|
|
155
|
-
import * as _360 from "./
|
|
156
|
-
import * as _361 from "./
|
|
157
|
-
import * as _362 from "./
|
|
158
|
-
import * as _363 from "./
|
|
159
|
-
import * as _364 from "./
|
|
160
|
-
import * as _365 from "./
|
|
161
|
-
import * as _366 from "./
|
|
162
|
-
import * as _367 from "./
|
|
163
|
-
import * as _368 from "./
|
|
164
|
-
import * as _369 from "./
|
|
165
|
-
import * as _370 from "./
|
|
166
|
-
import * as _371 from "./
|
|
167
|
-
import * as _372 from "./
|
|
168
|
-
import * as _373 from "./
|
|
169
|
-
import * as _374 from "./
|
|
170
|
-
import * as _375 from "./
|
|
171
|
-
import * as _376 from "./
|
|
172
|
-
import * as _377 from "./
|
|
173
|
-
import * as _378 from "./
|
|
174
|
-
import * as _379 from "./
|
|
175
|
-
import * as _380 from "./
|
|
176
|
-
import * as _381 from "./
|
|
177
|
-
import * as _382 from "./
|
|
178
|
-
import * as _383 from "./
|
|
179
|
-
import * as _384 from "./
|
|
180
|
-
import * as _385 from "./
|
|
181
|
-
import * as _386 from "./
|
|
182
|
-
import * as _387 from "./
|
|
183
|
-
import * as _388 from "./
|
|
184
|
-
import * as _389 from "./
|
|
185
|
-
import * as _390 from "./
|
|
186
|
-
import * as _391 from "./
|
|
187
|
-
import * as _392 from "./
|
|
188
|
-
import * as _393 from "./
|
|
189
|
-
import * as _394 from "./
|
|
190
|
-
import * as _395 from "./
|
|
191
|
-
import * as _396 from "./
|
|
192
|
-
import * as _397 from "./
|
|
193
|
-
import * as _398 from "./
|
|
194
|
-
import * as _399 from "./
|
|
195
|
-
import * as _400 from "./
|
|
196
|
-
import * as _401 from "./
|
|
197
|
-
import * as _402 from "./
|
|
198
|
-
import * as
|
|
199
|
-
import * as
|
|
200
|
-
import * as
|
|
111
|
+
import * as _256 from "./spots/fee_tier";
|
|
112
|
+
import * as _257 from "./spots/genesis";
|
|
113
|
+
import * as _258 from "./spots/market";
|
|
114
|
+
import * as _259 from "./spots/price";
|
|
115
|
+
import * as _260 from "./stats/genesis";
|
|
116
|
+
import * as _261 from "./stats/params";
|
|
117
|
+
import * as _262 from "./stats/query";
|
|
118
|
+
import * as _263 from "./stats/stats";
|
|
119
|
+
import * as _264 from "./stats/tx";
|
|
120
|
+
import * as _265 from "./subaccounts/asset_position";
|
|
121
|
+
import * as _266 from "./subaccounts/genesis";
|
|
122
|
+
import * as _267 from "./subaccounts/leverage";
|
|
123
|
+
import * as _268 from "./subaccounts/perpetual_position";
|
|
124
|
+
import * as _269 from "./subaccounts/query";
|
|
125
|
+
import * as _270 from "./subaccounts/streaming";
|
|
126
|
+
import * as _271 from "./subaccounts/subaccount";
|
|
127
|
+
import * as _272 from "./token/genesis";
|
|
128
|
+
import * as _273 from "./token/params";
|
|
129
|
+
import * as _274 from "./token/query";
|
|
130
|
+
import * as _275 from "./token/tx";
|
|
131
|
+
import * as _276 from "./vault/genesis";
|
|
132
|
+
import * as _277 from "./vault/params";
|
|
133
|
+
import * as _278 from "./vault/query";
|
|
134
|
+
import * as _279 from "./vault/share";
|
|
135
|
+
import * as _280 from "./vault/tx";
|
|
136
|
+
import * as _281 from "./vault/vault";
|
|
137
|
+
import * as _282 from "./vest/genesis";
|
|
138
|
+
import * as _283 from "./vest/query";
|
|
139
|
+
import * as _284 from "./vest/tx";
|
|
140
|
+
import * as _285 from "./vest/vest_entry";
|
|
141
|
+
import * as _346 from "./accountplus/query.lcd";
|
|
142
|
+
import * as _347 from "./affiliates/query.lcd";
|
|
143
|
+
import * as _348 from "./assets/query.lcd";
|
|
144
|
+
import * as _349 from "./blocktime/query.lcd";
|
|
145
|
+
import * as _350 from "./bridge/query.lcd";
|
|
146
|
+
import * as _351 from "./clob/query.lcd";
|
|
147
|
+
import * as _352 from "./delaymsg/query.lcd";
|
|
148
|
+
import * as _353 from "./epochs/query.lcd";
|
|
149
|
+
import * as _354 from "./feetiers/query.lcd";
|
|
150
|
+
import * as _355 from "./listing/query.lcd";
|
|
151
|
+
import * as _356 from "./perpetuals/query.lcd";
|
|
152
|
+
import * as _357 from "./prices/query.lcd";
|
|
153
|
+
import * as _358 from "./ratelimit/query.lcd";
|
|
154
|
+
import * as _359 from "./revshare/query.lcd";
|
|
155
|
+
import * as _360 from "./rewards/query.lcd";
|
|
156
|
+
import * as _361 from "./stats/query.lcd";
|
|
157
|
+
import * as _362 from "./subaccounts/query.lcd";
|
|
158
|
+
import * as _363 from "./token/query.lcd";
|
|
159
|
+
import * as _364 from "./vault/query.lcd";
|
|
160
|
+
import * as _365 from "./vest/query.lcd";
|
|
161
|
+
import * as _366 from "./accountplus/query.rpc.Query";
|
|
162
|
+
import * as _367 from "./affiliates/query.rpc.Query";
|
|
163
|
+
import * as _368 from "./assets/query.rpc.Query";
|
|
164
|
+
import * as _369 from "./blocktime/query.rpc.Query";
|
|
165
|
+
import * as _370 from "./bridge/query.rpc.Query";
|
|
166
|
+
import * as _371 from "./clob/query.rpc.Query";
|
|
167
|
+
import * as _372 from "./delaymsg/query.rpc.Query";
|
|
168
|
+
import * as _373 from "./epochs/query.rpc.Query";
|
|
169
|
+
import * as _374 from "./feetiers/query.rpc.Query";
|
|
170
|
+
import * as _375 from "./govplus/query.rpc.Query";
|
|
171
|
+
import * as _376 from "./listing/query.rpc.Query";
|
|
172
|
+
import * as _377 from "./perpetuals/query.rpc.Query";
|
|
173
|
+
import * as _378 from "./prices/query.rpc.Query";
|
|
174
|
+
import * as _379 from "./ratelimit/query.rpc.Query";
|
|
175
|
+
import * as _380 from "./revshare/query.rpc.Query";
|
|
176
|
+
import * as _381 from "./rewards/query.rpc.Query";
|
|
177
|
+
import * as _382 from "./sending/query.rpc.Query";
|
|
178
|
+
import * as _383 from "./stats/query.rpc.Query";
|
|
179
|
+
import * as _384 from "./subaccounts/query.rpc.Query";
|
|
180
|
+
import * as _385 from "./token/query.rpc.Query";
|
|
181
|
+
import * as _386 from "./vault/query.rpc.Query";
|
|
182
|
+
import * as _387 from "./vest/query.rpc.Query";
|
|
183
|
+
import * as _388 from "./accountplus/tx.rpc.msg";
|
|
184
|
+
import * as _389 from "./affiliates/tx.rpc.msg";
|
|
185
|
+
import * as _390 from "./blocktime/tx.rpc.msg";
|
|
186
|
+
import * as _391 from "./bridge/tx.rpc.msg";
|
|
187
|
+
import * as _392 from "./clob/tx.rpc.msg";
|
|
188
|
+
import * as _393 from "./delaymsg/tx.rpc.msg";
|
|
189
|
+
import * as _394 from "./feetiers/tx.rpc.msg";
|
|
190
|
+
import * as _395 from "./govplus/tx.rpc.msg";
|
|
191
|
+
import * as _396 from "./listing/tx.rpc.msg";
|
|
192
|
+
import * as _397 from "./perpetuals/tx.rpc.msg";
|
|
193
|
+
import * as _398 from "./prices/tx.rpc.msg";
|
|
194
|
+
import * as _399 from "./ratelimit/tx.rpc.msg";
|
|
195
|
+
import * as _400 from "./revshare/tx.rpc.msg";
|
|
196
|
+
import * as _401 from "./rewards/tx.rpc.msg";
|
|
197
|
+
import * as _402 from "./sending/tx.rpc.msg";
|
|
198
|
+
import * as _403 from "./stats/tx.rpc.msg";
|
|
199
|
+
import * as _404 from "./token/tx.rpc.msg";
|
|
200
|
+
import * as _405 from "./vault/tx.rpc.msg";
|
|
201
|
+
import * as _406 from "./vest/tx.rpc.msg";
|
|
202
|
+
import * as _410 from "./lcd";
|
|
203
|
+
import * as _411 from "./rpc.query";
|
|
204
|
+
import * as _412 from "./rpc.tx";
|
|
201
205
|
export namespace zogux {
|
|
202
206
|
export const accountplus = { ..._146,
|
|
203
207
|
..._147,
|
|
@@ -205,33 +209,33 @@ export namespace zogux {
|
|
|
205
209
|
..._149,
|
|
206
210
|
..._150,
|
|
207
211
|
..._151,
|
|
208
|
-
...
|
|
209
|
-
...
|
|
210
|
-
...
|
|
212
|
+
..._346,
|
|
213
|
+
..._366,
|
|
214
|
+
..._388
|
|
211
215
|
};
|
|
212
216
|
export const affiliates = { ..._152,
|
|
213
217
|
..._153,
|
|
214
218
|
..._154,
|
|
215
219
|
..._155,
|
|
216
|
-
...
|
|
217
|
-
...
|
|
218
|
-
...
|
|
220
|
+
..._347,
|
|
221
|
+
..._367,
|
|
222
|
+
..._389
|
|
219
223
|
};
|
|
220
224
|
export const assets = { ..._156,
|
|
221
225
|
..._157,
|
|
222
226
|
..._158,
|
|
223
227
|
..._159,
|
|
224
|
-
...
|
|
225
|
-
...
|
|
228
|
+
..._348,
|
|
229
|
+
..._368
|
|
226
230
|
};
|
|
227
231
|
export const blocktime = { ..._160,
|
|
228
232
|
..._161,
|
|
229
233
|
..._162,
|
|
230
234
|
..._163,
|
|
231
235
|
..._164,
|
|
232
|
-
...
|
|
233
|
-
...
|
|
234
|
-
...
|
|
236
|
+
..._349,
|
|
237
|
+
..._369,
|
|
238
|
+
..._390
|
|
235
239
|
};
|
|
236
240
|
export const bridge = { ..._165,
|
|
237
241
|
..._166,
|
|
@@ -243,9 +247,9 @@ export namespace zogux {
|
|
|
243
247
|
..._172,
|
|
244
248
|
..._173,
|
|
245
249
|
..._174,
|
|
246
|
-
...
|
|
247
|
-
...
|
|
248
|
-
...
|
|
250
|
+
..._350,
|
|
251
|
+
..._370,
|
|
252
|
+
..._391
|
|
249
253
|
};
|
|
250
254
|
export const clob = { ..._175,
|
|
251
255
|
..._176,
|
|
@@ -263,9 +267,9 @@ export namespace zogux {
|
|
|
263
267
|
..._188,
|
|
264
268
|
..._189,
|
|
265
269
|
..._190,
|
|
266
|
-
...
|
|
267
|
-
...
|
|
268
|
-
...
|
|
270
|
+
..._351,
|
|
271
|
+
..._371,
|
|
272
|
+
..._392
|
|
269
273
|
};
|
|
270
274
|
export namespace daemons {
|
|
271
275
|
export const bridge = { ..._191
|
|
@@ -280,15 +284,15 @@ export namespace zogux {
|
|
|
280
284
|
..._196,
|
|
281
285
|
..._197,
|
|
282
286
|
..._198,
|
|
283
|
-
...
|
|
284
|
-
...
|
|
285
|
-
...
|
|
287
|
+
..._352,
|
|
288
|
+
..._372,
|
|
289
|
+
..._393
|
|
286
290
|
};
|
|
287
291
|
export const epochs = { ..._199,
|
|
288
292
|
..._200,
|
|
289
293
|
..._201,
|
|
290
|
-
...
|
|
291
|
-
...
|
|
294
|
+
..._353,
|
|
295
|
+
..._373
|
|
292
296
|
};
|
|
293
297
|
export const feetiers = { ..._202,
|
|
294
298
|
..._203,
|
|
@@ -296,15 +300,15 @@ export namespace zogux {
|
|
|
296
300
|
..._205,
|
|
297
301
|
..._206,
|
|
298
302
|
..._207,
|
|
299
|
-
...
|
|
300
|
-
...
|
|
301
|
-
...
|
|
303
|
+
..._354,
|
|
304
|
+
..._374,
|
|
305
|
+
..._394
|
|
302
306
|
};
|
|
303
307
|
export const govplus = { ..._208,
|
|
304
308
|
..._209,
|
|
305
309
|
..._210,
|
|
306
|
-
...
|
|
307
|
-
...
|
|
310
|
+
..._375,
|
|
311
|
+
..._395
|
|
308
312
|
};
|
|
309
313
|
export namespace indexer {
|
|
310
314
|
export const events = { ..._211
|
|
@@ -331,18 +335,18 @@ export namespace zogux {
|
|
|
331
335
|
..._222,
|
|
332
336
|
..._223,
|
|
333
337
|
..._224,
|
|
334
|
-
...
|
|
335
|
-
...
|
|
336
|
-
...
|
|
338
|
+
..._355,
|
|
339
|
+
..._376,
|
|
340
|
+
..._396
|
|
337
341
|
};
|
|
338
342
|
export const perpetuals = { ..._225,
|
|
339
343
|
..._226,
|
|
340
344
|
..._227,
|
|
341
345
|
..._228,
|
|
342
346
|
..._229,
|
|
343
|
-
...
|
|
344
|
-
...
|
|
345
|
-
...
|
|
347
|
+
..._356,
|
|
348
|
+
..._377,
|
|
349
|
+
..._397
|
|
346
350
|
};
|
|
347
351
|
export const prices = { ..._230,
|
|
348
352
|
..._231,
|
|
@@ -350,9 +354,9 @@ export namespace zogux {
|
|
|
350
354
|
..._233,
|
|
351
355
|
..._234,
|
|
352
356
|
..._235,
|
|
353
|
-
...
|
|
354
|
-
...
|
|
355
|
-
...
|
|
357
|
+
..._357,
|
|
358
|
+
..._378,
|
|
359
|
+
..._398
|
|
356
360
|
};
|
|
357
361
|
export const ratelimit = { ..._236,
|
|
358
362
|
..._237,
|
|
@@ -360,82 +364,87 @@ export namespace zogux {
|
|
|
360
364
|
..._239,
|
|
361
365
|
..._240,
|
|
362
366
|
..._241,
|
|
363
|
-
...
|
|
364
|
-
...
|
|
365
|
-
...
|
|
367
|
+
..._358,
|
|
368
|
+
..._379,
|
|
369
|
+
..._399
|
|
366
370
|
};
|
|
367
371
|
export const revshare = { ..._242,
|
|
368
372
|
..._243,
|
|
369
373
|
..._244,
|
|
370
374
|
..._245,
|
|
371
375
|
..._246,
|
|
372
|
-
...
|
|
373
|
-
...
|
|
374
|
-
...
|
|
376
|
+
..._359,
|
|
377
|
+
..._380,
|
|
378
|
+
..._400
|
|
375
379
|
};
|
|
376
380
|
export const rewards = { ..._247,
|
|
377
381
|
..._248,
|
|
378
382
|
..._249,
|
|
379
383
|
..._250,
|
|
380
384
|
..._251,
|
|
381
|
-
...
|
|
382
|
-
...
|
|
383
|
-
...
|
|
385
|
+
..._360,
|
|
386
|
+
..._381,
|
|
387
|
+
..._401
|
|
384
388
|
};
|
|
385
389
|
export const sending = { ..._252,
|
|
386
390
|
..._253,
|
|
387
391
|
..._254,
|
|
388
392
|
..._255,
|
|
389
|
-
...
|
|
390
|
-
...
|
|
393
|
+
..._382,
|
|
394
|
+
..._402
|
|
391
395
|
};
|
|
392
|
-
export const
|
|
396
|
+
export const spots = { ..._256,
|
|
393
397
|
..._257,
|
|
394
398
|
..._258,
|
|
395
|
-
..._259
|
|
396
|
-
..._260,
|
|
397
|
-
..._357,
|
|
398
|
-
..._379,
|
|
399
|
-
..._399
|
|
399
|
+
..._259
|
|
400
400
|
};
|
|
401
|
-
export const
|
|
401
|
+
export const stats = { ..._260,
|
|
402
|
+
..._261,
|
|
402
403
|
..._262,
|
|
403
404
|
..._263,
|
|
404
405
|
..._264,
|
|
405
|
-
...
|
|
406
|
+
..._361,
|
|
407
|
+
..._383,
|
|
408
|
+
..._403
|
|
409
|
+
};
|
|
410
|
+
export const subaccounts = { ..._265,
|
|
406
411
|
..._266,
|
|
407
412
|
..._267,
|
|
408
|
-
...
|
|
409
|
-
..._380
|
|
410
|
-
};
|
|
411
|
-
export const token = { ..._268,
|
|
413
|
+
..._268,
|
|
412
414
|
..._269,
|
|
413
415
|
..._270,
|
|
414
416
|
..._271,
|
|
415
|
-
...
|
|
416
|
-
...
|
|
417
|
-
..._400
|
|
417
|
+
..._362,
|
|
418
|
+
..._384
|
|
418
419
|
};
|
|
419
|
-
export const
|
|
420
|
+
export const token = { ..._272,
|
|
420
421
|
..._273,
|
|
421
422
|
..._274,
|
|
422
423
|
..._275,
|
|
423
|
-
...
|
|
424
|
-
...
|
|
425
|
-
...
|
|
426
|
-
..._382,
|
|
427
|
-
..._401
|
|
424
|
+
..._363,
|
|
425
|
+
..._385,
|
|
426
|
+
..._404
|
|
428
427
|
};
|
|
429
|
-
export const
|
|
428
|
+
export const vault = { ..._276,
|
|
429
|
+
..._277,
|
|
430
|
+
..._278,
|
|
430
431
|
..._279,
|
|
431
432
|
..._280,
|
|
432
433
|
..._281,
|
|
433
|
-
...
|
|
434
|
-
...
|
|
435
|
-
...
|
|
434
|
+
..._364,
|
|
435
|
+
..._386,
|
|
436
|
+
..._405
|
|
437
|
+
};
|
|
438
|
+
export const vest = { ..._282,
|
|
439
|
+
..._283,
|
|
440
|
+
..._284,
|
|
441
|
+
..._285,
|
|
442
|
+
..._365,
|
|
443
|
+
..._387,
|
|
444
|
+
..._406
|
|
436
445
|
};
|
|
437
|
-
export const ClientFactory = { ...
|
|
438
|
-
...
|
|
439
|
-
...
|
|
446
|
+
export const ClientFactory = { ..._410,
|
|
447
|
+
..._411,
|
|
448
|
+
..._412
|
|
440
449
|
};
|
|
441
450
|
}
|
|
@@ -126,25 +126,21 @@ export interface PerpetualClobMetadataSDKType {
|
|
|
126
126
|
perpetual_id: number;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* SpotClobMetadata contains metadata for a `ClobPair`
|
|
130
130
|
* representing a Spot product.
|
|
131
131
|
*/
|
|
132
132
|
|
|
133
133
|
export interface SpotClobMetadata {
|
|
134
|
-
/** Id of the
|
|
135
|
-
|
|
136
|
-
/** Id of the quote Asset in the trading pair. */
|
|
137
|
-
|
|
138
|
-
quoteAssetId: number;
|
|
134
|
+
/** Id of the SpotMarket from spots module (references spots.markets[id]). */
|
|
135
|
+
marketId: number;
|
|
139
136
|
}
|
|
140
137
|
/**
|
|
141
|
-
*
|
|
138
|
+
* SpotClobMetadata contains metadata for a `ClobPair`
|
|
142
139
|
* representing a Spot product.
|
|
143
140
|
*/
|
|
144
141
|
|
|
145
142
|
export interface SpotClobMetadataSDKType {
|
|
146
|
-
|
|
147
|
-
quote_asset_id: number;
|
|
143
|
+
market_id: number;
|
|
148
144
|
}
|
|
149
145
|
/**
|
|
150
146
|
* ClobPair represents a single CLOB pair for a given product
|
|
@@ -237,19 +233,14 @@ export const PerpetualClobMetadata = {
|
|
|
237
233
|
|
|
238
234
|
function createBaseSpotClobMetadata(): SpotClobMetadata {
|
|
239
235
|
return {
|
|
240
|
-
|
|
241
|
-
quoteAssetId: 0
|
|
236
|
+
marketId: 0
|
|
242
237
|
};
|
|
243
238
|
}
|
|
244
239
|
|
|
245
240
|
export const SpotClobMetadata = {
|
|
246
241
|
encode(message: SpotClobMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
247
|
-
if (message.
|
|
248
|
-
writer.uint32(8).uint32(message.
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (message.quoteAssetId !== 0) {
|
|
252
|
-
writer.uint32(16).uint32(message.quoteAssetId);
|
|
242
|
+
if (message.marketId !== 0) {
|
|
243
|
+
writer.uint32(8).uint32(message.marketId);
|
|
253
244
|
}
|
|
254
245
|
|
|
255
246
|
return writer;
|
|
@@ -265,11 +256,7 @@ export const SpotClobMetadata = {
|
|
|
265
256
|
|
|
266
257
|
switch (tag >>> 3) {
|
|
267
258
|
case 1:
|
|
268
|
-
message.
|
|
269
|
-
break;
|
|
270
|
-
|
|
271
|
-
case 2:
|
|
272
|
-
message.quoteAssetId = reader.uint32();
|
|
259
|
+
message.marketId = reader.uint32();
|
|
273
260
|
break;
|
|
274
261
|
|
|
275
262
|
default:
|
|
@@ -283,8 +270,7 @@ export const SpotClobMetadata = {
|
|
|
283
270
|
|
|
284
271
|
fromPartial(object: DeepPartial<SpotClobMetadata>): SpotClobMetadata {
|
|
285
272
|
const message = createBaseSpotClobMetadata();
|
|
286
|
-
message.
|
|
287
|
-
message.quoteAssetId = object.quoteAssetId ?? 0;
|
|
273
|
+
message.marketId = object.marketId ?? 0;
|
|
288
274
|
return message;
|
|
289
275
|
}
|
|
290
276
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PerpetualFeeParams, PerpetualFeeParamsSDKType } from "./params";
|
|
1
|
+
import { PerpetualFeeParams, PerpetualFeeParamsSDKType, SpotFeeParams, SpotFeeParamsSDKType } from "./params";
|
|
2
2
|
import { StakingTier, StakingTierSDKType } from "./staking_tier";
|
|
3
3
|
import * as _m0 from "protobufjs/minimal";
|
|
4
4
|
import { DeepPartial } from "../../helpers";
|
|
@@ -10,18 +10,23 @@ export interface GenesisState {
|
|
|
10
10
|
/** The staking tiers. */
|
|
11
11
|
|
|
12
12
|
stakingTiers: StakingTier[];
|
|
13
|
+
/** The parameters for spot trading fees. */
|
|
14
|
+
|
|
15
|
+
spotFeeParams?: SpotFeeParams;
|
|
13
16
|
}
|
|
14
17
|
/** GenesisState defines the feetiers module's genesis state. */
|
|
15
18
|
|
|
16
19
|
export interface GenesisStateSDKType {
|
|
17
20
|
params?: PerpetualFeeParamsSDKType;
|
|
18
21
|
staking_tiers: StakingTierSDKType[];
|
|
22
|
+
spot_fee_params?: SpotFeeParamsSDKType;
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
function createBaseGenesisState(): GenesisState {
|
|
22
26
|
return {
|
|
23
27
|
params: undefined,
|
|
24
|
-
stakingTiers: []
|
|
28
|
+
stakingTiers: [],
|
|
29
|
+
spotFeeParams: undefined
|
|
25
30
|
};
|
|
26
31
|
}
|
|
27
32
|
|
|
@@ -35,6 +40,10 @@ export const GenesisState = {
|
|
|
35
40
|
StakingTier.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
36
41
|
}
|
|
37
42
|
|
|
43
|
+
if (message.spotFeeParams !== undefined) {
|
|
44
|
+
SpotFeeParams.encode(message.spotFeeParams, writer.uint32(26).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
|
|
38
47
|
return writer;
|
|
39
48
|
},
|
|
40
49
|
|
|
@@ -55,6 +64,10 @@ export const GenesisState = {
|
|
|
55
64
|
message.stakingTiers.push(StakingTier.decode(reader, reader.uint32()));
|
|
56
65
|
break;
|
|
57
66
|
|
|
67
|
+
case 3:
|
|
68
|
+
message.spotFeeParams = SpotFeeParams.decode(reader, reader.uint32());
|
|
69
|
+
break;
|
|
70
|
+
|
|
58
71
|
default:
|
|
59
72
|
reader.skipType(tag & 7);
|
|
60
73
|
break;
|
|
@@ -68,6 +81,7 @@ export const GenesisState = {
|
|
|
68
81
|
const message = createBaseGenesisState();
|
|
69
82
|
message.params = object.params !== undefined && object.params !== null ? PerpetualFeeParams.fromPartial(object.params) : undefined;
|
|
70
83
|
message.stakingTiers = object.stakingTiers?.map(e => StakingTier.fromPartial(e)) || [];
|
|
84
|
+
message.spotFeeParams = object.spotFeeParams !== undefined && object.spotFeeParams !== null ? SpotFeeParams.fromPartial(object.spotFeeParams) : undefined;
|
|
71
85
|
return message;
|
|
72
86
|
}
|
|
73
87
|
|