@typemove/sui 1.0.0-rc.21 → 1.0.0-rc.22
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/builtin/package.json +5 -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.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.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.map +1 -0
- package/dist/cjs/builtin/index.js +11 -0
- package/dist/cjs/builtin/index.js.map +1 -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.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.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.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.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.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.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.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.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.map +1 -0
- package/dist/esm/codegen/codegen.d.ts.map +1 -0
- package/dist/esm/codegen/codegen.js.map +1 -0
- package/dist/esm/codegen/index.d.ts.map +1 -0
- package/dist/esm/codegen/index.js.map +1 -0
- package/dist/{codegen → esm/codegen}/run.d.ts.map +1 -1
- 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/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.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.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.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.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.map +1 -0
- package/package.json +16 -8
- package/dist/builtin/0x1.d.ts.map +0 -1
- package/dist/builtin/0x1.js.map +0 -1
- package/dist/builtin/0x2.d.ts.map +0 -1
- package/dist/builtin/0x2.js.map +0 -1
- package/dist/builtin/0x3.d.ts.map +0 -1
- package/dist/builtin/0x3.js.map +0 -1
- package/dist/builtin/index.d.ts.map +0 -1
- package/dist/builtin/index.js.map +0 -1
- package/dist/codegen/codegen.d.ts.map +0 -1
- package/dist/codegen/codegen.js.map +0 -1
- package/dist/codegen/index.d.ts.map +0 -1
- package/dist/codegen/index.js.map +0 -1
- package/dist/codegen/run.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models.d.ts.map +0 -1
- package/dist/models.js.map +0 -1
- package/dist/move-coder.d.ts.map +0 -1
- package/dist/move-coder.js.map +0 -1
- package/dist/sui-chain-adapter.d.ts.map +0 -1
- package/dist/sui-chain-adapter.js.map +0 -1
- package/dist/tests/move-call.test.d.ts +0 -2
- package/dist/tests/move-call.test.d.ts.map +0 -1
- package/dist/tests/move-call.test.js.map +0 -1
- package/dist/tests/move-coder.test.d.ts +0 -2
- package/dist/tests/move-coder.test.d.ts.map +0 -1
- package/dist/tests/move-coder.test.js.map +0 -1
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts +0 -96
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts.map +0 -1
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js +0 -165
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js.map +0 -1
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts +0 -769
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts.map +0 -1
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js +0 -1544
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js.map +0 -1
- package/dist/tests/types/testnet/0xdee9.d.ts +0 -1053
- package/dist/tests/types/testnet/0xdee9.d.ts.map +0 -1
- package/dist/tests/types/testnet/0xdee9.js +0 -1697
- package/dist/tests/types/testnet/0xdee9.js.map +0 -1
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts +0 -3249
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts.map +0 -1
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js +0 -5476
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js.map +0 -1
- package/dist/tests/types/testnet/index.d.ts +0 -5
- package/dist/tests/types/testnet/index.d.ts.map +0 -1
- package/dist/tests/types/testnet/index.js +0 -8
- package/dist/tests/types/testnet/index.js.map +0 -1
- package/dist/to-internal.d.ts.map +0 -1
- package/dist/to-internal.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
- /package/dist/{builtin → cjs/builtin}/0x1.d.ts +0 -0
- /package/dist/{builtin → cjs/builtin}/0x2.d.ts +0 -0
- /package/dist/{builtin → cjs/builtin}/0x3.d.ts +0 -0
- /package/dist/{builtin → cjs/builtin}/index.d.ts +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{models.d.ts → cjs/models.d.ts} +0 -0
- /package/dist/{move-coder.d.ts → cjs/move-coder.d.ts} +0 -0
- /package/dist/{sui-chain-adapter.d.ts → cjs/sui-chain-adapter.d.ts} +0 -0
- /package/dist/{to-internal.d.ts → cjs/to-internal.d.ts} +0 -0
- /package/dist/{utils.d.ts → cjs/utils.d.ts} +0 -0
- /package/dist/{builtin → esm/builtin}/0x1.js +0 -0
- /package/dist/{builtin → esm/builtin}/0x2.js +0 -0
- /package/dist/{builtin → esm/builtin}/0x3.js +0 -0
- /package/dist/{builtin → esm/builtin}/index.js +0 -0
- /package/dist/{codegen → esm/codegen}/codegen.d.ts +0 -0
- /package/dist/{codegen → esm/codegen}/codegen.js +0 -0
- /package/dist/{codegen → esm/codegen}/index.d.ts +0 -0
- /package/dist/{codegen → esm/codegen}/index.js +0 -0
- /package/dist/{codegen → esm/codegen}/run.d.ts +0 -0
- /package/dist/{codegen → esm/codegen}/run.js +0 -0
- /package/dist/{index.js → esm/index.js} +0 -0
- /package/dist/{models.js → esm/models.js} +0 -0
- /package/dist/{move-coder.js → esm/move-coder.js} +0 -0
- /package/dist/{sui-chain-adapter.js → esm/sui-chain-adapter.js} +0 -0
- /package/dist/{to-internal.js → esm/to-internal.js} +0 -0
- /package/dist/{utils.js → esm/utils.js} +0 -0
|
@@ -1,1697 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/* Generated modules for account 0xdee9 */
|
|
5
|
-
import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
|
|
6
|
-
import { defaultMoveCoder } from "@typemove/sui";
|
|
7
|
-
import { ZERO_ADDRESS } from "@typemove/sui";
|
|
8
|
-
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
9
|
-
import { TransactionArgument } from "@mysten/sui.js";
|
|
10
|
-
import { _0x2 } from "@typemove/sui/builtin";
|
|
11
|
-
import { _0x1 } from "@typemove/sui/builtin";
|
|
12
|
-
export var clob;
|
|
13
|
-
(function (clob) {
|
|
14
|
-
let Order;
|
|
15
|
-
(function (Order) {
|
|
16
|
-
Order.TYPE_QNAME = "0xdee9::clob::Order";
|
|
17
|
-
const TYPE = new TypeDescriptor(Order.TYPE_QNAME);
|
|
18
|
-
function type() {
|
|
19
|
-
return TYPE.apply();
|
|
20
|
-
}
|
|
21
|
-
Order.type = type;
|
|
22
|
-
})(Order = clob.Order || (clob.Order = {}));
|
|
23
|
-
let OrderCanceled;
|
|
24
|
-
(function (OrderCanceled) {
|
|
25
|
-
OrderCanceled.TYPE_QNAME = "0xdee9::clob::OrderCanceled";
|
|
26
|
-
const TYPE = new TypeDescriptor(OrderCanceled.TYPE_QNAME);
|
|
27
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
28
|
-
return TYPE.apply(arg0, arg1);
|
|
29
|
-
}
|
|
30
|
-
OrderCanceled.type = type;
|
|
31
|
-
})(OrderCanceled = clob.OrderCanceled || (clob.OrderCanceled = {}));
|
|
32
|
-
let OrderFilled;
|
|
33
|
-
(function (OrderFilled) {
|
|
34
|
-
OrderFilled.TYPE_QNAME = "0xdee9::clob::OrderFilled";
|
|
35
|
-
const TYPE = new TypeDescriptor(OrderFilled.TYPE_QNAME);
|
|
36
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
37
|
-
return TYPE.apply(arg0, arg1);
|
|
38
|
-
}
|
|
39
|
-
OrderFilled.type = type;
|
|
40
|
-
})(OrderFilled = clob.OrderFilled || (clob.OrderFilled = {}));
|
|
41
|
-
let OrderFilledV2;
|
|
42
|
-
(function (OrderFilledV2) {
|
|
43
|
-
OrderFilledV2.TYPE_QNAME = "0xdee9::clob::OrderFilledV2";
|
|
44
|
-
const TYPE = new TypeDescriptor(OrderFilledV2.TYPE_QNAME);
|
|
45
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
46
|
-
return TYPE.apply(arg0, arg1);
|
|
47
|
-
}
|
|
48
|
-
OrderFilledV2.type = type;
|
|
49
|
-
})(OrderFilledV2 = clob.OrderFilledV2 || (clob.OrderFilledV2 = {}));
|
|
50
|
-
let OrderPlaced;
|
|
51
|
-
(function (OrderPlaced) {
|
|
52
|
-
OrderPlaced.TYPE_QNAME = "0xdee9::clob::OrderPlaced";
|
|
53
|
-
const TYPE = new TypeDescriptor(OrderPlaced.TYPE_QNAME);
|
|
54
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
55
|
-
return TYPE.apply(arg0, arg1);
|
|
56
|
-
}
|
|
57
|
-
OrderPlaced.type = type;
|
|
58
|
-
})(OrderPlaced = clob.OrderPlaced || (clob.OrderPlaced = {}));
|
|
59
|
-
let OrderPlacedV2;
|
|
60
|
-
(function (OrderPlacedV2) {
|
|
61
|
-
OrderPlacedV2.TYPE_QNAME = "0xdee9::clob::OrderPlacedV2";
|
|
62
|
-
const TYPE = new TypeDescriptor(OrderPlacedV2.TYPE_QNAME);
|
|
63
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
64
|
-
return TYPE.apply(arg0, arg1);
|
|
65
|
-
}
|
|
66
|
-
OrderPlacedV2.type = type;
|
|
67
|
-
})(OrderPlacedV2 = clob.OrderPlacedV2 || (clob.OrderPlacedV2 = {}));
|
|
68
|
-
let Pool;
|
|
69
|
-
(function (Pool) {
|
|
70
|
-
Pool.TYPE_QNAME = "0xdee9::clob::Pool";
|
|
71
|
-
const TYPE = new TypeDescriptor(Pool.TYPE_QNAME);
|
|
72
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
73
|
-
return TYPE.apply(arg0, arg1);
|
|
74
|
-
}
|
|
75
|
-
Pool.type = type;
|
|
76
|
-
})(Pool = clob.Pool || (clob.Pool = {}));
|
|
77
|
-
let PoolCreated;
|
|
78
|
-
(function (PoolCreated) {
|
|
79
|
-
PoolCreated.TYPE_QNAME = "0xdee9::clob::PoolCreated";
|
|
80
|
-
const TYPE = new TypeDescriptor(PoolCreated.TYPE_QNAME);
|
|
81
|
-
function type() {
|
|
82
|
-
return TYPE.apply();
|
|
83
|
-
}
|
|
84
|
-
PoolCreated.type = type;
|
|
85
|
-
})(PoolCreated = clob.PoolCreated || (clob.PoolCreated = {}));
|
|
86
|
-
let TickLevel;
|
|
87
|
-
(function (TickLevel) {
|
|
88
|
-
TickLevel.TYPE_QNAME = "0xdee9::clob::TickLevel";
|
|
89
|
-
const TYPE = new TypeDescriptor(TickLevel.TYPE_QNAME);
|
|
90
|
-
function type() {
|
|
91
|
-
return TYPE.apply();
|
|
92
|
-
}
|
|
93
|
-
TickLevel.type = type;
|
|
94
|
-
})(TickLevel = clob.TickLevel || (clob.TickLevel = {}));
|
|
95
|
-
let builder;
|
|
96
|
-
(function (builder) {
|
|
97
|
-
function accountBalance(tx, args, typeArguments) {
|
|
98
|
-
const _args = [];
|
|
99
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
100
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
return tx.moveCall({
|
|
103
|
-
target: "0xdee9::clob::account_balance",
|
|
104
|
-
arguments: _args,
|
|
105
|
-
typeArguments: [
|
|
106
|
-
typeof typeArguments[0] === "string"
|
|
107
|
-
? typeArguments[0]
|
|
108
|
-
: typeArguments[0].getSignature(),
|
|
109
|
-
typeof typeArguments[1] === "string"
|
|
110
|
-
? typeArguments[1]
|
|
111
|
-
: typeArguments[1].getSignature(),
|
|
112
|
-
],
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
builder.accountBalance = accountBalance;
|
|
116
|
-
function batchCancelOrder(tx, args, typeArguments) {
|
|
117
|
-
const _args = [];
|
|
118
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
119
|
-
_args.push(TransactionArgument.is(args[1])
|
|
120
|
-
? args[1]
|
|
121
|
-
: tx.makeMoveVec({
|
|
122
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
123
|
-
// type: TODO
|
|
124
|
-
}));
|
|
125
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
126
|
-
// @ts-ignore
|
|
127
|
-
return tx.moveCall({
|
|
128
|
-
target: "0xdee9::clob::batch_cancel_order",
|
|
129
|
-
arguments: _args,
|
|
130
|
-
typeArguments: [
|
|
131
|
-
typeof typeArguments[0] === "string"
|
|
132
|
-
? typeArguments[0]
|
|
133
|
-
: typeArguments[0].getSignature(),
|
|
134
|
-
typeof typeArguments[1] === "string"
|
|
135
|
-
? typeArguments[1]
|
|
136
|
-
: typeArguments[1].getSignature(),
|
|
137
|
-
],
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
builder.batchCancelOrder = batchCancelOrder;
|
|
141
|
-
function cancelAllOrders(tx, args, typeArguments) {
|
|
142
|
-
const _args = [];
|
|
143
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
144
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
145
|
-
// @ts-ignore
|
|
146
|
-
return tx.moveCall({
|
|
147
|
-
target: "0xdee9::clob::cancel_all_orders",
|
|
148
|
-
arguments: _args,
|
|
149
|
-
typeArguments: [
|
|
150
|
-
typeof typeArguments[0] === "string"
|
|
151
|
-
? typeArguments[0]
|
|
152
|
-
: typeArguments[0].getSignature(),
|
|
153
|
-
typeof typeArguments[1] === "string"
|
|
154
|
-
? typeArguments[1]
|
|
155
|
-
: typeArguments[1].getSignature(),
|
|
156
|
-
],
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
builder.cancelAllOrders = cancelAllOrders;
|
|
160
|
-
function cancelOrder(tx, args, typeArguments) {
|
|
161
|
-
const _args = [];
|
|
162
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
163
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
164
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
165
|
-
// @ts-ignore
|
|
166
|
-
return tx.moveCall({
|
|
167
|
-
target: "0xdee9::clob::cancel_order",
|
|
168
|
-
arguments: _args,
|
|
169
|
-
typeArguments: [
|
|
170
|
-
typeof typeArguments[0] === "string"
|
|
171
|
-
? typeArguments[0]
|
|
172
|
-
: typeArguments[0].getSignature(),
|
|
173
|
-
typeof typeArguments[1] === "string"
|
|
174
|
-
? typeArguments[1]
|
|
175
|
-
: typeArguments[1].getSignature(),
|
|
176
|
-
],
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
builder.cancelOrder = cancelOrder;
|
|
180
|
-
function createAccount(tx, args) {
|
|
181
|
-
const _args = [];
|
|
182
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
183
|
-
// @ts-ignore
|
|
184
|
-
return tx.moveCall({
|
|
185
|
-
target: "0xdee9::clob::create_account",
|
|
186
|
-
arguments: _args,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
builder.createAccount = createAccount;
|
|
190
|
-
function createPool(tx, args, typeArguments) {
|
|
191
|
-
const _args = [];
|
|
192
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
193
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
194
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
195
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
196
|
-
// @ts-ignore
|
|
197
|
-
return tx.moveCall({
|
|
198
|
-
target: "0xdee9::clob::create_pool",
|
|
199
|
-
arguments: _args,
|
|
200
|
-
typeArguments: [
|
|
201
|
-
typeof typeArguments[0] === "string"
|
|
202
|
-
? typeArguments[0]
|
|
203
|
-
: typeArguments[0].getSignature(),
|
|
204
|
-
typeof typeArguments[1] === "string"
|
|
205
|
-
? typeArguments[1]
|
|
206
|
-
: typeArguments[1].getSignature(),
|
|
207
|
-
],
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
builder.createPool = createPool;
|
|
211
|
-
function depositBase(tx, args, typeArguments) {
|
|
212
|
-
const _args = [];
|
|
213
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
214
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
215
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
216
|
-
// @ts-ignore
|
|
217
|
-
return tx.moveCall({
|
|
218
|
-
target: "0xdee9::clob::deposit_base",
|
|
219
|
-
arguments: _args,
|
|
220
|
-
typeArguments: [
|
|
221
|
-
typeof typeArguments[0] === "string"
|
|
222
|
-
? typeArguments[0]
|
|
223
|
-
: typeArguments[0].getSignature(),
|
|
224
|
-
typeof typeArguments[1] === "string"
|
|
225
|
-
? typeArguments[1]
|
|
226
|
-
: typeArguments[1].getSignature(),
|
|
227
|
-
],
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
builder.depositBase = depositBase;
|
|
231
|
-
function depositQuote(tx, args, typeArguments) {
|
|
232
|
-
const _args = [];
|
|
233
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
234
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
235
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
236
|
-
// @ts-ignore
|
|
237
|
-
return tx.moveCall({
|
|
238
|
-
target: "0xdee9::clob::deposit_quote",
|
|
239
|
-
arguments: _args,
|
|
240
|
-
typeArguments: [
|
|
241
|
-
typeof typeArguments[0] === "string"
|
|
242
|
-
? typeArguments[0]
|
|
243
|
-
: typeArguments[0].getSignature(),
|
|
244
|
-
typeof typeArguments[1] === "string"
|
|
245
|
-
? typeArguments[1]
|
|
246
|
-
: typeArguments[1].getSignature(),
|
|
247
|
-
],
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
builder.depositQuote = depositQuote;
|
|
251
|
-
function getLevel2BookStatusAskSide(tx, args, typeArguments) {
|
|
252
|
-
const _args = [];
|
|
253
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
254
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
255
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
256
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
257
|
-
// @ts-ignore
|
|
258
|
-
return tx.moveCall({
|
|
259
|
-
target: "0xdee9::clob::get_level2_book_status_ask_side",
|
|
260
|
-
arguments: _args,
|
|
261
|
-
typeArguments: [
|
|
262
|
-
typeof typeArguments[0] === "string"
|
|
263
|
-
? typeArguments[0]
|
|
264
|
-
: typeArguments[0].getSignature(),
|
|
265
|
-
typeof typeArguments[1] === "string"
|
|
266
|
-
? typeArguments[1]
|
|
267
|
-
: typeArguments[1].getSignature(),
|
|
268
|
-
],
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
builder.getLevel2BookStatusAskSide = getLevel2BookStatusAskSide;
|
|
272
|
-
function getLevel2BookStatusBidSide(tx, args, typeArguments) {
|
|
273
|
-
const _args = [];
|
|
274
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
275
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
276
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
277
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
278
|
-
// @ts-ignore
|
|
279
|
-
return tx.moveCall({
|
|
280
|
-
target: "0xdee9::clob::get_level2_book_status_bid_side",
|
|
281
|
-
arguments: _args,
|
|
282
|
-
typeArguments: [
|
|
283
|
-
typeof typeArguments[0] === "string"
|
|
284
|
-
? typeArguments[0]
|
|
285
|
-
: typeArguments[0].getSignature(),
|
|
286
|
-
typeof typeArguments[1] === "string"
|
|
287
|
-
? typeArguments[1]
|
|
288
|
-
: typeArguments[1].getSignature(),
|
|
289
|
-
],
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
builder.getLevel2BookStatusBidSide = getLevel2BookStatusBidSide;
|
|
293
|
-
function getMarketPrice(tx, args, typeArguments) {
|
|
294
|
-
const _args = [];
|
|
295
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
296
|
-
// @ts-ignore
|
|
297
|
-
return tx.moveCall({
|
|
298
|
-
target: "0xdee9::clob::get_market_price",
|
|
299
|
-
arguments: _args,
|
|
300
|
-
typeArguments: [
|
|
301
|
-
typeof typeArguments[0] === "string"
|
|
302
|
-
? typeArguments[0]
|
|
303
|
-
: typeArguments[0].getSignature(),
|
|
304
|
-
typeof typeArguments[1] === "string"
|
|
305
|
-
? typeArguments[1]
|
|
306
|
-
: typeArguments[1].getSignature(),
|
|
307
|
-
],
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
builder.getMarketPrice = getMarketPrice;
|
|
311
|
-
function getOrderStatus(tx, args, typeArguments) {
|
|
312
|
-
const _args = [];
|
|
313
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
314
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
315
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
316
|
-
// @ts-ignore
|
|
317
|
-
return tx.moveCall({
|
|
318
|
-
target: "0xdee9::clob::get_order_status",
|
|
319
|
-
arguments: _args,
|
|
320
|
-
typeArguments: [
|
|
321
|
-
typeof typeArguments[0] === "string"
|
|
322
|
-
? typeArguments[0]
|
|
323
|
-
: typeArguments[0].getSignature(),
|
|
324
|
-
typeof typeArguments[1] === "string"
|
|
325
|
-
? typeArguments[1]
|
|
326
|
-
: typeArguments[1].getSignature(),
|
|
327
|
-
],
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
builder.getOrderStatus = getOrderStatus;
|
|
331
|
-
function listOpenOrders(tx, args, typeArguments) {
|
|
332
|
-
const _args = [];
|
|
333
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
334
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
335
|
-
// @ts-ignore
|
|
336
|
-
return tx.moveCall({
|
|
337
|
-
target: "0xdee9::clob::list_open_orders",
|
|
338
|
-
arguments: _args,
|
|
339
|
-
typeArguments: [
|
|
340
|
-
typeof typeArguments[0] === "string"
|
|
341
|
-
? typeArguments[0]
|
|
342
|
-
: typeArguments[0].getSignature(),
|
|
343
|
-
typeof typeArguments[1] === "string"
|
|
344
|
-
? typeArguments[1]
|
|
345
|
-
: typeArguments[1].getSignature(),
|
|
346
|
-
],
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
builder.listOpenOrders = listOpenOrders;
|
|
350
|
-
function placeLimitOrder(tx, args, typeArguments) {
|
|
351
|
-
const _args = [];
|
|
352
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
353
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
354
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
355
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
356
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
357
|
-
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
358
|
-
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]));
|
|
359
|
-
_args.push(TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]));
|
|
360
|
-
_args.push(TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]));
|
|
361
|
-
// @ts-ignore
|
|
362
|
-
return tx.moveCall({
|
|
363
|
-
target: "0xdee9::clob::place_limit_order",
|
|
364
|
-
arguments: _args,
|
|
365
|
-
typeArguments: [
|
|
366
|
-
typeof typeArguments[0] === "string"
|
|
367
|
-
? typeArguments[0]
|
|
368
|
-
: typeArguments[0].getSignature(),
|
|
369
|
-
typeof typeArguments[1] === "string"
|
|
370
|
-
? typeArguments[1]
|
|
371
|
-
: typeArguments[1].getSignature(),
|
|
372
|
-
],
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
builder.placeLimitOrder = placeLimitOrder;
|
|
376
|
-
function placeMarketOrder(tx, args, typeArguments) {
|
|
377
|
-
const _args = [];
|
|
378
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
379
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
380
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
381
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
382
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
383
|
-
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]));
|
|
384
|
-
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]));
|
|
385
|
-
// @ts-ignore
|
|
386
|
-
return tx.moveCall({
|
|
387
|
-
target: "0xdee9::clob::place_market_order",
|
|
388
|
-
arguments: _args,
|
|
389
|
-
typeArguments: [
|
|
390
|
-
typeof typeArguments[0] === "string"
|
|
391
|
-
? typeArguments[0]
|
|
392
|
-
: typeArguments[0].getSignature(),
|
|
393
|
-
typeof typeArguments[1] === "string"
|
|
394
|
-
? typeArguments[1]
|
|
395
|
-
: typeArguments[1].getSignature(),
|
|
396
|
-
],
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
builder.placeMarketOrder = placeMarketOrder;
|
|
400
|
-
function swapExactBaseForQuote(tx, args, typeArguments) {
|
|
401
|
-
const _args = [];
|
|
402
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
403
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
404
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
405
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
406
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]));
|
|
407
|
-
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]));
|
|
408
|
-
// @ts-ignore
|
|
409
|
-
return tx.moveCall({
|
|
410
|
-
target: "0xdee9::clob::swap_exact_base_for_quote",
|
|
411
|
-
arguments: _args,
|
|
412
|
-
typeArguments: [
|
|
413
|
-
typeof typeArguments[0] === "string"
|
|
414
|
-
? typeArguments[0]
|
|
415
|
-
: typeArguments[0].getSignature(),
|
|
416
|
-
typeof typeArguments[1] === "string"
|
|
417
|
-
? typeArguments[1]
|
|
418
|
-
: typeArguments[1].getSignature(),
|
|
419
|
-
],
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
builder.swapExactBaseForQuote = swapExactBaseForQuote;
|
|
423
|
-
function swapExactQuoteForBase(tx, args, typeArguments) {
|
|
424
|
-
const _args = [];
|
|
425
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
426
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
427
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
428
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
429
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]));
|
|
430
|
-
// @ts-ignore
|
|
431
|
-
return tx.moveCall({
|
|
432
|
-
target: "0xdee9::clob::swap_exact_quote_for_base",
|
|
433
|
-
arguments: _args,
|
|
434
|
-
typeArguments: [
|
|
435
|
-
typeof typeArguments[0] === "string"
|
|
436
|
-
? typeArguments[0]
|
|
437
|
-
: typeArguments[0].getSignature(),
|
|
438
|
-
typeof typeArguments[1] === "string"
|
|
439
|
-
? typeArguments[1]
|
|
440
|
-
: typeArguments[1].getSignature(),
|
|
441
|
-
],
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
builder.swapExactQuoteForBase = swapExactQuoteForBase;
|
|
445
|
-
function withdrawBase(tx, args, typeArguments) {
|
|
446
|
-
const _args = [];
|
|
447
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
448
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
449
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
450
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
451
|
-
// @ts-ignore
|
|
452
|
-
return tx.moveCall({
|
|
453
|
-
target: "0xdee9::clob::withdraw_base",
|
|
454
|
-
arguments: _args,
|
|
455
|
-
typeArguments: [
|
|
456
|
-
typeof typeArguments[0] === "string"
|
|
457
|
-
? typeArguments[0]
|
|
458
|
-
: typeArguments[0].getSignature(),
|
|
459
|
-
typeof typeArguments[1] === "string"
|
|
460
|
-
? typeArguments[1]
|
|
461
|
-
: typeArguments[1].getSignature(),
|
|
462
|
-
],
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
builder.withdrawBase = withdrawBase;
|
|
466
|
-
function withdrawQuote(tx, args, typeArguments) {
|
|
467
|
-
const _args = [];
|
|
468
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
469
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
470
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
471
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
472
|
-
// @ts-ignore
|
|
473
|
-
return tx.moveCall({
|
|
474
|
-
target: "0xdee9::clob::withdraw_quote",
|
|
475
|
-
arguments: _args,
|
|
476
|
-
typeArguments: [
|
|
477
|
-
typeof typeArguments[0] === "string"
|
|
478
|
-
? typeArguments[0]
|
|
479
|
-
: typeArguments[0].getSignature(),
|
|
480
|
-
typeof typeArguments[1] === "string"
|
|
481
|
-
? typeArguments[1]
|
|
482
|
-
: typeArguments[1].getSignature(),
|
|
483
|
-
],
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
builder.withdrawQuote = withdrawQuote;
|
|
487
|
-
})(builder = clob.builder || (clob.builder = {}));
|
|
488
|
-
let view;
|
|
489
|
-
(function (view) {
|
|
490
|
-
async function accountBalance(client, args, typeArguments) {
|
|
491
|
-
const tx = new TransactionBlock();
|
|
492
|
-
builder.accountBalance(tx, args, typeArguments);
|
|
493
|
-
const res = await client.devInspectTransactionBlock({
|
|
494
|
-
transactionBlock: tx,
|
|
495
|
-
sender: ZERO_ADDRESS,
|
|
496
|
-
});
|
|
497
|
-
return res;
|
|
498
|
-
}
|
|
499
|
-
view.accountBalance = accountBalance;
|
|
500
|
-
async function batchCancelOrder(client, args, typeArguments) {
|
|
501
|
-
const tx = new TransactionBlock();
|
|
502
|
-
builder.batchCancelOrder(tx, args, typeArguments);
|
|
503
|
-
const res = await client.devInspectTransactionBlock({
|
|
504
|
-
transactionBlock: tx,
|
|
505
|
-
sender: ZERO_ADDRESS,
|
|
506
|
-
});
|
|
507
|
-
return res;
|
|
508
|
-
}
|
|
509
|
-
view.batchCancelOrder = batchCancelOrder;
|
|
510
|
-
async function cancelAllOrders(client, args, typeArguments) {
|
|
511
|
-
const tx = new TransactionBlock();
|
|
512
|
-
builder.cancelAllOrders(tx, args, typeArguments);
|
|
513
|
-
const res = await client.devInspectTransactionBlock({
|
|
514
|
-
transactionBlock: tx,
|
|
515
|
-
sender: ZERO_ADDRESS,
|
|
516
|
-
});
|
|
517
|
-
return res;
|
|
518
|
-
}
|
|
519
|
-
view.cancelAllOrders = cancelAllOrders;
|
|
520
|
-
async function cancelOrder(client, args, typeArguments) {
|
|
521
|
-
const tx = new TransactionBlock();
|
|
522
|
-
builder.cancelOrder(tx, args, typeArguments);
|
|
523
|
-
const res = await client.devInspectTransactionBlock({
|
|
524
|
-
transactionBlock: tx,
|
|
525
|
-
sender: ZERO_ADDRESS,
|
|
526
|
-
});
|
|
527
|
-
return res;
|
|
528
|
-
}
|
|
529
|
-
view.cancelOrder = cancelOrder;
|
|
530
|
-
async function createAccount(client, args) {
|
|
531
|
-
const tx = new TransactionBlock();
|
|
532
|
-
builder.createAccount(tx, args);
|
|
533
|
-
const res = await client.devInspectTransactionBlock({
|
|
534
|
-
transactionBlock: tx,
|
|
535
|
-
sender: ZERO_ADDRESS,
|
|
536
|
-
});
|
|
537
|
-
return res;
|
|
538
|
-
}
|
|
539
|
-
view.createAccount = createAccount;
|
|
540
|
-
async function createPool(client, args, typeArguments) {
|
|
541
|
-
const tx = new TransactionBlock();
|
|
542
|
-
builder.createPool(tx, args, typeArguments);
|
|
543
|
-
const res = await client.devInspectTransactionBlock({
|
|
544
|
-
transactionBlock: tx,
|
|
545
|
-
sender: ZERO_ADDRESS,
|
|
546
|
-
});
|
|
547
|
-
return res;
|
|
548
|
-
}
|
|
549
|
-
view.createPool = createPool;
|
|
550
|
-
async function depositBase(client, args, typeArguments) {
|
|
551
|
-
const tx = new TransactionBlock();
|
|
552
|
-
builder.depositBase(tx, args, typeArguments);
|
|
553
|
-
const res = await client.devInspectTransactionBlock({
|
|
554
|
-
transactionBlock: tx,
|
|
555
|
-
sender: ZERO_ADDRESS,
|
|
556
|
-
});
|
|
557
|
-
return res;
|
|
558
|
-
}
|
|
559
|
-
view.depositBase = depositBase;
|
|
560
|
-
async function depositQuote(client, args, typeArguments) {
|
|
561
|
-
const tx = new TransactionBlock();
|
|
562
|
-
builder.depositQuote(tx, args, typeArguments);
|
|
563
|
-
const res = await client.devInspectTransactionBlock({
|
|
564
|
-
transactionBlock: tx,
|
|
565
|
-
sender: ZERO_ADDRESS,
|
|
566
|
-
});
|
|
567
|
-
return res;
|
|
568
|
-
}
|
|
569
|
-
view.depositQuote = depositQuote;
|
|
570
|
-
async function getLevel2BookStatusAskSide(client, args, typeArguments) {
|
|
571
|
-
const tx = new TransactionBlock();
|
|
572
|
-
builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
|
|
573
|
-
const res = await client.devInspectTransactionBlock({
|
|
574
|
-
transactionBlock: tx,
|
|
575
|
-
sender: ZERO_ADDRESS,
|
|
576
|
-
});
|
|
577
|
-
return res;
|
|
578
|
-
}
|
|
579
|
-
view.getLevel2BookStatusAskSide = getLevel2BookStatusAskSide;
|
|
580
|
-
async function getLevel2BookStatusBidSide(client, args, typeArguments) {
|
|
581
|
-
const tx = new TransactionBlock();
|
|
582
|
-
builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
|
|
583
|
-
const res = await client.devInspectTransactionBlock({
|
|
584
|
-
transactionBlock: tx,
|
|
585
|
-
sender: ZERO_ADDRESS,
|
|
586
|
-
});
|
|
587
|
-
return res;
|
|
588
|
-
}
|
|
589
|
-
view.getLevel2BookStatusBidSide = getLevel2BookStatusBidSide;
|
|
590
|
-
async function getMarketPrice(client, args, typeArguments) {
|
|
591
|
-
const tx = new TransactionBlock();
|
|
592
|
-
builder.getMarketPrice(tx, args, typeArguments);
|
|
593
|
-
const res = await client.devInspectTransactionBlock({
|
|
594
|
-
transactionBlock: tx,
|
|
595
|
-
sender: ZERO_ADDRESS,
|
|
596
|
-
});
|
|
597
|
-
return res;
|
|
598
|
-
}
|
|
599
|
-
view.getMarketPrice = getMarketPrice;
|
|
600
|
-
async function getOrderStatus(client, args, typeArguments) {
|
|
601
|
-
const tx = new TransactionBlock();
|
|
602
|
-
builder.getOrderStatus(tx, args, typeArguments);
|
|
603
|
-
const res = await client.devInspectTransactionBlock({
|
|
604
|
-
transactionBlock: tx,
|
|
605
|
-
sender: ZERO_ADDRESS,
|
|
606
|
-
});
|
|
607
|
-
return res;
|
|
608
|
-
}
|
|
609
|
-
view.getOrderStatus = getOrderStatus;
|
|
610
|
-
async function listOpenOrders(client, args, typeArguments) {
|
|
611
|
-
const tx = new TransactionBlock();
|
|
612
|
-
builder.listOpenOrders(tx, args, typeArguments);
|
|
613
|
-
const res = await client.devInspectTransactionBlock({
|
|
614
|
-
transactionBlock: tx,
|
|
615
|
-
sender: ZERO_ADDRESS,
|
|
616
|
-
});
|
|
617
|
-
return res;
|
|
618
|
-
}
|
|
619
|
-
view.listOpenOrders = listOpenOrders;
|
|
620
|
-
async function placeLimitOrder(client, args, typeArguments) {
|
|
621
|
-
const tx = new TransactionBlock();
|
|
622
|
-
builder.placeLimitOrder(tx, args, typeArguments);
|
|
623
|
-
const res = await client.devInspectTransactionBlock({
|
|
624
|
-
transactionBlock: tx,
|
|
625
|
-
sender: ZERO_ADDRESS,
|
|
626
|
-
});
|
|
627
|
-
return res;
|
|
628
|
-
}
|
|
629
|
-
view.placeLimitOrder = placeLimitOrder;
|
|
630
|
-
async function placeMarketOrder(client, args, typeArguments) {
|
|
631
|
-
const tx = new TransactionBlock();
|
|
632
|
-
builder.placeMarketOrder(tx, args, typeArguments);
|
|
633
|
-
const res = await client.devInspectTransactionBlock({
|
|
634
|
-
transactionBlock: tx,
|
|
635
|
-
sender: ZERO_ADDRESS,
|
|
636
|
-
});
|
|
637
|
-
return res;
|
|
638
|
-
}
|
|
639
|
-
view.placeMarketOrder = placeMarketOrder;
|
|
640
|
-
async function swapExactBaseForQuote(client, args, typeArguments) {
|
|
641
|
-
const tx = new TransactionBlock();
|
|
642
|
-
builder.swapExactBaseForQuote(tx, args, typeArguments);
|
|
643
|
-
const res = await client.devInspectTransactionBlock({
|
|
644
|
-
transactionBlock: tx,
|
|
645
|
-
sender: ZERO_ADDRESS,
|
|
646
|
-
});
|
|
647
|
-
return res;
|
|
648
|
-
}
|
|
649
|
-
view.swapExactBaseForQuote = swapExactBaseForQuote;
|
|
650
|
-
async function swapExactQuoteForBase(client, args, typeArguments) {
|
|
651
|
-
const tx = new TransactionBlock();
|
|
652
|
-
builder.swapExactQuoteForBase(tx, args, typeArguments);
|
|
653
|
-
const res = await client.devInspectTransactionBlock({
|
|
654
|
-
transactionBlock: tx,
|
|
655
|
-
sender: ZERO_ADDRESS,
|
|
656
|
-
});
|
|
657
|
-
return res;
|
|
658
|
-
}
|
|
659
|
-
view.swapExactQuoteForBase = swapExactQuoteForBase;
|
|
660
|
-
async function withdrawBase(client, args, typeArguments) {
|
|
661
|
-
const tx = new TransactionBlock();
|
|
662
|
-
builder.withdrawBase(tx, args, typeArguments);
|
|
663
|
-
const res = await client.devInspectTransactionBlock({
|
|
664
|
-
transactionBlock: tx,
|
|
665
|
-
sender: ZERO_ADDRESS,
|
|
666
|
-
});
|
|
667
|
-
return res;
|
|
668
|
-
}
|
|
669
|
-
view.withdrawBase = withdrawBase;
|
|
670
|
-
async function withdrawQuote(client, args, typeArguments) {
|
|
671
|
-
const tx = new TransactionBlock();
|
|
672
|
-
builder.withdrawQuote(tx, args, typeArguments);
|
|
673
|
-
const res = await client.devInspectTransactionBlock({
|
|
674
|
-
transactionBlock: tx,
|
|
675
|
-
sender: ZERO_ADDRESS,
|
|
676
|
-
});
|
|
677
|
-
return res;
|
|
678
|
-
}
|
|
679
|
-
view.withdrawQuote = withdrawQuote;
|
|
680
|
-
})(view = clob.view || (clob.view = {}));
|
|
681
|
-
})(clob || (clob = {}));
|
|
682
|
-
export var clob_v2;
|
|
683
|
-
(function (clob_v2) {
|
|
684
|
-
let DepositAsset;
|
|
685
|
-
(function (DepositAsset) {
|
|
686
|
-
DepositAsset.TYPE_QNAME = "0xdee9::clob_v2::DepositAsset";
|
|
687
|
-
const TYPE = new TypeDescriptor(DepositAsset.TYPE_QNAME);
|
|
688
|
-
function type(arg0 = ANY_TYPE) {
|
|
689
|
-
return TYPE.apply(arg0);
|
|
690
|
-
}
|
|
691
|
-
DepositAsset.type = type;
|
|
692
|
-
})(DepositAsset = clob_v2.DepositAsset || (clob_v2.DepositAsset = {}));
|
|
693
|
-
let Order;
|
|
694
|
-
(function (Order) {
|
|
695
|
-
Order.TYPE_QNAME = "0xdee9::clob_v2::Order";
|
|
696
|
-
const TYPE = new TypeDescriptor(Order.TYPE_QNAME);
|
|
697
|
-
function type() {
|
|
698
|
-
return TYPE.apply();
|
|
699
|
-
}
|
|
700
|
-
Order.type = type;
|
|
701
|
-
})(Order = clob_v2.Order || (clob_v2.Order = {}));
|
|
702
|
-
let OrderCanceled;
|
|
703
|
-
(function (OrderCanceled) {
|
|
704
|
-
OrderCanceled.TYPE_QNAME = "0xdee9::clob_v2::OrderCanceled";
|
|
705
|
-
const TYPE = new TypeDescriptor(OrderCanceled.TYPE_QNAME);
|
|
706
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
707
|
-
return TYPE.apply(arg0, arg1);
|
|
708
|
-
}
|
|
709
|
-
OrderCanceled.type = type;
|
|
710
|
-
})(OrderCanceled = clob_v2.OrderCanceled || (clob_v2.OrderCanceled = {}));
|
|
711
|
-
let OrderFilled;
|
|
712
|
-
(function (OrderFilled) {
|
|
713
|
-
OrderFilled.TYPE_QNAME = "0xdee9::clob_v2::OrderFilled";
|
|
714
|
-
const TYPE = new TypeDescriptor(OrderFilled.TYPE_QNAME);
|
|
715
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
716
|
-
return TYPE.apply(arg0, arg1);
|
|
717
|
-
}
|
|
718
|
-
OrderFilled.type = type;
|
|
719
|
-
})(OrderFilled = clob_v2.OrderFilled || (clob_v2.OrderFilled = {}));
|
|
720
|
-
let OrderPlaced;
|
|
721
|
-
(function (OrderPlaced) {
|
|
722
|
-
OrderPlaced.TYPE_QNAME = "0xdee9::clob_v2::OrderPlaced";
|
|
723
|
-
const TYPE = new TypeDescriptor(OrderPlaced.TYPE_QNAME);
|
|
724
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
725
|
-
return TYPE.apply(arg0, arg1);
|
|
726
|
-
}
|
|
727
|
-
OrderPlaced.type = type;
|
|
728
|
-
})(OrderPlaced = clob_v2.OrderPlaced || (clob_v2.OrderPlaced = {}));
|
|
729
|
-
let Pool;
|
|
730
|
-
(function (Pool) {
|
|
731
|
-
Pool.TYPE_QNAME = "0xdee9::clob_v2::Pool";
|
|
732
|
-
const TYPE = new TypeDescriptor(Pool.TYPE_QNAME);
|
|
733
|
-
function type(arg0 = ANY_TYPE, arg1 = ANY_TYPE) {
|
|
734
|
-
return TYPE.apply(arg0, arg1);
|
|
735
|
-
}
|
|
736
|
-
Pool.type = type;
|
|
737
|
-
})(Pool = clob_v2.Pool || (clob_v2.Pool = {}));
|
|
738
|
-
let PoolCreated;
|
|
739
|
-
(function (PoolCreated) {
|
|
740
|
-
PoolCreated.TYPE_QNAME = "0xdee9::clob_v2::PoolCreated";
|
|
741
|
-
const TYPE = new TypeDescriptor(PoolCreated.TYPE_QNAME);
|
|
742
|
-
function type() {
|
|
743
|
-
return TYPE.apply();
|
|
744
|
-
}
|
|
745
|
-
PoolCreated.type = type;
|
|
746
|
-
})(PoolCreated = clob_v2.PoolCreated || (clob_v2.PoolCreated = {}));
|
|
747
|
-
let TickLevel;
|
|
748
|
-
(function (TickLevel) {
|
|
749
|
-
TickLevel.TYPE_QNAME = "0xdee9::clob_v2::TickLevel";
|
|
750
|
-
const TYPE = new TypeDescriptor(TickLevel.TYPE_QNAME);
|
|
751
|
-
function type() {
|
|
752
|
-
return TYPE.apply();
|
|
753
|
-
}
|
|
754
|
-
TickLevel.type = type;
|
|
755
|
-
})(TickLevel = clob_v2.TickLevel || (clob_v2.TickLevel = {}));
|
|
756
|
-
let WithdrawAsset;
|
|
757
|
-
(function (WithdrawAsset) {
|
|
758
|
-
WithdrawAsset.TYPE_QNAME = "0xdee9::clob_v2::WithdrawAsset";
|
|
759
|
-
const TYPE = new TypeDescriptor(WithdrawAsset.TYPE_QNAME);
|
|
760
|
-
function type(arg0 = ANY_TYPE) {
|
|
761
|
-
return TYPE.apply(arg0);
|
|
762
|
-
}
|
|
763
|
-
WithdrawAsset.type = type;
|
|
764
|
-
})(WithdrawAsset = clob_v2.WithdrawAsset || (clob_v2.WithdrawAsset = {}));
|
|
765
|
-
let builder;
|
|
766
|
-
(function (builder) {
|
|
767
|
-
function accountBalance(tx, args, typeArguments) {
|
|
768
|
-
const _args = [];
|
|
769
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
770
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
771
|
-
// @ts-ignore
|
|
772
|
-
return tx.moveCall({
|
|
773
|
-
target: "0xdee9::clob_v2::account_balance",
|
|
774
|
-
arguments: _args,
|
|
775
|
-
typeArguments: [
|
|
776
|
-
typeof typeArguments[0] === "string"
|
|
777
|
-
? typeArguments[0]
|
|
778
|
-
: typeArguments[0].getSignature(),
|
|
779
|
-
typeof typeArguments[1] === "string"
|
|
780
|
-
? typeArguments[1]
|
|
781
|
-
: typeArguments[1].getSignature(),
|
|
782
|
-
],
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
builder.accountBalance = accountBalance;
|
|
786
|
-
function batchCancelOrder(tx, args, typeArguments) {
|
|
787
|
-
const _args = [];
|
|
788
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
789
|
-
_args.push(TransactionArgument.is(args[1])
|
|
790
|
-
? args[1]
|
|
791
|
-
: tx.makeMoveVec({
|
|
792
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
793
|
-
// type: TODO
|
|
794
|
-
}));
|
|
795
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
796
|
-
// @ts-ignore
|
|
797
|
-
return tx.moveCall({
|
|
798
|
-
target: "0xdee9::clob_v2::batch_cancel_order",
|
|
799
|
-
arguments: _args,
|
|
800
|
-
typeArguments: [
|
|
801
|
-
typeof typeArguments[0] === "string"
|
|
802
|
-
? typeArguments[0]
|
|
803
|
-
: typeArguments[0].getSignature(),
|
|
804
|
-
typeof typeArguments[1] === "string"
|
|
805
|
-
? typeArguments[1]
|
|
806
|
-
: typeArguments[1].getSignature(),
|
|
807
|
-
],
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
builder.batchCancelOrder = batchCancelOrder;
|
|
811
|
-
function cancelAllOrders(tx, args, typeArguments) {
|
|
812
|
-
const _args = [];
|
|
813
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
814
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
815
|
-
// @ts-ignore
|
|
816
|
-
return tx.moveCall({
|
|
817
|
-
target: "0xdee9::clob_v2::cancel_all_orders",
|
|
818
|
-
arguments: _args,
|
|
819
|
-
typeArguments: [
|
|
820
|
-
typeof typeArguments[0] === "string"
|
|
821
|
-
? typeArguments[0]
|
|
822
|
-
: typeArguments[0].getSignature(),
|
|
823
|
-
typeof typeArguments[1] === "string"
|
|
824
|
-
? typeArguments[1]
|
|
825
|
-
: typeArguments[1].getSignature(),
|
|
826
|
-
],
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
builder.cancelAllOrders = cancelAllOrders;
|
|
830
|
-
function cancelOrder(tx, args, typeArguments) {
|
|
831
|
-
const _args = [];
|
|
832
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
833
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
834
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
835
|
-
// @ts-ignore
|
|
836
|
-
return tx.moveCall({
|
|
837
|
-
target: "0xdee9::clob_v2::cancel_order",
|
|
838
|
-
arguments: _args,
|
|
839
|
-
typeArguments: [
|
|
840
|
-
typeof typeArguments[0] === "string"
|
|
841
|
-
? typeArguments[0]
|
|
842
|
-
: typeArguments[0].getSignature(),
|
|
843
|
-
typeof typeArguments[1] === "string"
|
|
844
|
-
? typeArguments[1]
|
|
845
|
-
: typeArguments[1].getSignature(),
|
|
846
|
-
],
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
builder.cancelOrder = cancelOrder;
|
|
850
|
-
function cleanUpExpiredOrders(tx, args, typeArguments) {
|
|
851
|
-
const _args = [];
|
|
852
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
853
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
854
|
-
_args.push(TransactionArgument.is(args[2])
|
|
855
|
-
? args[2]
|
|
856
|
-
: tx.makeMoveVec({
|
|
857
|
-
objects: args[2].map((a) => tx.object(a)),
|
|
858
|
-
// type: TODO
|
|
859
|
-
}));
|
|
860
|
-
_args.push(TransactionArgument.is(args[3])
|
|
861
|
-
? args[3]
|
|
862
|
-
: tx.makeMoveVec({
|
|
863
|
-
objects: args[3].map((a) => tx.object(a)),
|
|
864
|
-
// type: TODO
|
|
865
|
-
}));
|
|
866
|
-
// @ts-ignore
|
|
867
|
-
return tx.moveCall({
|
|
868
|
-
target: "0xdee9::clob_v2::clean_up_expired_orders",
|
|
869
|
-
arguments: _args,
|
|
870
|
-
typeArguments: [
|
|
871
|
-
typeof typeArguments[0] === "string"
|
|
872
|
-
? typeArguments[0]
|
|
873
|
-
: typeArguments[0].getSignature(),
|
|
874
|
-
typeof typeArguments[1] === "string"
|
|
875
|
-
? typeArguments[1]
|
|
876
|
-
: typeArguments[1].getSignature(),
|
|
877
|
-
],
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
builder.cleanUpExpiredOrders = cleanUpExpiredOrders;
|
|
881
|
-
function createAccount(tx, args) {
|
|
882
|
-
const _args = [];
|
|
883
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
884
|
-
// @ts-ignore
|
|
885
|
-
return tx.moveCall({
|
|
886
|
-
target: "0xdee9::clob_v2::create_account",
|
|
887
|
-
arguments: _args,
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
builder.createAccount = createAccount;
|
|
891
|
-
function createPool(tx, args, typeArguments) {
|
|
892
|
-
const _args = [];
|
|
893
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
894
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
895
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
896
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
897
|
-
// @ts-ignore
|
|
898
|
-
return tx.moveCall({
|
|
899
|
-
target: "0xdee9::clob_v2::create_pool",
|
|
900
|
-
arguments: _args,
|
|
901
|
-
typeArguments: [
|
|
902
|
-
typeof typeArguments[0] === "string"
|
|
903
|
-
? typeArguments[0]
|
|
904
|
-
: typeArguments[0].getSignature(),
|
|
905
|
-
typeof typeArguments[1] === "string"
|
|
906
|
-
? typeArguments[1]
|
|
907
|
-
: typeArguments[1].getSignature(),
|
|
908
|
-
],
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
builder.createPool = createPool;
|
|
912
|
-
function depositBase(tx, args, typeArguments) {
|
|
913
|
-
const _args = [];
|
|
914
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
915
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
916
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
917
|
-
// @ts-ignore
|
|
918
|
-
return tx.moveCall({
|
|
919
|
-
target: "0xdee9::clob_v2::deposit_base",
|
|
920
|
-
arguments: _args,
|
|
921
|
-
typeArguments: [
|
|
922
|
-
typeof typeArguments[0] === "string"
|
|
923
|
-
? typeArguments[0]
|
|
924
|
-
: typeArguments[0].getSignature(),
|
|
925
|
-
typeof typeArguments[1] === "string"
|
|
926
|
-
? typeArguments[1]
|
|
927
|
-
: typeArguments[1].getSignature(),
|
|
928
|
-
],
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
builder.depositBase = depositBase;
|
|
932
|
-
function depositQuote(tx, args, typeArguments) {
|
|
933
|
-
const _args = [];
|
|
934
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
935
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
936
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
937
|
-
// @ts-ignore
|
|
938
|
-
return tx.moveCall({
|
|
939
|
-
target: "0xdee9::clob_v2::deposit_quote",
|
|
940
|
-
arguments: _args,
|
|
941
|
-
typeArguments: [
|
|
942
|
-
typeof typeArguments[0] === "string"
|
|
943
|
-
? typeArguments[0]
|
|
944
|
-
: typeArguments[0].getSignature(),
|
|
945
|
-
typeof typeArguments[1] === "string"
|
|
946
|
-
? typeArguments[1]
|
|
947
|
-
: typeArguments[1].getSignature(),
|
|
948
|
-
],
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
builder.depositQuote = depositQuote;
|
|
952
|
-
function getLevel2BookStatusAskSide(tx, args, typeArguments) {
|
|
953
|
-
const _args = [];
|
|
954
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
955
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
956
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
957
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
958
|
-
// @ts-ignore
|
|
959
|
-
return tx.moveCall({
|
|
960
|
-
target: "0xdee9::clob_v2::get_level2_book_status_ask_side",
|
|
961
|
-
arguments: _args,
|
|
962
|
-
typeArguments: [
|
|
963
|
-
typeof typeArguments[0] === "string"
|
|
964
|
-
? typeArguments[0]
|
|
965
|
-
: typeArguments[0].getSignature(),
|
|
966
|
-
typeof typeArguments[1] === "string"
|
|
967
|
-
? typeArguments[1]
|
|
968
|
-
: typeArguments[1].getSignature(),
|
|
969
|
-
],
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
builder.getLevel2BookStatusAskSide = getLevel2BookStatusAskSide;
|
|
973
|
-
function getLevel2BookStatusBidSide(tx, args, typeArguments) {
|
|
974
|
-
const _args = [];
|
|
975
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
976
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
977
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
978
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
979
|
-
// @ts-ignore
|
|
980
|
-
return tx.moveCall({
|
|
981
|
-
target: "0xdee9::clob_v2::get_level2_book_status_bid_side",
|
|
982
|
-
arguments: _args,
|
|
983
|
-
typeArguments: [
|
|
984
|
-
typeof typeArguments[0] === "string"
|
|
985
|
-
? typeArguments[0]
|
|
986
|
-
: typeArguments[0].getSignature(),
|
|
987
|
-
typeof typeArguments[1] === "string"
|
|
988
|
-
? typeArguments[1]
|
|
989
|
-
: typeArguments[1].getSignature(),
|
|
990
|
-
],
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
builder.getLevel2BookStatusBidSide = getLevel2BookStatusBidSide;
|
|
994
|
-
function getMarketPrice(tx, args, typeArguments) {
|
|
995
|
-
const _args = [];
|
|
996
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
997
|
-
// @ts-ignore
|
|
998
|
-
return tx.moveCall({
|
|
999
|
-
target: "0xdee9::clob_v2::get_market_price",
|
|
1000
|
-
arguments: _args,
|
|
1001
|
-
typeArguments: [
|
|
1002
|
-
typeof typeArguments[0] === "string"
|
|
1003
|
-
? typeArguments[0]
|
|
1004
|
-
: typeArguments[0].getSignature(),
|
|
1005
|
-
typeof typeArguments[1] === "string"
|
|
1006
|
-
? typeArguments[1]
|
|
1007
|
-
: typeArguments[1].getSignature(),
|
|
1008
|
-
],
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
builder.getMarketPrice = getMarketPrice;
|
|
1012
|
-
function getOrderStatus(tx, args, typeArguments) {
|
|
1013
|
-
const _args = [];
|
|
1014
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1015
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1016
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
1017
|
-
// @ts-ignore
|
|
1018
|
-
return tx.moveCall({
|
|
1019
|
-
target: "0xdee9::clob_v2::get_order_status",
|
|
1020
|
-
arguments: _args,
|
|
1021
|
-
typeArguments: [
|
|
1022
|
-
typeof typeArguments[0] === "string"
|
|
1023
|
-
? typeArguments[0]
|
|
1024
|
-
: typeArguments[0].getSignature(),
|
|
1025
|
-
typeof typeArguments[1] === "string"
|
|
1026
|
-
? typeArguments[1]
|
|
1027
|
-
: typeArguments[1].getSignature(),
|
|
1028
|
-
],
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
builder.getOrderStatus = getOrderStatus;
|
|
1032
|
-
function listOpenOrders(tx, args, typeArguments) {
|
|
1033
|
-
const _args = [];
|
|
1034
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1035
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
1036
|
-
// @ts-ignore
|
|
1037
|
-
return tx.moveCall({
|
|
1038
|
-
target: "0xdee9::clob_v2::list_open_orders",
|
|
1039
|
-
arguments: _args,
|
|
1040
|
-
typeArguments: [
|
|
1041
|
-
typeof typeArguments[0] === "string"
|
|
1042
|
-
? typeArguments[0]
|
|
1043
|
-
: typeArguments[0].getSignature(),
|
|
1044
|
-
typeof typeArguments[1] === "string"
|
|
1045
|
-
? typeArguments[1]
|
|
1046
|
-
: typeArguments[1].getSignature(),
|
|
1047
|
-
],
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
builder.listOpenOrders = listOpenOrders;
|
|
1051
|
-
function placeLimitOrder(tx, args, typeArguments) {
|
|
1052
|
-
const _args = [];
|
|
1053
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1054
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1055
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
1056
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
1057
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
1058
|
-
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
1059
|
-
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
|
|
1060
|
-
_args.push(TransactionArgument.is(args[7]) ? args[7] : tx.pure(args[7]));
|
|
1061
|
-
_args.push(TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]));
|
|
1062
|
-
_args.push(TransactionArgument.is(args[9]) ? args[9] : tx.object(args[9]));
|
|
1063
|
-
_args.push(TransactionArgument.is(args[10]) ? args[10] : tx.object(args[10]));
|
|
1064
|
-
// @ts-ignore
|
|
1065
|
-
return tx.moveCall({
|
|
1066
|
-
target: "0xdee9::clob_v2::place_limit_order",
|
|
1067
|
-
arguments: _args,
|
|
1068
|
-
typeArguments: [
|
|
1069
|
-
typeof typeArguments[0] === "string"
|
|
1070
|
-
? typeArguments[0]
|
|
1071
|
-
: typeArguments[0].getSignature(),
|
|
1072
|
-
typeof typeArguments[1] === "string"
|
|
1073
|
-
? typeArguments[1]
|
|
1074
|
-
: typeArguments[1].getSignature(),
|
|
1075
|
-
],
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
builder.placeLimitOrder = placeLimitOrder;
|
|
1079
|
-
function placeMarketOrder(tx, args, typeArguments) {
|
|
1080
|
-
const _args = [];
|
|
1081
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1082
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
1083
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
1084
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
1085
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
1086
|
-
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
1087
|
-
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
|
|
1088
|
-
_args.push(TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]));
|
|
1089
|
-
_args.push(TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]));
|
|
1090
|
-
// @ts-ignore
|
|
1091
|
-
return tx.moveCall({
|
|
1092
|
-
target: "0xdee9::clob_v2::place_market_order",
|
|
1093
|
-
arguments: _args,
|
|
1094
|
-
typeArguments: [
|
|
1095
|
-
typeof typeArguments[0] === "string"
|
|
1096
|
-
? typeArguments[0]
|
|
1097
|
-
: typeArguments[0].getSignature(),
|
|
1098
|
-
typeof typeArguments[1] === "string"
|
|
1099
|
-
? typeArguments[1]
|
|
1100
|
-
: typeArguments[1].getSignature(),
|
|
1101
|
-
],
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
builder.placeMarketOrder = placeMarketOrder;
|
|
1105
|
-
function swapExactBaseForQuote(tx, args, typeArguments) {
|
|
1106
|
-
const _args = [];
|
|
1107
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1108
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1109
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
1110
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
1111
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
|
|
1112
|
-
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
1113
|
-
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]));
|
|
1114
|
-
_args.push(TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]));
|
|
1115
|
-
// @ts-ignore
|
|
1116
|
-
return tx.moveCall({
|
|
1117
|
-
target: "0xdee9::clob_v2::swap_exact_base_for_quote",
|
|
1118
|
-
arguments: _args,
|
|
1119
|
-
typeArguments: [
|
|
1120
|
-
typeof typeArguments[0] === "string"
|
|
1121
|
-
? typeArguments[0]
|
|
1122
|
-
: typeArguments[0].getSignature(),
|
|
1123
|
-
typeof typeArguments[1] === "string"
|
|
1124
|
-
? typeArguments[1]
|
|
1125
|
-
: typeArguments[1].getSignature(),
|
|
1126
|
-
],
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
builder.swapExactBaseForQuote = swapExactBaseForQuote;
|
|
1130
|
-
function swapExactQuoteForBase(tx, args, typeArguments) {
|
|
1131
|
-
const _args = [];
|
|
1132
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1133
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1134
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
1135
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
1136
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]));
|
|
1137
|
-
_args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
|
|
1138
|
-
_args.push(TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]));
|
|
1139
|
-
// @ts-ignore
|
|
1140
|
-
return tx.moveCall({
|
|
1141
|
-
target: "0xdee9::clob_v2::swap_exact_quote_for_base",
|
|
1142
|
-
arguments: _args,
|
|
1143
|
-
typeArguments: [
|
|
1144
|
-
typeof typeArguments[0] === "string"
|
|
1145
|
-
? typeArguments[0]
|
|
1146
|
-
: typeArguments[0].getSignature(),
|
|
1147
|
-
typeof typeArguments[1] === "string"
|
|
1148
|
-
? typeArguments[1]
|
|
1149
|
-
: typeArguments[1].getSignature(),
|
|
1150
|
-
],
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
builder.swapExactQuoteForBase = swapExactQuoteForBase;
|
|
1154
|
-
function withdrawBase(tx, args, typeArguments) {
|
|
1155
|
-
const _args = [];
|
|
1156
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1157
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1158
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
1159
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
1160
|
-
// @ts-ignore
|
|
1161
|
-
return tx.moveCall({
|
|
1162
|
-
target: "0xdee9::clob_v2::withdraw_base",
|
|
1163
|
-
arguments: _args,
|
|
1164
|
-
typeArguments: [
|
|
1165
|
-
typeof typeArguments[0] === "string"
|
|
1166
|
-
? typeArguments[0]
|
|
1167
|
-
: typeArguments[0].getSignature(),
|
|
1168
|
-
typeof typeArguments[1] === "string"
|
|
1169
|
-
? typeArguments[1]
|
|
1170
|
-
: typeArguments[1].getSignature(),
|
|
1171
|
-
],
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
builder.withdrawBase = withdrawBase;
|
|
1175
|
-
function withdrawQuote(tx, args, typeArguments) {
|
|
1176
|
-
const _args = [];
|
|
1177
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1178
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1179
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
1180
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
1181
|
-
// @ts-ignore
|
|
1182
|
-
return tx.moveCall({
|
|
1183
|
-
target: "0xdee9::clob_v2::withdraw_quote",
|
|
1184
|
-
arguments: _args,
|
|
1185
|
-
typeArguments: [
|
|
1186
|
-
typeof typeArguments[0] === "string"
|
|
1187
|
-
? typeArguments[0]
|
|
1188
|
-
: typeArguments[0].getSignature(),
|
|
1189
|
-
typeof typeArguments[1] === "string"
|
|
1190
|
-
? typeArguments[1]
|
|
1191
|
-
: typeArguments[1].getSignature(),
|
|
1192
|
-
],
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
builder.withdrawQuote = withdrawQuote;
|
|
1196
|
-
})(builder = clob_v2.builder || (clob_v2.builder = {}));
|
|
1197
|
-
let view;
|
|
1198
|
-
(function (view) {
|
|
1199
|
-
async function accountBalance(client, args, typeArguments) {
|
|
1200
|
-
const tx = new TransactionBlock();
|
|
1201
|
-
builder.accountBalance(tx, args, typeArguments);
|
|
1202
|
-
const res = await client.devInspectTransactionBlock({
|
|
1203
|
-
transactionBlock: tx,
|
|
1204
|
-
sender: ZERO_ADDRESS,
|
|
1205
|
-
});
|
|
1206
|
-
return res;
|
|
1207
|
-
}
|
|
1208
|
-
view.accountBalance = accountBalance;
|
|
1209
|
-
async function batchCancelOrder(client, args, typeArguments) {
|
|
1210
|
-
const tx = new TransactionBlock();
|
|
1211
|
-
builder.batchCancelOrder(tx, args, typeArguments);
|
|
1212
|
-
const res = await client.devInspectTransactionBlock({
|
|
1213
|
-
transactionBlock: tx,
|
|
1214
|
-
sender: ZERO_ADDRESS,
|
|
1215
|
-
});
|
|
1216
|
-
return res;
|
|
1217
|
-
}
|
|
1218
|
-
view.batchCancelOrder = batchCancelOrder;
|
|
1219
|
-
async function cancelAllOrders(client, args, typeArguments) {
|
|
1220
|
-
const tx = new TransactionBlock();
|
|
1221
|
-
builder.cancelAllOrders(tx, args, typeArguments);
|
|
1222
|
-
const res = await client.devInspectTransactionBlock({
|
|
1223
|
-
transactionBlock: tx,
|
|
1224
|
-
sender: ZERO_ADDRESS,
|
|
1225
|
-
});
|
|
1226
|
-
return res;
|
|
1227
|
-
}
|
|
1228
|
-
view.cancelAllOrders = cancelAllOrders;
|
|
1229
|
-
async function cancelOrder(client, args, typeArguments) {
|
|
1230
|
-
const tx = new TransactionBlock();
|
|
1231
|
-
builder.cancelOrder(tx, args, typeArguments);
|
|
1232
|
-
const res = await client.devInspectTransactionBlock({
|
|
1233
|
-
transactionBlock: tx,
|
|
1234
|
-
sender: ZERO_ADDRESS,
|
|
1235
|
-
});
|
|
1236
|
-
return res;
|
|
1237
|
-
}
|
|
1238
|
-
view.cancelOrder = cancelOrder;
|
|
1239
|
-
async function cleanUpExpiredOrders(client, args, typeArguments) {
|
|
1240
|
-
const tx = new TransactionBlock();
|
|
1241
|
-
builder.cleanUpExpiredOrders(tx, args, typeArguments);
|
|
1242
|
-
const res = await client.devInspectTransactionBlock({
|
|
1243
|
-
transactionBlock: tx,
|
|
1244
|
-
sender: ZERO_ADDRESS,
|
|
1245
|
-
});
|
|
1246
|
-
return res;
|
|
1247
|
-
}
|
|
1248
|
-
view.cleanUpExpiredOrders = cleanUpExpiredOrders;
|
|
1249
|
-
async function createAccount(client, args) {
|
|
1250
|
-
const tx = new TransactionBlock();
|
|
1251
|
-
builder.createAccount(tx, args);
|
|
1252
|
-
const res = await client.devInspectTransactionBlock({
|
|
1253
|
-
transactionBlock: tx,
|
|
1254
|
-
sender: ZERO_ADDRESS,
|
|
1255
|
-
});
|
|
1256
|
-
return res;
|
|
1257
|
-
}
|
|
1258
|
-
view.createAccount = createAccount;
|
|
1259
|
-
async function createPool(client, args, typeArguments) {
|
|
1260
|
-
const tx = new TransactionBlock();
|
|
1261
|
-
builder.createPool(tx, args, typeArguments);
|
|
1262
|
-
const res = await client.devInspectTransactionBlock({
|
|
1263
|
-
transactionBlock: tx,
|
|
1264
|
-
sender: ZERO_ADDRESS,
|
|
1265
|
-
});
|
|
1266
|
-
return res;
|
|
1267
|
-
}
|
|
1268
|
-
view.createPool = createPool;
|
|
1269
|
-
async function depositBase(client, args, typeArguments) {
|
|
1270
|
-
const tx = new TransactionBlock();
|
|
1271
|
-
builder.depositBase(tx, args, typeArguments);
|
|
1272
|
-
const res = await client.devInspectTransactionBlock({
|
|
1273
|
-
transactionBlock: tx,
|
|
1274
|
-
sender: ZERO_ADDRESS,
|
|
1275
|
-
});
|
|
1276
|
-
return res;
|
|
1277
|
-
}
|
|
1278
|
-
view.depositBase = depositBase;
|
|
1279
|
-
async function depositQuote(client, args, typeArguments) {
|
|
1280
|
-
const tx = new TransactionBlock();
|
|
1281
|
-
builder.depositQuote(tx, args, typeArguments);
|
|
1282
|
-
const res = await client.devInspectTransactionBlock({
|
|
1283
|
-
transactionBlock: tx,
|
|
1284
|
-
sender: ZERO_ADDRESS,
|
|
1285
|
-
});
|
|
1286
|
-
return res;
|
|
1287
|
-
}
|
|
1288
|
-
view.depositQuote = depositQuote;
|
|
1289
|
-
async function getLevel2BookStatusAskSide(client, args, typeArguments) {
|
|
1290
|
-
const tx = new TransactionBlock();
|
|
1291
|
-
builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
|
|
1292
|
-
const res = await client.devInspectTransactionBlock({
|
|
1293
|
-
transactionBlock: tx,
|
|
1294
|
-
sender: ZERO_ADDRESS,
|
|
1295
|
-
});
|
|
1296
|
-
return res;
|
|
1297
|
-
}
|
|
1298
|
-
view.getLevel2BookStatusAskSide = getLevel2BookStatusAskSide;
|
|
1299
|
-
async function getLevel2BookStatusBidSide(client, args, typeArguments) {
|
|
1300
|
-
const tx = new TransactionBlock();
|
|
1301
|
-
builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
|
|
1302
|
-
const res = await client.devInspectTransactionBlock({
|
|
1303
|
-
transactionBlock: tx,
|
|
1304
|
-
sender: ZERO_ADDRESS,
|
|
1305
|
-
});
|
|
1306
|
-
return res;
|
|
1307
|
-
}
|
|
1308
|
-
view.getLevel2BookStatusBidSide = getLevel2BookStatusBidSide;
|
|
1309
|
-
async function getMarketPrice(client, args, typeArguments) {
|
|
1310
|
-
const tx = new TransactionBlock();
|
|
1311
|
-
builder.getMarketPrice(tx, args, typeArguments);
|
|
1312
|
-
const res = await client.devInspectTransactionBlock({
|
|
1313
|
-
transactionBlock: tx,
|
|
1314
|
-
sender: ZERO_ADDRESS,
|
|
1315
|
-
});
|
|
1316
|
-
return res;
|
|
1317
|
-
}
|
|
1318
|
-
view.getMarketPrice = getMarketPrice;
|
|
1319
|
-
async function getOrderStatus(client, args, typeArguments) {
|
|
1320
|
-
const tx = new TransactionBlock();
|
|
1321
|
-
builder.getOrderStatus(tx, args, typeArguments);
|
|
1322
|
-
const res = await client.devInspectTransactionBlock({
|
|
1323
|
-
transactionBlock: tx,
|
|
1324
|
-
sender: ZERO_ADDRESS,
|
|
1325
|
-
});
|
|
1326
|
-
return res;
|
|
1327
|
-
}
|
|
1328
|
-
view.getOrderStatus = getOrderStatus;
|
|
1329
|
-
async function listOpenOrders(client, args, typeArguments) {
|
|
1330
|
-
const tx = new TransactionBlock();
|
|
1331
|
-
builder.listOpenOrders(tx, args, typeArguments);
|
|
1332
|
-
const res = await client.devInspectTransactionBlock({
|
|
1333
|
-
transactionBlock: tx,
|
|
1334
|
-
sender: ZERO_ADDRESS,
|
|
1335
|
-
});
|
|
1336
|
-
return res;
|
|
1337
|
-
}
|
|
1338
|
-
view.listOpenOrders = listOpenOrders;
|
|
1339
|
-
async function placeLimitOrder(client, args, typeArguments) {
|
|
1340
|
-
const tx = new TransactionBlock();
|
|
1341
|
-
builder.placeLimitOrder(tx, args, typeArguments);
|
|
1342
|
-
const res = await client.devInspectTransactionBlock({
|
|
1343
|
-
transactionBlock: tx,
|
|
1344
|
-
sender: ZERO_ADDRESS,
|
|
1345
|
-
});
|
|
1346
|
-
return res;
|
|
1347
|
-
}
|
|
1348
|
-
view.placeLimitOrder = placeLimitOrder;
|
|
1349
|
-
async function placeMarketOrder(client, args, typeArguments) {
|
|
1350
|
-
const tx = new TransactionBlock();
|
|
1351
|
-
builder.placeMarketOrder(tx, args, typeArguments);
|
|
1352
|
-
const res = await client.devInspectTransactionBlock({
|
|
1353
|
-
transactionBlock: tx,
|
|
1354
|
-
sender: ZERO_ADDRESS,
|
|
1355
|
-
});
|
|
1356
|
-
return res;
|
|
1357
|
-
}
|
|
1358
|
-
view.placeMarketOrder = placeMarketOrder;
|
|
1359
|
-
async function swapExactBaseForQuote(client, args, typeArguments) {
|
|
1360
|
-
const tx = new TransactionBlock();
|
|
1361
|
-
builder.swapExactBaseForQuote(tx, args, typeArguments);
|
|
1362
|
-
const res = await client.devInspectTransactionBlock({
|
|
1363
|
-
transactionBlock: tx,
|
|
1364
|
-
sender: ZERO_ADDRESS,
|
|
1365
|
-
});
|
|
1366
|
-
return res;
|
|
1367
|
-
}
|
|
1368
|
-
view.swapExactBaseForQuote = swapExactBaseForQuote;
|
|
1369
|
-
async function swapExactQuoteForBase(client, args, typeArguments) {
|
|
1370
|
-
const tx = new TransactionBlock();
|
|
1371
|
-
builder.swapExactQuoteForBase(tx, args, typeArguments);
|
|
1372
|
-
const res = await client.devInspectTransactionBlock({
|
|
1373
|
-
transactionBlock: tx,
|
|
1374
|
-
sender: ZERO_ADDRESS,
|
|
1375
|
-
});
|
|
1376
|
-
return res;
|
|
1377
|
-
}
|
|
1378
|
-
view.swapExactQuoteForBase = swapExactQuoteForBase;
|
|
1379
|
-
async function withdrawBase(client, args, typeArguments) {
|
|
1380
|
-
const tx = new TransactionBlock();
|
|
1381
|
-
builder.withdrawBase(tx, args, typeArguments);
|
|
1382
|
-
const res = await client.devInspectTransactionBlock({
|
|
1383
|
-
transactionBlock: tx,
|
|
1384
|
-
sender: ZERO_ADDRESS,
|
|
1385
|
-
});
|
|
1386
|
-
return res;
|
|
1387
|
-
}
|
|
1388
|
-
view.withdrawBase = withdrawBase;
|
|
1389
|
-
async function withdrawQuote(client, args, typeArguments) {
|
|
1390
|
-
const tx = new TransactionBlock();
|
|
1391
|
-
builder.withdrawQuote(tx, args, typeArguments);
|
|
1392
|
-
const res = await client.devInspectTransactionBlock({
|
|
1393
|
-
transactionBlock: tx,
|
|
1394
|
-
sender: ZERO_ADDRESS,
|
|
1395
|
-
});
|
|
1396
|
-
return res;
|
|
1397
|
-
}
|
|
1398
|
-
view.withdrawQuote = withdrawQuote;
|
|
1399
|
-
})(view = clob_v2.view || (clob_v2.view = {}));
|
|
1400
|
-
})(clob_v2 || (clob_v2 = {}));
|
|
1401
|
-
export var critbit;
|
|
1402
|
-
(function (critbit) {
|
|
1403
|
-
let CritbitTree;
|
|
1404
|
-
(function (CritbitTree) {
|
|
1405
|
-
CritbitTree.TYPE_QNAME = "0xdee9::critbit::CritbitTree";
|
|
1406
|
-
const TYPE = new TypeDescriptor(CritbitTree.TYPE_QNAME);
|
|
1407
|
-
function type(arg0 = ANY_TYPE) {
|
|
1408
|
-
return TYPE.apply(arg0);
|
|
1409
|
-
}
|
|
1410
|
-
CritbitTree.type = type;
|
|
1411
|
-
})(CritbitTree = critbit.CritbitTree || (critbit.CritbitTree = {}));
|
|
1412
|
-
let InternalNode;
|
|
1413
|
-
(function (InternalNode) {
|
|
1414
|
-
InternalNode.TYPE_QNAME = "0xdee9::critbit::InternalNode";
|
|
1415
|
-
const TYPE = new TypeDescriptor(InternalNode.TYPE_QNAME);
|
|
1416
|
-
function type() {
|
|
1417
|
-
return TYPE.apply();
|
|
1418
|
-
}
|
|
1419
|
-
InternalNode.type = type;
|
|
1420
|
-
})(InternalNode = critbit.InternalNode || (critbit.InternalNode = {}));
|
|
1421
|
-
let Leaf;
|
|
1422
|
-
(function (Leaf) {
|
|
1423
|
-
Leaf.TYPE_QNAME = "0xdee9::critbit::Leaf";
|
|
1424
|
-
const TYPE = new TypeDescriptor(Leaf.TYPE_QNAME);
|
|
1425
|
-
function type(arg0 = ANY_TYPE) {
|
|
1426
|
-
return TYPE.apply(arg0);
|
|
1427
|
-
}
|
|
1428
|
-
Leaf.type = type;
|
|
1429
|
-
})(Leaf = critbit.Leaf || (critbit.Leaf = {}));
|
|
1430
|
-
let builder;
|
|
1431
|
-
(function (builder) {
|
|
1432
|
-
function previousLeaf(tx, args, typeArguments) {
|
|
1433
|
-
const _args = [];
|
|
1434
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1435
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1436
|
-
// @ts-ignore
|
|
1437
|
-
return tx.moveCall({
|
|
1438
|
-
target: "0xdee9::critbit::previous_leaf",
|
|
1439
|
-
arguments: _args,
|
|
1440
|
-
typeArguments: [
|
|
1441
|
-
typeof typeArguments[0] === "string"
|
|
1442
|
-
? typeArguments[0]
|
|
1443
|
-
: typeArguments[0].getSignature(),
|
|
1444
|
-
],
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
builder.previousLeaf = previousLeaf;
|
|
1448
|
-
})(builder = critbit.builder || (critbit.builder = {}));
|
|
1449
|
-
let view;
|
|
1450
|
-
(function (view) {
|
|
1451
|
-
async function previousLeaf(client, args, typeArguments) {
|
|
1452
|
-
const tx = new TransactionBlock();
|
|
1453
|
-
builder.previousLeaf(tx, args, typeArguments);
|
|
1454
|
-
const res = await client.devInspectTransactionBlock({
|
|
1455
|
-
transactionBlock: tx,
|
|
1456
|
-
sender: ZERO_ADDRESS,
|
|
1457
|
-
});
|
|
1458
|
-
return res;
|
|
1459
|
-
}
|
|
1460
|
-
view.previousLeaf = previousLeaf;
|
|
1461
|
-
})(view = critbit.view || (critbit.view = {}));
|
|
1462
|
-
})(critbit || (critbit = {}));
|
|
1463
|
-
export var custodian;
|
|
1464
|
-
(function (custodian) {
|
|
1465
|
-
let Account;
|
|
1466
|
-
(function (Account) {
|
|
1467
|
-
Account.TYPE_QNAME = "0xdee9::custodian::Account";
|
|
1468
|
-
const TYPE = new TypeDescriptor(Account.TYPE_QNAME);
|
|
1469
|
-
function type(arg0 = ANY_TYPE) {
|
|
1470
|
-
return TYPE.apply(arg0);
|
|
1471
|
-
}
|
|
1472
|
-
Account.type = type;
|
|
1473
|
-
})(Account = custodian.Account || (custodian.Account = {}));
|
|
1474
|
-
let AccountCap;
|
|
1475
|
-
(function (AccountCap) {
|
|
1476
|
-
AccountCap.TYPE_QNAME = "0xdee9::custodian::AccountCap";
|
|
1477
|
-
const TYPE = new TypeDescriptor(AccountCap.TYPE_QNAME);
|
|
1478
|
-
function type() {
|
|
1479
|
-
return TYPE.apply();
|
|
1480
|
-
}
|
|
1481
|
-
AccountCap.type = type;
|
|
1482
|
-
})(AccountCap = custodian.AccountCap || (custodian.AccountCap = {}));
|
|
1483
|
-
let Custodian;
|
|
1484
|
-
(function (Custodian) {
|
|
1485
|
-
Custodian.TYPE_QNAME = "0xdee9::custodian::Custodian";
|
|
1486
|
-
const TYPE = new TypeDescriptor(Custodian.TYPE_QNAME);
|
|
1487
|
-
function type(arg0 = ANY_TYPE) {
|
|
1488
|
-
return TYPE.apply(arg0);
|
|
1489
|
-
}
|
|
1490
|
-
Custodian.type = type;
|
|
1491
|
-
})(Custodian = custodian.Custodian || (custodian.Custodian = {}));
|
|
1492
|
-
let builder;
|
|
1493
|
-
(function (builder) {
|
|
1494
|
-
function mintAccountCap(tx, args) {
|
|
1495
|
-
const _args = [];
|
|
1496
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1497
|
-
// @ts-ignore
|
|
1498
|
-
return tx.moveCall({
|
|
1499
|
-
target: "0xdee9::custodian::mint_account_cap",
|
|
1500
|
-
arguments: _args,
|
|
1501
|
-
});
|
|
1502
|
-
}
|
|
1503
|
-
builder.mintAccountCap = mintAccountCap;
|
|
1504
|
-
})(builder = custodian.builder || (custodian.builder = {}));
|
|
1505
|
-
let view;
|
|
1506
|
-
(function (view) {
|
|
1507
|
-
async function mintAccountCap(client, args) {
|
|
1508
|
-
const tx = new TransactionBlock();
|
|
1509
|
-
builder.mintAccountCap(tx, args);
|
|
1510
|
-
const res = await client.devInspectTransactionBlock({
|
|
1511
|
-
transactionBlock: tx,
|
|
1512
|
-
sender: ZERO_ADDRESS,
|
|
1513
|
-
});
|
|
1514
|
-
return res;
|
|
1515
|
-
}
|
|
1516
|
-
view.mintAccountCap = mintAccountCap;
|
|
1517
|
-
})(view = custodian.view || (custodian.view = {}));
|
|
1518
|
-
})(custodian || (custodian = {}));
|
|
1519
|
-
export var custodian_v2;
|
|
1520
|
-
(function (custodian_v2) {
|
|
1521
|
-
let Account;
|
|
1522
|
-
(function (Account) {
|
|
1523
|
-
Account.TYPE_QNAME = "0xdee9::custodian_v2::Account";
|
|
1524
|
-
const TYPE = new TypeDescriptor(Account.TYPE_QNAME);
|
|
1525
|
-
function type(arg0 = ANY_TYPE) {
|
|
1526
|
-
return TYPE.apply(arg0);
|
|
1527
|
-
}
|
|
1528
|
-
Account.type = type;
|
|
1529
|
-
})(Account = custodian_v2.Account || (custodian_v2.Account = {}));
|
|
1530
|
-
let AccountCap;
|
|
1531
|
-
(function (AccountCap) {
|
|
1532
|
-
AccountCap.TYPE_QNAME = "0xdee9::custodian_v2::AccountCap";
|
|
1533
|
-
const TYPE = new TypeDescriptor(AccountCap.TYPE_QNAME);
|
|
1534
|
-
function type() {
|
|
1535
|
-
return TYPE.apply();
|
|
1536
|
-
}
|
|
1537
|
-
AccountCap.type = type;
|
|
1538
|
-
})(AccountCap = custodian_v2.AccountCap || (custodian_v2.AccountCap = {}));
|
|
1539
|
-
let Custodian;
|
|
1540
|
-
(function (Custodian) {
|
|
1541
|
-
Custodian.TYPE_QNAME = "0xdee9::custodian_v2::Custodian";
|
|
1542
|
-
const TYPE = new TypeDescriptor(Custodian.TYPE_QNAME);
|
|
1543
|
-
function type(arg0 = ANY_TYPE) {
|
|
1544
|
-
return TYPE.apply(arg0);
|
|
1545
|
-
}
|
|
1546
|
-
Custodian.type = type;
|
|
1547
|
-
})(Custodian = custodian_v2.Custodian || (custodian_v2.Custodian = {}));
|
|
1548
|
-
let builder;
|
|
1549
|
-
(function (builder) {
|
|
1550
|
-
function accountOwner(tx, args) {
|
|
1551
|
-
const _args = [];
|
|
1552
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1553
|
-
// @ts-ignore
|
|
1554
|
-
return tx.moveCall({
|
|
1555
|
-
target: "0xdee9::custodian_v2::account_owner",
|
|
1556
|
-
arguments: _args,
|
|
1557
|
-
});
|
|
1558
|
-
}
|
|
1559
|
-
builder.accountOwner = accountOwner;
|
|
1560
|
-
function createChildAccountCap(tx, args) {
|
|
1561
|
-
const _args = [];
|
|
1562
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]));
|
|
1563
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]));
|
|
1564
|
-
// @ts-ignore
|
|
1565
|
-
return tx.moveCall({
|
|
1566
|
-
target: "0xdee9::custodian_v2::create_child_account_cap",
|
|
1567
|
-
arguments: _args,
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
builder.createChildAccountCap = createChildAccountCap;
|
|
1571
|
-
function deleteAccountCap(tx, args) {
|
|
1572
|
-
const _args = [];
|
|
1573
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
1574
|
-
// @ts-ignore
|
|
1575
|
-
return tx.moveCall({
|
|
1576
|
-
target: "0xdee9::custodian_v2::delete_account_cap",
|
|
1577
|
-
arguments: _args,
|
|
1578
|
-
});
|
|
1579
|
-
}
|
|
1580
|
-
builder.deleteAccountCap = deleteAccountCap;
|
|
1581
|
-
})(builder = custodian_v2.builder || (custodian_v2.builder = {}));
|
|
1582
|
-
let view;
|
|
1583
|
-
(function (view) {
|
|
1584
|
-
async function accountOwner(client, args) {
|
|
1585
|
-
const tx = new TransactionBlock();
|
|
1586
|
-
builder.accountOwner(tx, args);
|
|
1587
|
-
const res = await client.devInspectTransactionBlock({
|
|
1588
|
-
transactionBlock: tx,
|
|
1589
|
-
sender: ZERO_ADDRESS,
|
|
1590
|
-
});
|
|
1591
|
-
return res;
|
|
1592
|
-
}
|
|
1593
|
-
view.accountOwner = accountOwner;
|
|
1594
|
-
async function createChildAccountCap(client, args) {
|
|
1595
|
-
const tx = new TransactionBlock();
|
|
1596
|
-
builder.createChildAccountCap(tx, args);
|
|
1597
|
-
const res = await client.devInspectTransactionBlock({
|
|
1598
|
-
transactionBlock: tx,
|
|
1599
|
-
sender: ZERO_ADDRESS,
|
|
1600
|
-
});
|
|
1601
|
-
return res;
|
|
1602
|
-
}
|
|
1603
|
-
view.createChildAccountCap = createChildAccountCap;
|
|
1604
|
-
async function deleteAccountCap(client, args) {
|
|
1605
|
-
const tx = new TransactionBlock();
|
|
1606
|
-
builder.deleteAccountCap(tx, args);
|
|
1607
|
-
const res = await client.devInspectTransactionBlock({
|
|
1608
|
-
transactionBlock: tx,
|
|
1609
|
-
sender: ZERO_ADDRESS,
|
|
1610
|
-
});
|
|
1611
|
-
return res;
|
|
1612
|
-
}
|
|
1613
|
-
view.deleteAccountCap = deleteAccountCap;
|
|
1614
|
-
})(view = custodian_v2.view || (custodian_v2.view = {}));
|
|
1615
|
-
})(custodian_v2 || (custodian_v2 = {}));
|
|
1616
|
-
export var math;
|
|
1617
|
-
(function (math) {
|
|
1618
|
-
let builder;
|
|
1619
|
-
(function (builder) {
|
|
1620
|
-
function divRound(tx, args) {
|
|
1621
|
-
const _args = [];
|
|
1622
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
1623
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1624
|
-
// @ts-ignore
|
|
1625
|
-
return tx.moveCall({
|
|
1626
|
-
target: "0xdee9::math::div_round",
|
|
1627
|
-
arguments: _args,
|
|
1628
|
-
});
|
|
1629
|
-
}
|
|
1630
|
-
builder.divRound = divRound;
|
|
1631
|
-
function mul(tx, args) {
|
|
1632
|
-
const _args = [];
|
|
1633
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
1634
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1635
|
-
// @ts-ignore
|
|
1636
|
-
return tx.moveCall({
|
|
1637
|
-
target: "0xdee9::math::mul",
|
|
1638
|
-
arguments: _args,
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
builder.mul = mul;
|
|
1642
|
-
function mulRound(tx, args) {
|
|
1643
|
-
const _args = [];
|
|
1644
|
-
_args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
|
|
1645
|
-
_args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
|
|
1646
|
-
// @ts-ignore
|
|
1647
|
-
return tx.moveCall({
|
|
1648
|
-
target: "0xdee9::math::mul_round",
|
|
1649
|
-
arguments: _args,
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
builder.mulRound = mulRound;
|
|
1653
|
-
})(builder = math.builder || (math.builder = {}));
|
|
1654
|
-
let view;
|
|
1655
|
-
(function (view) {
|
|
1656
|
-
async function divRound(client, args) {
|
|
1657
|
-
const tx = new TransactionBlock();
|
|
1658
|
-
builder.divRound(tx, args);
|
|
1659
|
-
const res = await client.devInspectTransactionBlock({
|
|
1660
|
-
transactionBlock: tx,
|
|
1661
|
-
sender: ZERO_ADDRESS,
|
|
1662
|
-
});
|
|
1663
|
-
return res;
|
|
1664
|
-
}
|
|
1665
|
-
view.divRound = divRound;
|
|
1666
|
-
async function mul(client, args) {
|
|
1667
|
-
const tx = new TransactionBlock();
|
|
1668
|
-
builder.mul(tx, args);
|
|
1669
|
-
const res = await client.devInspectTransactionBlock({
|
|
1670
|
-
transactionBlock: tx,
|
|
1671
|
-
sender: ZERO_ADDRESS,
|
|
1672
|
-
});
|
|
1673
|
-
return res;
|
|
1674
|
-
}
|
|
1675
|
-
view.mul = mul;
|
|
1676
|
-
async function mulRound(client, args) {
|
|
1677
|
-
const tx = new TransactionBlock();
|
|
1678
|
-
builder.mulRound(tx, args);
|
|
1679
|
-
const res = await client.devInspectTransactionBlock({
|
|
1680
|
-
transactionBlock: tx,
|
|
1681
|
-
sender: ZERO_ADDRESS,
|
|
1682
|
-
});
|
|
1683
|
-
return res;
|
|
1684
|
-
}
|
|
1685
|
-
view.mulRound = mulRound;
|
|
1686
|
-
})(view = math.view || (math.view = {}));
|
|
1687
|
-
})(math || (math = {}));
|
|
1688
|
-
const MODULES = JSON.parse('{"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"]}}}}');
|
|
1689
|
-
export function loadAllTypes(coder) {
|
|
1690
|
-
_0x2.loadAllTypes(coder);
|
|
1691
|
-
_0x1.loadAllTypes(coder);
|
|
1692
|
-
for (const m of Object.values(MODULES)) {
|
|
1693
|
-
coder.load(m);
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
loadAllTypes(defaultMoveCoder());
|
|
1697
|
-
//# sourceMappingURL=0xdee9.js.map
|