@typemove/sui 1.0.0-rc.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/Readme.md +128 -0
  2. package/builtin/package.json +5 -0
  3. package/codegen/package.json +5 -0
  4. package/dist/cjs/builtin/0x1.d.ts +495 -0
  5. package/dist/cjs/builtin/0x1.d.ts.map +1 -0
  6. package/dist/cjs/builtin/0x1.js +2083 -0
  7. package/dist/cjs/builtin/0x1.js.map +1 -0
  8. package/dist/cjs/builtin/0x2.d.ts +2929 -0
  9. package/dist/cjs/builtin/0x2.d.ts.map +1 -0
  10. package/dist/cjs/builtin/0x2.js +9641 -0
  11. package/dist/cjs/builtin/0x2.js.map +1 -0
  12. package/dist/cjs/builtin/0x3.d.ts +1207 -0
  13. package/dist/cjs/builtin/0x3.d.ts.map +1 -0
  14. package/dist/cjs/builtin/0x3.js +2625 -0
  15. package/dist/cjs/builtin/0x3.js.map +1 -0
  16. package/dist/cjs/builtin/index.d.ts +4 -0
  17. package/dist/cjs/builtin/index.d.ts.map +1 -0
  18. package/dist/cjs/builtin/index.js +11 -0
  19. package/dist/cjs/builtin/index.js.map +1 -0
  20. package/dist/cjs/codegen/codegen.d.ts +19 -0
  21. package/dist/cjs/codegen/codegen.d.ts.map +1 -0
  22. package/dist/cjs/codegen/codegen.js +177 -0
  23. package/dist/cjs/codegen/codegen.js.map +1 -0
  24. package/dist/cjs/codegen/index.d.ts +2 -0
  25. package/dist/cjs/codegen/index.d.ts.map +1 -0
  26. package/dist/cjs/codegen/index.js +5 -0
  27. package/dist/cjs/codegen/index.js.map +1 -0
  28. package/dist/cjs/index.d.ts +4 -0
  29. package/dist/cjs/index.d.ts.map +1 -0
  30. package/dist/cjs/index.js +10 -0
  31. package/dist/cjs/index.js.map +1 -0
  32. package/dist/cjs/models.d.ts +12 -0
  33. package/dist/cjs/models.d.ts.map +1 -0
  34. package/dist/cjs/models.js +8 -0
  35. package/dist/cjs/models.js.map +1 -0
  36. package/dist/cjs/move-coder.d.ts +16 -0
  37. package/dist/cjs/move-coder.d.ts.map +1 -0
  38. package/dist/cjs/move-coder.js +104 -0
  39. package/dist/cjs/move-coder.js.map +1 -0
  40. package/dist/cjs/package.json +3 -0
  41. package/dist/cjs/sui-chain-adapter.d.ts +12 -0
  42. package/dist/cjs/sui-chain-adapter.d.ts.map +1 -0
  43. package/dist/cjs/sui-chain-adapter.js +86 -0
  44. package/dist/cjs/sui-chain-adapter.js.map +1 -0
  45. package/dist/cjs/to-internal.d.ts +4 -0
  46. package/dist/cjs/to-internal.d.ts.map +1 -0
  47. package/dist/cjs/to-internal.js +85 -0
  48. package/dist/cjs/to-internal.js.map +1 -0
  49. package/dist/cjs/utils.d.ts +15 -0
  50. package/dist/cjs/utils.d.ts.map +1 -0
  51. package/dist/cjs/utils.js +49 -0
  52. package/dist/cjs/utils.js.map +1 -0
  53. package/dist/esm/builtin/0x1.d.ts +495 -0
  54. package/dist/esm/builtin/0x1.d.ts.map +1 -0
  55. package/dist/esm/builtin/0x1.js +2079 -0
  56. package/dist/esm/builtin/0x1.js.map +1 -0
  57. package/dist/esm/builtin/0x2.d.ts +2929 -0
  58. package/dist/esm/builtin/0x2.d.ts.map +1 -0
  59. package/dist/esm/builtin/0x2.js +9636 -0
  60. package/dist/esm/builtin/0x2.js.map +1 -0
  61. package/dist/esm/builtin/0x3.d.ts +1207 -0
  62. package/dist/esm/builtin/0x3.d.ts.map +1 -0
  63. package/dist/esm/builtin/0x3.js +2620 -0
  64. package/dist/esm/builtin/0x3.js.map +1 -0
  65. package/dist/esm/builtin/index.d.ts +4 -0
  66. package/dist/esm/builtin/index.d.ts.map +1 -0
  67. package/dist/esm/builtin/index.js +7 -0
  68. package/dist/esm/builtin/index.js.map +1 -0
  69. package/dist/esm/codegen/codegen.d.ts +19 -0
  70. package/dist/esm/codegen/codegen.d.ts.map +1 -0
  71. package/dist/esm/codegen/codegen.js +171 -0
  72. package/dist/esm/codegen/codegen.js.map +1 -0
  73. package/dist/esm/codegen/index.d.ts +2 -0
  74. package/dist/esm/codegen/index.d.ts.map +1 -0
  75. package/dist/esm/codegen/index.js +2 -0
  76. package/dist/esm/codegen/index.js.map +1 -0
  77. package/dist/esm/codegen/run.d.ts +2 -0
  78. package/dist/esm/codegen/run.d.ts.map +1 -0
  79. package/dist/esm/codegen/run.js +19 -0
  80. package/dist/esm/codegen/run.js.map +1 -0
  81. package/dist/esm/index.d.ts +4 -0
  82. package/dist/esm/index.d.ts.map +1 -0
  83. package/dist/{index.js → esm/index.js} +0 -1
  84. package/dist/esm/index.js.map +1 -0
  85. package/dist/esm/models.d.ts +12 -0
  86. package/dist/esm/models.d.ts.map +1 -0
  87. package/dist/esm/models.js +5 -0
  88. package/dist/esm/models.js.map +1 -0
  89. package/dist/esm/move-coder.d.ts +16 -0
  90. package/dist/esm/move-coder.d.ts.map +1 -0
  91. package/dist/esm/move-coder.js +99 -0
  92. package/dist/esm/move-coder.js.map +1 -0
  93. package/dist/esm/sui-chain-adapter.d.ts +12 -0
  94. package/dist/esm/sui-chain-adapter.d.ts.map +1 -0
  95. package/dist/esm/sui-chain-adapter.js +82 -0
  96. package/dist/esm/sui-chain-adapter.js.map +1 -0
  97. package/dist/esm/to-internal.d.ts +4 -0
  98. package/dist/esm/to-internal.d.ts.map +1 -0
  99. package/dist/esm/to-internal.js +81 -0
  100. package/dist/esm/to-internal.js.map +1 -0
  101. package/dist/esm/utils.d.ts +15 -0
  102. package/dist/esm/utils.d.ts.map +1 -0
  103. package/dist/esm/utils.js +45 -0
  104. package/dist/esm/utils.js.map +1 -0
  105. package/package.json +26 -10
  106. package/src/builtin/0x1.ts +1359 -231
  107. package/src/builtin/0x2.ts +6364 -1302
  108. package/src/builtin/0x3.ts +1909 -495
  109. package/src/codegen/codegen.ts +63 -49
  110. package/src/index.ts +0 -2
  111. package/src/models.ts +9 -12
  112. package/src/move-coder.ts +6 -20
  113. package/src/sui-chain-adapter.ts +13 -15
  114. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +98 -30
  115. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +1084 -282
  116. package/src/tests/types/testnet/0xdee9.ts +1112 -308
  117. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +3973 -1201
  118. package/src/to-internal.ts +12 -32
  119. package/src/module-client.ts +0 -23
@@ -5,14 +5,14 @@
5
5
  /* Generated modules for account 0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a */
6
6
 
7
7
  import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
8
- import { MoveCoder, defaultMoveCoder, TypedEventInstance } from "@typemove/sui";
9
- import { SuiAddress, ObjectId, ModuleClient } from "@typemove/sui";
8
+ import { MoveCoder, TypedEventInstance } from "@typemove/sui";
10
9
 
11
- import {
12
- TransactionBlock,
13
- TransactionArgument,
14
- ObjectCallArg,
15
- } from "@mysten/sui.js";
10
+ import { defaultMoveCoder } from "@typemove/sui";
11
+
12
+ import { ZERO_ADDRESS } from "@typemove/sui";
13
+ import { TransactionBlock } from "@mysten/sui.js/transactions";
14
+ import { ObjectCallArg, TransactionArgument } from "@mysten/sui.js";
15
+ import { SuiClient } from "@mysten/sui.js/client";
16
16
 
17
17
  import { _0x2 } from "@typemove/sui/builtin";
18
18
  import { _0x1 } from "@typemove/sui/builtin";
@@ -37,17 +37,17 @@ export namespace comparator {
37
37
  export function compare<T0 = any>(
38
38
  tx: TransactionBlock,
39
39
  args: [
40
- ObjectId | ObjectCallArg | TransactionArgument,
41
- ObjectId | ObjectCallArg | TransactionArgument
40
+ string | ObjectCallArg | TransactionArgument,
41
+ string | ObjectCallArg | TransactionArgument,
42
42
  ],
43
- typeArguments: [TypeDescriptor<T0> | string]
43
+ typeArguments: [TypeDescriptor<T0> | string],
44
44
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
45
45
  const _args: any[] = [];
46
46
  _args.push(
47
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
47
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
48
48
  );
49
49
  _args.push(
50
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
50
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
51
51
  );
52
52
 
53
53
  // @ts-ignore
@@ -65,26 +65,26 @@ export namespace comparator {
65
65
  export function compareU8Vector(
66
66
  tx: TransactionBlock,
67
67
  args: [
68
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
69
- (ObjectId | ObjectCallArg)[] | TransactionArgument
70
- ]
68
+ (string | ObjectCallArg)[] | TransactionArgument,
69
+ (string | ObjectCallArg)[] | TransactionArgument,
70
+ ],
71
71
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
72
72
  const _args: any[] = [];
73
73
  _args.push(
74
74
  TransactionArgument.is(args[0])
75
75
  ? args[0]
76
76
  : tx.makeMoveVec({
77
- objects: args[0].map((a) => tx.object(a)),
77
+ objects: args[0].map((a: any) => tx.object(a)),
78
78
  // type: TODO
79
- })
79
+ }),
80
80
  );
81
81
  _args.push(
82
82
  TransactionArgument.is(args[1])
83
83
  ? args[1]
84
84
  : tx.makeMoveVec({
85
- objects: args[1].map((a) => tx.object(a)),
85
+ objects: args[1].map((a: any) => tx.object(a)),
86
86
  // type: TODO
87
- })
87
+ }),
88
88
  );
89
89
 
90
90
  // @ts-ignore
@@ -96,11 +96,11 @@ export namespace comparator {
96
96
  }
97
97
  export function isEqual(
98
98
  tx: TransactionBlock,
99
- args: [ObjectId | ObjectCallArg | TransactionArgument]
99
+ args: [string | ObjectCallArg | TransactionArgument],
100
100
  ): TransactionArgument & [TransactionArgument] {
101
101
  const _args: any[] = [];
102
102
  _args.push(
103
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
103
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
104
104
  );
105
105
 
106
106
  // @ts-ignore
@@ -112,11 +112,11 @@ export namespace comparator {
112
112
  }
113
113
  export function isGreaterThan(
114
114
  tx: TransactionBlock,
115
- args: [ObjectId | ObjectCallArg | TransactionArgument]
115
+ args: [string | ObjectCallArg | TransactionArgument],
116
116
  ): TransactionArgument & [TransactionArgument] {
117
117
  const _args: any[] = [];
118
118
  _args.push(
119
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
119
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
120
120
  );
121
121
 
122
122
  // @ts-ignore
@@ -128,11 +128,11 @@ export namespace comparator {
128
128
  }
129
129
  export function isSmallerThan(
130
130
  tx: TransactionBlock,
131
- args: [ObjectId | ObjectCallArg | TransactionArgument]
131
+ args: [string | ObjectCallArg | TransactionArgument],
132
132
  ): TransactionArgument & [TransactionArgument] {
133
133
  const _args: any[] = [];
134
134
  _args.push(
135
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
135
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
136
136
  );
137
137
 
138
138
  // @ts-ignore
@@ -143,13 +143,82 @@ export namespace comparator {
143
143
  });
144
144
  }
145
145
  }
