@zoguxprotocol/proto 0.1.6 → 0.1.8
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/events.ts +12 -6
- package/src/codegen/zogux/bridge/params.ts +6 -4
- package/src/codegen/zogux/bundle.ts +167 -161
- package/src/codegen/zogux/indexer/events/events.ts +59 -4
- package/src/codegen/zogux/indexer/protocol/v1/subaccount.ts +82 -0
- package/src/codegen/zogux/rpc.tx.ts +1 -0
- package/src/codegen/zogux/sending/transfer.ts +570 -0
- package/src/codegen/zogux/sending/tx.rpc.msg.ts +68 -2
- package/src/codegen/zogux/sending/tx.ts +224 -0
- package/src/codegen/zogux/spots/tx.rpc.msg.ts +11 -1
- package/src/codegen/zogux/spots/tx.ts +110 -0
- package/src/codegen/zogux/subaccounts/spot_position.ts +84 -0
- package/src/codegen/zogux/subaccounts/subaccount.ts +39 -2
- package/src/codegen/zogux/subaccounts/tx.rpc.msg.ts +28 -0
- package/src/codegen/zogux/subaccounts/tx.ts +159 -0
|
@@ -124,90 +124,93 @@ import * as _268 from "./subaccounts/genesis";
|
|
|
124
124
|
import * as _269 from "./subaccounts/leverage";
|
|
125
125
|
import * as _270 from "./subaccounts/perpetual_position";
|
|
126
126
|
import * as _271 from "./subaccounts/query";
|
|
127
|
-
import * as _272 from "./subaccounts/
|
|
128
|
-
import * as _273 from "./subaccounts/
|
|
129
|
-
import * as _274 from "./
|
|
130
|
-
import * as _275 from "./
|
|
131
|
-
import * as _276 from "./token/
|
|
132
|
-
import * as _277 from "./token/
|
|
133
|
-
import * as _278 from "./
|
|
134
|
-
import * as _279 from "./
|
|
135
|
-
import * as _280 from "./vault/
|
|
136
|
-
import * as _281 from "./vault/
|
|
137
|
-
import * as _282 from "./vault/
|
|
138
|
-
import * as _283 from "./vault/
|
|
139
|
-
import * as _284 from "./
|
|
140
|
-
import * as _285 from "./
|
|
141
|
-
import * as _286 from "./vest/
|
|
142
|
-
import * as _287 from "./vest/
|
|
143
|
-
import * as
|
|
144
|
-
import * as
|
|
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 _403 from "./
|
|
199
|
-
import * as _404 from "./
|
|
200
|
-
import * as _405 from "./
|
|
201
|
-
import * as _406 from "./
|
|
202
|
-
import * as _407 from "./
|
|
203
|
-
import * as _408 from "./
|
|
204
|
-
import * as _409 from "./
|
|
205
|
-
import * as _410 from "./
|
|
206
|
-
import * as _411 from "./
|
|
207
|
-
import * as _412 from "./
|
|
208
|
-
import * as
|
|
209
|
-
import * as
|
|
210
|
-
import * as
|
|
127
|
+
import * as _272 from "./subaccounts/spot_position";
|
|
128
|
+
import * as _273 from "./subaccounts/streaming";
|
|
129
|
+
import * as _274 from "./subaccounts/subaccount";
|
|
130
|
+
import * as _275 from "./subaccounts/tx";
|
|
131
|
+
import * as _276 from "./token/genesis";
|
|
132
|
+
import * as _277 from "./token/params";
|
|
133
|
+
import * as _278 from "./token/query";
|
|
134
|
+
import * as _279 from "./token/tx";
|
|
135
|
+
import * as _280 from "./vault/genesis";
|
|
136
|
+
import * as _281 from "./vault/params";
|
|
137
|
+
import * as _282 from "./vault/query";
|
|
138
|
+
import * as _283 from "./vault/share";
|
|
139
|
+
import * as _284 from "./vault/tx";
|
|
140
|
+
import * as _285 from "./vault/vault";
|
|
141
|
+
import * as _286 from "./vest/genesis";
|
|
142
|
+
import * as _287 from "./vest/query";
|
|
143
|
+
import * as _288 from "./vest/tx";
|
|
144
|
+
import * as _289 from "./vest/vest_entry";
|
|
145
|
+
import * as _350 from "./accountplus/query.lcd";
|
|
146
|
+
import * as _351 from "./affiliates/query.lcd";
|
|
147
|
+
import * as _352 from "./assets/query.lcd";
|
|
148
|
+
import * as _353 from "./blocktime/query.lcd";
|
|
149
|
+
import * as _354 from "./bridge/query.lcd";
|
|
150
|
+
import * as _355 from "./clob/query.lcd";
|
|
151
|
+
import * as _356 from "./delaymsg/query.lcd";
|
|
152
|
+
import * as _357 from "./epochs/query.lcd";
|
|
153
|
+
import * as _358 from "./feetiers/query.lcd";
|
|
154
|
+
import * as _359 from "./listing/query.lcd";
|
|
155
|
+
import * as _360 from "./perpetuals/query.lcd";
|
|
156
|
+
import * as _361 from "./prices/query.lcd";
|
|
157
|
+
import * as _362 from "./ratelimit/query.lcd";
|
|
158
|
+
import * as _363 from "./revshare/query.lcd";
|
|
159
|
+
import * as _364 from "./rewards/query.lcd";
|
|
160
|
+
import * as _365 from "./spots/query.lcd";
|
|
161
|
+
import * as _366 from "./stats/query.lcd";
|
|
162
|
+
import * as _367 from "./subaccounts/query.lcd";
|
|
163
|
+
import * as _368 from "./token/query.lcd";
|
|
164
|
+
import * as _369 from "./vault/query.lcd";
|
|
165
|
+
import * as _370 from "./vest/query.lcd";
|
|
166
|
+
import * as _371 from "./accountplus/query.rpc.Query";
|
|
167
|
+
import * as _372 from "./affiliates/query.rpc.Query";
|
|
168
|
+
import * as _373 from "./assets/query.rpc.Query";
|
|
169
|
+
import * as _374 from "./blocktime/query.rpc.Query";
|
|
170
|
+
import * as _375 from "./bridge/query.rpc.Query";
|
|
171
|
+
import * as _376 from "./clob/query.rpc.Query";
|
|
172
|
+
import * as _377 from "./delaymsg/query.rpc.Query";
|
|
173
|
+
import * as _378 from "./epochs/query.rpc.Query";
|
|
174
|
+
import * as _379 from "./feetiers/query.rpc.Query";
|
|
175
|
+
import * as _380 from "./govplus/query.rpc.Query";
|
|
176
|
+
import * as _381 from "./listing/query.rpc.Query";
|
|
177
|
+
import * as _382 from "./perpetuals/query.rpc.Query";
|
|
178
|
+
import * as _383 from "./prices/query.rpc.Query";
|
|
179
|
+
import * as _384 from "./ratelimit/query.rpc.Query";
|
|
180
|
+
import * as _385 from "./revshare/query.rpc.Query";
|
|
181
|
+
import * as _386 from "./rewards/query.rpc.Query";
|
|
182
|
+
import * as _387 from "./sending/query.rpc.Query";
|
|
183
|
+
import * as _388 from "./spots/query.rpc.Query";
|
|
184
|
+
import * as _389 from "./stats/query.rpc.Query";
|
|
185
|
+
import * as _390 from "./subaccounts/query.rpc.Query";
|
|
186
|
+
import * as _391 from "./token/query.rpc.Query";
|
|
187
|
+
import * as _392 from "./vault/query.rpc.Query";
|
|
188
|
+
import * as _393 from "./vest/query.rpc.Query";
|
|
189
|
+
import * as _394 from "./accountplus/tx.rpc.msg";
|
|
190
|
+
import * as _395 from "./affiliates/tx.rpc.msg";
|
|
191
|
+
import * as _396 from "./assets/tx.rpc.msg";
|
|
192
|
+
import * as _397 from "./blocktime/tx.rpc.msg";
|
|
193
|
+
import * as _398 from "./bridge/tx.rpc.msg";
|
|
194
|
+
import * as _399 from "./clob/tx.rpc.msg";
|
|
195
|
+
import * as _400 from "./delaymsg/tx.rpc.msg";
|
|
196
|
+
import * as _401 from "./feetiers/tx.rpc.msg";
|
|
197
|
+
import * as _402 from "./govplus/tx.rpc.msg";
|
|
198
|
+
import * as _403 from "./listing/tx.rpc.msg";
|
|
199
|
+
import * as _404 from "./perpetuals/tx.rpc.msg";
|
|
200
|
+
import * as _405 from "./prices/tx.rpc.msg";
|
|
201
|
+
import * as _406 from "./ratelimit/tx.rpc.msg";
|
|
202
|
+
import * as _407 from "./revshare/tx.rpc.msg";
|
|
203
|
+
import * as _408 from "./rewards/tx.rpc.msg";
|
|
204
|
+
import * as _409 from "./sending/tx.rpc.msg";
|
|
205
|
+
import * as _410 from "./spots/tx.rpc.msg";
|
|
206
|
+
import * as _411 from "./stats/tx.rpc.msg";
|
|
207
|
+
import * as _412 from "./subaccounts/tx.rpc.msg";
|
|
208
|
+
import * as _413 from "./token/tx.rpc.msg";
|
|
209
|
+
import * as _414 from "./vault/tx.rpc.msg";
|
|
210
|
+
import * as _415 from "./vest/tx.rpc.msg";
|
|
211
|
+
import * as _419 from "./lcd";
|
|
212
|
+
import * as _420 from "./rpc.query";
|
|
213
|
+
import * as _421 from "./rpc.tx";
|
|
211
214
|
export namespace zogux {
|
|
212
215
|
export const accountplus = { ..._146,
|
|
213
216
|
..._147,
|
|
@@ -215,34 +218,34 @@ export namespace zogux {
|
|
|
215
218
|
..._149,
|
|
216
219
|
..._150,
|
|
217
220
|
..._151,
|
|
218
|
-
...
|
|
219
|
-
...
|
|
220
|
-
...
|
|
221
|
+
..._350,
|
|
222
|
+
..._371,
|
|
223
|
+
..._394
|
|
221
224
|
};
|
|
222
225
|
export const affiliates = { ..._152,
|
|
223
226
|
..._153,
|
|
224
227
|
..._154,
|
|
225
228
|
..._155,
|
|
226
|
-
...
|
|
227
|
-
...
|
|
228
|
-
...
|
|
229
|
+
..._351,
|
|
230
|
+
..._372,
|
|
231
|
+
..._395
|
|
229
232
|
};
|
|
230
233
|
export const assets = { ..._156,
|
|
231
234
|
..._157,
|
|
232
235
|
..._158,
|
|
233
236
|
..._159,
|
|
234
|
-
...
|
|
235
|
-
...
|
|
236
|
-
...
|
|
237
|
+
..._352,
|
|
238
|
+
..._373,
|
|
239
|
+
..._396
|
|
237
240
|
};
|
|
238
241
|
export const blocktime = { ..._160,
|
|
239
242
|
..._161,
|
|
240
243
|
..._162,
|
|
241
244
|
..._163,
|
|
242
245
|
..._164,
|
|
243
|
-
...
|
|
244
|
-
...
|
|
245
|
-
...
|
|
246
|
+
..._353,
|
|
247
|
+
..._374,
|
|
248
|
+
..._397
|
|
246
249
|
};
|
|
247
250
|
export const bridge = { ..._165,
|
|
248
251
|
..._166,
|
|
@@ -254,9 +257,9 @@ export namespace zogux {
|
|
|
254
257
|
..._172,
|
|
255
258
|
..._173,
|
|
256
259
|
..._174,
|
|
257
|
-
...
|
|
258
|
-
...
|
|
259
|
-
...
|
|
260
|
+
..._354,
|
|
261
|
+
..._375,
|
|
262
|
+
..._398
|
|
260
263
|
};
|
|
261
264
|
export const clob = { ..._175,
|
|
262
265
|
..._176,
|
|
@@ -274,9 +277,9 @@ export namespace zogux {
|
|
|
274
277
|
..._188,
|
|
275
278
|
..._189,
|
|
276
279
|
..._190,
|
|
277
|
-
...
|
|
278
|
-
...
|
|
279
|
-
...
|
|
280
|
+
..._355,
|
|
281
|
+
..._376,
|
|
282
|
+
..._399
|
|
280
283
|
};
|
|
281
284
|
export namespace daemons {
|
|
282
285
|
export const bridge = { ..._191
|
|
@@ -291,15 +294,15 @@ export namespace zogux {
|
|
|
291
294
|
..._196,
|
|
292
295
|
..._197,
|
|
293
296
|
..._198,
|
|
294
|
-
...
|
|
295
|
-
...
|
|
296
|
-
...
|
|
297
|
+
..._356,
|
|
298
|
+
..._377,
|
|
299
|
+
..._400
|
|
297
300
|
};
|
|
298
301
|
export const epochs = { ..._199,
|
|
299
302
|
..._200,
|
|
300
303
|
..._201,
|
|
301
|
-
...
|
|
302
|
-
...
|
|
304
|
+
..._357,
|
|
305
|
+
..._378
|
|
303
306
|
};
|
|
304
307
|
export const feetiers = { ..._202,
|
|
305
308
|
..._203,
|
|
@@ -307,15 +310,15 @@ export namespace zogux {
|
|
|
307
310
|
..._205,
|
|
308
311
|
..._206,
|
|
309
312
|
..._207,
|
|
310
|
-
...
|
|
311
|
-
...
|
|
312
|
-
...
|
|
313
|
+
..._358,
|
|
314
|
+
..._379,
|
|
315
|
+
..._401
|
|
313
316
|
};
|
|
314
317
|
export const govplus = { ..._208,
|
|
315
318
|
..._209,
|
|
316
319
|
..._210,
|
|
317
|
-
...
|
|
318
|
-
...
|
|
320
|
+
..._380,
|
|
321
|
+
..._402
|
|
319
322
|
};
|
|
320
323
|
export namespace indexer {
|
|
321
324
|
export const events = { ..._211
|
|
@@ -342,18 +345,18 @@ export namespace zogux {
|
|
|
342
345
|
..._222,
|
|
343
346
|
..._223,
|
|
344
347
|
..._224,
|
|
345
|
-
...
|
|
346
|
-
...
|
|
347
|
-
...
|
|
348
|
+
..._359,
|
|
349
|
+
..._381,
|
|
350
|
+
..._403
|
|
348
351
|
};
|
|
349
352
|
export const perpetuals = { ..._225,
|
|
350
353
|
..._226,
|
|
351
354
|
..._227,
|
|
352
355
|
..._228,
|
|
353
356
|
..._229,
|
|
354
|
-
...
|
|
355
|
-
...
|
|
356
|
-
...
|
|
357
|
+
..._360,
|
|
358
|
+
..._382,
|
|
359
|
+
..._404
|
|
357
360
|
};
|
|
358
361
|
export const prices = { ..._230,
|
|
359
362
|
..._231,
|
|
@@ -361,9 +364,9 @@ export namespace zogux {
|
|
|
361
364
|
..._233,
|
|
362
365
|
..._234,
|
|
363
366
|
..._235,
|
|
364
|
-
...
|
|
365
|
-
...
|
|
366
|
-
...
|
|
367
|
+
..._361,
|
|
368
|
+
..._383,
|
|
369
|
+
..._405
|
|
367
370
|
};
|
|
368
371
|
export const ratelimit = { ..._236,
|
|
369
372
|
..._237,
|
|
@@ -371,34 +374,34 @@ export namespace zogux {
|
|
|
371
374
|
..._239,
|
|
372
375
|
..._240,
|
|
373
376
|
..._241,
|
|
374
|
-
...
|
|
375
|
-
...
|
|
376
|
-
...
|
|
377
|
+
..._362,
|
|
378
|
+
..._384,
|
|
379
|
+
..._406
|
|
377
380
|
};
|
|
378
381
|
export const revshare = { ..._242,
|
|
379
382
|
..._243,
|
|
380
383
|
..._244,
|
|
381
384
|
..._245,
|
|
382
385
|
..._246,
|
|
383
|
-
...
|
|
384
|
-
...
|
|
385
|
-
...
|
|
386
|
+
..._363,
|
|
387
|
+
..._385,
|
|
388
|
+
..._407
|
|
386
389
|
};
|
|
387
390
|
export const rewards = { ..._247,
|
|
388
391
|
..._248,
|
|
389
392
|
..._249,
|
|
390
393
|
..._250,
|
|
391
394
|
..._251,
|
|
392
|
-
...
|
|
393
|
-
...
|
|
394
|
-
...
|
|
395
|
+
..._364,
|
|
396
|
+
..._386,
|
|
397
|
+
..._408
|
|
395
398
|
};
|
|
396
399
|
export const sending = { ..._252,
|
|
397
400
|
..._253,
|
|
398
401
|
..._254,
|
|
399
402
|
..._255,
|
|
400
|
-
...
|
|
401
|
-
...
|
|
403
|
+
..._387,
|
|
404
|
+
..._409
|
|
402
405
|
};
|
|
403
406
|
export const spots = { ..._256,
|
|
404
407
|
..._257,
|
|
@@ -406,18 +409,18 @@ export namespace zogux {
|
|
|
406
409
|
..._259,
|
|
407
410
|
..._260,
|
|
408
411
|
..._261,
|
|
409
|
-
...
|
|
410
|
-
...
|
|
411
|
-
...
|
|
412
|
+
..._365,
|
|
413
|
+
..._388,
|
|
414
|
+
..._410
|
|
412
415
|
};
|
|
413
416
|
export const stats = { ..._262,
|
|
414
417
|
..._263,
|
|
415
418
|
..._264,
|
|
416
419
|
..._265,
|
|
417
420
|
..._266,
|
|
418
|
-
...
|
|
419
|
-
...
|
|
420
|
-
...
|
|
421
|
+
..._366,
|
|
422
|
+
..._389,
|
|
423
|
+
..._411
|
|
421
424
|
};
|
|
422
425
|
export const subaccounts = { ..._267,
|
|
423
426
|
..._268,
|
|
@@ -426,37 +429,40 @@ export namespace zogux {
|
|
|
426
429
|
..._271,
|
|
427
430
|
..._272,
|
|
428
431
|
..._273,
|
|
429
|
-
...
|
|
430
|
-
..._388
|
|
431
|
-
};
|
|
432
|
-
export const token = { ..._274,
|
|
432
|
+
..._274,
|
|
433
433
|
..._275,
|
|
434
|
-
...
|
|
435
|
-
...
|
|
436
|
-
...
|
|
437
|
-
..._389,
|
|
438
|
-
..._410
|
|
434
|
+
..._367,
|
|
435
|
+
..._390,
|
|
436
|
+
..._412
|
|
439
437
|
};
|
|
440
|
-
export const
|
|
438
|
+
export const token = { ..._276,
|
|
439
|
+
..._277,
|
|
440
|
+
..._278,
|
|
441
441
|
..._279,
|
|
442
|
-
...
|
|
442
|
+
..._368,
|
|
443
|
+
..._391,
|
|
444
|
+
..._413
|
|
445
|
+
};
|
|
446
|
+
export const vault = { ..._280,
|
|
443
447
|
..._281,
|
|
444
448
|
..._282,
|
|
445
449
|
..._283,
|
|
446
|
-
...
|
|
447
|
-
..._390,
|
|
448
|
-
..._411
|
|
449
|
-
};
|
|
450
|
-
export const vest = { ..._284,
|
|
450
|
+
..._284,
|
|
451
451
|
..._285,
|
|
452
|
-
...
|
|
452
|
+
..._369,
|
|
453
|
+
..._392,
|
|
454
|
+
..._414
|
|
455
|
+
};
|
|
456
|
+
export const vest = { ..._286,
|
|
453
457
|
..._287,
|
|
454
|
-
...
|
|
455
|
-
...
|
|
456
|
-
...
|
|
458
|
+
..._288,
|
|
459
|
+
..._289,
|
|
460
|
+
..._370,
|
|
461
|
+
..._393,
|
|
462
|
+
..._415
|
|
457
463
|
};
|
|
458
|
-
export const ClientFactory = { ...
|
|
459
|
-
...
|
|
460
|
-
...
|
|
464
|
+
export const ClientFactory = { ..._419,
|
|
465
|
+
..._420,
|
|
466
|
+
..._421
|
|
461
467
|
};
|
|
462
468
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IndexerSubaccountId, IndexerSubaccountIdSDKType, IndexerPerpetualPosition, IndexerPerpetualPositionSDKType, IndexerAssetPosition, IndexerAssetPositionSDKType } from "../protocol/v1/subaccount";
|
|
1
|
+
import { IndexerSubaccountId, IndexerSubaccountIdSDKType, IndexerPerpetualPosition, IndexerPerpetualPositionSDKType, IndexerAssetPosition, IndexerAssetPositionSDKType, IndexerSpotLockedBalance, IndexerSpotLockedBalanceSDKType } from "../protocol/v1/subaccount";
|
|
2
2
|
import { IndexerOrder, IndexerOrderSDKType, IndexerOrderId, IndexerOrderIdSDKType, ClobPairStatus } from "../protocol/v1/clob";
|
|
3
3
|
import { OrderRemovalReason } from "../shared/removal_reason";
|
|
4
4
|
import { PerpetualMarketType } from "../protocol/v1/perpetual";
|
|
@@ -499,6 +499,8 @@ export interface SubaccountUpdateEventV1 {
|
|
|
499
499
|
subaccountId?: IndexerSubaccountId;
|
|
500
500
|
updatedPerpetualPositions: IndexerPerpetualPosition[];
|
|
501
501
|
updatedAssetPositions: IndexerAssetPosition[];
|
|
502
|
+
updatedSpotAssetPositions: IndexerAssetPosition[];
|
|
503
|
+
updatedSpotLockedBalances: IndexerSpotLockedBalance[];
|
|
502
504
|
}
|
|
503
505
|
/**
|
|
504
506
|
* SubaccountUpdateEvent message contains information about an update to a
|
|
@@ -513,6 +515,8 @@ export interface SubaccountUpdateEventV1SDKType {
|
|
|
513
515
|
subaccount_id?: IndexerSubaccountIdSDKType;
|
|
514
516
|
updated_perpetual_positions: IndexerPerpetualPositionSDKType[];
|
|
515
517
|
updated_asset_positions: IndexerAssetPositionSDKType[];
|
|
518
|
+
updated_spot_asset_positions: IndexerAssetPositionSDKType[];
|
|
519
|
+
updated_spot_locked_balances: IndexerSpotLockedBalanceSDKType[];
|
|
516
520
|
}
|
|
517
521
|
/**
|
|
518
522
|
* StatefulOrderEvent message contains information about a change to a stateful
|
|
@@ -1043,6 +1047,9 @@ export interface SpotMarketCreateEventV1 {
|
|
|
1043
1047
|
/** Minimum increment in the size of orders on the CLOB, in base quantums. */
|
|
1044
1048
|
|
|
1045
1049
|
stepBaseQuantums: Long;
|
|
1050
|
+
/** Minimum notional value for orders on this CLOB pair, in quote quantums. */
|
|
1051
|
+
|
|
1052
|
+
minNotional: Long;
|
|
1046
1053
|
}
|
|
1047
1054
|
/**
|
|
1048
1055
|
* SpotMarketCreateEventV1 message contains all the information about a
|
|
@@ -1057,6 +1064,7 @@ export interface SpotMarketCreateEventV1SDKType {
|
|
|
1057
1064
|
quantum_conversion_exponent: number;
|
|
1058
1065
|
subticks_per_tick: number;
|
|
1059
1066
|
step_base_quantums: Long;
|
|
1067
|
+
min_notional: Long;
|
|
1060
1068
|
}
|
|
1061
1069
|
/**
|
|
1062
1070
|
* LiquidityTierUpsertEventV1 message contains all the information to
|
|
@@ -1143,6 +1151,12 @@ export interface UpdateClobPairEventV1 {
|
|
|
1143
1151
|
*/
|
|
1144
1152
|
|
|
1145
1153
|
stepBaseQuantums: Long;
|
|
1154
|
+
/**
|
|
1155
|
+
* Minimum notional value for orders on this CLOB pair, in quote quantums.
|
|
1156
|
+
* Only applicable for spot markets.
|
|
1157
|
+
*/
|
|
1158
|
+
|
|
1159
|
+
minNotional: Long;
|
|
1146
1160
|
}
|
|
1147
1161
|
/**
|
|
1148
1162
|
* UpdateClobPairEventV1 message contains all the information about an update to
|
|
@@ -1155,6 +1169,7 @@ export interface UpdateClobPairEventV1SDKType {
|
|
|
1155
1169
|
quantum_conversion_exponent: number;
|
|
1156
1170
|
subticks_per_tick: number;
|
|
1157
1171
|
step_base_quantums: Long;
|
|
1172
|
+
min_notional: Long;
|
|
1158
1173
|
}
|
|
1159
1174
|
/**
|
|
1160
1175
|
* UpdatePerpetualEventV1 message contains all the information about an update
|
|
@@ -2468,7 +2483,9 @@ function createBaseSubaccountUpdateEventV1(): SubaccountUpdateEventV1 {
|
|
|
2468
2483
|
return {
|
|
2469
2484
|
subaccountId: undefined,
|
|
2470
2485
|
updatedPerpetualPositions: [],
|
|
2471
|
-
updatedAssetPositions: []
|
|
2486
|
+
updatedAssetPositions: [],
|
|
2487
|
+
updatedSpotAssetPositions: [],
|
|
2488
|
+
updatedSpotLockedBalances: []
|
|
2472
2489
|
};
|
|
2473
2490
|
}
|
|
2474
2491
|
|
|
@@ -2486,6 +2503,14 @@ export const SubaccountUpdateEventV1 = {
|
|
|
2486
2503
|
IndexerAssetPosition.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
2487
2504
|
}
|
|
2488
2505
|
|
|
2506
|
+
for (const v of message.updatedSpotAssetPositions) {
|
|
2507
|
+
IndexerAssetPosition.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
for (const v of message.updatedSpotLockedBalances) {
|
|
2511
|
+
IndexerSpotLockedBalance.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2489
2514
|
return writer;
|
|
2490
2515
|
},
|
|
2491
2516
|
|
|
@@ -2510,6 +2535,14 @@ export const SubaccountUpdateEventV1 = {
|
|
|
2510
2535
|
message.updatedAssetPositions.push(IndexerAssetPosition.decode(reader, reader.uint32()));
|
|
2511
2536
|
break;
|
|
2512
2537
|
|
|
2538
|
+
case 5:
|
|
2539
|
+
message.updatedSpotAssetPositions.push(IndexerAssetPosition.decode(reader, reader.uint32()));
|
|
2540
|
+
break;
|
|
2541
|
+
|
|
2542
|
+
case 6:
|
|
2543
|
+
message.updatedSpotLockedBalances.push(IndexerSpotLockedBalance.decode(reader, reader.uint32()));
|
|
2544
|
+
break;
|
|
2545
|
+
|
|
2513
2546
|
default:
|
|
2514
2547
|
reader.skipType(tag & 7);
|
|
2515
2548
|
break;
|
|
@@ -2524,6 +2557,8 @@ export const SubaccountUpdateEventV1 = {
|
|
|
2524
2557
|
message.subaccountId = object.subaccountId !== undefined && object.subaccountId !== null ? IndexerSubaccountId.fromPartial(object.subaccountId) : undefined;
|
|
2525
2558
|
message.updatedPerpetualPositions = object.updatedPerpetualPositions?.map(e => IndexerPerpetualPosition.fromPartial(e)) || [];
|
|
2526
2559
|
message.updatedAssetPositions = object.updatedAssetPositions?.map(e => IndexerAssetPosition.fromPartial(e)) || [];
|
|
2560
|
+
message.updatedSpotAssetPositions = object.updatedSpotAssetPositions?.map(e => IndexerAssetPosition.fromPartial(e)) || [];
|
|
2561
|
+
message.updatedSpotLockedBalances = object.updatedSpotLockedBalances?.map(e => IndexerSpotLockedBalance.fromPartial(e)) || [];
|
|
2527
2562
|
return message;
|
|
2528
2563
|
}
|
|
2529
2564
|
|
|
@@ -3572,7 +3607,8 @@ function createBaseSpotMarketCreateEventV1(): SpotMarketCreateEventV1 {
|
|
|
3572
3607
|
status: 0,
|
|
3573
3608
|
quantumConversionExponent: 0,
|
|
3574
3609
|
subticksPerTick: 0,
|
|
3575
|
-
stepBaseQuantums: Long.UZERO
|
|
3610
|
+
stepBaseQuantums: Long.UZERO,
|
|
3611
|
+
minNotional: Long.UZERO
|
|
3576
3612
|
};
|
|
3577
3613
|
}
|
|
3578
3614
|
|
|
@@ -3606,6 +3642,10 @@ export const SpotMarketCreateEventV1 = {
|
|
|
3606
3642
|
writer.uint32(56).uint64(message.stepBaseQuantums);
|
|
3607
3643
|
}
|
|
3608
3644
|
|
|
3645
|
+
if (!message.minNotional.isZero()) {
|
|
3646
|
+
writer.uint32(64).uint64(message.minNotional);
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3609
3649
|
return writer;
|
|
3610
3650
|
},
|
|
3611
3651
|
|
|
@@ -3646,6 +3686,10 @@ export const SpotMarketCreateEventV1 = {
|
|
|
3646
3686
|
message.stepBaseQuantums = (reader.uint64() as Long);
|
|
3647
3687
|
break;
|
|
3648
3688
|
|
|
3689
|
+
case 8:
|
|
3690
|
+
message.minNotional = (reader.uint64() as Long);
|
|
3691
|
+
break;
|
|
3692
|
+
|
|
3649
3693
|
default:
|
|
3650
3694
|
reader.skipType(tag & 7);
|
|
3651
3695
|
break;
|
|
@@ -3664,6 +3708,7 @@ export const SpotMarketCreateEventV1 = {
|
|
|
3664
3708
|
message.quantumConversionExponent = object.quantumConversionExponent ?? 0;
|
|
3665
3709
|
message.subticksPerTick = object.subticksPerTick ?? 0;
|
|
3666
3710
|
message.stepBaseQuantums = object.stepBaseQuantums !== undefined && object.stepBaseQuantums !== null ? Long.fromValue(object.stepBaseQuantums) : Long.UZERO;
|
|
3711
|
+
message.minNotional = object.minNotional !== undefined && object.minNotional !== null ? Long.fromValue(object.minNotional) : Long.UZERO;
|
|
3667
3712
|
return message;
|
|
3668
3713
|
}
|
|
3669
3714
|
|
|
@@ -3760,7 +3805,8 @@ function createBaseUpdateClobPairEventV1(): UpdateClobPairEventV1 {
|
|
|
3760
3805
|
status: 0,
|
|
3761
3806
|
quantumConversionExponent: 0,
|
|
3762
3807
|
subticksPerTick: 0,
|
|
3763
|
-
stepBaseQuantums: Long.UZERO
|
|
3808
|
+
stepBaseQuantums: Long.UZERO,
|
|
3809
|
+
minNotional: Long.UZERO
|
|
3764
3810
|
};
|
|
3765
3811
|
}
|
|
3766
3812
|
|
|
@@ -3786,6 +3832,10 @@ export const UpdateClobPairEventV1 = {
|
|
|
3786
3832
|
writer.uint32(40).uint64(message.stepBaseQuantums);
|
|
3787
3833
|
}
|
|
3788
3834
|
|
|
3835
|
+
if (!message.minNotional.isZero()) {
|
|
3836
|
+
writer.uint32(48).uint64(message.minNotional);
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3789
3839
|
return writer;
|
|
3790
3840
|
},
|
|
3791
3841
|
|
|
@@ -3818,6 +3868,10 @@ export const UpdateClobPairEventV1 = {
|
|
|
3818
3868
|
message.stepBaseQuantums = (reader.uint64() as Long);
|
|
3819
3869
|
break;
|
|
3820
3870
|
|
|
3871
|
+
case 6:
|
|
3872
|
+
message.minNotional = (reader.uint64() as Long);
|
|
3873
|
+
break;
|
|
3874
|
+
|
|
3821
3875
|
default:
|
|
3822
3876
|
reader.skipType(tag & 7);
|
|
3823
3877
|
break;
|
|
@@ -3834,6 +3888,7 @@ export const UpdateClobPairEventV1 = {
|
|
|
3834
3888
|
message.quantumConversionExponent = object.quantumConversionExponent ?? 0;
|
|
3835
3889
|
message.subticksPerTick = object.subticksPerTick ?? 0;
|
|
3836
3890
|
message.stepBaseQuantums = object.stepBaseQuantums !== undefined && object.stepBaseQuantums !== null ? Long.fromValue(object.stepBaseQuantums) : Long.UZERO;
|
|
3891
|
+
message.minNotional = object.minNotional !== undefined && object.minNotional !== null ? Long.fromValue(object.minNotional) : Long.UZERO;
|
|
3837
3892
|
return message;
|
|
3838
3893
|
}
|
|
3839
3894
|
|