@typemove/sui 1.0.0-rc.9 → 1.0.0
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/Readme.md +128 -0
- package/builtin/package.json +5 -0
- package/codegen/package.json +5 -0
- package/dist/cjs/builtin/0x1.d.ts +495 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -0
- package/dist/cjs/builtin/0x1.js +2083 -0
- package/dist/cjs/builtin/0x1.js.map +1 -0
- package/dist/cjs/builtin/0x2.d.ts +2929 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -0
- package/dist/cjs/builtin/0x2.js +9641 -0
- package/dist/cjs/builtin/0x2.js.map +1 -0
- package/dist/cjs/builtin/0x3.d.ts +1207 -0
- package/dist/cjs/builtin/0x3.d.ts.map +1 -0
- package/dist/cjs/builtin/0x3.js +2625 -0
- package/dist/cjs/builtin/0x3.js.map +1 -0
- package/dist/cjs/builtin/index.d.ts +4 -0
- package/dist/cjs/builtin/index.d.ts.map +1 -0
- package/dist/cjs/builtin/index.js +11 -0
- package/dist/cjs/builtin/index.js.map +1 -0
- package/dist/cjs/codegen/codegen.d.ts +19 -0
- package/dist/cjs/codegen/codegen.d.ts.map +1 -0
- package/dist/cjs/codegen/codegen.js +177 -0
- package/dist/cjs/codegen/codegen.js.map +1 -0
- package/dist/cjs/codegen/index.d.ts +2 -0
- package/dist/cjs/codegen/index.d.ts.map +1 -0
- package/dist/cjs/codegen/index.js +5 -0
- package/dist/cjs/codegen/index.js.map +1 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/models.d.ts +12 -0
- package/dist/cjs/models.d.ts.map +1 -0
- package/dist/cjs/models.js +8 -0
- package/dist/cjs/models.js.map +1 -0
- package/dist/cjs/move-coder.d.ts +16 -0
- package/dist/cjs/move-coder.d.ts.map +1 -0
- package/dist/cjs/move-coder.js +104 -0
- package/dist/cjs/move-coder.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/sui-chain-adapter.d.ts +12 -0
- package/dist/cjs/sui-chain-adapter.d.ts.map +1 -0
- package/dist/cjs/sui-chain-adapter.js +86 -0
- package/dist/cjs/sui-chain-adapter.js.map +1 -0
- package/dist/cjs/to-internal.d.ts +4 -0
- package/dist/cjs/to-internal.d.ts.map +1 -0
- package/dist/cjs/to-internal.js +85 -0
- package/dist/cjs/to-internal.js.map +1 -0
- package/dist/cjs/utils.d.ts +15 -0
- package/dist/cjs/utils.d.ts.map +1 -0
- package/dist/cjs/utils.js +49 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/esm/builtin/0x1.d.ts +495 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -0
- package/dist/esm/builtin/0x1.js +2079 -0
- package/dist/esm/builtin/0x1.js.map +1 -0
- package/dist/esm/builtin/0x2.d.ts +2929 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -0
- package/dist/esm/builtin/0x2.js +9636 -0
- package/dist/esm/builtin/0x2.js.map +1 -0
- package/dist/esm/builtin/0x3.d.ts +1207 -0
- package/dist/esm/builtin/0x3.d.ts.map +1 -0
- package/dist/esm/builtin/0x3.js +2620 -0
- package/dist/esm/builtin/0x3.js.map +1 -0
- package/dist/esm/builtin/index.d.ts +4 -0
- package/dist/esm/builtin/index.d.ts.map +1 -0
- package/dist/esm/builtin/index.js +7 -0
- package/dist/esm/builtin/index.js.map +1 -0
- package/dist/esm/codegen/codegen.d.ts +19 -0
- package/dist/esm/codegen/codegen.d.ts.map +1 -0
- package/dist/esm/codegen/codegen.js +171 -0
- package/dist/esm/codegen/codegen.js.map +1 -0
- package/dist/esm/codegen/index.d.ts +2 -0
- package/dist/esm/codegen/index.d.ts.map +1 -0
- package/dist/esm/codegen/index.js +2 -0
- package/dist/esm/codegen/index.js.map +1 -0
- package/dist/esm/codegen/run.d.ts +2 -0
- package/dist/esm/codegen/run.d.ts.map +1 -0
- package/dist/esm/codegen/run.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/{index.js → esm/index.js} +0 -1
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models.d.ts +12 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +5 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/move-coder.d.ts +16 -0
- package/dist/esm/move-coder.d.ts.map +1 -0
- package/dist/esm/move-coder.js +99 -0
- package/dist/esm/move-coder.js.map +1 -0
- package/dist/esm/sui-chain-adapter.d.ts +12 -0
- package/dist/esm/sui-chain-adapter.d.ts.map +1 -0
- package/dist/esm/sui-chain-adapter.js +82 -0
- package/dist/esm/sui-chain-adapter.js.map +1 -0
- package/dist/esm/to-internal.d.ts +4 -0
- package/dist/esm/to-internal.d.ts.map +1 -0
- package/dist/esm/to-internal.js +81 -0
- package/dist/esm/to-internal.js.map +1 -0
- package/dist/esm/utils.d.ts +15 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/utils.js +45 -0
- package/dist/esm/utils.js.map +1 -0
- package/package.json +20 -13
- package/src/builtin/0x1.ts +1359 -231
- package/src/builtin/0x2.ts +6364 -1302
- package/src/builtin/0x3.ts +1909 -495
- package/src/codegen/codegen.ts +63 -49
- package/src/index.ts +0 -2
- package/src/models.ts +9 -12
- package/src/move-coder.ts +6 -20
- package/src/sui-chain-adapter.ts +13 -15
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +98 -30
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +1084 -282
- package/src/tests/types/testnet/0xdee9.ts +1112 -308
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +3973 -1201
- package/src/to-internal.ts +12 -32
- package/src/module-client.ts +0 -23
- /package/dist/{codegen → esm/codegen}/run.js +0 -0
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
/* Generated modules for account 0xdee9 */
|
|
6
6
|
|
|
7
7
|
import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
|
|
8
|
-
import { MoveCoder,
|
|
9
|
-
import { SuiAddress, ObjectId, ModuleClient } from "@typemove/sui";
|
|
8
|
+
import { MoveCoder, TypedEventInstance } from "@typemove/sui";
|
|
10
9
|
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "@mysten/sui.js";
|
|
10
|
+
import { defaultMoveCoder } from "@typemove/sui";
|
|
11
|
+
|
|
12
|
+
import { ZERO_ADDRESS } from "@typemove/sui";
|
|
13
|
+
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
14
|
+
import { ObjectCallArg, TransactionArgument } from "@mysten/sui.js";
|
|
15
|
+
import { SuiClient } from "@mysten/sui.js/client";
|
|
16
16
|
|
|
17
17
|
import { _0x2 } from "@typemove/sui/builtin";
|
|
18
18
|
import { _0x1 } from "@typemove/sui/builtin";
|
|
@@ -50,12 +50,12 @@ export namespace clob {
|
|
|
50
50
|
export const TYPE_QNAME = "0xdee9::clob::OrderCanceled";
|
|
51
51
|
|
|
52
52
|
const TYPE = new TypeDescriptor<OrderCanceled<any, any>>(
|
|
53
|
-
OrderCanceled.TYPE_QNAME
|
|
53
|
+
OrderCanceled.TYPE_QNAME,
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
export function type<T0, T1>(
|
|
57
57
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
58
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
58
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
59
59
|
): TypeDescriptor<OrderCanceled<T0, T1>> {
|
|
60
60
|
return TYPE.apply(arg0, arg1);
|
|
61
61
|
}
|
|
@@ -82,12 +82,12 @@ export namespace clob {
|
|
|
82
82
|
export const TYPE_QNAME = "0xdee9::clob::OrderFilled";
|
|
83
83
|
|
|
84
84
|
const TYPE = new TypeDescriptor<OrderFilled<any, any>>(
|
|
85
|
-
OrderFilled.TYPE_QNAME
|
|
85
|
+
OrderFilled.TYPE_QNAME,
|
|
86
86
|
);
|
|
87
87
|
|
|
88
88
|
export function type<T0, T1>(
|
|
89
89
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
90
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
90
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
91
91
|
): TypeDescriptor<OrderFilled<T0, T1>> {
|
|
92
92
|
return TYPE.apply(arg0, arg1);
|
|
93
93
|
}
|
|
@@ -116,12 +116,12 @@ export namespace clob {
|
|
|
116
116
|
export const TYPE_QNAME = "0xdee9::clob::OrderFilledV2";
|
|
117
117
|
|
|
118
118
|
const TYPE = new TypeDescriptor<OrderFilledV2<any, any>>(
|
|
119
|
-
OrderFilledV2.TYPE_QNAME
|
|
119
|
+
OrderFilledV2.TYPE_QNAME,
|
|
120
120
|
);
|
|
121
121
|
|
|
122
122
|
export function type<T0, T1>(
|
|
123
123
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
124
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
124
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
125
125
|
): TypeDescriptor<OrderFilledV2<T0, T1>> {
|
|
126
126
|
return TYPE.apply(arg0, arg1);
|
|
127
127
|
}
|
|
@@ -146,12 +146,12 @@ export namespace clob {
|
|
|
146
146
|
export const TYPE_QNAME = "0xdee9::clob::OrderPlaced";
|
|
147
147
|
|
|
148
148
|
const TYPE = new TypeDescriptor<OrderPlaced<any, any>>(
|
|
149
|
-
OrderPlaced.TYPE_QNAME
|
|
149
|
+
OrderPlaced.TYPE_QNAME,
|
|
150
150
|
);
|
|
151
151
|
|
|
152
152
|
export function type<T0, T1>(
|
|
153
153
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
154
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
154
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
155
155
|
): TypeDescriptor<OrderPlaced<T0, T1>> {
|
|
156
156
|
return TYPE.apply(arg0, arg1);
|
|
157
157
|
}
|
|
@@ -177,12 +177,12 @@ export namespace clob {
|
|
|
177
177
|
export const TYPE_QNAME = "0xdee9::clob::OrderPlacedV2";
|
|
178
178
|
|
|
179
179
|
const TYPE = new TypeDescriptor<OrderPlacedV2<any, any>>(
|
|
180
|
-
OrderPlacedV2.TYPE_QNAME
|
|
180
|
+
OrderPlacedV2.TYPE_QNAME,
|
|
181
181
|
);
|
|
182
182
|
|
|
183
183
|
export function type<T0, T1>(
|
|
184
184
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
185
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
185
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
186
186
|
): TypeDescriptor<OrderPlacedV2<T0, T1>> {
|
|
187
187
|
return TYPE.apply(arg0, arg1);
|
|
188
188
|
}
|
|
@@ -222,7 +222,7 @@ export namespace clob {
|
|
|
222
222
|
|
|
223
223
|
export function type<T0, T1>(
|
|
224
224
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
225
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
225
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
226
226
|
): TypeDescriptor<Pool<T0, T1>> {
|
|
227
227
|
return TYPE.apply(arg0, arg1);
|
|
228
228
|
}
|
|
@@ -272,17 +272,17 @@ export namespace clob {
|
|
|
272
272
|
export function accountBalance<T0 = any, T1 = any>(
|
|
273
273
|
tx: TransactionBlock,
|
|
274
274
|
args: [
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
string | ObjectCallArg | TransactionArgument,
|
|
276
|
+
string | ObjectCallArg | TransactionArgument,
|
|
277
277
|
],
|
|
278
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
278
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
279
279
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
280
280
|
const _args: any[] = [];
|
|
281
281
|
_args.push(
|
|
282
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
282
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
283
283
|
);
|
|
284
284
|
_args.push(
|
|
285
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
285
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
286
286
|
);
|
|
287
287
|
|
|
288
288
|
// @ts-ignore
|
|
@@ -302,27 +302,27 @@ export namespace clob {
|
|
|
302
302
|
export function batchCancelOrder<T0 = any, T1 = any>(
|
|
303
303
|
tx: TransactionBlock,
|
|
304
304
|
args: [
|
|
305
|
-
|
|
306
|
-
(
|
|
307
|
-
|
|
305
|
+
string | ObjectCallArg | TransactionArgument,
|
|
306
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
307
|
+
string | ObjectCallArg | TransactionArgument,
|
|
308
308
|
],
|
|
309
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
309
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
310
310
|
): TransactionArgument &
|
|
311
311
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
312
312
|
const _args: any[] = [];
|
|
313
313
|
_args.push(
|
|
314
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
314
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
315
315
|
);
|
|
316
316
|
_args.push(
|
|
317
317
|
TransactionArgument.is(args[1])
|
|
318
318
|
? args[1]
|
|
319
319
|
: tx.makeMoveVec({
|
|
320
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
320
|
+
objects: args[1].map((a: any) => tx.object(a)),
|
|
321
321
|
// type: TODO
|
|
322
|
-
})
|
|
322
|
+
}),
|
|
323
323
|
);
|
|
324
324
|
_args.push(
|
|
325
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
325
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
326
326
|
);
|
|
327
327
|
|
|
328
328
|
// @ts-ignore
|
|
@@ -342,17 +342,17 @@ export namespace clob {
|
|
|
342
342
|
export function cancelAllOrders<T0 = any, T1 = any>(
|
|
343
343
|
tx: TransactionBlock,
|
|
344
344
|
args: [
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
string | ObjectCallArg | TransactionArgument,
|
|
346
|
+
string | ObjectCallArg | TransactionArgument,
|
|
347
347
|
],
|
|
348
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
348
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
349
349
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
350
350
|
const _args: any[] = [];
|
|
351
351
|
_args.push(
|
|
352
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
352
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
353
353
|
);
|
|
354
354
|
_args.push(
|
|
355
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
355
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
356
356
|
);
|
|
357
357
|
|
|
358
358
|
// @ts-ignore
|
|
@@ -372,20 +372,20 @@ export namespace clob {
|
|
|
372
372
|
export function cancelOrder<T0 = any, T1 = any>(
|
|
373
373
|
tx: TransactionBlock,
|
|
374
374
|
args: [
|
|
375
|
-
|
|
375
|
+
string | ObjectCallArg | TransactionArgument,
|
|
376
376
|
bigint | TransactionArgument,
|
|
377
|
-
|
|
377
|
+
string | ObjectCallArg | TransactionArgument,
|
|
378
378
|
],
|
|
379
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
379
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
380
380
|
): TransactionArgument &
|
|
381
381
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
382
382
|
const _args: any[] = [];
|
|
383
383
|
_args.push(
|
|
384
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
384
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
385
385
|
);
|
|
386
386
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
387
387
|
_args.push(
|
|
388
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
388
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
389
389
|
);
|
|
390
390
|
|
|
391
391
|
// @ts-ignore
|
|
@@ -404,11 +404,11 @@ export namespace clob {
|
|
|
404
404
|
}
|
|
405
405
|
export function createAccount(
|
|
406
406
|
tx: TransactionBlock,
|
|
407
|
-
args: [
|
|
407
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
408
408
|
): TransactionArgument & [TransactionArgument] {
|
|
409
409
|
const _args: any[] = [];
|
|
410
410
|
_args.push(
|
|
411
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
411
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
412
412
|
);
|
|
413
413
|
|
|
414
414
|
// @ts-ignore
|
|
@@ -423,22 +423,22 @@ export namespace clob {
|
|
|
423
423
|
bigint | TransactionArgument,
|
|
424
424
|
bigint | TransactionArgument,
|
|
425
425
|
_0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
|
|
426
|
-
|
|
426
|
+
string | ObjectCallArg | TransactionArgument,
|
|
427
427
|
],
|
|
428
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
428
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
429
429
|
): TransactionArgument &
|
|
430
430
|
[
|
|
431
431
|
TransactionArgument,
|
|
432
432
|
TransactionArgument,
|
|
433
433
|
TransactionArgument,
|
|
434
|
-
TransactionArgument
|
|
434
|
+
TransactionArgument,
|
|
435
435
|
] {
|
|
436
436
|
const _args: any[] = [];
|
|
437
437
|
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
438
438
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
439
439
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
440
440
|
_args.push(
|
|
441
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
441
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
442
442
|
);
|
|
443
443
|
|
|
444
444
|
// @ts-ignore
|
|
@@ -458,20 +458,20 @@ export namespace clob {
|
|
|
458
458
|
export function depositBase<T0 = any, T1 = any>(
|
|
459
459
|
tx: TransactionBlock,
|
|
460
460
|
args: [
|
|
461
|
-
|
|
461
|
+
string | ObjectCallArg | TransactionArgument,
|
|
462
462
|
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
463
|
-
|
|
463
|
+
string | ObjectCallArg | TransactionArgument,
|
|
464
464
|
],
|
|
465
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
465
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
466
466
|
): TransactionArgument &
|
|
467
467
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
468
468
|
const _args: any[] = [];
|
|
469
469
|
_args.push(
|
|
470
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
470
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
471
471
|
);
|
|
472
472
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
473
473
|
_args.push(
|
|
474
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
474
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
475
475
|
);
|
|
476
476
|
|
|
477
477
|
// @ts-ignore
|
|
@@ -491,20 +491,20 @@ export namespace clob {
|
|
|
491
491
|
export function depositQuote<T0 = any, T1 = any>(
|
|
492
492
|
tx: TransactionBlock,
|
|
493
493
|
args: [
|
|
494
|
-
|
|
494
|
+
string | ObjectCallArg | TransactionArgument,
|
|
495
495
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
496
|
-
|
|
496
|
+
string | ObjectCallArg | TransactionArgument,
|
|
497
497
|
],
|
|
498
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
498
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
499
499
|
): TransactionArgument &
|
|
500
500
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
501
501
|
const _args: any[] = [];
|
|
502
502
|
_args.push(
|
|
503
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
503
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
504
504
|
);
|
|
505
505
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
506
506
|
_args.push(
|
|
507
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
507
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
508
508
|
);
|
|
509
509
|
|
|
510
510
|
// @ts-ignore
|
|
@@ -524,27 +524,27 @@ export namespace clob {
|
|
|
524
524
|
export function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
|
|
525
525
|
tx: TransactionBlock,
|
|
526
526
|
args: [
|
|
527
|
-
|
|
527
|
+
string | ObjectCallArg | TransactionArgument,
|
|
528
528
|
bigint | TransactionArgument,
|
|
529
529
|
bigint | TransactionArgument,
|
|
530
|
-
|
|
530
|
+
string | ObjectCallArg | TransactionArgument,
|
|
531
531
|
],
|
|
532
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
532
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
533
533
|
): TransactionArgument &
|
|
534
534
|
[
|
|
535
535
|
TransactionArgument,
|
|
536
536
|
TransactionArgument,
|
|
537
537
|
TransactionArgument,
|
|
538
|
-
TransactionArgument
|
|
538
|
+
TransactionArgument,
|
|
539
539
|
] {
|
|
540
540
|
const _args: any[] = [];
|
|
541
541
|
_args.push(
|
|
542
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
542
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
543
543
|
);
|
|
544
544
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
545
545
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
546
546
|
_args.push(
|
|
547
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
547
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
548
548
|
);
|
|
549
549
|
|
|
550
550
|
// @ts-ignore
|
|
@@ -564,27 +564,27 @@ export namespace clob {
|
|
|
564
564
|
export function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
|
|
565
565
|
tx: TransactionBlock,
|
|
566
566
|
args: [
|
|
567
|
-
|
|
567
|
+
string | ObjectCallArg | TransactionArgument,
|
|
568
568
|
bigint | TransactionArgument,
|
|
569
569
|
bigint | TransactionArgument,
|
|
570
|
-
|
|
570
|
+
string | ObjectCallArg | TransactionArgument,
|
|
571
571
|
],
|
|
572
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
572
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
573
573
|
): TransactionArgument &
|
|
574
574
|
[
|
|
575
575
|
TransactionArgument,
|
|
576
576
|
TransactionArgument,
|
|
577
577
|
TransactionArgument,
|
|
578
|
-
TransactionArgument
|
|
578
|
+
TransactionArgument,
|
|
579
579
|
] {
|
|
580
580
|
const _args: any[] = [];
|
|
581
581
|
_args.push(
|
|
582
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
582
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
583
583
|
);
|
|
584
584
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
585
585
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
586
586
|
_args.push(
|
|
587
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
587
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
588
588
|
);
|
|
589
589
|
|
|
590
590
|
// @ts-ignore
|
|
@@ -603,12 +603,12 @@ export namespace clob {
|
|
|
603
603
|
}
|
|
604
604
|
export function getMarketPrice<T0 = any, T1 = any>(
|
|
605
605
|
tx: TransactionBlock,
|
|
606
|
-
args: [
|
|
607
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
606
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
607
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
608
608
|
): TransactionArgument & [TransactionArgument] {
|
|
609
609
|
const _args: any[] = [];
|
|
610
610
|
_args.push(
|
|
611
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
611
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
612
612
|
);
|
|
613
613
|
|
|
614
614
|
// @ts-ignore
|
|
@@ -628,20 +628,20 @@ export namespace clob {
|
|
|
628
628
|
export function getOrderStatus<T0 = any, T1 = any>(
|
|
629
629
|
tx: TransactionBlock,
|
|
630
630
|
args: [
|
|
631
|
-
|
|
631
|
+
string | ObjectCallArg | TransactionArgument,
|
|
632
632
|
bigint | TransactionArgument,
|
|
633
|
-
|
|
633
|
+
string | ObjectCallArg | TransactionArgument,
|
|
634
634
|
],
|
|
635
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
635
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
636
636
|
): TransactionArgument &
|
|
637
637
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
638
638
|
const _args: any[] = [];
|
|
639
639
|
_args.push(
|
|
640
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
640
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
641
641
|
);
|
|
642
642
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
643
643
|
_args.push(
|
|
644
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
644
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
645
645
|
);
|
|
646
646
|
|
|
647
647
|
// @ts-ignore
|
|
@@ -661,17 +661,17 @@ export namespace clob {
|
|
|
661
661
|
export function listOpenOrders<T0 = any, T1 = any>(
|
|
662
662
|
tx: TransactionBlock,
|
|
663
663
|
args: [
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
string | ObjectCallArg | TransactionArgument,
|
|
665
|
+
string | ObjectCallArg | TransactionArgument,
|
|
666
666
|
],
|
|
667
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
667
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
668
668
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
669
669
|
const _args: any[] = [];
|
|
670
670
|
_args.push(
|
|
671
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
671
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
672
672
|
);
|
|
673
673
|
_args.push(
|
|
674
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
674
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
675
675
|
);
|
|
676
676
|
|
|
677
677
|
// @ts-ignore
|
|
@@ -691,17 +691,17 @@ export namespace clob {
|
|
|
691
691
|
export function placeLimitOrder<T0 = any, T1 = any>(
|
|
692
692
|
tx: TransactionBlock,
|
|
693
693
|
args: [
|
|
694
|
-
|
|
694
|
+
string | ObjectCallArg | TransactionArgument,
|
|
695
695
|
bigint | TransactionArgument,
|
|
696
696
|
bigint | TransactionArgument,
|
|
697
697
|
Boolean | TransactionArgument,
|
|
698
698
|
bigint | TransactionArgument,
|
|
699
699
|
number | TransactionArgument,
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
700
|
+
string | ObjectCallArg | TransactionArgument,
|
|
701
|
+
string | ObjectCallArg | TransactionArgument,
|
|
702
|
+
string | ObjectCallArg | TransactionArgument,
|
|
703
703
|
],
|
|
704
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
704
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
705
705
|
): TransactionArgument &
|
|
706
706
|
[
|
|
707
707
|
TransactionArgument,
|
|
@@ -712,11 +712,11 @@ export namespace clob {
|
|
|
712
712
|
TransactionArgument,
|
|
713
713
|
TransactionArgument,
|
|
714
714
|
TransactionArgument,
|
|
715
|
-
TransactionArgument
|
|
715
|
+
TransactionArgument,
|
|
716
716
|
] {
|
|
717
717
|
const _args: any[] = [];
|
|
718
718
|
_args.push(
|
|
719
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
719
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
720
720
|
);
|
|
721
721
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
722
722
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
@@ -724,13 +724,13 @@ export namespace clob {
|
|
|
724
724
|
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
725
725
|
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
726
726
|
_args.push(
|
|
727
|
-
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6])
|
|
727
|
+
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
|
|
728
728
|
);
|
|
729
729
|
_args.push(
|
|
730
|
-
TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7])
|
|
730
|
+
TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
|
|
731
731
|
);
|
|
732
732
|
_args.push(
|
|
733
|
-
TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8])
|
|
733
|
+
TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]),
|
|
734
734
|
);
|
|
735
735
|
|
|
736
736
|
// @ts-ignore
|
|
@@ -750,15 +750,15 @@ export namespace clob {
|
|
|
750
750
|
export function placeMarketOrder<T0 = any, T1 = any>(
|
|
751
751
|
tx: TransactionBlock,
|
|
752
752
|
args: [
|
|
753
|
-
|
|
753
|
+
string | ObjectCallArg | TransactionArgument,
|
|
754
754
|
bigint | TransactionArgument,
|
|
755
755
|
Boolean | TransactionArgument,
|
|
756
756
|
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
757
757
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
758
|
-
|
|
759
|
-
|
|
758
|
+
string | ObjectCallArg | TransactionArgument,
|
|
759
|
+
string | ObjectCallArg | TransactionArgument,
|
|
760
760
|
],
|
|
761
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
761
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
762
762
|
): TransactionArgument &
|
|
763
763
|
[
|
|
764
764
|
TransactionArgument,
|
|
@@ -767,21 +767,21 @@ export namespace clob {
|
|
|
767
767
|
TransactionArgument,
|
|
768
768
|
TransactionArgument,
|
|
769
769
|
TransactionArgument,
|
|
770
|
-
TransactionArgument
|
|
770
|
+
TransactionArgument,
|
|
771
771
|
] {
|
|
772
772
|
const _args: any[] = [];
|
|
773
773
|
_args.push(
|
|
774
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
774
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
775
775
|
);
|
|
776
776
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
777
777
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
778
778
|
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
779
779
|
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
780
780
|
_args.push(
|
|
781
|
-
TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
|
|
781
|
+
TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
|
|
782
782
|
);
|
|
783
783
|
_args.push(
|
|
784
|
-
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6])
|
|
784
|
+
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
|
|
785
785
|
);
|
|
786
786
|
|
|
787
787
|
// @ts-ignore
|
|
@@ -801,14 +801,14 @@ export namespace clob {
|
|
|
801
801
|
export function swapExactBaseForQuote<T0 = any, T1 = any>(
|
|
802
802
|
tx: TransactionBlock,
|
|
803
803
|
args: [
|
|
804
|
-
|
|
804
|
+
string | ObjectCallArg | TransactionArgument,
|
|
805
805
|
bigint | TransactionArgument,
|
|
806
806
|
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
807
807
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
808
|
-
|
|
809
|
-
|
|
808
|
+
string | ObjectCallArg | TransactionArgument,
|
|
809
|
+
string | ObjectCallArg | TransactionArgument,
|
|
810
810
|
],
|
|
811
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
811
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
812
812
|
): TransactionArgument &
|
|
813
813
|
[
|
|
814
814
|
TransactionArgument,
|
|
@@ -816,20 +816,20 @@ export namespace clob {
|
|
|
816
816
|
TransactionArgument,
|
|
817
817
|
TransactionArgument,
|
|
818
818
|
TransactionArgument,
|
|
819
|
-
TransactionArgument
|
|
819
|
+
TransactionArgument,
|
|
820
820
|
] {
|
|
821
821
|
const _args: any[] = [];
|
|
822
822
|
_args.push(
|
|
823
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
823
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
824
824
|
);
|
|
825
825
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
826
826
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
827
827
|
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
828
828
|
_args.push(
|
|
829
|
-
TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
|
|
829
|
+
TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
|
|
830
830
|
);
|
|
831
831
|
_args.push(
|
|
832
|
-
TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
|
|
832
|
+
TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
|
|
833
833
|
);
|
|
834
834
|
|
|
835
835
|
// @ts-ignore
|
|
@@ -849,32 +849,32 @@ export namespace clob {
|
|
|
849
849
|
export function swapExactQuoteForBase<T0 = any, T1 = any>(
|
|
850
850
|
tx: TransactionBlock,
|
|
851
851
|
args: [
|
|
852
|
-
|
|
852
|
+
string | ObjectCallArg | TransactionArgument,
|
|
853
853
|
bigint | TransactionArgument,
|
|
854
|
-
|
|
854
|
+
string | ObjectCallArg | TransactionArgument,
|
|
855
855
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
856
|
-
|
|
856
|
+
string | ObjectCallArg | TransactionArgument,
|
|
857
857
|
],
|
|
858
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
858
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
859
859
|
): TransactionArgument &
|
|
860
860
|
[
|
|
861
861
|
TransactionArgument,
|
|
862
862
|
TransactionArgument,
|
|
863
863
|
TransactionArgument,
|
|
864
864
|
TransactionArgument,
|
|
865
|
-
TransactionArgument
|
|
865
|
+
TransactionArgument,
|
|
866
866
|
] {
|
|
867
867
|
const _args: any[] = [];
|
|
868
868
|
_args.push(
|
|
869
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
869
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
870
870
|
);
|
|
871
871
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
872
872
|
_args.push(
|
|
873
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
873
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
874
874
|
);
|
|
875
875
|
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
876
876
|
_args.push(
|
|
877
|
-
TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
|
|
877
|
+
TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
|
|
878
878
|
);
|
|
879
879
|
|
|
880
880
|
// @ts-ignore
|
|
@@ -894,29 +894,29 @@ export namespace clob {
|
|
|
894
894
|
export function withdrawBase<T0 = any, T1 = any>(
|
|
895
895
|
tx: TransactionBlock,
|
|
896
896
|
args: [
|
|
897
|
-
|
|
897
|
+
string | ObjectCallArg | TransactionArgument,
|
|
898
898
|
bigint | TransactionArgument,
|
|
899
|
-
|
|
900
|
-
|
|
899
|
+
string | ObjectCallArg | TransactionArgument,
|
|
900
|
+
string | ObjectCallArg | TransactionArgument,
|
|
901
901
|
],
|
|
902
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
902
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
903
903
|
): TransactionArgument &
|
|
904
904
|
[
|
|
905
905
|
TransactionArgument,
|
|
906
906
|
TransactionArgument,
|
|
907
907
|
TransactionArgument,
|
|
908
|
-
TransactionArgument
|
|
908
|
+
TransactionArgument,
|
|
909
909
|
] {
|
|
910
910
|
const _args: any[] = [];
|
|
911
911
|
_args.push(
|
|
912
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
912
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
913
913
|
);
|
|
914
914
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
915
915
|
_args.push(
|
|
916
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
916
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
917
917
|
);
|
|
918
918
|
_args.push(
|
|
919
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
919
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
920
920
|
);
|
|
921
921
|
|
|
922
922
|
// @ts-ignore
|
|
@@ -936,29 +936,29 @@ export namespace clob {
|
|
|
936
936
|
export function withdrawQuote<T0 = any, T1 = any>(
|
|
937
937
|
tx: TransactionBlock,
|
|
938
938
|
args: [
|
|
939
|
-
|
|
939
|
+
string | ObjectCallArg | TransactionArgument,
|
|
940
940
|
bigint | TransactionArgument,
|
|
941
|
-
|
|
942
|
-
|
|
941
|
+
string | ObjectCallArg | TransactionArgument,
|
|
942
|
+
string | ObjectCallArg | TransactionArgument,
|
|
943
943
|
],
|
|
944
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
944
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
945
945
|
): TransactionArgument &
|
|
946
946
|
[
|
|
947
947
|
TransactionArgument,
|
|
948
948
|
TransactionArgument,
|
|
949
949
|
TransactionArgument,
|
|
950
|
-
TransactionArgument
|
|
950
|
+
TransactionArgument,
|
|
951
951
|
] {
|
|
952
952
|
const _args: any[] = [];
|
|
953
953
|
_args.push(
|
|
954
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
954
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
955
955
|
);
|
|
956
956
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
957
957
|
_args.push(
|
|
958
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
958
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
959
959
|
);
|
|
960
960
|
_args.push(
|
|
961
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
961
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
962
962
|
);
|
|
963
963
|
|
|
964
964
|
// @ts-ignore
|
|
@@ -976,13 +976,346 @@ export namespace clob {
|
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
+
export namespace view {
|
|
980
|
+
export async function accountBalance<T0 = any, T1 = any>(
|
|
981
|
+
client: SuiClient,
|
|
982
|
+
args: [
|
|
983
|
+
string | ObjectCallArg | TransactionArgument,
|
|
984
|
+
string | ObjectCallArg | TransactionArgument,
|
|
985
|
+
],
|
|
986
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
987
|
+
) {
|
|
988
|
+
const tx = new TransactionBlock();
|
|
989
|
+
builder.accountBalance(tx, args, typeArguments);
|
|
990
|
+
const res = await client.devInspectTransactionBlock({
|
|
991
|
+
transactionBlock: tx,
|
|
992
|
+
sender: ZERO_ADDRESS,
|
|
993
|
+
});
|
|
994
|
+
return res;
|
|
995
|
+
}
|
|
996
|
+
export async function batchCancelOrder<T0 = any, T1 = any>(
|
|
997
|
+
client: SuiClient,
|
|
998
|
+
args: [
|
|
999
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1000
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
1001
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1002
|
+
],
|
|
1003
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1004
|
+
) {
|
|
1005
|
+
const tx = new TransactionBlock();
|
|
1006
|
+
builder.batchCancelOrder(tx, args, typeArguments);
|
|
1007
|
+
const res = await client.devInspectTransactionBlock({
|
|
1008
|
+
transactionBlock: tx,
|
|
1009
|
+
sender: ZERO_ADDRESS,
|
|
1010
|
+
});
|
|
1011
|
+
return res;
|
|
1012
|
+
}
|
|
1013
|
+
export async function cancelAllOrders<T0 = any, T1 = any>(
|
|
1014
|
+
client: SuiClient,
|
|
1015
|
+
args: [
|
|
1016
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1017
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1018
|
+
],
|
|
1019
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1020
|
+
) {
|
|
1021
|
+
const tx = new TransactionBlock();
|
|
1022
|
+
builder.cancelAllOrders(tx, args, typeArguments);
|
|
1023
|
+
const res = await client.devInspectTransactionBlock({
|
|
1024
|
+
transactionBlock: tx,
|
|
1025
|
+
sender: ZERO_ADDRESS,
|
|
1026
|
+
});
|
|
1027
|
+
return res;
|
|
1028
|
+
}
|
|
1029
|
+
export async function cancelOrder<T0 = any, T1 = any>(
|
|
1030
|
+
client: SuiClient,
|
|
1031
|
+
args: [
|
|
1032
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1033
|
+
bigint | TransactionArgument,
|
|
1034
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1035
|
+
],
|
|
1036
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1037
|
+
) {
|
|
1038
|
+
const tx = new TransactionBlock();
|
|
1039
|
+
builder.cancelOrder(tx, args, typeArguments);
|
|
1040
|
+
const res = await client.devInspectTransactionBlock({
|
|
1041
|
+
transactionBlock: tx,
|
|
1042
|
+
sender: ZERO_ADDRESS,
|
|
1043
|
+
});
|
|
1044
|
+
return res;
|
|
1045
|
+
}
|
|
1046
|
+
export async function createAccount(
|
|
1047
|
+
client: SuiClient,
|
|
1048
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
1049
|
+
) {
|
|
1050
|
+
const tx = new TransactionBlock();
|
|
1051
|
+
builder.createAccount(tx, args);
|
|
1052
|
+
const res = await client.devInspectTransactionBlock({
|
|
1053
|
+
transactionBlock: tx,
|
|
1054
|
+
sender: ZERO_ADDRESS,
|
|
1055
|
+
});
|
|
1056
|
+
return res;
|
|
1057
|
+
}
|
|
1058
|
+
export async function createPool<T0 = any, T1 = any>(
|
|
1059
|
+
client: SuiClient,
|
|
1060
|
+
args: [
|
|
1061
|
+
bigint | TransactionArgument,
|
|
1062
|
+
bigint | TransactionArgument,
|
|
1063
|
+
_0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
|
|
1064
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1065
|
+
],
|
|
1066
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1067
|
+
) {
|
|
1068
|
+
const tx = new TransactionBlock();
|
|
1069
|
+
builder.createPool(tx, args, typeArguments);
|
|
1070
|
+
const res = await client.devInspectTransactionBlock({
|
|
1071
|
+
transactionBlock: tx,
|
|
1072
|
+
sender: ZERO_ADDRESS,
|
|
1073
|
+
});
|
|
1074
|
+
return res;
|
|
1075
|
+
}
|
|
1076
|
+
export async function depositBase<T0 = any, T1 = any>(
|
|
1077
|
+
client: SuiClient,
|
|
1078
|
+
args: [
|
|
1079
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1080
|
+
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
1081
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1082
|
+
],
|
|
1083
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1084
|
+
) {
|
|
1085
|
+
const tx = new TransactionBlock();
|
|
1086
|
+
builder.depositBase(tx, args, typeArguments);
|
|
1087
|
+
const res = await client.devInspectTransactionBlock({
|
|
1088
|
+
transactionBlock: tx,
|
|
1089
|
+
sender: ZERO_ADDRESS,
|
|
1090
|
+
});
|
|
1091
|
+
return res;
|
|
1092
|
+
}
|
|
1093
|
+
export async function depositQuote<T0 = any, T1 = any>(
|
|
1094
|
+
client: SuiClient,
|
|
1095
|
+
args: [
|
|
1096
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1097
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1098
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1099
|
+
],
|
|
1100
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1101
|
+
) {
|
|
1102
|
+
const tx = new TransactionBlock();
|
|
1103
|
+
builder.depositQuote(tx, args, typeArguments);
|
|
1104
|
+
const res = await client.devInspectTransactionBlock({
|
|
1105
|
+
transactionBlock: tx,
|
|
1106
|
+
sender: ZERO_ADDRESS,
|
|
1107
|
+
});
|
|
1108
|
+
return res;
|
|
1109
|
+
}
|
|
1110
|
+
export async function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
|
|
1111
|
+
client: SuiClient,
|
|
1112
|
+
args: [
|
|
1113
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1114
|
+
bigint | TransactionArgument,
|
|
1115
|
+
bigint | TransactionArgument,
|
|
1116
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1117
|
+
],
|
|
1118
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1119
|
+
) {
|
|
1120
|
+
const tx = new TransactionBlock();
|
|
1121
|
+
builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
|
|
1122
|
+
const res = await client.devInspectTransactionBlock({
|
|
1123
|
+
transactionBlock: tx,
|
|
1124
|
+
sender: ZERO_ADDRESS,
|
|
1125
|
+
});
|
|
1126
|
+
return res;
|
|
1127
|
+
}
|
|
1128
|
+
export async function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
|
|
1129
|
+
client: SuiClient,
|
|
1130
|
+
args: [
|
|
1131
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1132
|
+
bigint | TransactionArgument,
|
|
1133
|
+
bigint | TransactionArgument,
|
|
1134
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1135
|
+
],
|
|
1136
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1137
|
+
) {
|
|
1138
|
+
const tx = new TransactionBlock();
|
|
1139
|
+
builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
|
|
1140
|
+
const res = await client.devInspectTransactionBlock({
|
|
1141
|
+
transactionBlock: tx,
|
|
1142
|
+
sender: ZERO_ADDRESS,
|
|
1143
|
+
});
|
|
1144
|
+
return res;
|
|
1145
|
+
}
|
|
1146
|
+
export async function getMarketPrice<T0 = any, T1 = any>(
|
|
1147
|
+
client: SuiClient,
|
|
1148
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
1149
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1150
|
+
) {
|
|
1151
|
+
const tx = new TransactionBlock();
|
|
1152
|
+
builder.getMarketPrice(tx, args, typeArguments);
|
|
1153
|
+
const res = await client.devInspectTransactionBlock({
|
|
1154
|
+
transactionBlock: tx,
|
|
1155
|
+
sender: ZERO_ADDRESS,
|
|
1156
|
+
});
|
|
1157
|
+
return res;
|
|
1158
|
+
}
|
|
1159
|
+
export async function getOrderStatus<T0 = any, T1 = any>(
|
|
1160
|
+
client: SuiClient,
|
|
1161
|
+
args: [
|
|
1162
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1163
|
+
bigint | TransactionArgument,
|
|
1164
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1165
|
+
],
|
|
1166
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1167
|
+
) {
|
|
1168
|
+
const tx = new TransactionBlock();
|
|
1169
|
+
builder.getOrderStatus(tx, args, typeArguments);
|
|
1170
|
+
const res = await client.devInspectTransactionBlock({
|
|
1171
|
+
transactionBlock: tx,
|
|
1172
|
+
sender: ZERO_ADDRESS,
|
|
1173
|
+
});
|
|
1174
|
+
return res;
|
|
1175
|
+
}
|
|
1176
|
+
export async function listOpenOrders<T0 = any, T1 = any>(
|
|
1177
|
+
client: SuiClient,
|
|
1178
|
+
args: [
|
|
1179
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1180
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1181
|
+
],
|
|
1182
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1183
|
+
) {
|
|
1184
|
+
const tx = new TransactionBlock();
|
|
1185
|
+
builder.listOpenOrders(tx, args, typeArguments);
|
|
1186
|
+
const res = await client.devInspectTransactionBlock({
|
|
1187
|
+
transactionBlock: tx,
|
|
1188
|
+
sender: ZERO_ADDRESS,
|
|
1189
|
+
});
|
|
1190
|
+
return res;
|
|
1191
|
+
}
|
|
1192
|
+
export async function placeLimitOrder<T0 = any, T1 = any>(
|
|
1193
|
+
client: SuiClient,
|
|
1194
|
+
args: [
|
|
1195
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1196
|
+
bigint | TransactionArgument,
|
|
1197
|
+
bigint | TransactionArgument,
|
|
1198
|
+
Boolean | TransactionArgument,
|
|
1199
|
+
bigint | TransactionArgument,
|
|
1200
|
+
number | TransactionArgument,
|
|
1201
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1202
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1203
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1204
|
+
],
|
|
1205
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1206
|
+
) {
|
|
1207
|
+
const tx = new TransactionBlock();
|
|
1208
|
+
builder.placeLimitOrder(tx, args, typeArguments);
|
|
1209
|
+
const res = await client.devInspectTransactionBlock({
|
|
1210
|
+
transactionBlock: tx,
|
|
1211
|
+
sender: ZERO_ADDRESS,
|
|
1212
|
+
});
|
|
1213
|
+
return res;
|
|
1214
|
+
}
|
|
1215
|
+
export async function placeMarketOrder<T0 = any, T1 = any>(
|
|
1216
|
+
client: SuiClient,
|
|
1217
|
+
args: [
|
|
1218
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1219
|
+
bigint | TransactionArgument,
|
|
1220
|
+
Boolean | TransactionArgument,
|
|
1221
|
+
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
1222
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1223
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1224
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1225
|
+
],
|
|
1226
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1227
|
+
) {
|
|
1228
|
+
const tx = new TransactionBlock();
|
|
1229
|
+
builder.placeMarketOrder(tx, args, typeArguments);
|
|
1230
|
+
const res = await client.devInspectTransactionBlock({
|
|
1231
|
+
transactionBlock: tx,
|
|
1232
|
+
sender: ZERO_ADDRESS,
|
|
1233
|
+
});
|
|
1234
|
+
return res;
|
|
1235
|
+
}
|
|
1236
|
+
export async function swapExactBaseForQuote<T0 = any, T1 = any>(
|
|
1237
|
+
client: SuiClient,
|
|
1238
|
+
args: [
|
|
1239
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1240
|
+
bigint | TransactionArgument,
|
|
1241
|
+
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
1242
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1243
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1244
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1245
|
+
],
|
|
1246
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1247
|
+
) {
|
|
1248
|
+
const tx = new TransactionBlock();
|
|
1249
|
+
builder.swapExactBaseForQuote(tx, args, typeArguments);
|
|
1250
|
+
const res = await client.devInspectTransactionBlock({
|
|
1251
|
+
transactionBlock: tx,
|
|
1252
|
+
sender: ZERO_ADDRESS,
|
|
1253
|
+
});
|
|
1254
|
+
return res;
|
|
1255
|
+
}
|
|
1256
|
+
export async function swapExactQuoteForBase<T0 = any, T1 = any>(
|
|
1257
|
+
client: SuiClient,
|
|
1258
|
+
args: [
|
|
1259
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1260
|
+
bigint | TransactionArgument,
|
|
1261
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1262
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1263
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1264
|
+
],
|
|
1265
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1266
|
+
) {
|
|
1267
|
+
const tx = new TransactionBlock();
|
|
1268
|
+
builder.swapExactQuoteForBase(tx, args, typeArguments);
|
|
1269
|
+
const res = await client.devInspectTransactionBlock({
|
|
1270
|
+
transactionBlock: tx,
|
|
1271
|
+
sender: ZERO_ADDRESS,
|
|
1272
|
+
});
|
|
1273
|
+
return res;
|
|
1274
|
+
}
|
|
1275
|
+
export async function withdrawBase<T0 = any, T1 = any>(
|
|
1276
|
+
client: SuiClient,
|
|
1277
|
+
args: [
|
|
1278
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1279
|
+
bigint | TransactionArgument,
|
|
1280
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1281
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1282
|
+
],
|
|
1283
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1284
|
+
) {
|
|
1285
|
+
const tx = new TransactionBlock();
|
|
1286
|
+
builder.withdrawBase(tx, args, typeArguments);
|
|
1287
|
+
const res = await client.devInspectTransactionBlock({
|
|
1288
|
+
transactionBlock: tx,
|
|
1289
|
+
sender: ZERO_ADDRESS,
|
|
1290
|
+
});
|
|
1291
|
+
return res;
|
|
1292
|
+
}
|
|
1293
|
+
export async function withdrawQuote<T0 = any, T1 = any>(
|
|
1294
|
+
client: SuiClient,
|
|
1295
|
+
args: [
|
|
1296
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1297
|
+
bigint | TransactionArgument,
|
|
1298
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1299
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1300
|
+
],
|
|
1301
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1302
|
+
) {
|
|
1303
|
+
const tx = new TransactionBlock();
|
|
1304
|
+
builder.withdrawQuote(tx, args, typeArguments);
|
|
1305
|
+
const res = await client.devInspectTransactionBlock({
|
|
1306
|
+
transactionBlock: tx,
|
|
1307
|
+
sender: ZERO_ADDRESS,
|
|
1308
|
+
});
|
|
1309
|
+
return res;
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
979
1312
|
}
|
|
980
1313
|
|
|
981
1314
|
export namespace clob_v2 {
|
|
982
1315
|
export interface DepositAsset<T0> {
|
|
983
1316
|
pool_id: _0x2.object_.ID;
|
|
984
1317
|
quantity: bigint;
|
|
985
|
-
owner:
|
|
1318
|
+
owner: string;
|
|
986
1319
|
}
|
|
987
1320
|
|
|
988
1321
|
export namespace DepositAsset {
|
|
@@ -991,7 +1324,7 @@ export namespace clob_v2 {
|
|
|
991
1324
|
const TYPE = new TypeDescriptor<DepositAsset<any>>(DepositAsset.TYPE_QNAME);
|
|
992
1325
|
|
|
993
1326
|
export function type<T0>(
|
|
994
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
1327
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
995
1328
|
): TypeDescriptor<DepositAsset<T0>> {
|
|
996
1329
|
return TYPE.apply(arg0);
|
|
997
1330
|
}
|
|
@@ -1010,7 +1343,7 @@ export namespace clob_v2 {
|
|
|
1010
1343
|
original_quantity: bigint;
|
|
1011
1344
|
quantity: bigint;
|
|
1012
1345
|
is_bid: Boolean;
|
|
1013
|
-
owner:
|
|
1346
|
+
owner: string;
|
|
1014
1347
|
expire_timestamp: bigint;
|
|
1015
1348
|
self_matching_prevention: number;
|
|
1016
1349
|
}
|
|
@@ -1030,7 +1363,7 @@ export namespace clob_v2 {
|
|
|
1030
1363
|
order_id: bigint;
|
|
1031
1364
|
client_order_id: bigint;
|
|
1032
1365
|
is_bid: Boolean;
|
|
1033
|
-
owner:
|
|
1366
|
+
owner: string;
|
|
1034
1367
|
original_quantity: bigint;
|
|
1035
1368
|
base_asset_quantity_canceled: bigint;
|
|
1036
1369
|
price: bigint;
|
|
@@ -1040,12 +1373,12 @@ export namespace clob_v2 {
|
|
|
1040
1373
|
export const TYPE_QNAME = "0xdee9::clob_v2::OrderCanceled";
|
|
1041
1374
|
|
|
1042
1375
|
const TYPE = new TypeDescriptor<OrderCanceled<any, any>>(
|
|
1043
|
-
OrderCanceled.TYPE_QNAME
|
|
1376
|
+
OrderCanceled.TYPE_QNAME,
|
|
1044
1377
|
);
|
|
1045
1378
|
|
|
1046
1379
|
export function type<T0, T1>(
|
|
1047
1380
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1048
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
1381
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
1049
1382
|
): TypeDescriptor<OrderCanceled<T0, T1>> {
|
|
1050
1383
|
return TYPE.apply(arg0, arg1);
|
|
1051
1384
|
}
|
|
@@ -1063,8 +1396,8 @@ export namespace clob_v2 {
|
|
|
1063
1396
|
taker_client_order_id: bigint;
|
|
1064
1397
|
maker_client_order_id: bigint;
|
|
1065
1398
|
is_bid: Boolean;
|
|
1066
|
-
taker_address:
|
|
1067
|
-
maker_address:
|
|
1399
|
+
taker_address: string;
|
|
1400
|
+
maker_address: string;
|
|
1068
1401
|
original_quantity: bigint;
|
|
1069
1402
|
base_asset_quantity_filled: bigint;
|
|
1070
1403
|
base_asset_quantity_remaining: bigint;
|
|
@@ -1077,12 +1410,12 @@ export namespace clob_v2 {
|
|
|
1077
1410
|
export const TYPE_QNAME = "0xdee9::clob_v2::OrderFilled";
|
|
1078
1411
|
|
|
1079
1412
|
const TYPE = new TypeDescriptor<OrderFilled<any, any>>(
|
|
1080
|
-
OrderFilled.TYPE_QNAME
|
|
1413
|
+
OrderFilled.TYPE_QNAME,
|
|
1081
1414
|
);
|
|
1082
1415
|
|
|
1083
1416
|
export function type<T0, T1>(
|
|
1084
1417
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1085
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
1418
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
1086
1419
|
): TypeDescriptor<OrderFilled<T0, T1>> {
|
|
1087
1420
|
return TYPE.apply(arg0, arg1);
|
|
1088
1421
|
}
|
|
@@ -1099,7 +1432,7 @@ export namespace clob_v2 {
|
|
|
1099
1432
|
order_id: bigint;
|
|
1100
1433
|
client_order_id: bigint;
|
|
1101
1434
|
is_bid: Boolean;
|
|
1102
|
-
owner:
|
|
1435
|
+
owner: string;
|
|
1103
1436
|
original_quantity: bigint;
|
|
1104
1437
|
base_asset_quantity_placed: bigint;
|
|
1105
1438
|
price: bigint;
|
|
@@ -1110,12 +1443,12 @@ export namespace clob_v2 {
|
|
|
1110
1443
|
export const TYPE_QNAME = "0xdee9::clob_v2::OrderPlaced";
|
|
1111
1444
|
|
|
1112
1445
|
const TYPE = new TypeDescriptor<OrderPlaced<any, any>>(
|
|
1113
|
-
OrderPlaced.TYPE_QNAME
|
|
1446
|
+
OrderPlaced.TYPE_QNAME,
|
|
1114
1447
|
);
|
|
1115
1448
|
|
|
1116
1449
|
export function type<T0, T1>(
|
|
1117
1450
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1118
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
1451
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
1119
1452
|
): TypeDescriptor<OrderPlaced<T0, T1>> {
|
|
1120
1453
|
return TYPE.apply(arg0, arg1);
|
|
1121
1454
|
}
|
|
@@ -1134,7 +1467,7 @@ export namespace clob_v2 {
|
|
|
1134
1467
|
next_bid_order_id: bigint;
|
|
1135
1468
|
next_ask_order_id: bigint;
|
|
1136
1469
|
usr_open_orders: _0x2.table.Table<
|
|
1137
|
-
|
|
1470
|
+
string,
|
|
1138
1471
|
_0x2.linked_table.LinkedTable<bigint, bigint>
|
|
1139
1472
|
>;
|
|
1140
1473
|
taker_fee_rate: bigint;
|
|
@@ -1155,7 +1488,7 @@ export namespace clob_v2 {
|
|
|
1155
1488
|
|
|
1156
1489
|
export function type<T0, T1>(
|
|
1157
1490
|
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1158
|
-
arg1: TypeDescriptor<T1> = ANY_TYPE
|
|
1491
|
+
arg1: TypeDescriptor<T1> = ANY_TYPE,
|
|
1159
1492
|
): TypeDescriptor<Pool<T0, T1>> {
|
|
1160
1493
|
return TYPE.apply(arg0, arg1);
|
|
1161
1494
|
}
|
|
@@ -1204,18 +1537,18 @@ export namespace clob_v2 {
|
|
|
1204
1537
|
export interface WithdrawAsset<T0> {
|
|
1205
1538
|
pool_id: _0x2.object_.ID;
|
|
1206
1539
|
quantity: bigint;
|
|
1207
|
-
owner:
|
|
1540
|
+
owner: string;
|
|
1208
1541
|
}
|
|
1209
1542
|
|
|
1210
1543
|
export namespace WithdrawAsset {
|
|
1211
1544
|
export const TYPE_QNAME = "0xdee9::clob_v2::WithdrawAsset";
|
|
1212
1545
|
|
|
1213
1546
|
const TYPE = new TypeDescriptor<WithdrawAsset<any>>(
|
|
1214
|
-
WithdrawAsset.TYPE_QNAME
|
|
1547
|
+
WithdrawAsset.TYPE_QNAME,
|
|
1215
1548
|
);
|
|
1216
1549
|
|
|
1217
1550
|
export function type<T0>(
|
|
1218
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
1551
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1219
1552
|
): TypeDescriptor<WithdrawAsset<T0>> {
|
|
1220
1553
|
return TYPE.apply(arg0);
|
|
1221
1554
|
}
|
|
@@ -1231,17 +1564,17 @@ export namespace clob_v2 {
|
|
|
1231
1564
|
export function accountBalance<T0 = any, T1 = any>(
|
|
1232
1565
|
tx: TransactionBlock,
|
|
1233
1566
|
args: [
|
|
1234
|
-
|
|
1235
|
-
|
|
1567
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1568
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1236
1569
|
],
|
|
1237
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1570
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1238
1571
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
1239
1572
|
const _args: any[] = [];
|
|
1240
1573
|
_args.push(
|
|
1241
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1574
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1242
1575
|
);
|
|
1243
1576
|
_args.push(
|
|
1244
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
1577
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
1245
1578
|
);
|
|
1246
1579
|
|
|
1247
1580
|
// @ts-ignore
|
|
@@ -1261,27 +1594,27 @@ export namespace clob_v2 {
|
|
|
1261
1594
|
export function batchCancelOrder<T0 = any, T1 = any>(
|
|
1262
1595
|
tx: TransactionBlock,
|
|
1263
1596
|
args: [
|
|
1264
|
-
|
|
1265
|
-
(
|
|
1266
|
-
|
|
1597
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1598
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
1599
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1267
1600
|
],
|
|
1268
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1601
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1269
1602
|
): TransactionArgument &
|
|
1270
1603
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
1271
1604
|
const _args: any[] = [];
|
|
1272
1605
|
_args.push(
|
|
1273
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1606
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1274
1607
|
);
|
|
1275
1608
|
_args.push(
|
|
1276
1609
|
TransactionArgument.is(args[1])
|
|
1277
1610
|
? args[1]
|
|
1278
1611
|
: tx.makeMoveVec({
|
|
1279
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
1612
|
+
objects: args[1].map((a: any) => tx.object(a)),
|
|
1280
1613
|
// type: TODO
|
|
1281
|
-
})
|
|
1614
|
+
}),
|
|
1282
1615
|
);
|
|
1283
1616
|
_args.push(
|
|
1284
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
1617
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1285
1618
|
);
|
|
1286
1619
|
|
|
1287
1620
|
// @ts-ignore
|
|
@@ -1301,17 +1634,17 @@ export namespace clob_v2 {
|
|
|
1301
1634
|
export function cancelAllOrders<T0 = any, T1 = any>(
|
|
1302
1635
|
tx: TransactionBlock,
|
|
1303
1636
|
args: [
|
|
1304
|
-
|
|
1305
|
-
|
|
1637
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1638
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1306
1639
|
],
|
|
1307
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1640
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1308
1641
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
1309
1642
|
const _args: any[] = [];
|
|
1310
1643
|
_args.push(
|
|
1311
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1644
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1312
1645
|
);
|
|
1313
1646
|
_args.push(
|
|
1314
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
1647
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
1315
1648
|
);
|
|
1316
1649
|
|
|
1317
1650
|
// @ts-ignore
|
|
@@ -1331,20 +1664,20 @@ export namespace clob_v2 {
|
|
|
1331
1664
|
export function cancelOrder<T0 = any, T1 = any>(
|
|
1332
1665
|
tx: TransactionBlock,
|
|
1333
1666
|
args: [
|
|
1334
|
-
|
|
1667
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1335
1668
|
bigint | TransactionArgument,
|
|
1336
|
-
|
|
1669
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1337
1670
|
],
|
|
1338
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1671
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1339
1672
|
): TransactionArgument &
|
|
1340
1673
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
1341
1674
|
const _args: any[] = [];
|
|
1342
1675
|
_args.push(
|
|
1343
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1676
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1344
1677
|
);
|
|
1345
1678
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1346
1679
|
_args.push(
|
|
1347
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
1680
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1348
1681
|
);
|
|
1349
1682
|
|
|
1350
1683
|
// @ts-ignore
|
|
@@ -1364,41 +1697,41 @@ export namespace clob_v2 {
|
|
|
1364
1697
|
export function cleanUpExpiredOrders<T0 = any, T1 = any>(
|
|
1365
1698
|
tx: TransactionBlock,
|
|
1366
1699
|
args: [
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
(
|
|
1370
|
-
(
|
|
1700
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1701
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1702
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
1703
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
1371
1704
|
],
|
|
1372
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1705
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1373
1706
|
): TransactionArgument &
|
|
1374
1707
|
[
|
|
1375
1708
|
TransactionArgument,
|
|
1376
1709
|
TransactionArgument,
|
|
1377
1710
|
TransactionArgument,
|
|
1378
|
-
TransactionArgument
|
|
1711
|
+
TransactionArgument,
|
|
1379
1712
|
] {
|
|
1380
1713
|
const _args: any[] = [];
|
|
1381
1714
|
_args.push(
|
|
1382
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1715
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1383
1716
|
);
|
|
1384
1717
|
_args.push(
|
|
1385
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
1718
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
1386
1719
|
);
|
|
1387
1720
|
_args.push(
|
|
1388
1721
|
TransactionArgument.is(args[2])
|
|
1389
1722
|
? args[2]
|
|
1390
1723
|
: tx.makeMoveVec({
|
|
1391
|
-
objects: args[2].map((a) => tx.object(a)),
|
|
1724
|
+
objects: args[2].map((a: any) => tx.object(a)),
|
|
1392
1725
|
// type: TODO
|
|
1393
|
-
})
|
|
1726
|
+
}),
|
|
1394
1727
|
);
|
|
1395
1728
|
_args.push(
|
|
1396
1729
|
TransactionArgument.is(args[3])
|
|
1397
1730
|
? args[3]
|
|
1398
1731
|
: tx.makeMoveVec({
|
|
1399
|
-
objects: args[3].map((a) => tx.object(a)),
|
|
1732
|
+
objects: args[3].map((a: any) => tx.object(a)),
|
|
1400
1733
|
// type: TODO
|
|
1401
|
-
})
|
|
1734
|
+
}),
|
|
1402
1735
|
);
|
|
1403
1736
|
|
|
1404
1737
|
// @ts-ignore
|
|
@@ -1417,11 +1750,11 @@ export namespace clob_v2 {
|
|
|
1417
1750
|
}
|
|
1418
1751
|
export function createAccount(
|
|
1419
1752
|
tx: TransactionBlock,
|
|
1420
|
-
args: [
|
|
1753
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
1421
1754
|
): TransactionArgument & [TransactionArgument] {
|
|
1422
1755
|
const _args: any[] = [];
|
|
1423
1756
|
_args.push(
|
|
1424
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1757
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1425
1758
|
);
|
|
1426
1759
|
|
|
1427
1760
|
// @ts-ignore
|
|
@@ -1436,22 +1769,22 @@ export namespace clob_v2 {
|
|
|
1436
1769
|
bigint | TransactionArgument,
|
|
1437
1770
|
bigint | TransactionArgument,
|
|
1438
1771
|
_0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
|
|
1439
|
-
|
|
1772
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1440
1773
|
],
|
|
1441
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1774
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1442
1775
|
): TransactionArgument &
|
|
1443
1776
|
[
|
|
1444
1777
|
TransactionArgument,
|
|
1445
1778
|
TransactionArgument,
|
|
1446
1779
|
TransactionArgument,
|
|
1447
|
-
TransactionArgument
|
|
1780
|
+
TransactionArgument,
|
|
1448
1781
|
] {
|
|
1449
1782
|
const _args: any[] = [];
|
|
1450
1783
|
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
1451
1784
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1452
1785
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
1453
1786
|
_args.push(
|
|
1454
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
1787
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
1455
1788
|
);
|
|
1456
1789
|
|
|
1457
1790
|
// @ts-ignore
|
|
@@ -1471,20 +1804,20 @@ export namespace clob_v2 {
|
|
|
1471
1804
|
export function depositBase<T0 = any, T1 = any>(
|
|
1472
1805
|
tx: TransactionBlock,
|
|
1473
1806
|
args: [
|
|
1474
|
-
|
|
1807
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1475
1808
|
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
1476
|
-
|
|
1809
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1477
1810
|
],
|
|
1478
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1811
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1479
1812
|
): TransactionArgument &
|
|
1480
1813
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
1481
1814
|
const _args: any[] = [];
|
|
1482
1815
|
_args.push(
|
|
1483
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1816
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1484
1817
|
);
|
|
1485
1818
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1486
1819
|
_args.push(
|
|
1487
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
1820
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1488
1821
|
);
|
|
1489
1822
|
|
|
1490
1823
|
// @ts-ignore
|
|
@@ -1504,20 +1837,20 @@ export namespace clob_v2 {
|
|
|
1504
1837
|
export function depositQuote<T0 = any, T1 = any>(
|
|
1505
1838
|
tx: TransactionBlock,
|
|
1506
1839
|
args: [
|
|
1507
|
-
|
|
1840
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1508
1841
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1509
|
-
|
|
1842
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1510
1843
|
],
|
|
1511
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1844
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1512
1845
|
): TransactionArgument &
|
|
1513
1846
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
1514
1847
|
const _args: any[] = [];
|
|
1515
1848
|
_args.push(
|
|
1516
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1849
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1517
1850
|
);
|
|
1518
1851
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1519
1852
|
_args.push(
|
|
1520
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
1853
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1521
1854
|
);
|
|
1522
1855
|
|
|
1523
1856
|
// @ts-ignore
|
|
@@ -1537,27 +1870,27 @@ export namespace clob_v2 {
|
|
|
1537
1870
|
export function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
|
|
1538
1871
|
tx: TransactionBlock,
|
|
1539
1872
|
args: [
|
|
1540
|
-
|
|
1873
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1541
1874
|
bigint | TransactionArgument,
|
|
1542
1875
|
bigint | TransactionArgument,
|
|
1543
|
-
|
|
1876
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1544
1877
|
],
|
|
1545
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1878
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1546
1879
|
): TransactionArgument &
|
|
1547
1880
|
[
|
|
1548
1881
|
TransactionArgument,
|
|
1549
1882
|
TransactionArgument,
|
|
1550
1883
|
TransactionArgument,
|
|
1551
|
-
TransactionArgument
|
|
1884
|
+
TransactionArgument,
|
|
1552
1885
|
] {
|
|
1553
1886
|
const _args: any[] = [];
|
|
1554
1887
|
_args.push(
|
|
1555
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1888
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1556
1889
|
);
|
|
1557
1890
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1558
1891
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
1559
1892
|
_args.push(
|
|
1560
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
1893
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
1561
1894
|
);
|
|
1562
1895
|
|
|
1563
1896
|
// @ts-ignore
|
|
@@ -1577,27 +1910,27 @@ export namespace clob_v2 {
|
|
|
1577
1910
|
export function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
|
|
1578
1911
|
tx: TransactionBlock,
|
|
1579
1912
|
args: [
|
|
1580
|
-
|
|
1913
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1581
1914
|
bigint | TransactionArgument,
|
|
1582
1915
|
bigint | TransactionArgument,
|
|
1583
|
-
|
|
1916
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1584
1917
|
],
|
|
1585
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1918
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1586
1919
|
): TransactionArgument &
|
|
1587
1920
|
[
|
|
1588
1921
|
TransactionArgument,
|
|
1589
1922
|
TransactionArgument,
|
|
1590
1923
|
TransactionArgument,
|
|
1591
|
-
TransactionArgument
|
|
1924
|
+
TransactionArgument,
|
|
1592
1925
|
] {
|
|
1593
1926
|
const _args: any[] = [];
|
|
1594
1927
|
_args.push(
|
|
1595
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1928
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1596
1929
|
);
|
|
1597
1930
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1598
1931
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
1599
1932
|
_args.push(
|
|
1600
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
1933
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
1601
1934
|
);
|
|
1602
1935
|
|
|
1603
1936
|
// @ts-ignore
|
|
@@ -1616,12 +1949,12 @@ export namespace clob_v2 {
|
|
|
1616
1949
|
}
|
|
1617
1950
|
export function getMarketPrice<T0 = any, T1 = any>(
|
|
1618
1951
|
tx: TransactionBlock,
|
|
1619
|
-
args: [
|
|
1620
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1952
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
1953
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1621
1954
|
): TransactionArgument & [TransactionArgument] {
|
|
1622
1955
|
const _args: any[] = [];
|
|
1623
1956
|
_args.push(
|
|
1624
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1957
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1625
1958
|
);
|
|
1626
1959
|
|
|
1627
1960
|
// @ts-ignore
|
|
@@ -1641,20 +1974,20 @@ export namespace clob_v2 {
|
|
|
1641
1974
|
export function getOrderStatus<T0 = any, T1 = any>(
|
|
1642
1975
|
tx: TransactionBlock,
|
|
1643
1976
|
args: [
|
|
1644
|
-
|
|
1977
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1645
1978
|
bigint | TransactionArgument,
|
|
1646
|
-
|
|
1979
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1647
1980
|
],
|
|
1648
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
1981
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1649
1982
|
): TransactionArgument &
|
|
1650
1983
|
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
1651
1984
|
const _args: any[] = [];
|
|
1652
1985
|
_args.push(
|
|
1653
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
1986
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1654
1987
|
);
|
|
1655
1988
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1656
1989
|
_args.push(
|
|
1657
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
1990
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1658
1991
|
);
|
|
1659
1992
|
|
|
1660
1993
|
// @ts-ignore
|
|
@@ -1674,17 +2007,17 @@ export namespace clob_v2 {
|
|
|
1674
2007
|
export function listOpenOrders<T0 = any, T1 = any>(
|
|
1675
2008
|
tx: TransactionBlock,
|
|
1676
2009
|
args: [
|
|
1677
|
-
|
|
1678
|
-
|
|
2010
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2011
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1679
2012
|
],
|
|
1680
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
2013
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1681
2014
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
1682
2015
|
const _args: any[] = [];
|
|
1683
2016
|
_args.push(
|
|
1684
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2017
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1685
2018
|
);
|
|
1686
2019
|
_args.push(
|
|
1687
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
2020
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
1688
2021
|
);
|
|
1689
2022
|
|
|
1690
2023
|
// @ts-ignore
|
|
@@ -1704,7 +2037,7 @@ export namespace clob_v2 {
|
|
|
1704
2037
|
export function placeLimitOrder<T0 = any, T1 = any>(
|
|
1705
2038
|
tx: TransactionBlock,
|
|
1706
2039
|
args: [
|
|
1707
|
-
|
|
2040
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1708
2041
|
bigint | TransactionArgument,
|
|
1709
2042
|
bigint | TransactionArgument,
|
|
1710
2043
|
bigint | TransactionArgument,
|
|
@@ -1712,11 +2045,11 @@ export namespace clob_v2 {
|
|
|
1712
2045
|
Boolean | TransactionArgument,
|
|
1713
2046
|
bigint | TransactionArgument,
|
|
1714
2047
|
number | TransactionArgument,
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
2048
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2049
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2050
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1718
2051
|
],
|
|
1719
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
2052
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1720
2053
|
): TransactionArgument &
|
|
1721
2054
|
[
|
|
1722
2055
|
TransactionArgument,
|
|
@@ -1729,11 +2062,11 @@ export namespace clob_v2 {
|
|
|
1729
2062
|
TransactionArgument,
|
|
1730
2063
|
TransactionArgument,
|
|
1731
2064
|
TransactionArgument,
|
|
1732
|
-
TransactionArgument
|
|
2065
|
+
TransactionArgument,
|
|
1733
2066
|
] {
|
|
1734
2067
|
const _args: any[] = [];
|
|
1735
2068
|
_args.push(
|
|
1736
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2069
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1737
2070
|
);
|
|
1738
2071
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1739
2072
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
@@ -1743,13 +2076,13 @@ export namespace clob_v2 {
|
|
|
1743
2076
|
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
|
|
1744
2077
|
_args.push(TransactionArgument.is(args[7]) ? args[7] : tx.pure(args[7]));
|
|
1745
2078
|
_args.push(
|
|
1746
|
-
TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8])
|
|
2079
|
+
TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]),
|
|
1747
2080
|
);
|
|
1748
2081
|
_args.push(
|
|
1749
|
-
TransactionArgument.is(args[9]) ? args[9] : tx.object(args[9])
|
|
2082
|
+
TransactionArgument.is(args[9]) ? args[9] : tx.object(args[9]),
|
|
1750
2083
|
);
|
|
1751
2084
|
_args.push(
|
|
1752
|
-
TransactionArgument.is(args[10]) ? args[10] : tx.object(args[10])
|
|
2085
|
+
TransactionArgument.is(args[10]) ? args[10] : tx.object(args[10]),
|
|
1753
2086
|
);
|
|
1754
2087
|
|
|
1755
2088
|
// @ts-ignore
|
|
@@ -1769,17 +2102,17 @@ export namespace clob_v2 {
|
|
|
1769
2102
|
export function placeMarketOrder<T0 = any, T1 = any>(
|
|
1770
2103
|
tx: TransactionBlock,
|
|
1771
2104
|
args: [
|
|
1772
|
-
|
|
1773
|
-
|
|
2105
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2106
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1774
2107
|
bigint | TransactionArgument,
|
|
1775
2108
|
bigint | TransactionArgument,
|
|
1776
2109
|
Boolean | TransactionArgument,
|
|
1777
2110
|
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
1778
2111
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1779
|
-
|
|
1780
|
-
|
|
2112
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2113
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1781
2114
|
],
|
|
1782
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
2115
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1783
2116
|
): TransactionArgument &
|
|
1784
2117
|
[
|
|
1785
2118
|
TransactionArgument,
|
|
@@ -1790,14 +2123,14 @@ export namespace clob_v2 {
|
|
|
1790
2123
|
TransactionArgument,
|
|
1791
2124
|
TransactionArgument,
|
|
1792
2125
|
TransactionArgument,
|
|
1793
|
-
TransactionArgument
|
|
2126
|
+
TransactionArgument,
|
|
1794
2127
|
] {
|
|
1795
2128
|
const _args: any[] = [];
|
|
1796
2129
|
_args.push(
|
|
1797
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2130
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1798
2131
|
);
|
|
1799
2132
|
_args.push(
|
|
1800
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
2133
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
1801
2134
|
);
|
|
1802
2135
|
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
1803
2136
|
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
@@ -1805,10 +2138,10 @@ export namespace clob_v2 {
|
|
|
1805
2138
|
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
1806
2139
|
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
|
|
1807
2140
|
_args.push(
|
|
1808
|
-
TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7])
|
|
2141
|
+
TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
|
|
1809
2142
|
);
|
|
1810
2143
|
_args.push(
|
|
1811
|
-
TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8])
|
|
2144
|
+
TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]),
|
|
1812
2145
|
);
|
|
1813
2146
|
|
|
1814
2147
|
// @ts-ignore
|
|
@@ -1828,16 +2161,16 @@ export namespace clob_v2 {
|
|
|
1828
2161
|
export function swapExactBaseForQuote<T0 = any, T1 = any>(
|
|
1829
2162
|
tx: TransactionBlock,
|
|
1830
2163
|
args: [
|
|
1831
|
-
|
|
2164
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1832
2165
|
bigint | TransactionArgument,
|
|
1833
|
-
|
|
2166
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1834
2167
|
bigint | TransactionArgument,
|
|
1835
2168
|
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
1836
2169
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1837
|
-
|
|
1838
|
-
|
|
2170
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2171
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1839
2172
|
],
|
|
1840
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
2173
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1841
2174
|
): TransactionArgument &
|
|
1842
2175
|
[
|
|
1843
2176
|
TransactionArgument,
|
|
@@ -1847,24 +2180,24 @@ export namespace clob_v2 {
|
|
|
1847
2180
|
TransactionArgument,
|
|
1848
2181
|
TransactionArgument,
|
|
1849
2182
|
TransactionArgument,
|
|
1850
|
-
TransactionArgument
|
|
2183
|
+
TransactionArgument,
|
|
1851
2184
|
] {
|
|
1852
2185
|
const _args: any[] = [];
|
|
1853
2186
|
_args.push(
|
|
1854
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2187
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1855
2188
|
);
|
|
1856
2189
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1857
2190
|
_args.push(
|
|
1858
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
2191
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1859
2192
|
);
|
|
1860
2193
|
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
1861
2194
|
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
1862
2195
|
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
1863
2196
|
_args.push(
|
|
1864
|
-
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6])
|
|
2197
|
+
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
|
|
1865
2198
|
);
|
|
1866
2199
|
_args.push(
|
|
1867
|
-
TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7])
|
|
2200
|
+
TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
|
|
1868
2201
|
);
|
|
1869
2202
|
|
|
1870
2203
|
// @ts-ignore
|
|
@@ -1884,15 +2217,15 @@ export namespace clob_v2 {
|
|
|
1884
2217
|
export function swapExactQuoteForBase<T0 = any, T1 = any>(
|
|
1885
2218
|
tx: TransactionBlock,
|
|
1886
2219
|
args: [
|
|
1887
|
-
|
|
2220
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1888
2221
|
bigint | TransactionArgument,
|
|
1889
|
-
|
|
2222
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1890
2223
|
bigint | TransactionArgument,
|
|
1891
|
-
|
|
2224
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1892
2225
|
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
1893
|
-
|
|
2226
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1894
2227
|
],
|
|
1895
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
2228
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1896
2229
|
): TransactionArgument &
|
|
1897
2230
|
[
|
|
1898
2231
|
TransactionArgument,
|
|
@@ -1901,23 +2234,23 @@ export namespace clob_v2 {
|
|
|
1901
2234
|
TransactionArgument,
|
|
1902
2235
|
TransactionArgument,
|
|
1903
2236
|
TransactionArgument,
|
|
1904
|
-
TransactionArgument
|
|
2237
|
+
TransactionArgument,
|
|
1905
2238
|
] {
|
|
1906
2239
|
const _args: any[] = [];
|
|
1907
2240
|
_args.push(
|
|
1908
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2241
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1909
2242
|
);
|
|
1910
2243
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1911
2244
|
_args.push(
|
|
1912
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
2245
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1913
2246
|
);
|
|
1914
2247
|
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
1915
2248
|
_args.push(
|
|
1916
|
-
TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
|
|
2249
|
+
TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
|
|
1917
2250
|
);
|
|
1918
2251
|
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
1919
2252
|
_args.push(
|
|
1920
|
-
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6])
|
|
2253
|
+
TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
|
|
1921
2254
|
);
|
|
1922
2255
|
|
|
1923
2256
|
// @ts-ignore
|
|
@@ -1937,29 +2270,29 @@ export namespace clob_v2 {
|
|
|
1937
2270
|
export function withdrawBase<T0 = any, T1 = any>(
|
|
1938
2271
|
tx: TransactionBlock,
|
|
1939
2272
|
args: [
|
|
1940
|
-
|
|
2273
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1941
2274
|
bigint | TransactionArgument,
|
|
1942
|
-
|
|
1943
|
-
|
|
2275
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2276
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1944
2277
|
],
|
|
1945
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
2278
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1946
2279
|
): TransactionArgument &
|
|
1947
2280
|
[
|
|
1948
2281
|
TransactionArgument,
|
|
1949
2282
|
TransactionArgument,
|
|
1950
2283
|
TransactionArgument,
|
|
1951
|
-
TransactionArgument
|
|
2284
|
+
TransactionArgument,
|
|
1952
2285
|
] {
|
|
1953
2286
|
const _args: any[] = [];
|
|
1954
2287
|
_args.push(
|
|
1955
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2288
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1956
2289
|
);
|
|
1957
2290
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1958
2291
|
_args.push(
|
|
1959
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
2292
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
1960
2293
|
);
|
|
1961
2294
|
_args.push(
|
|
1962
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
2295
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
1963
2296
|
);
|
|
1964
2297
|
|
|
1965
2298
|
// @ts-ignore
|
|
@@ -1979,29 +2312,29 @@ export namespace clob_v2 {
|
|
|
1979
2312
|
export function withdrawQuote<T0 = any, T1 = any>(
|
|
1980
2313
|
tx: TransactionBlock,
|
|
1981
2314
|
args: [
|
|
1982
|
-
|
|
2315
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1983
2316
|
bigint | TransactionArgument,
|
|
1984
|
-
|
|
1985
|
-
|
|
2317
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2318
|
+
string | ObjectCallArg | TransactionArgument,
|
|
1986
2319
|
],
|
|
1987
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
|
|
2320
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1988
2321
|
): TransactionArgument &
|
|
1989
2322
|
[
|
|
1990
2323
|
TransactionArgument,
|
|
1991
2324
|
TransactionArgument,
|
|
1992
2325
|
TransactionArgument,
|
|
1993
|
-
TransactionArgument
|
|
2326
|
+
TransactionArgument,
|
|
1994
2327
|
] {
|
|
1995
2328
|
const _args: any[] = [];
|
|
1996
2329
|
_args.push(
|
|
1997
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2330
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
1998
2331
|
);
|
|
1999
2332
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
2000
2333
|
_args.push(
|
|
2001
|
-
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
|
|
2334
|
+
TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
|
|
2002
2335
|
);
|
|
2003
2336
|
_args.push(
|
|
2004
|
-
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
|
|
2337
|
+
TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
|
|
2005
2338
|
);
|
|
2006
2339
|
|
|
2007
2340
|
// @ts-ignore
|
|
@@ -2019,6 +2352,365 @@ export namespace clob_v2 {
|
|
|
2019
2352
|
});
|
|
2020
2353
|
}
|
|
2021
2354
|
}
|
|
2355
|
+
export namespace view {
|
|
2356
|
+
export async function accountBalance<T0 = any, T1 = any>(
|
|
2357
|
+
client: SuiClient,
|
|
2358
|
+
args: [
|
|
2359
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2360
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2361
|
+
],
|
|
2362
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2363
|
+
) {
|
|
2364
|
+
const tx = new TransactionBlock();
|
|
2365
|
+
builder.accountBalance(tx, args, typeArguments);
|
|
2366
|
+
const res = await client.devInspectTransactionBlock({
|
|
2367
|
+
transactionBlock: tx,
|
|
2368
|
+
sender: ZERO_ADDRESS,
|
|
2369
|
+
});
|
|
2370
|
+
return res;
|
|
2371
|
+
}
|
|
2372
|
+
export async function batchCancelOrder<T0 = any, T1 = any>(
|
|
2373
|
+
client: SuiClient,
|
|
2374
|
+
args: [
|
|
2375
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2376
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2377
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2378
|
+
],
|
|
2379
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2380
|
+
) {
|
|
2381
|
+
const tx = new TransactionBlock();
|
|
2382
|
+
builder.batchCancelOrder(tx, args, typeArguments);
|
|
2383
|
+
const res = await client.devInspectTransactionBlock({
|
|
2384
|
+
transactionBlock: tx,
|
|
2385
|
+
sender: ZERO_ADDRESS,
|
|
2386
|
+
});
|
|
2387
|
+
return res;
|
|
2388
|
+
}
|
|
2389
|
+
export async function cancelAllOrders<T0 = any, T1 = any>(
|
|
2390
|
+
client: SuiClient,
|
|
2391
|
+
args: [
|
|
2392
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2393
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2394
|
+
],
|
|
2395
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2396
|
+
) {
|
|
2397
|
+
const tx = new TransactionBlock();
|
|
2398
|
+
builder.cancelAllOrders(tx, args, typeArguments);
|
|
2399
|
+
const res = await client.devInspectTransactionBlock({
|
|
2400
|
+
transactionBlock: tx,
|
|
2401
|
+
sender: ZERO_ADDRESS,
|
|
2402
|
+
});
|
|
2403
|
+
return res;
|
|
2404
|
+
}
|
|
2405
|
+
export async function cancelOrder<T0 = any, T1 = any>(
|
|
2406
|
+
client: SuiClient,
|
|
2407
|
+
args: [
|
|
2408
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2409
|
+
bigint | TransactionArgument,
|
|
2410
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2411
|
+
],
|
|
2412
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2413
|
+
) {
|
|
2414
|
+
const tx = new TransactionBlock();
|
|
2415
|
+
builder.cancelOrder(tx, args, typeArguments);
|
|
2416
|
+
const res = await client.devInspectTransactionBlock({
|
|
2417
|
+
transactionBlock: tx,
|
|
2418
|
+
sender: ZERO_ADDRESS,
|
|
2419
|
+
});
|
|
2420
|
+
return res;
|
|
2421
|
+
}
|
|
2422
|
+
export async function cleanUpExpiredOrders<T0 = any, T1 = any>(
|
|
2423
|
+
client: SuiClient,
|
|
2424
|
+
args: [
|
|
2425
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2426
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2427
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2428
|
+
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2429
|
+
],
|
|
2430
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2431
|
+
) {
|
|
2432
|
+
const tx = new TransactionBlock();
|
|
2433
|
+
builder.cleanUpExpiredOrders(tx, args, typeArguments);
|
|
2434
|
+
const res = await client.devInspectTransactionBlock({
|
|
2435
|
+
transactionBlock: tx,
|
|
2436
|
+
sender: ZERO_ADDRESS,
|
|
2437
|
+
});
|
|
2438
|
+
return res;
|
|
2439
|
+
}
|
|
2440
|
+
export async function createAccount(
|
|
2441
|
+
client: SuiClient,
|
|
2442
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
2443
|
+
) {
|
|
2444
|
+
const tx = new TransactionBlock();
|
|
2445
|
+
builder.createAccount(tx, args);
|
|
2446
|
+
const res = await client.devInspectTransactionBlock({
|
|
2447
|
+
transactionBlock: tx,
|
|
2448
|
+
sender: ZERO_ADDRESS,
|
|
2449
|
+
});
|
|
2450
|
+
return res;
|
|
2451
|
+
}
|
|
2452
|
+
export async function createPool<T0 = any, T1 = any>(
|
|
2453
|
+
client: SuiClient,
|
|
2454
|
+
args: [
|
|
2455
|
+
bigint | TransactionArgument,
|
|
2456
|
+
bigint | TransactionArgument,
|
|
2457
|
+
_0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
|
|
2458
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2459
|
+
],
|
|
2460
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2461
|
+
) {
|
|
2462
|
+
const tx = new TransactionBlock();
|
|
2463
|
+
builder.createPool(tx, args, typeArguments);
|
|
2464
|
+
const res = await client.devInspectTransactionBlock({
|
|
2465
|
+
transactionBlock: tx,
|
|
2466
|
+
sender: ZERO_ADDRESS,
|
|
2467
|
+
});
|
|
2468
|
+
return res;
|
|
2469
|
+
}
|
|
2470
|
+
export async function depositBase<T0 = any, T1 = any>(
|
|
2471
|
+
client: SuiClient,
|
|
2472
|
+
args: [
|
|
2473
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2474
|
+
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
2475
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2476
|
+
],
|
|
2477
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2478
|
+
) {
|
|
2479
|
+
const tx = new TransactionBlock();
|
|
2480
|
+
builder.depositBase(tx, args, typeArguments);
|
|
2481
|
+
const res = await client.devInspectTransactionBlock({
|
|
2482
|
+
transactionBlock: tx,
|
|
2483
|
+
sender: ZERO_ADDRESS,
|
|
2484
|
+
});
|
|
2485
|
+
return res;
|
|
2486
|
+
}
|
|
2487
|
+
export async function depositQuote<T0 = any, T1 = any>(
|
|
2488
|
+
client: SuiClient,
|
|
2489
|
+
args: [
|
|
2490
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2491
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
2492
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2493
|
+
],
|
|
2494
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2495
|
+
) {
|
|
2496
|
+
const tx = new TransactionBlock();
|
|
2497
|
+
builder.depositQuote(tx, args, typeArguments);
|
|
2498
|
+
const res = await client.devInspectTransactionBlock({
|
|
2499
|
+
transactionBlock: tx,
|
|
2500
|
+
sender: ZERO_ADDRESS,
|
|
2501
|
+
});
|
|
2502
|
+
return res;
|
|
2503
|
+
}
|
|
2504
|
+
export async function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
|
|
2505
|
+
client: SuiClient,
|
|
2506
|
+
args: [
|
|
2507
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2508
|
+
bigint | TransactionArgument,
|
|
2509
|
+
bigint | TransactionArgument,
|
|
2510
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2511
|
+
],
|
|
2512
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2513
|
+
) {
|
|
2514
|
+
const tx = new TransactionBlock();
|
|
2515
|
+
builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
|
|
2516
|
+
const res = await client.devInspectTransactionBlock({
|
|
2517
|
+
transactionBlock: tx,
|
|
2518
|
+
sender: ZERO_ADDRESS,
|
|
2519
|
+
});
|
|
2520
|
+
return res;
|
|
2521
|
+
}
|
|
2522
|
+
export async function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
|
|
2523
|
+
client: SuiClient,
|
|
2524
|
+
args: [
|
|
2525
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2526
|
+
bigint | TransactionArgument,
|
|
2527
|
+
bigint | TransactionArgument,
|
|
2528
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2529
|
+
],
|
|
2530
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2531
|
+
) {
|
|
2532
|
+
const tx = new TransactionBlock();
|
|
2533
|
+
builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
|
|
2534
|
+
const res = await client.devInspectTransactionBlock({
|
|
2535
|
+
transactionBlock: tx,
|
|
2536
|
+
sender: ZERO_ADDRESS,
|
|
2537
|
+
});
|
|
2538
|
+
return res;
|
|
2539
|
+
}
|
|
2540
|
+
export async function getMarketPrice<T0 = any, T1 = any>(
|
|
2541
|
+
client: SuiClient,
|
|
2542
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
2543
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2544
|
+
) {
|
|
2545
|
+
const tx = new TransactionBlock();
|
|
2546
|
+
builder.getMarketPrice(tx, args, typeArguments);
|
|
2547
|
+
const res = await client.devInspectTransactionBlock({
|
|
2548
|
+
transactionBlock: tx,
|
|
2549
|
+
sender: ZERO_ADDRESS,
|
|
2550
|
+
});
|
|
2551
|
+
return res;
|
|
2552
|
+
}
|
|
2553
|
+
export async function getOrderStatus<T0 = any, T1 = any>(
|
|
2554
|
+
client: SuiClient,
|
|
2555
|
+
args: [
|
|
2556
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2557
|
+
bigint | TransactionArgument,
|
|
2558
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2559
|
+
],
|
|
2560
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2561
|
+
) {
|
|
2562
|
+
const tx = new TransactionBlock();
|
|
2563
|
+
builder.getOrderStatus(tx, args, typeArguments);
|
|
2564
|
+
const res = await client.devInspectTransactionBlock({
|
|
2565
|
+
transactionBlock: tx,
|
|
2566
|
+
sender: ZERO_ADDRESS,
|
|
2567
|
+
});
|
|
2568
|
+
return res;
|
|
2569
|
+
}
|
|
2570
|
+
export async function listOpenOrders<T0 = any, T1 = any>(
|
|
2571
|
+
client: SuiClient,
|
|
2572
|
+
args: [
|
|
2573
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2574
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2575
|
+
],
|
|
2576
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2577
|
+
) {
|
|
2578
|
+
const tx = new TransactionBlock();
|
|
2579
|
+
builder.listOpenOrders(tx, args, typeArguments);
|
|
2580
|
+
const res = await client.devInspectTransactionBlock({
|
|
2581
|
+
transactionBlock: tx,
|
|
2582
|
+
sender: ZERO_ADDRESS,
|
|
2583
|
+
});
|
|
2584
|
+
return res;
|
|
2585
|
+
}
|
|
2586
|
+
export async function placeLimitOrder<T0 = any, T1 = any>(
|
|
2587
|
+
client: SuiClient,
|
|
2588
|
+
args: [
|
|
2589
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2590
|
+
bigint | TransactionArgument,
|
|
2591
|
+
bigint | TransactionArgument,
|
|
2592
|
+
bigint | TransactionArgument,
|
|
2593
|
+
number | TransactionArgument,
|
|
2594
|
+
Boolean | TransactionArgument,
|
|
2595
|
+
bigint | TransactionArgument,
|
|
2596
|
+
number | TransactionArgument,
|
|
2597
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2598
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2599
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2600
|
+
],
|
|
2601
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2602
|
+
) {
|
|
2603
|
+
const tx = new TransactionBlock();
|
|
2604
|
+
builder.placeLimitOrder(tx, args, typeArguments);
|
|
2605
|
+
const res = await client.devInspectTransactionBlock({
|
|
2606
|
+
transactionBlock: tx,
|
|
2607
|
+
sender: ZERO_ADDRESS,
|
|
2608
|
+
});
|
|
2609
|
+
return res;
|
|
2610
|
+
}
|
|
2611
|
+
export async function placeMarketOrder<T0 = any, T1 = any>(
|
|
2612
|
+
client: SuiClient,
|
|
2613
|
+
args: [
|
|
2614
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2615
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2616
|
+
bigint | TransactionArgument,
|
|
2617
|
+
bigint | TransactionArgument,
|
|
2618
|
+
Boolean | TransactionArgument,
|
|
2619
|
+
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
2620
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
2621
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2622
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2623
|
+
],
|
|
2624
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2625
|
+
) {
|
|
2626
|
+
const tx = new TransactionBlock();
|
|
2627
|
+
builder.placeMarketOrder(tx, args, typeArguments);
|
|
2628
|
+
const res = await client.devInspectTransactionBlock({
|
|
2629
|
+
transactionBlock: tx,
|
|
2630
|
+
sender: ZERO_ADDRESS,
|
|
2631
|
+
});
|
|
2632
|
+
return res;
|
|
2633
|
+
}
|
|
2634
|
+
export async function swapExactBaseForQuote<T0 = any, T1 = any>(
|
|
2635
|
+
client: SuiClient,
|
|
2636
|
+
args: [
|
|
2637
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2638
|
+
bigint | TransactionArgument,
|
|
2639
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2640
|
+
bigint | TransactionArgument,
|
|
2641
|
+
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
2642
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
2643
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2644
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2645
|
+
],
|
|
2646
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2647
|
+
) {
|
|
2648
|
+
const tx = new TransactionBlock();
|
|
2649
|
+
builder.swapExactBaseForQuote(tx, args, typeArguments);
|
|
2650
|
+
const res = await client.devInspectTransactionBlock({
|
|
2651
|
+
transactionBlock: tx,
|
|
2652
|
+
sender: ZERO_ADDRESS,
|
|
2653
|
+
});
|
|
2654
|
+
return res;
|
|
2655
|
+
}
|
|
2656
|
+
export async function swapExactQuoteForBase<T0 = any, T1 = any>(
|
|
2657
|
+
client: SuiClient,
|
|
2658
|
+
args: [
|
|
2659
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2660
|
+
bigint | TransactionArgument,
|
|
2661
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2662
|
+
bigint | TransactionArgument,
|
|
2663
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2664
|
+
_0x2.coin.Coin<T1> | TransactionArgument,
|
|
2665
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2666
|
+
],
|
|
2667
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2668
|
+
) {
|
|
2669
|
+
const tx = new TransactionBlock();
|
|
2670
|
+
builder.swapExactQuoteForBase(tx, args, typeArguments);
|
|
2671
|
+
const res = await client.devInspectTransactionBlock({
|
|
2672
|
+
transactionBlock: tx,
|
|
2673
|
+
sender: ZERO_ADDRESS,
|
|
2674
|
+
});
|
|
2675
|
+
return res;
|
|
2676
|
+
}
|
|
2677
|
+
export async function withdrawBase<T0 = any, T1 = any>(
|
|
2678
|
+
client: SuiClient,
|
|
2679
|
+
args: [
|
|
2680
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2681
|
+
bigint | TransactionArgument,
|
|
2682
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2683
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2684
|
+
],
|
|
2685
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2686
|
+
) {
|
|
2687
|
+
const tx = new TransactionBlock();
|
|
2688
|
+
builder.withdrawBase(tx, args, typeArguments);
|
|
2689
|
+
const res = await client.devInspectTransactionBlock({
|
|
2690
|
+
transactionBlock: tx,
|
|
2691
|
+
sender: ZERO_ADDRESS,
|
|
2692
|
+
});
|
|
2693
|
+
return res;
|
|
2694
|
+
}
|
|
2695
|
+
export async function withdrawQuote<T0 = any, T1 = any>(
|
|
2696
|
+
client: SuiClient,
|
|
2697
|
+
args: [
|
|
2698
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2699
|
+
bigint | TransactionArgument,
|
|
2700
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2701
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2702
|
+
],
|
|
2703
|
+
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2704
|
+
) {
|
|
2705
|
+
const tx = new TransactionBlock();
|
|
2706
|
+
builder.withdrawQuote(tx, args, typeArguments);
|
|
2707
|
+
const res = await client.devInspectTransactionBlock({
|
|
2708
|
+
transactionBlock: tx,
|
|
2709
|
+
sender: ZERO_ADDRESS,
|
|
2710
|
+
});
|
|
2711
|
+
return res;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2022
2714
|
}
|
|
2023
2715
|
|
|
2024
2716
|
export namespace critbit {
|
|
@@ -2038,7 +2730,7 @@ export namespace critbit {
|
|
|
2038
2730
|
const TYPE = new TypeDescriptor<CritbitTree<any>>(CritbitTree.TYPE_QNAME);
|
|
2039
2731
|
|
|
2040
2732
|
export function type<T0>(
|
|
2041
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
2733
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
2042
2734
|
): TypeDescriptor<CritbitTree<T0>> {
|
|
2043
2735
|
return TYPE.apply(arg0);
|
|
2044
2736
|
}
|
|
@@ -2073,7 +2765,7 @@ export namespace critbit {
|
|
|
2073
2765
|
const TYPE = new TypeDescriptor<Leaf<any>>(Leaf.TYPE_QNAME);
|
|
2074
2766
|
|
|
2075
2767
|
export function type<T0>(
|
|
2076
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
2768
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
2077
2769
|
): TypeDescriptor<Leaf<T0>> {
|
|
2078
2770
|
return TYPE.apply(arg0);
|
|
2079
2771
|
}
|
|
@@ -2083,14 +2775,14 @@ export namespace critbit {
|
|
|
2083
2775
|
export function previousLeaf<T0 = any>(
|
|
2084
2776
|
tx: TransactionBlock,
|
|
2085
2777
|
args: [
|
|
2086
|
-
|
|
2087
|
-
bigint | TransactionArgument
|
|
2778
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2779
|
+
bigint | TransactionArgument,
|
|
2088
2780
|
],
|
|
2089
|
-
typeArguments: [TypeDescriptor<T0> | string]
|
|
2781
|
+
typeArguments: [TypeDescriptor<T0> | string],
|
|
2090
2782
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2091
2783
|
const _args: any[] = [];
|
|
2092
2784
|
_args.push(
|
|
2093
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2785
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
2094
2786
|
);
|
|
2095
2787
|
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
2096
2788
|
|
|
@@ -2106,6 +2798,24 @@ export namespace critbit {
|
|
|
2106
2798
|
});
|
|
2107
2799
|
}
|
|
2108
2800
|
}
|
|
2801
|
+
export namespace view {
|
|
2802
|
+
export async function previousLeaf<T0 = any>(
|
|
2803
|
+
client: SuiClient,
|
|
2804
|
+
args: [
|
|
2805
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2806
|
+
bigint | TransactionArgument,
|
|
2807
|
+
],
|
|
2808
|
+
typeArguments: [TypeDescriptor<T0> | string],
|
|
2809
|
+
) {
|
|
2810
|
+
const tx = new TransactionBlock();
|
|
2811
|
+
builder.previousLeaf(tx, args, typeArguments);
|
|
2812
|
+
const res = await client.devInspectTransactionBlock({
|
|
2813
|
+
transactionBlock: tx,
|
|
2814
|
+
sender: ZERO_ADDRESS,
|
|
2815
|
+
});
|
|
2816
|
+
return res;
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2109
2819
|
}
|
|
2110
2820
|
|
|
2111
2821
|
export namespace custodian {
|
|
@@ -2120,7 +2830,7 @@ export namespace custodian {
|
|
|
2120
2830
|
const TYPE = new TypeDescriptor<Account<any>>(Account.TYPE_QNAME);
|
|
2121
2831
|
|
|
2122
2832
|
export function type<T0>(
|
|
2123
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
2833
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
2124
2834
|
): TypeDescriptor<Account<T0>> {
|
|
2125
2835
|
return TYPE.apply(arg0);
|
|
2126
2836
|
}
|
|
@@ -2151,7 +2861,7 @@ export namespace custodian {
|
|
|
2151
2861
|
const TYPE = new TypeDescriptor<Custodian<any>>(Custodian.TYPE_QNAME);
|
|
2152
2862
|
|
|
2153
2863
|
export function type<T0>(
|
|
2154
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
2864
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
2155
2865
|
): TypeDescriptor<Custodian<T0>> {
|
|
2156
2866
|
return TYPE.apply(arg0);
|
|
2157
2867
|
}
|
|
@@ -2160,11 +2870,11 @@ export namespace custodian {
|
|
|
2160
2870
|
export namespace builder {
|
|
2161
2871
|
export function mintAccountCap(
|
|
2162
2872
|
tx: TransactionBlock,
|
|
2163
|
-
args: [
|
|
2873
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
2164
2874
|
): TransactionArgument & [TransactionArgument] {
|
|
2165
2875
|
const _args: any[] = [];
|
|
2166
2876
|
_args.push(
|
|
2167
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2877
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
2168
2878
|
);
|
|
2169
2879
|
|
|
2170
2880
|
// @ts-ignore
|
|
@@ -2174,6 +2884,20 @@ export namespace custodian {
|
|
|
2174
2884
|
});
|
|
2175
2885
|
}
|
|
2176
2886
|
}
|
|
2887
|
+
export namespace view {
|
|
2888
|
+
export async function mintAccountCap(
|
|
2889
|
+
client: SuiClient,
|
|
2890
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
2891
|
+
) {
|
|
2892
|
+
const tx = new TransactionBlock();
|
|
2893
|
+
builder.mintAccountCap(tx, args);
|
|
2894
|
+
const res = await client.devInspectTransactionBlock({
|
|
2895
|
+
transactionBlock: tx,
|
|
2896
|
+
sender: ZERO_ADDRESS,
|
|
2897
|
+
});
|
|
2898
|
+
return res;
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2177
2901
|
}
|
|
2178
2902
|
|
|
2179
2903
|
export namespace custodian_v2 {
|
|
@@ -2188,7 +2912,7 @@ export namespace custodian_v2 {
|
|
|
2188
2912
|
const TYPE = new TypeDescriptor<Account<any>>(Account.TYPE_QNAME);
|
|
2189
2913
|
|
|
2190
2914
|
export function type<T0>(
|
|
2191
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
2915
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
2192
2916
|
): TypeDescriptor<Account<T0>> {
|
|
2193
2917
|
return TYPE.apply(arg0);
|
|
2194
2918
|
}
|
|
@@ -2196,7 +2920,7 @@ export namespace custodian_v2 {
|
|
|
2196
2920
|
|
|
2197
2921
|
export interface AccountCap {
|
|
2198
2922
|
id: _0x2.object_.UID;
|
|
2199
|
-
owner:
|
|
2923
|
+
owner: string;
|
|
2200
2924
|
}
|
|
2201
2925
|
|
|
2202
2926
|
export namespace AccountCap {
|
|
@@ -2211,7 +2935,7 @@ export namespace custodian_v2 {
|
|
|
2211
2935
|
|
|
2212
2936
|
export interface Custodian<T0> {
|
|
2213
2937
|
id: _0x2.object_.UID;
|
|
2214
|
-
account_balances: _0x2.table.Table<
|
|
2938
|
+
account_balances: _0x2.table.Table<string, custodian_v2.Account<T0>>;
|
|
2215
2939
|
}
|
|
2216
2940
|
|
|
2217
2941
|
export namespace Custodian {
|
|
@@ -2220,7 +2944,7 @@ export namespace custodian_v2 {
|
|
|
2220
2944
|
const TYPE = new TypeDescriptor<Custodian<any>>(Custodian.TYPE_QNAME);
|
|
2221
2945
|
|
|
2222
2946
|
export function type<T0>(
|
|
2223
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE
|
|
2947
|
+
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
2224
2948
|
): TypeDescriptor<Custodian<T0>> {
|
|
2225
2949
|
return TYPE.apply(arg0);
|
|
2226
2950
|
}
|
|
@@ -2229,11 +2953,11 @@ export namespace custodian_v2 {
|
|
|
2229
2953
|
export namespace builder {
|
|
2230
2954
|
export function accountOwner(
|
|
2231
2955
|
tx: TransactionBlock,
|
|
2232
|
-
args: [
|
|
2956
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
2233
2957
|
): TransactionArgument & [TransactionArgument] {
|
|
2234
2958
|
const _args: any[] = [];
|
|
2235
2959
|
_args.push(
|
|
2236
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2960
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
2237
2961
|
);
|
|
2238
2962
|
|
|
2239
2963
|
// @ts-ignore
|
|
@@ -2245,16 +2969,16 @@ export namespace custodian_v2 {
|
|
|
2245
2969
|
export function createChildAccountCap(
|
|
2246
2970
|
tx: TransactionBlock,
|
|
2247
2971
|
args: [
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
]
|
|
2972
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2973
|
+
string | ObjectCallArg | TransactionArgument,
|
|
2974
|
+
],
|
|
2251
2975
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2252
2976
|
const _args: any[] = [];
|
|
2253
2977
|
_args.push(
|
|
2254
|
-
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
|
|
2978
|
+
TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
|
|
2255
2979
|
);
|
|
2256
2980
|
_args.push(
|
|
2257
|
-
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
|
|
2981
|
+
TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
|
|
2258
2982
|
);
|
|
2259
2983
|
|
|
2260
2984
|
// @ts-ignore
|
|
@@ -2266,7 +2990,7 @@ export namespace custodian_v2 {
|
|
|
2266
2990
|
|
|
2267
2991
|
export function deleteAccountCap(
|
|
2268
2992
|
tx: TransactionBlock,
|
|
2269
|
-
args: [custodian_v2.AccountCap | TransactionArgument]
|
|
2993
|
+
args: [custodian_v2.AccountCap | TransactionArgument],
|
|
2270
2994
|
): TransactionArgument & [TransactionArgument] {
|
|
2271
2995
|
const _args: any[] = [];
|
|
2272
2996
|
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
@@ -2278,13 +3002,55 @@ export namespace custodian_v2 {
|
|
|
2278
3002
|
});
|
|
2279
3003
|
}
|
|
2280
3004
|
}
|
|
3005
|
+
export namespace view {
|
|
3006
|
+
export async function accountOwner(
|
|
3007
|
+
client: SuiClient,
|
|
3008
|
+
args: [string | ObjectCallArg | TransactionArgument],
|
|
3009
|
+
) {
|
|
3010
|
+
const tx = new TransactionBlock();
|
|
3011
|
+
builder.accountOwner(tx, args);
|
|
3012
|
+
const res = await client.devInspectTransactionBlock({
|
|
3013
|
+
transactionBlock: tx,
|
|
3014
|
+
sender: ZERO_ADDRESS,
|
|
3015
|
+
});
|
|
3016
|
+
return res;
|
|
3017
|
+
}
|
|
3018
|
+
export async function createChildAccountCap(
|
|
3019
|
+
client: SuiClient,
|
|
3020
|
+
args: [
|
|
3021
|
+
string | ObjectCallArg | TransactionArgument,
|
|
3022
|
+
string | ObjectCallArg | TransactionArgument,
|
|
3023
|
+
],
|
|
3024
|
+
) {
|
|
3025
|
+
const tx = new TransactionBlock();
|
|
3026
|
+
builder.createChildAccountCap(tx, args);
|
|
3027
|
+
const res = await client.devInspectTransactionBlock({
|
|
3028
|
+
transactionBlock: tx,
|
|
3029
|
+
sender: ZERO_ADDRESS,
|
|
3030
|
+
});
|
|
3031
|
+
return res;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
export async function deleteAccountCap(
|
|
3035
|
+
client: SuiClient,
|
|
3036
|
+
args: [custodian_v2.AccountCap | TransactionArgument],
|
|
3037
|
+
) {
|
|
3038
|
+
const tx = new TransactionBlock();
|
|
3039
|
+
builder.deleteAccountCap(tx, args);
|
|
3040
|
+
const res = await client.devInspectTransactionBlock({
|
|
3041
|
+
transactionBlock: tx,
|
|
3042
|
+
sender: ZERO_ADDRESS,
|
|
3043
|
+
});
|
|
3044
|
+
return res;
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
2281
3047
|
}
|
|
2282
3048
|
|
|
2283
3049
|
export namespace math {
|
|
2284
3050
|
export namespace builder {
|
|
2285
3051
|
export function divRound(
|
|
2286
3052
|
tx: TransactionBlock,
|
|
2287
|
-
args: [bigint | TransactionArgument, bigint | TransactionArgument]
|
|
3053
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2288
3054
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2289
3055
|
const _args: any[] = [];
|
|
2290
3056
|
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
@@ -2298,7 +3064,7 @@ export namespace math {
|
|
|
2298
3064
|
}
|
|
2299
3065
|
export function mul(
|
|
2300
3066
|
tx: TransactionBlock,
|
|
2301
|
-
args: [bigint | TransactionArgument, bigint | TransactionArgument]
|
|
3067
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2302
3068
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2303
3069
|
const _args: any[] = [];
|
|
2304
3070
|
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
@@ -2312,7 +3078,7 @@ export namespace math {
|
|
|
2312
3078
|
}
|
|
2313
3079
|
export function mulRound(
|
|
2314
3080
|
tx: TransactionBlock,
|
|
2315
|
-
args: [bigint | TransactionArgument, bigint | TransactionArgument]
|
|
3081
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
2316
3082
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
2317
3083
|
const _args: any[] = [];
|
|
2318
3084
|
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
@@ -2325,10 +3091,48 @@ export namespace math {
|
|
|
2325
3091
|
});
|
|
2326
3092
|
}
|
|
2327
3093
|
}
|
|
3094
|
+
export namespace view {
|
|
3095
|
+
export async function divRound(
|
|
3096
|
+
client: SuiClient,
|
|
3097
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3098
|
+
) {
|
|
3099
|
+
const tx = new TransactionBlock();
|
|
3100
|
+
builder.divRound(tx, args);
|
|
3101
|
+
const res = await client.devInspectTransactionBlock({
|
|
3102
|
+
transactionBlock: tx,
|
|
3103
|
+
sender: ZERO_ADDRESS,
|
|
3104
|
+
});
|
|
3105
|
+
return res;
|
|
3106
|
+
}
|
|
3107
|
+
export async function mul(
|
|
3108
|
+
client: SuiClient,
|
|
3109
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3110
|
+
) {
|
|
3111
|
+
const tx = new TransactionBlock();
|
|
3112
|
+
builder.mul(tx, args);
|
|
3113
|
+
const res = await client.devInspectTransactionBlock({
|
|
3114
|
+
transactionBlock: tx,
|
|
3115
|
+
sender: ZERO_ADDRESS,
|
|
3116
|
+
});
|
|
3117
|
+
return res;
|
|
3118
|
+
}
|
|
3119
|
+
export async function mulRound(
|
|
3120
|
+
client: SuiClient,
|
|
3121
|
+
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
3122
|
+
) {
|
|
3123
|
+
const tx = new TransactionBlock();
|
|
3124
|
+
builder.mulRound(tx, args);
|
|
3125
|
+
const res = await client.devInspectTransactionBlock({
|
|
3126
|
+
transactionBlock: tx,
|
|
3127
|
+
sender: ZERO_ADDRESS,
|
|
3128
|
+
});
|
|
3129
|
+
return res;
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
2328
3132
|
}
|
|
2329
3133
|
|
|
2330
3134
|
const MODULES = JSON.parse(
|
|
2331
|
-
'{"clob":{"fileFormatVersion":6,"address":"0xdee9","name":"clob","friends":[],"structs":{"Order":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[],"fields":[{"name":"order_id","type":"U64"},{"name":"price","type":"U64"},{"name":"quantity","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"expire_timestamp","type":"U64"}]},"OrderCanceled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset_quantity_canceled","type":"U64"},{"name":"price","type":"U64"}]},"OrderFilled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"total_quantity","type":"U64"},{"name":"base_asset_quantity_filled","type":"U64"},{"name":"base_asset_quantity_remaining","type":"U64"},{"name":"price","type":"U64"}]},"OrderFilledV2":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"total_quantity","type":"U64"},{"name":"base_asset_quantity_filled","type":"U64"},{"name":"base_asset_quantity_remaining","type":"U64"},{"name":"price","type":"U64"},{"name":"taker_commission","type":"U64"},{"name":"maker_rebates","type":"U64"}]},"OrderPlaced":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset_quantity_placed","type":"U64"},{"name":"price","type":"U64"}]},"OrderPlacedV2":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset_quantity_placed","type":"U64"},{"name":"price","type":"U64"},{"name":"expire_timestamp","type":"U64"}]},"Pool":{"abilities":{"abilities":["Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"bids","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob","name":"TickLevel","typeArguments":[]}}]}}},{"name":"asks","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob","name":"TickLevel","typeArguments":[]}}]}}},{"name":"next_bid_order_id","type":"U64"},{"name":"next_ask_order_id","type":"U64"},{"name":"usr_open_orders","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64","U64"]}}]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"},{"name":"base_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":1}]}}},{"name":"creation_fee","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"base_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":1}]}}}]},"PoolCreated":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"quote_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"}]},"TickLevel":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"price","type":"U64"},{"name":"open_orders","type":{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"clob","name":"Order","typeArguments":[]}}]}}}]}},"exposedFunctions":{"account_balance":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":["U64","U64","U64","U64"]},"batch_cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Vector":"U64"},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_all_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"create_account":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}]},"create_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":["U64","U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"deposit_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"deposit_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"get_level2_book_status_ask_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_level2_book_status_bid_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_market_price":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":["U64","U64"]},"get_order_status":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Order","typeArguments":[]}}}]},"list_open_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[{"Vector":{"Struct":{"address":"0xdee9","module":"clob","name":"Order","typeArguments":[]}}}]},"place_limit_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64","Bool","U64","U8",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":["U64","U64","Bool","U64"]},"place_market_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","Bool",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_exact_base_for_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"swap_exact_quote_for_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"withdraw_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"withdraw_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]}}},"clob_v2":{"fileFormatVersion":6,"address":"0xdee9","name":"clob_v2","friends":[],"structs":{"DepositAsset":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"quantity","type":"U64"},{"name":"owner","type":"Address"}]},"Order":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[],"fields":[{"name":"order_id","type":"U64"},{"name":"client_order_id","type":"U64"},{"name":"price","type":"U64"},{"name":"original_quantity","type":"U64"},{"name":"quantity","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":"Address"},{"name":"expire_timestamp","type":"U64"},{"name":"self_matching_prevention","type":"U8"}]},"OrderCanceled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"client_order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":"Address"},{"name":"original_quantity","type":"U64"},{"name":"base_asset_quantity_canceled","type":"U64"},{"name":"price","type":"U64"}]},"OrderFilled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"taker_client_order_id","type":"U64"},{"name":"maker_client_order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"taker_address","type":"Address"},{"name":"maker_address","type":"Address"},{"name":"original_quantity","type":"U64"},{"name":"base_asset_quantity_filled","type":"U64"},{"name":"base_asset_quantity_remaining","type":"U64"},{"name":"price","type":"U64"},{"name":"taker_commission","type":"U64"},{"name":"maker_rebates","type":"U64"}]},"OrderPlaced":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"client_order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":"Address"},{"name":"original_quantity","type":"U64"},{"name":"base_asset_quantity_placed","type":"U64"},{"name":"price","type":"U64"},{"name":"expire_timestamp","type":"U64"}]},"Pool":{"abilities":{"abilities":["Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"bids","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob_v2","name":"TickLevel","typeArguments":[]}}]}}},{"name":"asks","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob_v2","name":"TickLevel","typeArguments":[]}}]}}},{"name":"next_bid_order_id","type":"U64"},{"name":"next_ask_order_id","type":"U64"},{"name":"usr_open_orders","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["Address",{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64","U64"]}}]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"},{"name":"base_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":1}]}}},{"name":"creation_fee","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"base_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":1}]}}}]},"PoolCreated":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"quote_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"}]},"TickLevel":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"price","type":"U64"},{"name":"open_orders","type":{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Order","typeArguments":[]}}]}}}]},"WithdrawAsset":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"quantity","type":"U64"},{"name":"owner","type":"Address"}]}},"exposedFunctions":{"account_balance":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":["U64","U64","U64","U64"]},"batch_cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Vector":"U64"},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_all_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"clean_up_expired_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Vector":"U64"},{"Vector":"Address"}],"return":[]},"create_account":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}]},"create_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":["U64","U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"deposit_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"deposit_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"get_level2_book_status_ask_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_level2_book_status_bid_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_market_price":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}},{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"get_order_status":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Order","typeArguments":[]}}}]},"list_open_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[{"Vector":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Order","typeArguments":[]}}}]},"place_limit_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64","U64","U8","Bool","U64","U8",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":["U64","U64","Bool","U64"]},"place_market_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64","U64","Bool",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_exact_base_for_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"swap_exact_quote_for_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"withdraw_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"withdraw_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]}}},"critbit":{"fileFormatVersion":6,"address":"0xdee9","name":"critbit","friends":[{"address":"0xdee9","name":"clob"},{"address":"0xdee9","name":"clob_v2"}],"structs":{"CritbitTree":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":["Store"]},"isPhantom":false}],"fields":[{"name":"root","type":"U64"},{"name":"internal_nodes","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"critbit","name":"InternalNode","typeArguments":[]}}]}}},{"name":"leaves","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"critbit","name":"Leaf","typeArguments":[{"TypeParameter":0}]}}]}}},{"name":"min_leaf","type":"U64"},{"name":"max_leaf","type":"U64"},{"name":"next_internal_node_index","type":"U64"},{"name":"next_leaf_index","type":"U64"}]},"InternalNode":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[],"fields":[{"name":"mask","type":"U64"},{"name":"left_child","type":"U64"},{"name":"right_child","type":"U64"},{"name":"parent","type":"U64"}]},"Leaf":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":false}],"fields":[{"name":"key","type":"U64"},{"name":"value","type":{"TypeParameter":0}},{"name":"parent","type":"U64"}]}},"exposedFunctions":{"borrow_leaf_by_index":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_leaf_by_key":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut_leaf_by_index":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"MutableReference":{"TypeParameter":0}}]},"destroy_empty":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"drop":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Drop","Store"]}],"parameters":[{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"find_closest_key":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["U64"]},"find_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["Bool","U64"]},"insert_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64",{"TypeParameter":0}],"return":["U64"]},"is_empty":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["Bool"]},"max_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["U64","U64"]},"min_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["U64","U64"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}]},"next_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["U64","U64"]},"previous_leaf":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["U64","U64"]},"remove_leaf_by_index":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"TypeParameter":0}]},"size":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["U64"]}}},"custodian":{"fileFormatVersion":6,"address":"0xdee9","name":"custodian","friends":[{"address":"0xdee9","name":"clob"}],"structs":{"Account":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"available_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"locked_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}}]},"AccountCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}}]},"Custodian":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"account_balances","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0xdee9","module":"custodian","name":"Account","typeArguments":[{"TypeParameter":0}]}}]}}}]}},"exposedFunctions":{"account_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":["U64"]},"account_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":["U64","U64"]},"account_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":["U64"]},"decrease_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"decrease_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},"U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"increase_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"increase_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"lock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[]},"mint_account_cap":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}]},"unlock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},"U64"],"return":[]},"withdraw_asset":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]}}},"custodian_v2":{"fileFormatVersion":6,"address":"0xdee9","name":"custodian_v2","friends":[{"address":"0xdee9","name":"clob_v2"}],"structs":{"Account":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"available_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"locked_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}}]},"AccountCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"owner","type":"Address"}]},"Custodian":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"account_balances","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["Address",{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Account","typeArguments":[{"TypeParameter":0}]}}]}}}]}},"exposedFunctions":{"account_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":["U64"]},"account_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":["U64","U64"]},"account_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":["U64"]},"account_owner":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":["Address"]},"create_child_account_cap":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}]},"decrease_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"decrease_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address","U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"delete_account_cap":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}],"return":[]},"increase_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address",{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"increase_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"lock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[]},"mint_account_cap":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}]},"unlock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address","U64"],"return":[]},"withdraw_asset":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]}}},"math":{"fileFormatVersion":6,"address":"0xdee9","name":"math","friends":[{"address":"0xdee9","name":"clob"},{"address":"0xdee9","name":"clob_v2"},{"address":"0xdee9","name":"critbit"}],"structs":{},"exposedFunctions":{"count_leading_zeros":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U8"]},"div_round":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"mul_round":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]},"unsafe_div":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"unsafe_div_round":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]},"unsafe_mul":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"unsafe_mul_round":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]}}}}'
|
|
3135
|
+
'{"clob":{"fileFormatVersion":6,"address":"0xdee9","name":"clob","friends":[],"structs":{"Order":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[],"fields":[{"name":"order_id","type":"U64"},{"name":"price","type":"U64"},{"name":"quantity","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"expire_timestamp","type":"U64"}]},"OrderCanceled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset_quantity_canceled","type":"U64"},{"name":"price","type":"U64"}]},"OrderFilled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"total_quantity","type":"U64"},{"name":"base_asset_quantity_filled","type":"U64"},{"name":"base_asset_quantity_remaining","type":"U64"},{"name":"price","type":"U64"}]},"OrderFilledV2":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"total_quantity","type":"U64"},{"name":"base_asset_quantity_filled","type":"U64"},{"name":"base_asset_quantity_remaining","type":"U64"},{"name":"price","type":"U64"},{"name":"taker_commission","type":"U64"},{"name":"maker_rebates","type":"U64"}]},"OrderPlaced":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset_quantity_placed","type":"U64"},{"name":"price","type":"U64"}]},"OrderPlacedV2":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset_quantity_placed","type":"U64"},{"name":"price","type":"U64"},{"name":"expire_timestamp","type":"U64"}]},"Pool":{"abilities":{"abilities":["Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"bids","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob","name":"TickLevel","typeArguments":[]}}]}}},{"name":"asks","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob","name":"TickLevel","typeArguments":[]}}]}}},{"name":"next_bid_order_id","type":"U64"},{"name":"next_ask_order_id","type":"U64"},{"name":"usr_open_orders","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64","U64"]}}]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"},{"name":"base_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":1}]}}},{"name":"creation_fee","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"base_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":1}]}}}]},"PoolCreated":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"quote_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"}]},"TickLevel":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"price","type":"U64"},{"name":"open_orders","type":{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"clob","name":"Order","typeArguments":[]}}]}}}]}},"exposedFunctions":{"account_balance":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":["U64","U64","U64","U64"]},"batch_cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Vector":"U64"},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_all_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"create_account":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}]},"create_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":["U64","U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"deposit_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"deposit_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[]},"get_level2_book_status_ask_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_level2_book_status_bid_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_market_price":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":["U64","U64"]},"get_order_status":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Order","typeArguments":[]}}}]},"list_open_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}}],"return":[{"Vector":{"Struct":{"address":"0xdee9","module":"clob","name":"Order","typeArguments":[]}}}]},"place_limit_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64","Bool","U64","U8",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":["U64","U64","Bool","U64"]},"place_market_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","Bool",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_exact_base_for_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"swap_exact_quote_for_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"withdraw_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"withdraw_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]}}},"clob_v2":{"fileFormatVersion":6,"address":"0xdee9","name":"clob_v2","friends":[],"structs":{"DepositAsset":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"quantity","type":"U64"},{"name":"owner","type":"Address"}]},"Order":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[],"fields":[{"name":"order_id","type":"U64"},{"name":"client_order_id","type":"U64"},{"name":"price","type":"U64"},{"name":"original_quantity","type":"U64"},{"name":"quantity","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":"Address"},{"name":"expire_timestamp","type":"U64"},{"name":"self_matching_prevention","type":"U8"}]},"OrderCanceled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"client_order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":"Address"},{"name":"original_quantity","type":"U64"},{"name":"base_asset_quantity_canceled","type":"U64"},{"name":"price","type":"U64"}]},"OrderFilled":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"taker_client_order_id","type":"U64"},{"name":"maker_client_order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"taker_address","type":"Address"},{"name":"maker_address","type":"Address"},{"name":"original_quantity","type":"U64"},{"name":"base_asset_quantity_filled","type":"U64"},{"name":"base_asset_quantity_remaining","type":"U64"},{"name":"price","type":"U64"},{"name":"taker_commission","type":"U64"},{"name":"maker_rebates","type":"U64"}]},"OrderPlaced":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"order_id","type":"U64"},{"name":"client_order_id","type":"U64"},{"name":"is_bid","type":"Bool"},{"name":"owner","type":"Address"},{"name":"original_quantity","type":"U64"},{"name":"base_asset_quantity_placed","type":"U64"},{"name":"price","type":"U64"},{"name":"expire_timestamp","type":"U64"}]},"Pool":{"abilities":{"abilities":["Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"bids","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob_v2","name":"TickLevel","typeArguments":[]}}]}}},{"name":"asks","type":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"Struct":{"address":"0xdee9","module":"clob_v2","name":"TickLevel","typeArguments":[]}}]}}},{"name":"next_bid_order_id","type":"U64"},{"name":"next_ask_order_id","type":"U64"},{"name":"usr_open_orders","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["Address",{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64","U64"]}}]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"},{"name":"base_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_custodian","type":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":1}]}}},{"name":"creation_fee","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"base_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"quote_asset_trading_fees","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":1}]}}}]},"PoolCreated":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"base_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"quote_asset","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"taker_fee_rate","type":"U64"},{"name":"maker_rebate_rate","type":"U64"},{"name":"tick_size","type":"U64"},{"name":"lot_size","type":"U64"}]},"TickLevel":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"price","type":"U64"},{"name":"open_orders","type":{"Struct":{"address":"0x2","module":"linked_table","name":"LinkedTable","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Order","typeArguments":[]}}]}}}]},"WithdrawAsset":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"quantity","type":"U64"},{"name":"owner","type":"Address"}]}},"exposedFunctions":{"account_balance":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":["U64","U64","U64","U64"]},"batch_cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Vector":"U64"},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_all_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"cancel_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"clean_up_expired_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Vector":"U64"},{"Vector":"Address"}],"return":[]},"create_account":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}]},"create_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":["U64","U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"deposit_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"deposit_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[]},"get_level2_book_status_ask_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_level2_book_status_bid_side":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Vector":"U64"},{"Vector":"U64"}]},"get_market_price":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}},{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"get_order_status":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Order","typeArguments":[]}}}]},"list_open_orders":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":[{"Vector":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Order","typeArguments":[]}}}]},"place_limit_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","U64","U64","U8","Bool","U64","U8",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":["U64","U64","Bool","U64"]},"place_market_order":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64","U64","Bool",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_exact_base_for_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64",{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"swap_exact_quote_for_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}},"U64"]},"withdraw_base":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"withdraw_quote":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"clob_v2","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]}}},"critbit":{"fileFormatVersion":6,"address":"0xdee9","name":"critbit","friends":[{"address":"0xdee9","name":"clob"},{"address":"0xdee9","name":"clob_v2"}],"structs":{"CritbitTree":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":["Store"]},"isPhantom":false}],"fields":[{"name":"root","type":"U64"},{"name":"internal_nodes","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"critbit","name":"InternalNode","typeArguments":[]}}]}}},{"name":"leaves","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0xdee9","module":"critbit","name":"Leaf","typeArguments":[{"TypeParameter":0}]}}]}}},{"name":"min_leaf","type":"U64"},{"name":"max_leaf","type":"U64"},{"name":"next_internal_node_index","type":"U64"},{"name":"next_leaf_index","type":"U64"}]},"InternalNode":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[],"fields":[{"name":"mask","type":"U64"},{"name":"left_child","type":"U64"},{"name":"right_child","type":"U64"},{"name":"parent","type":"U64"}]},"Leaf":{"abilities":{"abilities":["Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":false}],"fields":[{"name":"key","type":"U64"},{"name":"value","type":{"TypeParameter":0}},{"name":"parent","type":"U64"}]}},"exposedFunctions":{"borrow_leaf_by_index":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_leaf_by_key":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut_leaf_by_index":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"MutableReference":{"TypeParameter":0}}]},"destroy_empty":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"drop":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Drop","Store"]}],"parameters":[{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"find_closest_key":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["U64"]},"find_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["Bool","U64"]},"insert_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64",{"TypeParameter":0}],"return":["U64"]},"is_empty":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["Bool"]},"max_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["U64","U64"]},"min_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["U64","U64"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}]},"next_leaf":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["U64","U64"]},"previous_leaf":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":["U64","U64"]},"remove_leaf_by_index":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}},"U64"],"return":[{"TypeParameter":0}]},"size":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":["Store"]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"critbit","name":"CritbitTree","typeArguments":[{"TypeParameter":0}]}}}],"return":["U64"]}}},"custodian":{"fileFormatVersion":6,"address":"0xdee9","name":"custodian","friends":[{"address":"0xdee9","name":"clob"}],"structs":{"Account":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"available_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"locked_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}}]},"AccountCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}}]},"Custodian":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"account_balances","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0xdee9","module":"custodian","name":"Account","typeArguments":[{"TypeParameter":0}]}}]}}}]}},"exposedFunctions":{"account_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":["U64"]},"account_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":["U64","U64"]},"account_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":["U64"]},"decrease_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"decrease_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},"U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"increase_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"increase_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"lock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[]},"mint_account_cap":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}]},"unlock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},"U64"],"return":[]},"withdraw_asset":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]}}},"custodian_v2":{"fileFormatVersion":6,"address":"0xdee9","name":"custodian_v2","friends":[{"address":"0xdee9","name":"clob_v2"}],"structs":{"Account":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"available_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"locked_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}}]},"AccountCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"owner","type":"Address"}]},"Custodian":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"account_balances","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["Address",{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Account","typeArguments":[{"TypeParameter":0}]}}]}}}]}},"exposedFunctions":{"account_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":["U64"]},"account_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":["U64","U64"]},"account_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":["U64"]},"account_owner":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}}],"return":["Address"]},"create_child_account_cap":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}]},"decrease_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"decrease_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address","U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]},"delete_account_cap":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}],"return":[]},"increase_user_available_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address",{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"increase_user_locked_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"lock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},"U64"],"return":[]},"mint_account_cap":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}]},"unlock_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"Address","U64"],"return":[]},"withdraw_asset":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"Custodian","typeArguments":[{"TypeParameter":0}]}}},"U64",{"Reference":{"Struct":{"address":"0xdee9","module":"custodian_v2","name":"AccountCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]}}},"math":{"fileFormatVersion":6,"address":"0xdee9","name":"math","friends":[{"address":"0xdee9","name":"clob"},{"address":"0xdee9","name":"clob_v2"},{"address":"0xdee9","name":"critbit"}],"structs":{},"exposedFunctions":{"count_leading_zeros":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U8"]},"div_round":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"mul_round":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]},"unsafe_div":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"unsafe_div_round":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]},"unsafe_mul":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"unsafe_mul_round":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["Bool","U64"]}}}}',
|
|
2332
3136
|
);
|
|
2333
3137
|
|
|
2334
3138
|
export function loadAllTypes(coder: MoveCoder) {
|