146
+ export namespace view {
147
+ export async function compare<T0 = any>(
148
+ client: SuiClient,
149
+ args: [
150
+ string | ObjectCallArg | TransactionArgument,
151
+ string | ObjectCallArg | TransactionArgument,
152
+ ],
153
+ typeArguments: [TypeDescriptor<T0> | string],
154
+ ) {
155
+ const tx = new TransactionBlock();
156
+ builder.compare(tx, args, typeArguments);
157
+ const res = await client.devInspectTransactionBlock({
158
+ transactionBlock: tx,
159
+ sender: ZERO_ADDRESS,
160
+ });
161
+ return res;
162
+ }
163
+ export async function compareU8Vector(
164
+ client: SuiClient,
165
+ args: [
166
+ (string | ObjectCallArg)[] | TransactionArgument,
167
+ (string | ObjectCallArg)[] | TransactionArgument,
168
+ ],
169
+ ) {
170
+ const tx = new TransactionBlock();
171
+ builder.compareU8Vector(tx, args);
172
+ const res = await client.devInspectTransactionBlock({
173
+ transactionBlock: tx,
174
+ sender: ZERO_ADDRESS,
175
+ });
176
+ return res;
177
+ }
178
+ export async function isEqual(
179
+ client: SuiClient,
180
+ args: [string | ObjectCallArg | TransactionArgument],
181
+ ) {
182
+ const tx = new TransactionBlock();
183
+ builder.isEqual(tx, args);
184
+ const res = await client.devInspectTransactionBlock({
185
+ transactionBlock: tx,
186
+ sender: ZERO_ADDRESS,
187
+ });
188
+ return res;
189
+ }
190
+ export async function isGreaterThan(
191
+ client: SuiClient,
192
+ args: [string | ObjectCallArg | TransactionArgument],
193
+ ) {
194
+ const tx = new TransactionBlock();
195
+ builder.isGreaterThan(tx, args);
196
+ const res = await client.devInspectTransactionBlock({
197
+ transactionBlock: tx,
198
+ sender: ZERO_ADDRESS,
199
+ });
200
+ return res;
201
+ }
202
+ export async function isSmallerThan(
203
+ client: SuiClient,
204
+ args: [string | ObjectCallArg | TransactionArgument],
205
+ ) {
206
+ const tx = new TransactionBlock();
207
+ builder.isSmallerThan(tx, args);
208
+ const res = await client.devInspectTransactionBlock({
209
+ transactionBlock: tx,
210
+ sender: ZERO_ADDRESS,
211
+ });
212
+ return res;
213
+ }
214
+ }
146
215
  }
147
216
 
148
217
  export namespace math_utils {
149
218
  export namespace builder {
150
219
  export function max(
151
220
  tx: TransactionBlock,
152
- args: [bigint | TransactionArgument, bigint | TransactionArgument]
221
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
153
222
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
154
223
  const _args: any[] = [];
155
224
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -164,7 +233,7 @@ export namespace math_utils {
164
233
  }
165
234
  export function maxU64(
166
235
  tx: TransactionBlock,
167
- args: [bigint | TransactionArgument, bigint | TransactionArgument]
236
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
168
237
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
169
238
  const _args: any[] = [];
170
239
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -179,7 +248,7 @@ export namespace math_utils {
179
248
  }
180
249
  export function min(
181
250
  tx: TransactionBlock,
182
- args: [bigint | TransactionArgument, bigint | TransactionArgument]
251
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
183
252
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
184
253
  const _args: any[] = [];
185
254
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -194,7 +263,7 @@ export namespace math_utils {
194
263
  }
195
264
  export function pow(
196
265
  tx: TransactionBlock,
197
- args: [bigint | TransactionArgument, number | TransactionArgument]
266
+ args: [bigint | TransactionArgument, number | TransactionArgument],
198
267
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
199
268
  const _args: any[] = [];
200
269
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -209,7 +278,7 @@ export namespace math_utils {
209
278
  }
210
279
  export function sqrt(
211
280
  tx: TransactionBlock,
212
- args: [bigint | TransactionArgument]
281
+ args: [bigint | TransactionArgument],
213
282
  ): TransactionArgument & [TransactionArgument] {
214
283
  const _args: any[] = [];
215
284
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -223,7 +292,7 @@ export namespace math_utils {
223
292
  }
224
293
  export function sqrtU256(
225
294
  tx: TransactionBlock,
226
- args: [bigint | TransactionArgument]
295
+ args: [bigint | TransactionArgument],
227
296
  ): TransactionArgument & [TransactionArgument] {
228
297
  const _args: any[] = [];
229
298
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -236,6 +305,80 @@ export namespace math_utils {
236
305
  });
237
306
  }
238
307
  }
308
+ export namespace view {
309
+ export async function max(
310
+ client: SuiClient,
311
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
312
+ ) {
313
+ const tx = new TransactionBlock();
314
+ builder.max(tx, args);
315
+ const res = await client.devInspectTransactionBlock({
316
+ transactionBlock: tx,
317
+ sender: ZERO_ADDRESS,
318
+ });
319
+ return res;
320
+ }
321
+ export async function maxU64(
322
+ client: SuiClient,
323
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
324
+ ) {
325
+ const tx = new TransactionBlock();
326
+ builder.maxU64(tx, args);
327
+ const res = await client.devInspectTransactionBlock({
328
+ transactionBlock: tx,
329
+ sender: ZERO_ADDRESS,
330
+ });
331
+ return res;
332
+ }
333
+ export async function min(
334
+ client: SuiClient,
335
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
336
+ ) {
337
+ const tx = new TransactionBlock();
338
+ builder.min(tx, args);
339
+ const res = await client.devInspectTransactionBlock({
340
+ transactionBlock: tx,
341
+ sender: ZERO_ADDRESS,
342
+ });
343
+ return res;
344
+ }
345
+ export async function pow(
346
+ client: SuiClient,
347
+ args: [bigint | TransactionArgument, number | TransactionArgument],
348
+ ) {
349
+ const tx = new TransactionBlock();
350
+ builder.pow(tx, args);
351
+ const res = await client.devInspectTransactionBlock({
352
+ transactionBlock: tx,
353
+ sender: ZERO_ADDRESS,
354
+ });
355
+ return res;
356
+ }
357
+ export async function sqrt(
358
+ client: SuiClient,
359
+ args: [bigint | TransactionArgument],
360
+ ) {
361
+ const tx = new TransactionBlock();
362
+ builder.sqrt(tx, args);
363
+ const res = await client.devInspectTransactionBlock({
364
+ transactionBlock: tx,
365
+ sender: ZERO_ADDRESS,
366
+ });
367
+ return res;
368
+ }
369
+ export async function sqrtU256(
370
+ client: SuiClient,
371
+ args: [bigint | TransactionArgument],
372
+ ) {
373
+ const tx = new TransactionBlock();
374
+ builder.sqrtU256(tx, args);
375
+ const res = await client.devInspectTransactionBlock({
376
+ transactionBlock: tx,
377
+ sender: ZERO_ADDRESS,
378
+ });
379
+ return res;
380
+ }
381
+ }
239
382
  }
240
383
 
241
384
  export namespace pool {
@@ -255,8 +398,8 @@ export namespace pool {
255
398
  }
256
399
 
257
400
  export interface FeeToSet {
258
- fee_to: SuiAddress;
259
- caller: SuiAddress;
401
+ fee_to: string;
402
+ caller: string;
260
403
  }
261
404
 
262
405
  export namespace FeeToSet {
@@ -276,7 +419,7 @@ export namespace pool {
276
419
  }
277
420
 
278
421
  export interface LiquidityAdded<T0, T1> {
279
- user: SuiAddress;
422
+ user: string;
280
423
  first_amount: bigint;
281
424
  second_amount: bigint;
282
425
  first_reserve: bigint;
@@ -290,12 +433,12 @@ export namespace pool {
290
433
  "0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a::pool::LiquidityAdded";
291
434
 
292
435
  const TYPE = new TypeDescriptor<LiquidityAdded<any, any>>(
293
- LiquidityAdded.TYPE_QNAME
436
+ LiquidityAdded.TYPE_QNAME,
294
437
  );
295
438
 
296
439
  export function type<T0, T1>(
297
440
  arg0: TypeDescriptor<T0> = ANY_TYPE,
298
- arg1: TypeDescriptor<T1> = ANY_TYPE
441
+ arg1: TypeDescriptor<T1> = ANY_TYPE,
299
442
  ): TypeDescriptor<LiquidityAdded<T0, T1>> {
300
443
  return TYPE.apply(arg0, arg1);
301
444
  }
@@ -308,7 +451,7 @@ export namespace pool {
308
451
  }
309
452
 
310
453
  export interface LiquidityRemoved<T0, T1> {
311
- user: SuiAddress;
454
+ user: string;
312
455
  first_amount: bigint;
313
456
  second_amount: bigint;
314
457
  first_reserve: bigint;
@@ -322,12 +465,12 @@ export namespace pool {
322
465
  "0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a::pool::LiquidityRemoved";
323
466
 
324
467
  const TYPE = new TypeDescriptor<LiquidityRemoved<any, any>>(
325
- LiquidityRemoved.TYPE_QNAME
468
+ LiquidityRemoved.TYPE_QNAME,
326
469
  );
327
470
 
328
471
  export function type<T0, T1>(
329
472
  arg0: TypeDescriptor<T0> = ANY_TYPE,
330
- arg1: TypeDescriptor<T1> = ANY_TYPE
473
+ arg1: TypeDescriptor<T1> = ANY_TYPE,
331
474
  ): TypeDescriptor<LiquidityRemoved<T0, T1>> {
332
475
  return TYPE.apply(arg0, arg1);
333
476
  }
@@ -355,14 +498,14 @@ export namespace pool {
355
498
 
356
499
  export function type<T0, T1>(
357
500
  arg0: TypeDescriptor<T0> = ANY_TYPE,
358
- arg1: TypeDescriptor<T1> = ANY_TYPE
501
+ arg1: TypeDescriptor<T1> = ANY_TYPE,
359
502
  ): TypeDescriptor<Pool<T0, T1>> {
360
503
  return TYPE.apply(arg0, arg1);
361
504
  }
362
505
  }
363
506
 
364
507
  export interface PoolCreated<T0, T1> {
365
- pool: SuiAddress;
508
+ pool: string;
366
509
  first_amount: bigint;
367
510
  second_amount: bigint;
368
511
  wisp_lp_amount: bigint;
@@ -373,12 +516,12 @@ export namespace pool {
373
516
  "0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a::pool::PoolCreated";
374
517
 
375
518
  const TYPE = new TypeDescriptor<PoolCreated<any, any>>(
376
- PoolCreated.TYPE_QNAME
519
+ PoolCreated.TYPE_QNAME,
377
520
  );
378
521
 
379
522
  export function type<T0, T1>(
380
523
  arg0: TypeDescriptor<T0> = ANY_TYPE,
381
- arg1: TypeDescriptor<T1> = ANY_TYPE
524
+ arg1: TypeDescriptor<T1> = ANY_TYPE,
382
525
  ): TypeDescriptor<PoolCreated<T0, T1>> {
383
526
  return TYPE.apply(arg0, arg1);
384
527
  }
@@ -413,7 +556,7 @@ export namespace pool {
413
556
 
414
557
  export interface PoolRegistry {
415
558
  id: _0x2.object_.UID;
416
- fee_to: SuiAddress;
559
+ fee_to: string;
417
560
  pools: _0x2.object_bag.ObjectBag;
418
561
  }
419
562
 
@@ -429,7 +572,7 @@ export namespace pool {
429
572
  }
430
573
 
431
574
  export interface TokenSwapped<T0, T1> {
432
- user: SuiAddress;
575
+ user: string;
433
576
  first_amount_in: bigint;
434
577
  second_amount_in: bigint;
435
578
  first_amount_out: bigint;
@@ -443,12 +586,12 @@ export namespace pool {
443
586
  "0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a::pool::TokenSwapped";
444
587
 
445
588
  const TYPE = new TypeDescriptor<TokenSwapped<any, any>>(
446
- TokenSwapped.TYPE_QNAME
589
+ TokenSwapped.TYPE_QNAME,
447
590
  );
448
591
 
449
592
  export function type<T0, T1>(
450
593
  arg0: TypeDescriptor<T0> = ANY_TYPE,
451
- arg1: TypeDescriptor<T1> = ANY_TYPE
594
+ arg1: TypeDescriptor<T1> = ANY_TYPE,
452
595
  ): TypeDescriptor<TokenSwapped<T0, T1>> {
453
596
  return TYPE.apply(arg0, arg1);
454
597
  }
@@ -472,7 +615,7 @@ export namespace pool {
472
615
 
473
616
  export function type<T0, T1>(
474
617
  arg0: TypeDescriptor<T0> = ANY_TYPE,
475
- arg1: TypeDescriptor<T1> = ANY_TYPE
618
+ arg1: TypeDescriptor<T1> = ANY_TYPE,
476
619
  ): TypeDescriptor<WISPLP<T0, T1>> {
477
620
  return TYPE.apply(arg0, arg1);
478
621
  }
@@ -482,16 +625,16 @@ export namespace pool {
482
625
  export function addLiquidity<T0 = any, T1 = any>(
483
626
  tx: TransactionBlock,
484
627
  args: [
485
- ObjectId | ObjectCallArg | TransactionArgument,
486
- ObjectId | ObjectCallArg | TransactionArgument,
487
- ObjectId | ObjectCallArg | TransactionArgument,
628
+ string | ObjectCallArg | TransactionArgument,
629
+ string | ObjectCallArg | TransactionArgument,
630
+ string | ObjectCallArg | TransactionArgument,
488
631
  bigint | TransactionArgument,
489
632
  bigint | TransactionArgument,
490
633
  bigint | TransactionArgument,
491
634
  bigint | TransactionArgument,
492
- ObjectId | ObjectCallArg | TransactionArgument
635
+ string | ObjectCallArg | TransactionArgument,
493
636
  ],
494
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
637
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
495
638
  ): TransactionArgument &
496
639
  [
497
640
  TransactionArgument,
@@ -501,24 +644,24 @@ export namespace pool {
501
644
  TransactionArgument,
502
645
  TransactionArgument,
503
646
  TransactionArgument,
504
- TransactionArgument
647
+ TransactionArgument,
505
648
  ] {
506
649
  const _args: any[] = [];
507
650
  _args.push(
508
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
651
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
509
652
  );
510
653
  _args.push(
511
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
654
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
512
655
  );
513
656
  _args.push(
514
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
657
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
515
658
  );
516
659
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
517
660
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
518
661
  _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
519
662
  _args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
520
663
  _args.push(
521
- TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7])
664
+ TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
522
665
  );
523
666
 
524
667
  // @ts-ignore
@@ -538,12 +681,12 @@ export namespace pool {
538
681
  }
539
682
  export function borrowMutPool<T0 = any, T1 = any>(
540
683
  tx: TransactionBlock,
541
- args: [ObjectId | ObjectCallArg | TransactionArgument],
542
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
684
+ args: [string | ObjectCallArg | TransactionArgument],
685
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
543
686
  ): TransactionArgument & [TransactionArgument] {
544
687
  const _args: any[] = [];
545
688
  _args.push(
546
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
689
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
547
690
  );
548
691
 
549
692
  // @ts-ignore
@@ -563,12 +706,12 @@ export namespace pool {
563
706
  }
564
707
  export function borrowPool<T0 = any, T1 = any>(
565
708
  tx: TransactionBlock,
566
- args: [ObjectId | ObjectCallArg | TransactionArgument],
567
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
709
+ args: [string | ObjectCallArg | TransactionArgument],
710
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
568
711
  ): TransactionArgument & [TransactionArgument] {
569
712
  const _args: any[] = [];
570
713
  _args.push(
571
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
714
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
572
715
  );
573
716
 
574
717
  // @ts-ignore
@@ -589,14 +732,14 @@ export namespace pool {
589
732
  export function createPool<T0 = any, T1 = any>(
590
733
  tx: TransactionBlock,
591
734
  args: [
592
- ObjectId | ObjectCallArg | TransactionArgument,
593
- ObjectId | ObjectCallArg | TransactionArgument,
594
- ObjectId | ObjectCallArg | TransactionArgument,
735
+ string | ObjectCallArg | TransactionArgument,
736
+ string | ObjectCallArg | TransactionArgument,
737
+ string | ObjectCallArg | TransactionArgument,
595
738
  bigint | TransactionArgument,
596
739
  bigint | TransactionArgument,
597
- ObjectId | ObjectCallArg | TransactionArgument
740
+ string | ObjectCallArg | TransactionArgument,
598
741
  ],
599
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
742
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
600
743
  ): TransactionArgument &
601
744
  [
602
745
  TransactionArgument,
@@ -604,22 +747,22 @@ export namespace pool {
604
747
  TransactionArgument,
605
748
  TransactionArgument,
606
749
  TransactionArgument,
607
- TransactionArgument
750
+ TransactionArgument,
608
751
  ] {
609
752
  const _args: any[] = [];
610
753
  _args.push(
611
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
754
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
612
755
  );
613
756
  _args.push(
614
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
757
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
615
758
  );
616
759
  _args.push(
617
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
760
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
618
761
  );
619
762
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
620
763
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
621
764
  _args.push(
622
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
765
+ TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
623
766
  );
624
767
 
625
768
  // @ts-ignore
@@ -641,8 +784,8 @@ export namespace pool {
641
784
  tx: TransactionBlock,
642
785
  args: [
643
786
  _0x1.type_name.TypeName | TransactionArgument,
644
- _0x1.type_name.TypeName | TransactionArgument
645
- ]
787
+ _0x1.type_name.TypeName | TransactionArgument,
788
+ ],
646
789
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
647
790
  const _args: any[] = [];
648
791
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -657,12 +800,12 @@ export namespace pool {
657
800
  }
658
801
  export function getAmounts<T0 = any, T1 = any>(
659
802
  tx: TransactionBlock,
660
- args: [ObjectId | ObjectCallArg | TransactionArgument],
661
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
803
+ args: [string | ObjectCallArg | TransactionArgument],
804
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
662
805
  ): TransactionArgument & [TransactionArgument] {
663
806
  const _args: any[] = [];
664
807
  _args.push(
665
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
808
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
666
809
  );
667
810
 
668
811
  // @ts-ignore
@@ -683,16 +826,16 @@ export namespace pool {
683
826
  export function getInputAmount<T0 = any, T1 = any>(
684
827
  tx: TransactionBlock,
685
828
  args: [
686
- ObjectId | ObjectCallArg | TransactionArgument,
829
+ string | ObjectCallArg | TransactionArgument,
687
830
  bigint | TransactionArgument,
688
- Boolean | TransactionArgument
831
+ Boolean | TransactionArgument,
689
832
  ],
690
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
833
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
691
834
  ): TransactionArgument &
692
835
  [TransactionArgument, TransactionArgument, TransactionArgument] {
693
836
  const _args: any[] = [];
694
837
  _args.push(
695
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
838
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
696
839
  );
697
840
  _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
698
841
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
@@ -715,16 +858,16 @@ export namespace pool {
715
858
  export function getOutputAmount<T0 = any, T1 = any>(
716
859
  tx: TransactionBlock,
717
860
  args: [
718
- ObjectId | ObjectCallArg | TransactionArgument,
861
+ string | ObjectCallArg | TransactionArgument,
719
862
  bigint | TransactionArgument,
720
- Boolean | TransactionArgument
863
+ Boolean | TransactionArgument,
721
864
  ],
722
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
865
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
723
866
  ): TransactionArgument &
724
867
  [TransactionArgument, TransactionArgument, TransactionArgument] {
725
868
  const _args: any[] = [];
726
869
  _args.push(
727
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
870
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
728
871
  );
729
872
  _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
730
873
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
@@ -746,12 +889,12 @@ export namespace pool {
746
889
  }
747
890
  export function getPoolData<T0 = any, T1 = any>(
748
891
  tx: TransactionBlock,
749
- args: [ObjectId | ObjectCallArg | TransactionArgument],
750
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
892
+ args: [string | ObjectCallArg | TransactionArgument],
893
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
751
894
  ): TransactionArgument & [TransactionArgument] {
752
895
  const _args: any[] = [];
753
896
  _args.push(
754
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
897
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
755
898
  );
756
899
 
757
900
  // @ts-ignore
@@ -771,12 +914,12 @@ export namespace pool {
771
914
  }
772
915
  export function isPoolCreated<T0 = any, T1 = any>(
773
916
  tx: TransactionBlock,
774
- args: [ObjectId | ObjectCallArg | TransactionArgument],
775
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
917
+ args: [string | ObjectCallArg | TransactionArgument],
918
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
776
919
  ): TransactionArgument & [TransactionArgument] {
777
920
  const _args: any[] = [];
778
921
  _args.push(
779
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
922
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
780
923
  );
781
924
 
782
925
  // @ts-ignore
@@ -796,12 +939,12 @@ export namespace pool {
796
939
  }
797
940
  export function isPoolCreatedSorted<T0 = any, T1 = any>(
798
941
  tx: TransactionBlock,
799
- args: [ObjectId | ObjectCallArg | TransactionArgument],
800
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
942
+ args: [string | ObjectCallArg | TransactionArgument],
943
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
801
944
  ): TransactionArgument & [TransactionArgument] {
802
945
  const _args: any[] = [];
803
946
  _args.push(
804
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
947
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
805
948
  );
806
949
 
807
950
  // @ts-ignore
@@ -822,14 +965,14 @@ export namespace pool {
822
965
  export function processSwapExactInput<T0 = any, T1 = any>(
823
966
  tx: TransactionBlock,
824
967
  args: [
825
- ObjectId | ObjectCallArg | TransactionArgument,
826
- ObjectId | ObjectCallArg | TransactionArgument,
827
- ObjectId | ObjectCallArg | TransactionArgument,
968
+ string | ObjectCallArg | TransactionArgument,
969
+ string | ObjectCallArg | TransactionArgument,
970
+ string | ObjectCallArg | TransactionArgument,
828
971
  bigint | TransactionArgument,
829
972
  Boolean | TransactionArgument,
830
- ObjectId | ObjectCallArg | TransactionArgument
973
+ string | ObjectCallArg | TransactionArgument,
831
974
  ],
832
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
975
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
833
976
  ): TransactionArgument &
834
977
  [
835
978
  TransactionArgument,
@@ -837,22 +980,22 @@ export namespace pool {
837
980
  TransactionArgument,
838
981
  TransactionArgument,
839
982
  TransactionArgument,
840
- TransactionArgument
983
+ TransactionArgument,
841
984
  ] {
842
985
  const _args: any[] = [];
843
986
  _args.push(
844
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
987
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
845
988
  );
846
989
  _args.push(
847
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
990
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
848
991
  );
849
992
  _args.push(
850
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
993
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
851
994
  );
852
995
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
853
996
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
854
997
  _args.push(
855
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
998
+ TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
856
999
  );
857
1000
 
858
1001
  // @ts-ignore
@@ -873,14 +1016,14 @@ export namespace pool {
873
1016
  export function processSwapExactOutput<T0 = any, T1 = any>(
874
1017
  tx: TransactionBlock,
875
1018
  args: [
876
- ObjectId | ObjectCallArg | TransactionArgument,
877
- ObjectId | ObjectCallArg | TransactionArgument,
878
- ObjectId | ObjectCallArg | TransactionArgument,
1019
+ string | ObjectCallArg | TransactionArgument,
1020
+ string | ObjectCallArg | TransactionArgument,
1021
+ string | ObjectCallArg | TransactionArgument,
879
1022
  bigint | TransactionArgument,
880
1023
  Boolean | TransactionArgument,
881
- ObjectId | ObjectCallArg | TransactionArgument
1024
+ string | ObjectCallArg | TransactionArgument,
882
1025
  ],
883
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1026
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
884
1027
  ): TransactionArgument &
885
1028
  [
886
1029
  TransactionArgument,
@@ -888,22 +1031,22 @@ export namespace pool {
888
1031
  TransactionArgument,
889
1032
  TransactionArgument,
890
1033
  TransactionArgument,
891
- TransactionArgument
1034
+ TransactionArgument,
892
1035
  ] {
893
1036
  const _args: any[] = [];
894
1037
  _args.push(
895
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1038
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
896
1039
  );
897
1040
  _args.push(
898
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1041
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
899
1042
  );
900
1043
  _args.push(
901
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1044
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
902
1045
  );
903
1046
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
904
1047
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
905
1048
  _args.push(
906
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
1049
+ TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
907
1050
  );
908
1051
 
909
1052
  // @ts-ignore
@@ -924,14 +1067,14 @@ export namespace pool {
924
1067
  export function removeLiquidity<T0 = any, T1 = any>(
925
1068
  tx: TransactionBlock,
926
1069
  args: [
927
- ObjectId | ObjectCallArg | TransactionArgument,
928
- ObjectId | ObjectCallArg | TransactionArgument,
1070
+ string | ObjectCallArg | TransactionArgument,
1071
+ string | ObjectCallArg | TransactionArgument,
929
1072
  bigint | TransactionArgument,
930
1073
  bigint | TransactionArgument,
931
1074
  bigint | TransactionArgument,
932
- ObjectId | ObjectCallArg | TransactionArgument
1075
+ string | ObjectCallArg | TransactionArgument,
933
1076
  ],
934
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1077
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
935
1078
  ): TransactionArgument &
936
1079
  [
937
1080
  TransactionArgument,
@@ -939,20 +1082,20 @@ export namespace pool {
939
1082
  TransactionArgument,
940
1083
  TransactionArgument,
941
1084
  TransactionArgument,
942
- TransactionArgument
1085
+ TransactionArgument,
943
1086
  ] {
944
1087
  const _args: any[] = [];
945
1088
  _args.push(
946
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1089
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
947
1090
  );
948
1091
  _args.push(
949
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1092
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
950
1093
  );
951
1094
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
952
1095
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
953
1096
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
954
1097
  _args.push(
955
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
1098
+ TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
956
1099
  );
957
1100
 
958
1101
  // @ts-ignore
@@ -973,28 +1116,28 @@ export namespace pool {
973
1116
  export function setFeeTo_(
974
1117
  tx: TransactionBlock,
975
1118
  args: [
976
- ObjectId | ObjectCallArg | TransactionArgument,
977
- ObjectId | ObjectCallArg | TransactionArgument,
978
- SuiAddress | TransactionArgument,
979
- ObjectId | ObjectCallArg | TransactionArgument
980
- ]
1119
+ string | ObjectCallArg | TransactionArgument,
1120
+ string | ObjectCallArg | TransactionArgument,
1121
+ string | TransactionArgument,
1122
+ string | ObjectCallArg | TransactionArgument,
1123
+ ],
981
1124
  ): TransactionArgument &
982
1125
  [
983
1126
  TransactionArgument,
984
1127
  TransactionArgument,
985
1128
  TransactionArgument,
986
- TransactionArgument
1129
+ TransactionArgument,
987
1130
  ] {
988
1131
  const _args: any[] = [];
989
1132
  _args.push(
990
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1133
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
991
1134
  );
992
1135
  _args.push(
993
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1136
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
994
1137
  );
995
1138
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
996
1139
  _args.push(
997
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
1140
+ TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
998
1141
  );
999
1142
 
1000
1143
  // @ts-ignore
@@ -1007,32 +1150,32 @@ export namespace pool {
1007
1150
  export function swapExactFirstToSecond<T0 = any, T1 = any>(
1008
1151
  tx: TransactionBlock,
1009
1152
  args: [
1010
- ObjectId | ObjectCallArg | TransactionArgument,
1011
- ObjectId | ObjectCallArg | TransactionArgument,
1153
+ string | ObjectCallArg | TransactionArgument,
1154
+ string | ObjectCallArg | TransactionArgument,
1012
1155
  bigint | TransactionArgument,
1013
1156
  bigint | TransactionArgument,
1014
- ObjectId | ObjectCallArg | TransactionArgument
1157
+ string | ObjectCallArg | TransactionArgument,
1015
1158
  ],
1016
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1159
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1017
1160
  ): TransactionArgument &
1018
1161
  [
1019
1162
  TransactionArgument,
1020
1163
  TransactionArgument,
1021
1164
  TransactionArgument,
1022
1165
  TransactionArgument,
1023
- TransactionArgument
1166
+ TransactionArgument,
1024
1167
  ] {
1025
1168
  const _args: any[] = [];
1026
1169
  _args.push(
1027
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1170
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1028
1171
  );
1029
1172
  _args.push(
1030
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1173
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1031
1174
  );
1032
1175
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1033
1176
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1034
1177
  _args.push(
1035
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
1178
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1036
1179
  );
1037
1180
 
1038
1181
  // @ts-ignore
@@ -1053,32 +1196,32 @@ export namespace pool {
1053
1196
  export function swapExactSecondToFirst<T0 = any, T1 = any>(
1054
1197
  tx: TransactionBlock,
1055
1198
  args: [
1056
- ObjectId | ObjectCallArg | TransactionArgument,
1057
- ObjectId | ObjectCallArg | TransactionArgument,
1199
+ string | ObjectCallArg | TransactionArgument,
1200
+ string | ObjectCallArg | TransactionArgument,
1058
1201
  bigint | TransactionArgument,
1059
1202
  bigint | TransactionArgument,
1060
- ObjectId | ObjectCallArg | TransactionArgument
1203
+ string | ObjectCallArg | TransactionArgument,
1061
1204
  ],
1062
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1205
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1063
1206
  ): TransactionArgument &
1064
1207
  [
1065
1208
  TransactionArgument,
1066
1209
  TransactionArgument,
1067
1210
  TransactionArgument,
1068
1211
  TransactionArgument,
1069
- TransactionArgument
1212
+ TransactionArgument,
1070
1213
  ] {
1071
1214
  const _args: any[] = [];
1072
1215
  _args.push(
1073
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1216
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1074
1217
  );
1075
1218
  _args.push(
1076
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1219
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1077
1220
  );
1078
1221
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1079
1222
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1080
1223
  _args.push(
1081
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
1224
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1082
1225
  );
1083
1226
 
1084
1227
  // @ts-ignore
@@ -1099,32 +1242,32 @@ export namespace pool {
1099
1242
  export function swapFirstToExactSecond<T0 = any, T1 = any>(
1100
1243
  tx: TransactionBlock,
1101
1244
  args: [
1102
- ObjectId | ObjectCallArg | TransactionArgument,
1103
- ObjectId | ObjectCallArg | TransactionArgument,
1245
+ string | ObjectCallArg | TransactionArgument,
1246
+ string | ObjectCallArg | TransactionArgument,
1104
1247
  bigint | TransactionArgument,
1105
1248
  bigint | TransactionArgument,
1106
- ObjectId | ObjectCallArg | TransactionArgument
1249
+ string | ObjectCallArg | TransactionArgument,
1107
1250
  ],
1108
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1251
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1109
1252
  ): TransactionArgument &
1110
1253
  [
1111
1254
  TransactionArgument,
1112
1255
  TransactionArgument,
1113
1256
  TransactionArgument,
1114
1257
  TransactionArgument,
1115
- TransactionArgument
1258
+ TransactionArgument,
1116
1259
  ] {
1117
1260
  const _args: any[] = [];
1118
1261
  _args.push(
1119
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1262
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1120
1263
  );
1121
1264
  _args.push(
1122
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1265
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1123
1266
  );
1124
1267
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1125
1268
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1126
1269
  _args.push(
1127
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
1270
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1128
1271
  );
1129
1272
 
1130
1273
  // @ts-ignore
@@ -1145,32 +1288,32 @@ export namespace pool {
1145
1288
  export function swapSecondToExactFirst<T0 = any, T1 = any>(
1146
1289
  tx: TransactionBlock,
1147
1290
  args: [
1148
- ObjectId | ObjectCallArg | TransactionArgument,
1149
- ObjectId | ObjectCallArg | TransactionArgument,
1291
+ string | ObjectCallArg | TransactionArgument,
1292
+ string | ObjectCallArg | TransactionArgument,
1150
1293
  bigint | TransactionArgument,
1151
1294
  bigint | TransactionArgument,
1152
- ObjectId | ObjectCallArg | TransactionArgument
1295
+ string | ObjectCallArg | TransactionArgument,
1153
1296
  ],
1154
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1297
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1155
1298
  ): TransactionArgument &
1156
1299
  [
1157
1300
  TransactionArgument,
1158
1301
  TransactionArgument,
1159
1302
  TransactionArgument,
1160
1303
  TransactionArgument,
1161
- TransactionArgument
1304
+ TransactionArgument,
1162
1305
  ] {
1163
1306
  const _args: any[] = [];
1164
1307
  _args.push(
1165
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1308
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1166
1309
  );
1167
1310
  _args.push(
1168
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1311
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1169
1312
  );
1170
1313
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1171
1314
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1172
1315
  _args.push(
1173
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
1316
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1174
1317
  );
1175
1318
 
1176
1319
  // @ts-ignore
@@ -1191,29 +1334,29 @@ export namespace pool {
1191
1334
  export function zapInFirst<T0 = any, T1 = any>(
1192
1335
  tx: TransactionBlock,
1193
1336
  args: [
1194
- ObjectId | ObjectCallArg | TransactionArgument,
1195
- ObjectId | ObjectCallArg | TransactionArgument,
1337
+ string | ObjectCallArg | TransactionArgument,
1338
+ string | ObjectCallArg | TransactionArgument,
1196
1339
  bigint | TransactionArgument,
1197
- ObjectId | ObjectCallArg | TransactionArgument
1340
+ string | ObjectCallArg | TransactionArgument,
1198
1341
  ],
1199
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1342
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1200
1343
  ): TransactionArgument &
1201
1344
  [
1202
1345
  TransactionArgument,
1203
1346
  TransactionArgument,
1204
1347
  TransactionArgument,
1205
- TransactionArgument
1348
+ TransactionArgument,
1206
1349
  ] {
1207
1350
  const _args: any[] = [];
1208
1351
  _args.push(
1209
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1352
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1210
1353
  );
1211
1354
  _args.push(
1212
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1355
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1213
1356
  );
1214
1357
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1215
1358
  _args.push(
1216
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
1359
+ TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1217
1360
  );
1218
1361
 
1219
1362
  // @ts-ignore
@@ -1234,29 +1377,29 @@ export namespace pool {
1234
1377
  export function zapInSecond<T0 = any, T1 = any>(
1235
1378
  tx: TransactionBlock,
1236
1379
  args: [
1237
- ObjectId | ObjectCallArg | TransactionArgument,
1238
- ObjectId | ObjectCallArg | TransactionArgument,
1380
+ string | ObjectCallArg | TransactionArgument,
1381
+ string | ObjectCallArg | TransactionArgument,
1239
1382
  bigint | TransactionArgument,
1240
- ObjectId | ObjectCallArg | TransactionArgument
1383
+ string | ObjectCallArg | TransactionArgument,
1241
1384
  ],
1242
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1385
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1243
1386
  ): TransactionArgument &
1244
1387
  [
1245
1388
  TransactionArgument,
1246
1389
  TransactionArgument,
1247
1390
  TransactionArgument,
1248
- TransactionArgument
1391
+ TransactionArgument,
1249
1392
  ] {
1250
1393
  const _args: any[] = [];
1251
1394
  _args.push(
1252
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1395
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1253
1396
  );
1254
1397
  _args.push(
1255
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1398
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1256
1399
  );
1257
1400
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1258
1401
  _args.push(
1259
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
1402
+ TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1260
1403
  );
1261
1404
 
1262
1405
  // @ts-ignore
@@ -1275,6 +1418,366 @@ export namespace pool {
1275
1418
  });
1276
1419
  }
1277
1420
  }
1421
+ export namespace view {
1422
+ export async function addLiquidity<T0 = any, T1 = any>(
1423
+ client: SuiClient,
1424
+ args: [
1425
+ string | ObjectCallArg | TransactionArgument,
1426
+ string | ObjectCallArg | TransactionArgument,
1427
+ string | ObjectCallArg | TransactionArgument,
1428
+ bigint | TransactionArgument,
1429
+ bigint | TransactionArgument,
1430
+ bigint | TransactionArgument,
1431
+ bigint | TransactionArgument,
1432
+ string | ObjectCallArg | TransactionArgument,
1433
+ ],
1434
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1435
+ ) {
1436
+ const tx = new TransactionBlock();
1437
+ builder.addLiquidity(tx, args, typeArguments);
1438
+ const res = await client.devInspectTransactionBlock({
1439
+ transactionBlock: tx,
1440
+ sender: ZERO_ADDRESS,
1441
+ });
1442
+ return res;
1443
+ }
1444
+ export async function borrowMutPool<T0 = any, T1 = any>(
1445
+ client: SuiClient,
1446
+ args: [string | ObjectCallArg | TransactionArgument],
1447
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1448
+ ) {
1449
+ const tx = new TransactionBlock();
1450
+ builder.borrowMutPool(tx, args, typeArguments);
1451
+ const res = await client.devInspectTransactionBlock({
1452
+ transactionBlock: tx,
1453
+ sender: ZERO_ADDRESS,
1454
+ });
1455
+ return res;
1456
+ }
1457
+ export async function borrowPool<T0 = any, T1 = any>(
1458
+ client: SuiClient,
1459
+ args: [string | ObjectCallArg | TransactionArgument],
1460
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1461
+ ) {
1462
+ const tx = new TransactionBlock();
1463
+ builder.borrowPool(tx, args, typeArguments);
1464
+ const res = await client.devInspectTransactionBlock({
1465
+ transactionBlock: tx,
1466
+ sender: ZERO_ADDRESS,
1467
+ });
1468
+ return res;
1469
+ }
1470
+ export async function createPool<T0 = any, T1 = any>(
1471
+ client: SuiClient,
1472
+ args: [
1473
+ string | ObjectCallArg | TransactionArgument,
1474
+ string | ObjectCallArg | TransactionArgument,
1475
+ string | ObjectCallArg | TransactionArgument,
1476
+ bigint | TransactionArgument,
1477
+ bigint | TransactionArgument,
1478
+ string | ObjectCallArg | TransactionArgument,
1479
+ ],
1480
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1481
+ ) {
1482
+ const tx = new TransactionBlock();
1483
+ builder.createPool(tx, args, typeArguments);
1484
+ const res = await client.devInspectTransactionBlock({
1485
+ transactionBlock: tx,
1486
+ sender: ZERO_ADDRESS,
1487
+ });
1488
+ return res;
1489
+ }
1490
+ export async function createPoolName(
1491
+ client: SuiClient,
1492
+ args: [
1493
+ _0x1.type_name.TypeName | TransactionArgument,
1494
+ _0x1.type_name.TypeName | TransactionArgument,
1495
+ ],
1496
+ ) {
1497
+ const tx = new TransactionBlock();
1498
+ builder.createPoolName(tx, args);
1499
+ const res = await client.devInspectTransactionBlock({
1500
+ transactionBlock: tx,
1501
+ sender: ZERO_ADDRESS,
1502
+ });
1503
+ return res;
1504
+ }
1505
+ export async function getAmounts<T0 = any, T1 = any>(
1506
+ client: SuiClient,
1507
+ args: [string | ObjectCallArg | TransactionArgument],
1508
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1509
+ ) {
1510
+ const tx = new TransactionBlock();
1511
+ builder.getAmounts(tx, args, typeArguments);
1512
+ const res = await client.devInspectTransactionBlock({
1513
+ transactionBlock: tx,
1514
+ sender: ZERO_ADDRESS,
1515
+ });
1516
+ return res;
1517
+ }
1518
+ export async function getInputAmount<T0 = any, T1 = any>(
1519
+ client: SuiClient,
1520
+ args: [
1521
+ string | ObjectCallArg | TransactionArgument,
1522
+ bigint | TransactionArgument,
1523
+ Boolean | TransactionArgument,
1524
+ ],
1525
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1526
+ ) {
1527
+ const tx = new TransactionBlock();
1528
+ builder.getInputAmount(tx, args, typeArguments);
1529
+ const res = await client.devInspectTransactionBlock({
1530
+ transactionBlock: tx,
1531
+ sender: ZERO_ADDRESS,
1532
+ });
1533
+ return res;
1534
+ }
1535
+ export async function getOutputAmount<T0 = any, T1 = any>(
1536
+ client: SuiClient,
1537
+ args: [
1538
+ string | ObjectCallArg | TransactionArgument,
1539
+ bigint | TransactionArgument,
1540
+ Boolean | TransactionArgument,
1541
+ ],
1542
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1543
+ ) {
1544
+ const tx = new TransactionBlock();
1545
+ builder.getOutputAmount(tx, args, typeArguments);
1546
+ const res = await client.devInspectTransactionBlock({
1547
+ transactionBlock: tx,
1548
+ sender: ZERO_ADDRESS,
1549
+ });
1550
+ return res;
1551
+ }
1552
+ export async function getPoolData<T0 = any, T1 = any>(
1553
+ client: SuiClient,
1554
+ args: [string | ObjectCallArg | TransactionArgument],
1555
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1556
+ ) {
1557
+ const tx = new TransactionBlock();
1558
+ builder.getPoolData(tx, args, typeArguments);
1559
+ const res = await client.devInspectTransactionBlock({
1560
+ transactionBlock: tx,
1561
+ sender: ZERO_ADDRESS,
1562
+ });
1563
+ return res;
1564
+ }
1565
+ export async function isPoolCreated<T0 = any, T1 = any>(
1566
+ client: SuiClient,
1567
+ args: [string | ObjectCallArg | TransactionArgument],
1568
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1569
+ ) {
1570
+ const tx = new TransactionBlock();
1571
+ builder.isPoolCreated(tx, args, typeArguments);
1572
+ const res = await client.devInspectTransactionBlock({
1573
+ transactionBlock: tx,
1574
+ sender: ZERO_ADDRESS,
1575
+ });
1576
+ return res;
1577
+ }
1578
+ export async function isPoolCreatedSorted<T0 = any, T1 = any>(
1579
+ client: SuiClient,
1580
+ args: [string | ObjectCallArg | TransactionArgument],
1581
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1582
+ ) {
1583
+ const tx = new TransactionBlock();
1584
+ builder.isPoolCreatedSorted(tx, args, typeArguments);
1585
+ const res = await client.devInspectTransactionBlock({
1586
+ transactionBlock: tx,
1587
+ sender: ZERO_ADDRESS,
1588
+ });
1589
+ return res;
1590
+ }
1591
+ export async function processSwapExactInput<T0 = any, T1 = any>(
1592
+ client: SuiClient,
1593
+ args: [
1594
+ string | ObjectCallArg | TransactionArgument,
1595
+ string | ObjectCallArg | TransactionArgument,
1596
+ string | ObjectCallArg | TransactionArgument,
1597
+ bigint | TransactionArgument,
1598
+ Boolean | TransactionArgument,
1599
+ string | ObjectCallArg | TransactionArgument,
1600
+ ],
1601
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1602
+ ) {
1603
+ const tx = new TransactionBlock();
1604
+ builder.processSwapExactInput(tx, args, typeArguments);
1605
+ const res = await client.devInspectTransactionBlock({
1606
+ transactionBlock: tx,
1607
+ sender: ZERO_ADDRESS,
1608
+ });
1609
+ return res;
1610
+ }
1611
+ export async function processSwapExactOutput<T0 = any, T1 = any>(
1612
+ client: SuiClient,
1613
+ args: [
1614
+ string | ObjectCallArg | TransactionArgument,
1615
+ string | ObjectCallArg | TransactionArgument,
1616
+ string | ObjectCallArg | TransactionArgument,
1617
+ bigint | TransactionArgument,
1618
+ Boolean | TransactionArgument,
1619
+ string | ObjectCallArg | TransactionArgument,
1620
+ ],
1621
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1622
+ ) {
1623
+ const tx = new TransactionBlock();
1624
+ builder.processSwapExactOutput(tx, args, typeArguments);
1625
+ const res = await client.devInspectTransactionBlock({
1626
+ transactionBlock: tx,
1627
+ sender: ZERO_ADDRESS,
1628
+ });
1629
+ return res;
1630
+ }
1631
+ export async function removeLiquidity<T0 = any, T1 = any>(
1632
+ client: SuiClient,
1633
+ args: [
1634
+ string | ObjectCallArg | TransactionArgument,
1635
+ string | ObjectCallArg | TransactionArgument,
1636
+ bigint | TransactionArgument,
1637
+ bigint | TransactionArgument,
1638
+ bigint | TransactionArgument,
1639
+ string | ObjectCallArg | TransactionArgument,
1640
+ ],
1641
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1642
+ ) {
1643
+ const tx = new TransactionBlock();
1644
+ builder.removeLiquidity(tx, args, typeArguments);
1645
+ const res = await client.devInspectTransactionBlock({
1646
+ transactionBlock: tx,
1647
+ sender: ZERO_ADDRESS,
1648
+ });
1649
+ return res;
1650
+ }
1651
+ export async function setFeeTo_(
1652
+ client: SuiClient,
1653
+ args: [
1654
+ string | ObjectCallArg | TransactionArgument,
1655
+ string | ObjectCallArg | TransactionArgument,
1656
+ string | TransactionArgument,
1657
+ string | ObjectCallArg | TransactionArgument,
1658
+ ],
1659
+ ) {
1660
+ const tx = new TransactionBlock();
1661
+ builder.setFeeTo_(tx, args);
1662
+ const res = await client.devInspectTransactionBlock({
1663
+ transactionBlock: tx,
1664
+ sender: ZERO_ADDRESS,
1665
+ });
1666
+ return res;
1667
+ }
1668
+ export async function swapExactFirstToSecond<T0 = any, T1 = any>(
1669
+ client: SuiClient,
1670
+ args: [
1671
+ string | ObjectCallArg | TransactionArgument,
1672
+ string | ObjectCallArg | TransactionArgument,
1673
+ bigint | TransactionArgument,
1674
+ bigint | TransactionArgument,
1675
+ string | ObjectCallArg | TransactionArgument,
1676
+ ],
1677
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1678
+ ) {
1679
+ const tx = new TransactionBlock();
1680
+ builder.swapExactFirstToSecond(tx, args, typeArguments);
1681
+ const res = await client.devInspectTransactionBlock({
1682
+ transactionBlock: tx,
1683
+ sender: ZERO_ADDRESS,
1684
+ });
1685
+ return res;
1686
+ }
1687
+ export async function swapExactSecondToFirst<T0 = any, T1 = any>(
1688
+ client: SuiClient,
1689
+ args: [
1690
+ string | ObjectCallArg | TransactionArgument,
1691
+ string | ObjectCallArg | TransactionArgument,
1692
+ bigint | TransactionArgument,
1693
+ bigint | TransactionArgument,
1694
+ string | ObjectCallArg | TransactionArgument,
1695
+ ],
1696
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1697
+ ) {
1698
+ const tx = new TransactionBlock();
1699
+ builder.swapExactSecondToFirst(tx, args, typeArguments);
1700
+ const res = await client.devInspectTransactionBlock({
1701
+ transactionBlock: tx,
1702
+ sender: ZERO_ADDRESS,
1703
+ });
1704
+ return res;
1705
+ }
1706
+ export async function swapFirstToExactSecond<T0 = any, T1 = any>(
1707
+ client: SuiClient,
1708
+ args: [
1709
+ string | ObjectCallArg | TransactionArgument,
1710
+ string | ObjectCallArg | TransactionArgument,
1711
+ bigint | TransactionArgument,
1712
+ bigint | TransactionArgument,
1713
+ string | ObjectCallArg | TransactionArgument,
1714
+ ],
1715
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1716
+ ) {
1717
+ const tx = new TransactionBlock();
1718
+ builder.swapFirstToExactSecond(tx, args, typeArguments);
1719
+ const res = await client.devInspectTransactionBlock({
1720
+ transactionBlock: tx,
1721
+ sender: ZERO_ADDRESS,
1722
+ });
1723
+ return res;
1724
+ }
1725
+ export async function swapSecondToExactFirst<T0 = any, T1 = any>(
1726
+ client: SuiClient,
1727
+ args: [
1728
+ string | ObjectCallArg | TransactionArgument,
1729
+ string | ObjectCallArg | TransactionArgument,
1730
+ bigint | TransactionArgument,
1731
+ bigint | TransactionArgument,
1732
+ string | ObjectCallArg | TransactionArgument,
1733
+ ],
1734
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1735
+ ) {
1736
+ const tx = new TransactionBlock();
1737
+ builder.swapSecondToExactFirst(tx, args, typeArguments);
1738
+ const res = await client.devInspectTransactionBlock({
1739
+ transactionBlock: tx,
1740
+ sender: ZERO_ADDRESS,
1741
+ });
1742
+ return res;
1743
+ }
1744
+ export async function zapInFirst<T0 = any, T1 = any>(
1745
+ client: SuiClient,
1746
+ args: [
1747
+ string | ObjectCallArg | TransactionArgument,
1748
+ string | ObjectCallArg | TransactionArgument,
1749
+ bigint | TransactionArgument,
1750
+ string | ObjectCallArg | TransactionArgument,
1751
+ ],
1752
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1753
+ ) {
1754
+ const tx = new TransactionBlock();
1755
+ builder.zapInFirst(tx, args, typeArguments);
1756
+ const res = await client.devInspectTransactionBlock({
1757
+ transactionBlock: tx,
1758
+ sender: ZERO_ADDRESS,
1759
+ });
1760
+ return res;
1761
+ }
1762
+ export async function zapInSecond<T0 = any, T1 = any>(
1763
+ client: SuiClient,
1764
+ args: [
1765
+ string | ObjectCallArg | TransactionArgument,
1766
+ string | ObjectCallArg | TransactionArgument,
1767
+ bigint | TransactionArgument,
1768
+ string | ObjectCallArg | TransactionArgument,
1769
+ ],
1770
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1771
+ ) {
1772
+ const tx = new TransactionBlock();
1773
+ builder.zapInSecond(tx, args, typeArguments);
1774
+ const res = await client.devInspectTransactionBlock({
1775
+ transactionBlock: tx,
1776
+ sender: ZERO_ADDRESS,
1777
+ });
1778
+ return res;
1779
+ }
1780
+ }
1278
1781
  }
1279
1782
 
1280
1783
  export namespace pool_utils {
@@ -1283,14 +1786,14 @@ export namespace pool_utils {
1283
1786
  tx: TransactionBlock,
1284
1787
  args: [
1285
1788
  _0x2.coin.Coin<T0> | TransactionArgument,
1286
- ObjectId | ObjectCallArg | TransactionArgument
1789
+ string | ObjectCallArg | TransactionArgument,
1287
1790
  ],
1288
- typeArguments: [TypeDescriptor<T0> | string]
1791
+ typeArguments: [TypeDescriptor<T0> | string],
1289
1792
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1290
1793
  const _args: any[] = [];
1291
1794
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1292
1795
  _args.push(
1293
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1796
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1294
1797
  );
1295
1798
 
1296
1799
  // @ts-ignore
@@ -1311,14 +1814,14 @@ export namespace pool_utils {
1311
1814
  bigint | TransactionArgument,
1312
1815
  bigint | TransactionArgument,
1313
1816
  bigint | TransactionArgument,
1314
- bigint | TransactionArgument
1315
- ]
1817
+ bigint | TransactionArgument,
1818
+ ],
1316
1819
  ): TransactionArgument &
1317
1820
  [
1318
1821
  TransactionArgument,
1319
1822
  TransactionArgument,
1320
1823
  TransactionArgument,
1321
- TransactionArgument
1824
+ TransactionArgument,
1322
1825
  ] {
1323
1826
  const _args: any[] = [];
1324
1827
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -1335,7 +1838,7 @@ export namespace pool_utils {
1335
1838
  }
1336
1839
  export function getOptimalZapInAmount(
1337
1840
  tx: TransactionBlock,
1338
- args: [bigint | TransactionArgument, bigint | TransactionArgument]
1841
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
1339
1842
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1340
1843
  const _args: any[] = [];
1341
1844
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -1354,14 +1857,14 @@ export namespace pool_utils {
1354
1857
  bigint | TransactionArgument,
1355
1858
  bigint | TransactionArgument,
1356
1859
  bigint | TransactionArgument,
1357
- bigint | TransactionArgument
1358
- ]
1860
+ bigint | TransactionArgument,
1861
+ ],
1359
1862
  ): TransactionArgument &
1360
1863
  [
1361
1864
  TransactionArgument,
1362
1865
  TransactionArgument,
1363
1866
  TransactionArgument,
1364
- TransactionArgument
1867
+ TransactionArgument,
1365
1868
  ] {
1366
1869
  const _args: any[] = [];
1367
1870
  _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
@@ -1382,8 +1885,8 @@ export namespace pool_utils {
1382
1885
  typeArguments: [
1383
1886
  TypeDescriptor<T0> | string,
1384
1887
  TypeDescriptor<T1> | string,
1385
- TypeDescriptor<T2> | string
1386
- ]
1888
+ TypeDescriptor<T2> | string,
1889
+ ],
1387
1890
  ): TransactionArgument & [] {
1388
1891
  const _args: any[] = [];
1389
1892
 
@@ -1408,7 +1911,7 @@ export namespace pool_utils {
1408
1911
  export function getType<T0 = any, T1 = any>(
1409
1912
  tx: TransactionBlock,
1410
1913
  args: [],
1411
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1914
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1412
1915
  ): TransactionArgument & [] {
1413
1916
  const _args: any[] = [];
1414
1917
 
@@ -1432,8 +1935,8 @@ export namespace pool_utils {
1432
1935
  args: [
1433
1936
  bigint | TransactionArgument,
1434
1937
  bigint | TransactionArgument,
1435
- bigint | TransactionArgument
1436
- ]
1938
+ bigint | TransactionArgument,
1939
+ ],
1437
1940
  ): TransactionArgument &
1438
1941
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1439
1942
  const _args: any[] = [];
@@ -1451,16 +1954,16 @@ export namespace pool_utils {
1451
1954
  export function sortTokenType(
1452
1955
  tx: TransactionBlock,
1453
1956
  args: [
1454
- ObjectId | ObjectCallArg | TransactionArgument,
1455
- ObjectId | ObjectCallArg | TransactionArgument
1456
- ]
1957
+ string | ObjectCallArg | TransactionArgument,
1958
+ string | ObjectCallArg | TransactionArgument,
1959
+ ],
1457
1960
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1458
1961
  const _args: any[] = [];
1459
1962
  _args.push(
1460
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1963
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1461
1964
  );
1462
1965
  _args.push(
1463
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1966
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1464
1967
  );
1465
1968
 
1466
1969
  // @ts-ignore
@@ -1471,6 +1974,131 @@ export namespace pool_utils {
1471
1974
  });
1472
1975
  }
1473
1976
  }
1977
+ export namespace view {
1978
+ export async function executeReturnToken<T0 = any>(
1979
+ client: SuiClient,
1980
+ args: [
1981
+ _0x2.coin.Coin<T0> | TransactionArgument,
1982
+ string | ObjectCallArg | TransactionArgument,
1983
+ ],
1984
+ typeArguments: [TypeDescriptor<T0> | string],
1985
+ ) {
1986
+ const tx = new TransactionBlock();
1987
+ builder.executeReturnToken(tx, args, typeArguments);
1988
+ const res = await client.devInspectTransactionBlock({
1989
+ transactionBlock: tx,
1990
+ sender: ZERO_ADDRESS,
1991
+ });
1992
+ return res;
1993
+ }
1994
+ export async function getInputPrice(
1995
+ client: SuiClient,
1996
+ args: [
1997
+ bigint | TransactionArgument,
1998
+ bigint | TransactionArgument,
1999
+ bigint | TransactionArgument,
2000
+ bigint | TransactionArgument,
2001
+ ],
2002
+ ) {
2003
+ const tx = new TransactionBlock();
2004
+ builder.getInputPrice(tx, args);
2005
+ const res = await client.devInspectTransactionBlock({
2006
+ transactionBlock: tx,
2007
+ sender: ZERO_ADDRESS,
2008
+ });
2009
+ return res;
2010
+ }
2011
+ export async function getOptimalZapInAmount(
2012
+ client: SuiClient,
2013
+ args: [bigint | TransactionArgument, bigint | TransactionArgument],
2014
+ ) {
2015
+ const tx = new TransactionBlock();
2016
+ builder.getOptimalZapInAmount(tx, args);
2017
+ const res = await client.devInspectTransactionBlock({
2018
+ transactionBlock: tx,
2019
+ sender: ZERO_ADDRESS,
2020
+ });
2021
+ return res;
2022
+ }
2023
+ export async function getOutputPrice(
2024
+ client: SuiClient,
2025
+ args: [
2026
+ bigint | TransactionArgument,
2027
+ bigint | TransactionArgument,
2028
+ bigint | TransactionArgument,
2029
+ bigint | TransactionArgument,
2030
+ ],
2031
+ ) {
2032
+ const tx = new TransactionBlock();
2033
+ builder.getOutputPrice(tx, args);
2034
+ const res = await client.devInspectTransactionBlock({
2035
+ transactionBlock: tx,
2036
+ sender: ZERO_ADDRESS,
2037
+ });
2038
+ return res;
2039
+ }
2040
+ export async function getTripleType<T0 = any, T1 = any, T2 = any>(
2041
+ client: SuiClient,
2042
+ args: [],
2043
+ typeArguments: [
2044
+ TypeDescriptor<T0> | string,
2045
+ TypeDescriptor<T1> | string,
2046
+ TypeDescriptor<T2> | string,
2047
+ ],
2048
+ ) {
2049
+ const tx = new TransactionBlock();
2050
+ builder.getTripleType(tx, args, typeArguments);
2051
+ const res = await client.devInspectTransactionBlock({
2052
+ transactionBlock: tx,
2053
+ sender: ZERO_ADDRESS,
2054
+ });
2055
+ return res;
2056
+ }
2057
+ export async function getType<T0 = any, T1 = any>(
2058
+ client: SuiClient,
2059
+ args: [],
2060
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2061
+ ) {
2062
+ const tx = new TransactionBlock();
2063
+ builder.getType(tx, args, typeArguments);
2064
+ const res = await client.devInspectTransactionBlock({
2065
+ transactionBlock: tx,
2066
+ sender: ZERO_ADDRESS,
2067
+ });
2068
+ return res;
2069
+ }
2070
+ export async function quote(
2071
+ client: SuiClient,
2072
+ args: [
2073
+ bigint | TransactionArgument,
2074
+ bigint | TransactionArgument,
2075
+ bigint | TransactionArgument,
2076
+ ],
2077
+ ) {
2078
+ const tx = new TransactionBlock();
2079
+ builder.quote(tx, args);
2080
+ const res = await client.devInspectTransactionBlock({
2081
+ transactionBlock: tx,
2082
+ sender: ZERO_ADDRESS,
2083
+ });
2084
+ return res;
2085
+ }
2086
+ export async function sortTokenType(
2087
+ client: SuiClient,
2088
+ args: [
2089
+ string | ObjectCallArg | TransactionArgument,
2090
+ string | ObjectCallArg | TransactionArgument,
2091
+ ],
2092
+ ) {
2093
+ const tx = new TransactionBlock();
2094
+ builder.sortTokenType(tx, args);
2095
+ const res = await client.devInspectTransactionBlock({
2096
+ transactionBlock: tx,
2097
+ sender: ZERO_ADDRESS,
2098
+ });
2099
+ return res;
2100
+ }
2101
+ }
1474
2102
  }
1475
2103
 
1476
2104
  export namespace router {
@@ -1478,16 +2106,16 @@ export namespace router {
1478
2106
  export function addLiquidity_<T0 = any, T1 = any>(
1479
2107
  tx: TransactionBlock,
1480
2108
  args: [
1481
- ObjectId | ObjectCallArg | TransactionArgument,
1482
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
1483
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2109
+ string | ObjectCallArg | TransactionArgument,
2110
+ (string | ObjectCallArg)[] | TransactionArgument,
2111
+ (string | ObjectCallArg)[] | TransactionArgument,
1484
2112
  bigint | TransactionArgument,
1485
2113
  bigint | TransactionArgument,
1486
2114
  bigint | TransactionArgument,
1487
2115
  bigint | TransactionArgument,
1488
- ObjectId | ObjectCallArg | TransactionArgument
2116
+ string | ObjectCallArg | TransactionArgument,
1489
2117
  ],
1490
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2118
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1491
2119
  ): TransactionArgument &
1492
2120
  [
1493
2121
  TransactionArgument,
@@ -1497,34 +2125,34 @@ export namespace router {
1497
2125
  TransactionArgument,
1498
2126
  TransactionArgument,
1499
2127
  TransactionArgument,
1500
- TransactionArgument
2128
+ TransactionArgument,
1501
2129
  ] {
1502
2130
  const _args: any[] = [];
1503
2131
  _args.push(
1504
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2132
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1505
2133
  );
1506
2134
  _args.push(
1507
2135
  TransactionArgument.is(args[1])
1508
2136
  ? args[1]
1509
2137
  : tx.makeMoveVec({
1510
- objects: args[1].map((a) => tx.object(a)),
2138
+ objects: args[1].map((a: any) => tx.object(a)),
1511
2139
  // type: TODO
1512
- })
2140
+ }),
1513
2141
  );
1514
2142
  _args.push(
1515
2143
  TransactionArgument.is(args[2])
1516
2144
  ? args[2]
1517
2145
  : tx.makeMoveVec({
1518
- objects: args[2].map((a) => tx.object(a)),
2146
+ objects: args[2].map((a: any) => tx.object(a)),
1519
2147
  // type: TODO
1520
- })
2148
+ }),
1521
2149
  );
1522
2150
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1523
2151
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
1524
2152
  _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
1525
2153
  _args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
1526
2154
  _args.push(
1527
- TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7])
2155
+ TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
1528
2156
  );
1529
2157
 
1530
2158
  // @ts-ignore
@@ -1545,14 +2173,14 @@ export namespace router {
1545
2173
  export function createPool_<T0 = any, T1 = any>(
1546
2174
  tx: TransactionBlock,
1547
2175
  args: [
1548
- ObjectId | ObjectCallArg | TransactionArgument,
1549
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
1550
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2176
+ string | ObjectCallArg | TransactionArgument,
2177
+ (string | ObjectCallArg)[] | TransactionArgument,
2178
+ (string | ObjectCallArg)[] | TransactionArgument,
1551
2179
  bigint | TransactionArgument,
1552
2180
  bigint | TransactionArgument,
1553
- ObjectId | ObjectCallArg | TransactionArgument
2181
+ string | ObjectCallArg | TransactionArgument,
1554
2182
  ],
1555
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2183
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1556
2184
  ): TransactionArgument &
1557
2185
  [
1558
2186
  TransactionArgument,
@@ -1560,32 +2188,32 @@ export namespace router {
1560
2188
  TransactionArgument,
1561
2189
  TransactionArgument,
1562
2190
  TransactionArgument,
1563
- TransactionArgument
2191
+ TransactionArgument,
1564
2192
  ] {
1565
2193
  const _args: any[] = [];
1566
2194
  _args.push(
1567
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2195
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1568
2196
  );
1569
2197
  _args.push(
1570
2198
  TransactionArgument.is(args[1])
1571
2199
  ? args[1]
1572
2200
  : tx.makeMoveVec({
1573
- objects: args[1].map((a) => tx.object(a)),
2201
+ objects: args[1].map((a: any) => tx.object(a)),
1574
2202
  // type: TODO
1575
- })
2203
+ }),
1576
2204
  );
1577
2205
  _args.push(
1578
2206
  TransactionArgument.is(args[2])
1579
2207
  ? args[2]
1580
2208
  : tx.makeMoveVec({
1581
- objects: args[2].map((a) => tx.object(a)),
2209
+ objects: args[2].map((a: any) => tx.object(a)),
1582
2210
  // type: TODO
1583
- })
2211
+ }),
1584
2212
  );
1585
2213
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1586
2214
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
1587
2215
  _args.push(
1588
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
2216
+ TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
1589
2217
  );
1590
2218
 
1591
2219
  // @ts-ignore
@@ -1606,14 +2234,14 @@ export namespace router {
1606
2234
  export function removeLiquidity_<T0 = any, T1 = any>(
1607
2235
  tx: TransactionBlock,
1608
2236
  args: [
1609
- ObjectId | ObjectCallArg | TransactionArgument,
1610
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2237
+ string | ObjectCallArg | TransactionArgument,
2238
+ (string | ObjectCallArg)[] | TransactionArgument,
1611
2239
  bigint | TransactionArgument,
1612
2240
  bigint | TransactionArgument,
1613
2241
  bigint | TransactionArgument,
1614
- ObjectId | ObjectCallArg | TransactionArgument
2242
+ string | ObjectCallArg | TransactionArgument,
1615
2243
  ],
1616
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2244
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1617
2245
  ): TransactionArgument &
1618
2246
  [
1619
2247
  TransactionArgument,
@@ -1621,25 +2249,25 @@ export namespace router {
1621
2249
  TransactionArgument,
1622
2250
  TransactionArgument,
1623
2251
  TransactionArgument,
1624
- TransactionArgument
2252
+ TransactionArgument,
1625
2253
  ] {
1626
2254
  const _args: any[] = [];
1627
2255
  _args.push(
1628
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2256
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1629
2257
  );
1630
2258
  _args.push(
1631
2259
  TransactionArgument.is(args[1])
1632
2260
  ? args[1]
1633
2261
  : tx.makeMoveVec({
1634
- objects: args[1].map((a) => tx.object(a)),
2262
+ objects: args[1].map((a: any) => tx.object(a)),
1635
2263
  // type: TODO
1636
- })
2264
+ }),
1637
2265
  );
1638
2266
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1639
2267
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1640
2268
  _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
1641
2269
  _args.push(
1642
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5])
2270
+ TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
1643
2271
  );
1644
2272
 
1645
2273
  // @ts-ignore
@@ -1660,37 +2288,37 @@ export namespace router {
1660
2288
  export function swapExactInput_<T0 = any, T1 = any>(
1661
2289
  tx: TransactionBlock,
1662
2290
  args: [
1663
- ObjectId | ObjectCallArg | TransactionArgument,
1664
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2291
+ string | ObjectCallArg | TransactionArgument,
2292
+ (string | ObjectCallArg)[] | TransactionArgument,
1665
2293
  bigint | TransactionArgument,
1666
2294
  bigint | TransactionArgument,
1667
- ObjectId | ObjectCallArg | TransactionArgument
2295
+ string | ObjectCallArg | TransactionArgument,
1668
2296
  ],
1669
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2297
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1670
2298
  ): TransactionArgument &
1671
2299
  [
1672
2300
  TransactionArgument,
1673
2301
  TransactionArgument,
1674
2302
  TransactionArgument,
1675
2303
  TransactionArgument,
1676
- TransactionArgument
2304
+ TransactionArgument,
1677
2305
  ] {
1678
2306
  const _args: any[] = [];
1679
2307
  _args.push(
1680
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2308
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1681
2309
  );
1682
2310
  _args.push(
1683
2311
  TransactionArgument.is(args[1])
1684
2312
  ? args[1]
1685
2313
  : tx.makeMoveVec({
1686
- objects: args[1].map((a) => tx.object(a)),
2314
+ objects: args[1].map((a: any) => tx.object(a)),
1687
2315
  // type: TODO
1688
- })
2316
+ }),
1689
2317
  );
1690
2318
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1691
2319
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1692
2320
  _args.push(
1693
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
2321
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1694
2322
  );
1695
2323
 
1696
2324
  // @ts-ignore
@@ -1711,41 +2339,41 @@ export namespace router {
1711
2339
  export function swapExactInputDoublehop_<T0 = any, T1 = any, T2 = any>(
1712
2340
  tx: TransactionBlock,
1713
2341
  args: [
1714
- ObjectId | ObjectCallArg | TransactionArgument,
1715
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2342
+ string | ObjectCallArg | TransactionArgument,
2343
+ (string | ObjectCallArg)[] | TransactionArgument,
1716
2344
  bigint | TransactionArgument,
1717
2345
  bigint | TransactionArgument,
1718
- ObjectId | ObjectCallArg | TransactionArgument
2346
+ string | ObjectCallArg | TransactionArgument,
1719
2347
  ],
1720
2348
  typeArguments: [
1721
2349
  TypeDescriptor<T0> | string,
1722
2350
  TypeDescriptor<T1> | string,
1723
- TypeDescriptor<T2> | string
1724
- ]
2351
+ TypeDescriptor<T2> | string,
2352
+ ],
1725
2353
  ): TransactionArgument &
1726
2354
  [
1727
2355
  TransactionArgument,
1728
2356
  TransactionArgument,
1729
2357
  TransactionArgument,
1730
2358
  TransactionArgument,
1731
- TransactionArgument
2359
+ TransactionArgument,
1732
2360
  ] {
1733
2361
  const _args: any[] = [];
1734
2362
  _args.push(
1735
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2363
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1736
2364
  );
1737
2365
  _args.push(
1738
2366
  TransactionArgument.is(args[1])
1739
2367
  ? args[1]
1740
2368
  : tx.makeMoveVec({
1741
- objects: args[1].map((a) => tx.object(a)),
2369
+ objects: args[1].map((a: any) => tx.object(a)),
1742
2370
  // type: TODO
1743
- })
2371
+ }),
1744
2372
  );
1745
2373
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1746
2374
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1747
2375
  _args.push(
1748
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
2376
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1749
2377
  );
1750
2378
 
1751
2379
  // @ts-ignore
@@ -1769,37 +2397,37 @@ export namespace router {
1769
2397
  export function swapExactOutput_<T0 = any, T1 = any>(
1770
2398
  tx: TransactionBlock,
1771
2399
  args: [
1772
- ObjectId | ObjectCallArg | TransactionArgument,
1773
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2400
+ string | ObjectCallArg | TransactionArgument,
2401
+ (string | ObjectCallArg)[] | TransactionArgument,
1774
2402
  bigint | TransactionArgument,
1775
2403
  bigint | TransactionArgument,
1776
- ObjectId | ObjectCallArg | TransactionArgument
2404
+ string | ObjectCallArg | TransactionArgument,
1777
2405
  ],
1778
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2406
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1779
2407
  ): TransactionArgument &
1780
2408
  [
1781
2409
  TransactionArgument,
1782
2410
  TransactionArgument,
1783
2411
  TransactionArgument,
1784
2412
  TransactionArgument,
1785
- TransactionArgument
2413
+ TransactionArgument,
1786
2414
  ] {
1787
2415
  const _args: any[] = [];
1788
2416
  _args.push(
1789
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2417
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1790
2418
  );
1791
2419
  _args.push(
1792
2420
  TransactionArgument.is(args[1])
1793
2421
  ? args[1]
1794
2422
  : tx.makeMoveVec({
1795
- objects: args[1].map((a) => tx.object(a)),
2423
+ objects: args[1].map((a: any) => tx.object(a)),
1796
2424
  // type: TODO
1797
- })
2425
+ }),
1798
2426
  );
1799
2427
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1800
2428
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1801
2429
  _args.push(
1802
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
2430
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1803
2431
  );
1804
2432
 
1805
2433
  // @ts-ignore
@@ -1820,41 +2448,41 @@ export namespace router {
1820
2448
  export function swapExactOutputDoublehop_<T0 = any, T1 = any, T2 = any>(
1821
2449
  tx: TransactionBlock,
1822
2450
  args: [
1823
- ObjectId | ObjectCallArg | TransactionArgument,
1824
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2451
+ string | ObjectCallArg | TransactionArgument,
2452
+ (string | ObjectCallArg)[] | TransactionArgument,
1825
2453
  bigint | TransactionArgument,
1826
2454
  bigint | TransactionArgument,
1827
- ObjectId | ObjectCallArg | TransactionArgument
2455
+ string | ObjectCallArg | TransactionArgument,
1828
2456
  ],
1829
2457
  typeArguments: [
1830
2458
  TypeDescriptor<T0> | string,
1831
2459
  TypeDescriptor<T1> | string,
1832
- TypeDescriptor<T2> | string
1833
- ]
2460
+ TypeDescriptor<T2> | string,
2461
+ ],
1834
2462
  ): TransactionArgument &
1835
2463
  [
1836
2464
  TransactionArgument,
1837
2465
  TransactionArgument,
1838
2466
  TransactionArgument,
1839
2467
  TransactionArgument,
1840
- TransactionArgument
2468
+ TransactionArgument,
1841
2469
  ] {
1842
2470
  const _args: any[] = [];
1843
2471
  _args.push(
1844
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2472
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1845
2473
  );
1846
2474
  _args.push(
1847
2475
  TransactionArgument.is(args[1])
1848
2476
  ? args[1]
1849
2477
  : tx.makeMoveVec({
1850
- objects: args[1].map((a) => tx.object(a)),
2478
+ objects: args[1].map((a: any) => tx.object(a)),
1851
2479
  // type: TODO
1852
- })
2480
+ }),
1853
2481
  );
1854
2482
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1855
2483
  _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1856
2484
  _args.push(
1857
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
2485
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1858
2486
  );
1859
2487
 
1860
2488
  // @ts-ignore
@@ -1878,34 +2506,34 @@ export namespace router {
1878
2506
  export function zapIn_<T0 = any, T1 = any>(
1879
2507
  tx: TransactionBlock,
1880
2508
  args: [
1881
- ObjectId | ObjectCallArg | TransactionArgument,
1882
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2509
+ string | ObjectCallArg | TransactionArgument,
2510
+ (string | ObjectCallArg)[] | TransactionArgument,
1883
2511
  bigint | TransactionArgument,
1884
- ObjectId | ObjectCallArg | TransactionArgument
2512
+ string | ObjectCallArg | TransactionArgument,
1885
2513
  ],
1886
- typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2514
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1887
2515
  ): TransactionArgument &
1888
2516
  [
1889
2517
  TransactionArgument,
1890
2518
  TransactionArgument,
1891
2519
  TransactionArgument,
1892
- TransactionArgument
2520
+ TransactionArgument,
1893
2521
  ] {
1894
2522
  const _args: any[] = [];
1895
2523
  _args.push(
1896
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2524
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1897
2525
  );
1898
2526
  _args.push(
1899
2527
  TransactionArgument.is(args[1])
1900
2528
  ? args[1]
1901
2529
  : tx.makeMoveVec({
1902
- objects: args[1].map((a) => tx.object(a)),
2530
+ objects: args[1].map((a: any) => tx.object(a)),
1903
2531
  // type: TODO
1904
- })
2532
+ }),
1905
2533
  );
1906
2534
  _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1907
2535
  _args.push(
1908
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
2536
+ TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1909
2537
  );
1910
2538
 
1911
2539
  // @ts-ignore
@@ -1924,10 +2552,184 @@ export namespace router {
1924
2552
  });
1925
2553
  }
1926
2554
  }
2555
+ export namespace view {
2556
+ export async function addLiquidity_<T0 = any, T1 = any>(
2557
+ client: SuiClient,
2558
+ args: [
2559
+ string | ObjectCallArg | TransactionArgument,
2560
+ (string | ObjectCallArg)[] | TransactionArgument,
2561
+ (string | ObjectCallArg)[] | TransactionArgument,
2562
+ bigint | TransactionArgument,
2563
+ bigint | TransactionArgument,
2564
+ bigint | TransactionArgument,
2565
+ bigint | TransactionArgument,
2566
+ string | ObjectCallArg | TransactionArgument,
2567
+ ],
2568
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2569
+ ) {
2570
+ const tx = new TransactionBlock();
2571
+ builder.addLiquidity_(tx, args, typeArguments);
2572
+ const res = await client.devInspectTransactionBlock({
2573
+ transactionBlock: tx,
2574
+ sender: ZERO_ADDRESS,
2575
+ });
2576
+ return res;
2577
+ }
2578
+ export async function createPool_<T0 = any, T1 = any>(
2579
+ client: SuiClient,
2580
+ args: [
2581
+ string | ObjectCallArg | TransactionArgument,
2582
+ (string | ObjectCallArg)[] | TransactionArgument,
2583
+ (string | ObjectCallArg)[] | TransactionArgument,
2584
+ bigint | TransactionArgument,
2585
+ bigint | TransactionArgument,
2586
+ string | ObjectCallArg | TransactionArgument,
2587
+ ],
2588
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2589
+ ) {
2590
+ const tx = new TransactionBlock();
2591
+ builder.createPool_(tx, args, typeArguments);
2592
+ const res = await client.devInspectTransactionBlock({
2593
+ transactionBlock: tx,
2594
+ sender: ZERO_ADDRESS,
2595
+ });
2596
+ return res;
2597
+ }
2598
+ export async function removeLiquidity_<T0 = any, T1 = any>(
2599
+ client: SuiClient,
2600
+ args: [
2601
+ string | ObjectCallArg | TransactionArgument,
2602
+ (string | ObjectCallArg)[] | TransactionArgument,
2603
+ bigint | TransactionArgument,
2604
+ bigint | TransactionArgument,
2605
+ bigint | TransactionArgument,
2606
+ string | ObjectCallArg | TransactionArgument,
2607
+ ],
2608
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2609
+ ) {
2610
+ const tx = new TransactionBlock();
2611
+ builder.removeLiquidity_(tx, args, typeArguments);
2612
+ const res = await client.devInspectTransactionBlock({
2613
+ transactionBlock: tx,
2614
+ sender: ZERO_ADDRESS,
2615
+ });
2616
+ return res;
2617
+ }
2618
+ export async function swapExactInput_<T0 = any, T1 = any>(
2619
+ client: SuiClient,
2620
+ args: [
2621
+ string | ObjectCallArg | TransactionArgument,
2622
+ (string | ObjectCallArg)[] | TransactionArgument,
2623
+ bigint | TransactionArgument,
2624
+ bigint | TransactionArgument,
2625
+ string | ObjectCallArg | TransactionArgument,
2626
+ ],
2627
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2628
+ ) {
2629
+ const tx = new TransactionBlock();
2630
+ builder.swapExactInput_(tx, args, typeArguments);
2631
+ const res = await client.devInspectTransactionBlock({
2632
+ transactionBlock: tx,
2633
+ sender: ZERO_ADDRESS,
2634
+ });
2635
+ return res;
2636
+ }
2637
+ export async function swapExactInputDoublehop_<
2638
+ T0 = any,
2639
+ T1 = any,
2640
+ T2 = any,
2641
+ >(
2642
+ client: SuiClient,
2643
+ args: [
2644
+ string | ObjectCallArg | TransactionArgument,
2645
+ (string | ObjectCallArg)[] | TransactionArgument,
2646
+ bigint | TransactionArgument,
2647
+ bigint | TransactionArgument,
2648
+ string | ObjectCallArg | TransactionArgument,
2649
+ ],
2650
+ typeArguments: [
2651
+ TypeDescriptor<T0> | string,
2652
+ TypeDescriptor<T1> | string,
2653
+ TypeDescriptor<T2> | string,
2654
+ ],
2655
+ ) {
2656
+ const tx = new TransactionBlock();
2657
+ builder.swapExactInputDoublehop_(tx, args, typeArguments);
2658
+ const res = await client.devInspectTransactionBlock({
2659
+ transactionBlock: tx,
2660
+ sender: ZERO_ADDRESS,
2661
+ });
2662
+ return res;
2663
+ }
2664
+ export async function swapExactOutput_<T0 = any, T1 = any>(
2665
+ client: SuiClient,
2666
+ args: [
2667
+ string | ObjectCallArg | TransactionArgument,
2668
+ (string | ObjectCallArg)[] | TransactionArgument,
2669
+ bigint | TransactionArgument,
2670
+ bigint | TransactionArgument,
2671
+ string | ObjectCallArg | TransactionArgument,
2672
+ ],
2673
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2674
+ ) {
2675
+ const tx = new TransactionBlock();
2676
+ builder.swapExactOutput_(tx, args, typeArguments);
2677
+ const res = await client.devInspectTransactionBlock({
2678
+ transactionBlock: tx,
2679
+ sender: ZERO_ADDRESS,
2680
+ });
2681
+ return res;
2682
+ }
2683
+ export async function swapExactOutputDoublehop_<
2684
+ T0 = any,
2685
+ T1 = any,
2686
+ T2 = any,
2687
+ >(
2688
+ client: SuiClient,
2689
+ args: [
2690
+ string | ObjectCallArg | TransactionArgument,
2691
+ (string | ObjectCallArg)[] | TransactionArgument,
2692
+ bigint | TransactionArgument,
2693
+ bigint | TransactionArgument,
2694
+ string | ObjectCallArg | TransactionArgument,
2695
+ ],
2696
+ typeArguments: [
2697
+ TypeDescriptor<T0> | string,
2698
+ TypeDescriptor<T1> | string,
2699
+ TypeDescriptor<T2> | string,
2700
+ ],
2701
+ ) {
2702
+ const tx = new TransactionBlock();
2703
+ builder.swapExactOutputDoublehop_(tx, args, typeArguments);
2704
+ const res = await client.devInspectTransactionBlock({
2705
+ transactionBlock: tx,
2706
+ sender: ZERO_ADDRESS,
2707
+ });
2708
+ return res;
2709
+ }
2710
+ export async function zapIn_<T0 = any, T1 = any>(
2711
+ client: SuiClient,
2712
+ args: [
2713
+ string | ObjectCallArg | TransactionArgument,
2714
+ (string | ObjectCallArg)[] | TransactionArgument,
2715
+ bigint | TransactionArgument,
2716
+ string | ObjectCallArg | TransactionArgument,
2717
+ ],
2718
+ typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2719
+ ) {
2720
+ const tx = new TransactionBlock();
2721
+ builder.zapIn_(tx, args, typeArguments);
2722
+ const res = await client.devInspectTransactionBlock({
2723
+ transactionBlock: tx,
2724
+ sender: ZERO_ADDRESS,
2725
+ });
2726
+ return res;
2727
+ }
2728
+ }
1927
2729
  }
1928
2730
 
1929
2731
  const MODULES = JSON.parse(
1930
- '{"comparator":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"comparator","friends":[],"structs":{"Result":{"abilities":{"abilities":["Drop"]},"typeParameters":[],"fields":[{"name":"inner","type":"U8"}]}},"exposedFunctions":{"compare":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"TypeParameter":0}},{"Reference":{"TypeParameter":0}}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}]},"compare_u8_vector":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"},{"Vector":"U8"}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}]},"is_equal":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}}],"return":["Bool"]},"is_greater_than":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}}],"return":["Bool"]},"is_smaller_than":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}}],"return":["Bool"]}}},"math_utils":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"math_utils","friends":[],"structs":{},"exposedFunctions":{"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"max_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":["U128"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"sqrt_u256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":["U256"]}}},"pool":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"pool","friends":[],"structs":{"ControllerCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}}]},"FeeToSet":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"fee_to","type":"Address"},{"name":"caller","type":"Address"}]},"LiquidityAdded":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"user","type":"Address"},{"name":"first_amount","type":"U64"},{"name":"second_amount","type":"U64"},{"name":"first_reserve","type":"U64"},{"name":"second_reserve","type":"U64"},{"name":"wisp_lp_amount","type":"U64"},{"name":"fee_amount","type":"U64"}]},"LiquidityRemoved":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"user","type":"Address"},{"name":"first_amount","type":"U64"},{"name":"second_amount","type":"U64"},{"name":"first_reserve","type":"U64"},{"name":"second_reserve","type":"U64"},{"name":"wisp_lp_amount","type":"U64"},{"name":"fee_amount","type":"U64"}]},"Pool":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"first_token","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"second_token","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":1}]}}},{"name":"wisp_lp_supply","type":{"Struct":{"address":"0x2","module":"balance","name":"Supply","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}},{"name":"k_last","type":"U128"}]},"PoolCreated":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool","type":"Address"},{"name":"first_amount","type":"U64"},{"name":"second_amount","type":"U64"},{"name":"wisp_lp_amount","type":"U64"}]},"PoolName":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"first_type","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"second_type","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}]},"PoolRegistry":{"abilities":{"abilities":["Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"fee_to","type":"Address"},{"name":"pools","type":{"Struct":{"address":"0x2","module":"object_bag","name":"ObjectBag","typeArguments":[]}}}]},"TokenSwapped":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"user","type":"Address"},{"name":"first_amount_in","type":"U64"},{"name":"second_amount_in","type":"U64"},{"name":"first_amount_out","type":"U64"},{"name":"second_amount_out","type":"U64"},{"name":"first_reserve","type":"U64"},{"name":"second_reserve","type":"U64"}]},"WISPLP":{"abilities":{"abilities":["Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"dummy_field","type":"Bool"}]}},"exposedFunctions":{"add_liquidity":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}]},"borrow_mut_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}]},"borrow_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}]},"create_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}]},"create_pool_name":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolName","typeArguments":[]}}]},"get_amounts":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":["U64","U64","U64"]},"get_input_amount":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","Bool"],"return":["U64"]},"get_output_amount":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","Bool"],"return":["U64"]},"get_pool_data":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":["U64","U64","U64","U64","U128"]},"is_pool_created":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":["Bool"]},"is_pool_created_sorted":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":["Bool"]},"process_swap_exact_input":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","Bool",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"process_swap_exact_output":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","Bool",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"remove_liquidity":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}},"U64","U64","U64",{"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}]}}]},"set_fee_to_":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"ControllerCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_first_to_second":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_exact_second_to_first":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"swap_first_to_exact_second":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_second_to_exact_first":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"zap_in_first":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"zap_in_second":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]}}},"pool_utils":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"pool_utils","friends":[],"structs":{},"exposedFunctions":{"execute_return_token":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"get_input_price":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64","U64","U64"],"return":["U64"]},"get_optimal_zap_in_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"get_output_price":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64","U64","U64"],"return":["U64"]},"get_triple_type":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]},{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"get_type":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"quote":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64","U64"],"return":["U64"]},"sort_token_type":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}]}}},"router":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"router","friends":[],"structs":{},"exposedFunctions":{"add_liquidity_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"create_pool_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"remove_liquidity_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}},"U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_input_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_input_doublehop_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_output_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_output_doublehop_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"zap_in_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]}}}}'
2732
+ '{"comparator":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"comparator","friends":[],"structs":{"Result":{"abilities":{"abilities":["Drop"]},"typeParameters":[],"fields":[{"name":"inner","type":"U8"}]}},"exposedFunctions":{"compare":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"TypeParameter":0}},{"Reference":{"TypeParameter":0}}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}]},"compare_u8_vector":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"},{"Vector":"U8"}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}]},"is_equal":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}}],"return":["Bool"]},"is_greater_than":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}}],"return":["Bool"]},"is_smaller_than":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}}],"return":["Bool"]}}},"math_utils":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"math_utils","friends":[],"structs":{},"exposedFunctions":{"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"max_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":["U128"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"sqrt_u256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":["U256"]}}},"pool":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"pool","friends":[],"structs":{"ControllerCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}}]},"FeeToSet":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"fee_to","type":"Address"},{"name":"caller","type":"Address"}]},"LiquidityAdded":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"user","type":"Address"},{"name":"first_amount","type":"U64"},{"name":"second_amount","type":"U64"},{"name":"first_reserve","type":"U64"},{"name":"second_reserve","type":"U64"},{"name":"wisp_lp_amount","type":"U64"},{"name":"fee_amount","type":"U64"}]},"LiquidityRemoved":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"user","type":"Address"},{"name":"first_amount","type":"U64"},{"name":"second_amount","type":"U64"},{"name":"first_reserve","type":"U64"},{"name":"second_reserve","type":"U64"},{"name":"wisp_lp_amount","type":"U64"},{"name":"fee_amount","type":"U64"}]},"Pool":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"first_token","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"second_token","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":1}]}}},{"name":"wisp_lp_supply","type":{"Struct":{"address":"0x2","module":"balance","name":"Supply","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}},{"name":"k_last","type":"U128"}]},"PoolCreated":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"pool","type":"Address"},{"name":"first_amount","type":"U64"},{"name":"second_amount","type":"U64"},{"name":"wisp_lp_amount","type":"U64"}]},"PoolName":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"first_type","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"name":"second_type","type":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}]},"PoolRegistry":{"abilities":{"abilities":["Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"fee_to","type":"Address"},{"name":"pools","type":{"Struct":{"address":"0x2","module":"object_bag","name":"ObjectBag","typeArguments":[]}}}]},"TokenSwapped":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"user","type":"Address"},{"name":"first_amount_in","type":"U64"},{"name":"second_amount_in","type":"U64"},{"name":"first_amount_out","type":"U64"},{"name":"second_amount_out","type":"U64"},{"name":"first_reserve","type":"U64"},{"name":"second_reserve","type":"U64"}]},"WISPLP":{"abilities":{"abilities":["Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true},{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"dummy_field","type":"Bool"}]}},"exposedFunctions":{"add_liquidity":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}]},"borrow_mut_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}]},"borrow_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}]},"create_pool":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}]},"create_pool_name":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolName","typeArguments":[]}}]},"get_amounts":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":["U64","U64","U64"]},"get_input_amount":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","Bool"],"return":["U64"]},"get_output_amount":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},"U64","Bool"],"return":["U64"]},"get_pool_data":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}}],"return":["U64","U64","U64","U64","U128"]},"is_pool_created":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":["Bool"]},"is_pool_created_sorted":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}}],"return":["Bool"]},"process_swap_exact_input":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","Bool",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"process_swap_exact_output":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"Pool","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","Bool",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"remove_liquidity":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}},"U64","U64","U64",{"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}]}}]},"set_fee_to_":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"ControllerCap","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_first_to_second":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_exact_second_to_first":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"swap_first_to_exact_second":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"swap_second_to_exact_first":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"zap_in_first":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}]},"zap_in_second":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]}}},"pool_utils":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"pool_utils","friends":[],"structs":{},"exposedFunctions":{"execute_return_token":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"get_input_price":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64","U64","U64"],"return":["U64"]},"get_optimal_zap_in_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"get_output_price":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64","U64","U64"],"return":["U64"]},"get_triple_type":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]},{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"get_type":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"quote":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64","U64"],"return":["U64"]},"sort_token_type":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"comparator","name":"Result","typeArguments":[]}}]}}},"router":{"fileFormatVersion":6,"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","name":"router","friends":[],"structs":{},"exposedFunctions":{"add_liquidity_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"create_pool_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":1}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"remove_liquidity_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"WISPLP","typeArguments":[{"TypeParameter":0},{"TypeParameter":1}]}}]}}},"U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_input_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_input_doublehop_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_output_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"swap_exact_output_doublehop_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"zap_in_":{"visibility":"Public","isEntry":true,"typeParameters":[{"abilities":[]},{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a","module":"pool","name":"PoolRegistry","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]}}}}',
1931
2733
  );
1932
2734
 
1933
2735
  export function loadAllTypes(coder: MoveCoder) {