@typemove/sui 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/builtin/0x1.d.ts +187 -131
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +696 -131
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +572 -572
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +569 -569
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +422 -242
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +639 -239
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.d.ts +1 -1
- package/dist/cjs/codegen/codegen.d.ts.map +1 -1
- package/dist/cjs/codegen/codegen.js +7 -7
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/models.d.ts +1 -1
- package/dist/cjs/models.d.ts.map +1 -1
- package/dist/cjs/move-coder.d.ts +5 -4
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +62 -23
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/cjs/move-coder.test.js.map +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts.map +1 -1
- package/dist/cjs/sui-chain-adapter.js +1 -1
- package/dist/cjs/sui-chain-adapter.js.map +1 -1
- package/dist/cjs/to-internal.d.ts +1 -1
- package/dist/cjs/to-internal.d.ts.map +1 -1
- package/dist/cjs/to-internal.js +4 -4
- package/dist/cjs/transaction.d.ts +4 -4
- package/dist/cjs/transaction.d.ts.map +1 -1
- package/dist/cjs/transaction.js +2 -2
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +187 -131
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +696 -131
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +572 -572
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +569 -569
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +422 -242
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +639 -239
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.d.ts +1 -1
- package/dist/esm/codegen/codegen.d.ts.map +1 -1
- package/dist/esm/codegen/codegen.js +7 -7
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/codegen/run.js +1 -1
- package/dist/esm/codegen/run.js.map +1 -1
- package/dist/esm/models.d.ts +1 -1
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/move-coder.d.ts +5 -4
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +62 -23
- package/dist/esm/move-coder.js.map +1 -1
- package/dist/esm/move-coder.test.js.map +1 -1
- package/dist/esm/sui-chain-adapter.d.ts +1 -1
- package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
- package/dist/esm/sui-chain-adapter.js +1 -1
- package/dist/esm/sui-chain-adapter.js.map +1 -1
- package/dist/esm/to-internal.d.ts +1 -1
- package/dist/esm/to-internal.d.ts.map +1 -1
- package/dist/esm/to-internal.js +5 -5
- package/dist/esm/to-internal.js.map +1 -1
- package/dist/esm/transaction.d.ts +4 -4
- package/dist/esm/transaction.d.ts.map +1 -1
- package/dist/esm/transaction.js +2 -2
- package/dist/esm/transaction.js.map +1 -1
- package/package.json +3 -4
- package/src/abis/0x1.json +499 -0
- package/src/abis/0x3.json +900 -41
- package/src/builtin/0x1.ts +1058 -267
- package/src/builtin/0x2.ts +1141 -1165
- package/src/builtin/0x3.ts +1171 -485
- package/src/codegen/codegen.ts +7 -7
- package/src/codegen/run.ts +1 -1
- package/src/models.ts +1 -1
- package/src/move-coder.ts +60 -28
- package/src/sui-chain-adapter.ts +1 -1
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +11 -11
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +99 -99
- package/src/tests/types/testnet/0xdee9.ts +183 -183
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +313 -316
- package/src/to-internal.ts +7 -7
- package/src/transaction.ts +6 -6
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
getMoveCoder,
|
|
16
16
|
} from "@typemove/sui";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
Transaction,
|
|
19
19
|
TransactionArgument,
|
|
20
20
|
TransactionObjectArgument,
|
|
21
|
-
} from "@mysten/sui
|
|
22
|
-
import { SuiClient } from "@mysten/sui
|
|
21
|
+
} from "@mysten/sui/transactions";
|
|
22
|
+
import { SuiClient } from "@mysten/sui/client";
|
|
23
23
|
import {
|
|
24
24
|
transactionArgumentOrObject,
|
|
25
25
|
transactionArgumentOrPure,
|
|
@@ -47,7 +47,7 @@ export namespace comparator {
|
|
|
47
47
|
|
|
48
48
|
export namespace builder {
|
|
49
49
|
export function compare<T0 = any>(
|
|
50
|
-
tx:
|
|
50
|
+
tx: Transaction,
|
|
51
51
|
args: [
|
|
52
52
|
string | TransactionObjectArgument | TransactionArgument,
|
|
53
53
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -71,7 +71,7 @@ export namespace comparator {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
export function compareU8Vector(
|
|
74
|
-
tx:
|
|
74
|
+
tx: Transaction,
|
|
75
75
|
args: [
|
|
76
76
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
77
77
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -89,7 +89,7 @@ export namespace comparator {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
export function isEqual(
|
|
92
|
-
tx:
|
|
92
|
+
tx: Transaction,
|
|
93
93
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
94
94
|
): TransactionArgument & [TransactionArgument] {
|
|
95
95
|
const _args: any[] = [];
|
|
@@ -103,7 +103,7 @@ export namespace comparator {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
export function isGreaterThan(
|
|
106
|
-
tx:
|
|
106
|
+
tx: Transaction,
|
|
107
107
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
108
108
|
): TransactionArgument & [TransactionArgument] {
|
|
109
109
|
const _args: any[] = [];
|
|
@@ -117,7 +117,7 @@ export namespace comparator {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
export function isSmallerThan(
|
|
120
|
-
tx:
|
|
120
|
+
tx: Transaction,
|
|
121
121
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
122
122
|
): TransactionArgument & [TransactionArgument] {
|
|
123
123
|
const _args: any[] = [];
|
|
@@ -140,7 +140,7 @@ export namespace comparator {
|
|
|
140
140
|
],
|
|
141
141
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
142
142
|
): Promise<TypedDevInspectResults<[comparator.Result]>> {
|
|
143
|
-
const tx = new
|
|
143
|
+
const tx = new Transaction();
|
|
144
144
|
builder.compare(tx, args, typeArguments);
|
|
145
145
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
146
146
|
transactionBlock: tx,
|
|
@@ -158,7 +158,7 @@ export namespace comparator {
|
|
|
158
158
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
159
159
|
],
|
|
160
160
|
): Promise<TypedDevInspectResults<[comparator.Result]>> {
|
|
161
|
-
const tx = new
|
|
161
|
+
const tx = new Transaction();
|
|
162
162
|
builder.compareU8Vector(tx, args);
|
|
163
163
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
164
164
|
transactionBlock: tx,
|
|
@@ -173,7 +173,7 @@ export namespace comparator {
|
|
|
173
173
|
client: SuiClient,
|
|
174
174
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
175
175
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
176
|
-
const tx = new
|
|
176
|
+
const tx = new Transaction();
|
|
177
177
|
builder.isEqual(tx, args);
|
|
178
178
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
179
179
|
transactionBlock: tx,
|
|
@@ -188,7 +188,7 @@ export namespace comparator {
|
|
|
188
188
|
client: SuiClient,
|
|
189
189
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
190
190
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
191
|
-
const tx = new
|
|
191
|
+
const tx = new Transaction();
|
|
192
192
|
builder.isGreaterThan(tx, args);
|
|
193
193
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
194
194
|
transactionBlock: tx,
|
|
@@ -203,7 +203,7 @@ export namespace comparator {
|
|
|
203
203
|
client: SuiClient,
|
|
204
204
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
205
205
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
206
|
-
const tx = new
|
|
206
|
+
const tx = new Transaction();
|
|
207
207
|
builder.isSmallerThan(tx, args);
|
|
208
208
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
209
209
|
transactionBlock: tx,
|
|
@@ -220,7 +220,7 @@ export namespace comparator {
|
|
|
220
220
|
export namespace math_utils {
|
|
221
221
|
export namespace builder {
|
|
222
222
|
export function max(
|
|
223
|
-
tx:
|
|
223
|
+
tx: Transaction,
|
|
224
224
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
225
225
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
226
226
|
const _args: any[] = [];
|
|
@@ -235,7 +235,7 @@ export namespace math_utils {
|
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
export function maxU64(
|
|
238
|
-
tx:
|
|
238
|
+
tx: Transaction,
|
|
239
239
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
240
240
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
241
241
|
const _args: any[] = [];
|
|
@@ -250,7 +250,7 @@ export namespace math_utils {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
export function min(
|
|
253
|
-
tx:
|
|
253
|
+
tx: Transaction,
|
|
254
254
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
255
255
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
256
256
|
const _args: any[] = [];
|
|
@@ -265,7 +265,7 @@ export namespace math_utils {
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
export function pow(
|
|
268
|
-
tx:
|
|
268
|
+
tx: Transaction,
|
|
269
269
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
270
270
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
271
271
|
const _args: any[] = [];
|
|
@@ -280,7 +280,7 @@ export namespace math_utils {
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
export function sqrt(
|
|
283
|
-
tx:
|
|
283
|
+
tx: Transaction,
|
|
284
284
|
args: [bigint | TransactionArgument],
|
|
285
285
|
): TransactionArgument & [TransactionArgument] {
|
|
286
286
|
const _args: any[] = [];
|
|
@@ -294,7 +294,7 @@ export namespace math_utils {
|
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
export function sqrtU256(
|
|
297
|
-
tx:
|
|
297
|
+
tx: Transaction,
|
|
298
298
|
args: [bigint | TransactionArgument],
|
|
299
299
|
): TransactionArgument & [TransactionArgument] {
|
|
300
300
|
const _args: any[] = [];
|
|
@@ -313,7 +313,7 @@ export namespace math_utils {
|
|
|
313
313
|
client: SuiClient,
|
|
314
314
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
315
315
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
316
|
-
const tx = new
|
|
316
|
+
const tx = new Transaction();
|
|
317
317
|
builder.max(tx, args);
|
|
318
318
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
319
319
|
transactionBlock: tx,
|
|
@@ -328,7 +328,7 @@ export namespace math_utils {
|
|
|
328
328
|
client: SuiClient,
|
|
329
329
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
330
330
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
331
|
-
const tx = new
|
|
331
|
+
const tx = new Transaction();
|
|
332
332
|
builder.maxU64(tx, args);
|
|
333
333
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
334
334
|
transactionBlock: tx,
|
|
@@ -343,7 +343,7 @@ export namespace math_utils {
|
|
|
343
343
|
client: SuiClient,
|
|
344
344
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
345
345
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
346
|
-
const tx = new
|
|
346
|
+
const tx = new Transaction();
|
|
347
347
|
builder.min(tx, args);
|
|
348
348
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
349
349
|
transactionBlock: tx,
|
|
@@ -358,7 +358,7 @@ export namespace math_utils {
|
|
|
358
358
|
client: SuiClient,
|
|
359
359
|
args: [bigint | TransactionArgument, number | TransactionArgument],
|
|
360
360
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
361
|
-
const tx = new
|
|
361
|
+
const tx = new Transaction();
|
|
362
362
|
builder.pow(tx, args);
|
|
363
363
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
364
364
|
transactionBlock: tx,
|
|
@@ -373,7 +373,7 @@ export namespace math_utils {
|
|
|
373
373
|
client: SuiClient,
|
|
374
374
|
args: [bigint | TransactionArgument],
|
|
375
375
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
376
|
-
const tx = new
|
|
376
|
+
const tx = new Transaction();
|
|
377
377
|
builder.sqrt(tx, args);
|
|
378
378
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
379
379
|
transactionBlock: tx,
|
|
@@ -388,7 +388,7 @@ export namespace math_utils {
|
|
|
388
388
|
client: SuiClient,
|
|
389
389
|
args: [bigint | TransactionArgument],
|
|
390
390
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
391
|
-
const tx = new
|
|
391
|
+
const tx = new Transaction();
|
|
392
392
|
builder.sqrtU256(tx, args);
|
|
393
393
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
394
394
|
transactionBlock: tx,
|
|
@@ -644,7 +644,7 @@ export namespace pool {
|
|
|
644
644
|
|
|
645
645
|
export namespace builder {
|
|
646
646
|
export function addLiquidity<T0 = any, T1 = any>(
|
|
647
|
-
tx:
|
|
647
|
+
tx: Transaction,
|
|
648
648
|
args: [
|
|
649
649
|
string | TransactionObjectArgument | TransactionArgument,
|
|
650
650
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -690,7 +690,7 @@ export namespace pool {
|
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
692
|
export function borrowMutPool<T0 = any, T1 = any>(
|
|
693
|
-
tx:
|
|
693
|
+
tx: Transaction,
|
|
694
694
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
695
695
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
696
696
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -713,7 +713,7 @@ export namespace pool {
|
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
715
|
export function borrowPool<T0 = any, T1 = any>(
|
|
716
|
-
tx:
|
|
716
|
+
tx: Transaction,
|
|
717
717
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
718
718
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
719
719
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -736,7 +736,7 @@ export namespace pool {
|
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
738
|
export function createPool<T0 = any, T1 = any>(
|
|
739
|
-
tx:
|
|
739
|
+
tx: Transaction,
|
|
740
740
|
args: [
|
|
741
741
|
string | TransactionObjectArgument | TransactionArgument,
|
|
742
742
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -776,7 +776,7 @@ export namespace pool {
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
export function createPoolName(
|
|
779
|
-
tx:
|
|
779
|
+
tx: Transaction,
|
|
780
780
|
args: [
|
|
781
781
|
_0x1.type_name.TypeName | TransactionArgument,
|
|
782
782
|
_0x1.type_name.TypeName | TransactionArgument,
|
|
@@ -794,7 +794,7 @@ export namespace pool {
|
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
export function getAmounts<T0 = any, T1 = any>(
|
|
797
|
-
tx:
|
|
797
|
+
tx: Transaction,
|
|
798
798
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
799
799
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
800
800
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -817,7 +817,7 @@ export namespace pool {
|
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
export function getInputAmount<T0 = any, T1 = any>(
|
|
820
|
-
tx:
|
|
820
|
+
tx: Transaction,
|
|
821
821
|
args: [
|
|
822
822
|
string | TransactionObjectArgument | TransactionArgument,
|
|
823
823
|
bigint | TransactionArgument,
|
|
@@ -847,7 +847,7 @@ export namespace pool {
|
|
|
847
847
|
});
|
|
848
848
|
}
|
|
849
849
|
export function getOutputAmount<T0 = any, T1 = any>(
|
|
850
|
-
tx:
|
|
850
|
+
tx: Transaction,
|
|
851
851
|
args: [
|
|
852
852
|
string | TransactionObjectArgument | TransactionArgument,
|
|
853
853
|
bigint | TransactionArgument,
|
|
@@ -877,7 +877,7 @@ export namespace pool {
|
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
export function getPoolData<T0 = any, T1 = any>(
|
|
880
|
-
tx:
|
|
880
|
+
tx: Transaction,
|
|
881
881
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
882
882
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
883
883
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -900,7 +900,7 @@ export namespace pool {
|
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
902
|
export function isPoolCreated<T0 = any, T1 = any>(
|
|
903
|
-
tx:
|
|
903
|
+
tx: Transaction,
|
|
904
904
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
905
905
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
906
906
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -923,7 +923,7 @@ export namespace pool {
|
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
export function isPoolCreatedSorted<T0 = any, T1 = any>(
|
|
926
|
-
tx:
|
|
926
|
+
tx: Transaction,
|
|
927
927
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
928
928
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
929
929
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -946,7 +946,7 @@ export namespace pool {
|
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
948
|
export function processSwapExactInput<T0 = any, T1 = any>(
|
|
949
|
-
tx:
|
|
949
|
+
tx: Transaction,
|
|
950
950
|
args: [
|
|
951
951
|
string | TransactionObjectArgument | TransactionArgument,
|
|
952
952
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -986,7 +986,7 @@ export namespace pool {
|
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
export function processSwapExactOutput<T0 = any, T1 = any>(
|
|
989
|
-
tx:
|
|
989
|
+
tx: Transaction,
|
|
990
990
|
args: [
|
|
991
991
|
string | TransactionObjectArgument | TransactionArgument,
|
|
992
992
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1026,7 +1026,7 @@ export namespace pool {
|
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
1028
|
export function removeLiquidity<T0 = any, T1 = any>(
|
|
1029
|
-
tx:
|
|
1029
|
+
tx: Transaction,
|
|
1030
1030
|
args: [
|
|
1031
1031
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1032
1032
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1066,7 +1066,7 @@ export namespace pool {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
export function setFeeTo_(
|
|
1069
|
-
tx:
|
|
1069
|
+
tx: Transaction,
|
|
1070
1070
|
args: [
|
|
1071
1071
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1072
1072
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1087,7 +1087,7 @@ export namespace pool {
|
|
|
1087
1087
|
});
|
|
1088
1088
|
}
|
|
1089
1089
|
export function swapExactFirstToSecond<T0 = any, T1 = any>(
|
|
1090
|
-
tx:
|
|
1090
|
+
tx: Transaction,
|
|
1091
1091
|
args: [
|
|
1092
1092
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1093
1093
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1124,7 +1124,7 @@ export namespace pool {
|
|
|
1124
1124
|
});
|
|
1125
1125
|
}
|
|
1126
1126
|
export function swapExactSecondToFirst<T0 = any, T1 = any>(
|
|
1127
|
-
tx:
|
|
1127
|
+
tx: Transaction,
|
|
1128
1128
|
args: [
|
|
1129
1129
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1130
1130
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1161,7 +1161,7 @@ export namespace pool {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
1163
1163
|
export function swapFirstToExactSecond<T0 = any, T1 = any>(
|
|
1164
|
-
tx:
|
|
1164
|
+
tx: Transaction,
|
|
1165
1165
|
args: [
|
|
1166
1166
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1167
1167
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1198,7 +1198,7 @@ export namespace pool {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
}
|
|
1200
1200
|
export function swapSecondToExactFirst<T0 = any, T1 = any>(
|
|
1201
|
-
tx:
|
|
1201
|
+
tx: Transaction,
|
|
1202
1202
|
args: [
|
|
1203
1203
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1204
1204
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1235,7 +1235,7 @@ export namespace pool {
|
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
export function zapInFirst<T0 = any, T1 = any>(
|
|
1238
|
-
tx:
|
|
1238
|
+
tx: Transaction,
|
|
1239
1239
|
args: [
|
|
1240
1240
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1241
1241
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1265,7 +1265,7 @@ export namespace pool {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
}
|
|
1267
1267
|
export function zapInSecond<T0 = any, T1 = any>(
|
|
1268
|
-
tx:
|
|
1268
|
+
tx: Transaction,
|
|
1269
1269
|
args: [
|
|
1270
1270
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1271
1271
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1309,7 +1309,7 @@ export namespace pool {
|
|
|
1309
1309
|
],
|
|
1310
1310
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1311
1311
|
): Promise<TypedDevInspectResults<[_0x2.coin.Coin<pool.WISPLP<T0, T1>>]>> {
|
|
1312
|
-
const tx = new
|
|
1312
|
+
const tx = new Transaction();
|
|
1313
1313
|
builder.addLiquidity(tx, args, typeArguments);
|
|
1314
1314
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1315
1315
|
transactionBlock: tx,
|
|
@@ -1325,7 +1325,7 @@ export namespace pool {
|
|
|
1325
1325
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1326
1326
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1327
1327
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
1328
|
-
const tx = new
|
|
1328
|
+
const tx = new Transaction();
|
|
1329
1329
|
builder.borrowMutPool(tx, args, typeArguments);
|
|
1330
1330
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1331
1331
|
transactionBlock: tx,
|
|
@@ -1341,7 +1341,7 @@ export namespace pool {
|
|
|
1341
1341
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1342
1342
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1343
1343
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
1344
|
-
const tx = new
|
|
1344
|
+
const tx = new Transaction();
|
|
1345
1345
|
builder.borrowPool(tx, args, typeArguments);
|
|
1346
1346
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1347
1347
|
transactionBlock: tx,
|
|
@@ -1363,7 +1363,7 @@ export namespace pool {
|
|
|
1363
1363
|
],
|
|
1364
1364
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1365
1365
|
): Promise<TypedDevInspectResults<[_0x2.coin.Coin<pool.WISPLP<T0, T1>>]>> {
|
|
1366
|
-
const tx = new
|
|
1366
|
+
const tx = new Transaction();
|
|
1367
1367
|
builder.createPool(tx, args, typeArguments);
|
|
1368
1368
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1369
1369
|
transactionBlock: tx,
|
|
@@ -1381,7 +1381,7 @@ export namespace pool {
|
|
|
1381
1381
|
_0x1.type_name.TypeName | TransactionArgument,
|
|
1382
1382
|
],
|
|
1383
1383
|
): Promise<TypedDevInspectResults<[pool.PoolName]>> {
|
|
1384
|
-
const tx = new
|
|
1384
|
+
const tx = new Transaction();
|
|
1385
1385
|
builder.createPoolName(tx, args);
|
|
1386
1386
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1387
1387
|
transactionBlock: tx,
|
|
@@ -1397,7 +1397,7 @@ export namespace pool {
|
|
|
1397
1397
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1398
1398
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1399
1399
|
): Promise<TypedDevInspectResults<[bigint, bigint, bigint]>> {
|
|
1400
|
-
const tx = new
|
|
1400
|
+
const tx = new Transaction();
|
|
1401
1401
|
builder.getAmounts(tx, args, typeArguments);
|
|
1402
1402
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1403
1403
|
transactionBlock: tx,
|
|
@@ -1417,7 +1417,7 @@ export namespace pool {
|
|
|
1417
1417
|
],
|
|
1418
1418
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1419
1419
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1420
|
-
const tx = new
|
|
1420
|
+
const tx = new Transaction();
|
|
1421
1421
|
builder.getInputAmount(tx, args, typeArguments);
|
|
1422
1422
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1423
1423
|
transactionBlock: tx,
|
|
@@ -1437,7 +1437,7 @@ export namespace pool {
|
|
|
1437
1437
|
],
|
|
1438
1438
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1439
1439
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1440
|
-
const tx = new
|
|
1440
|
+
const tx = new Transaction();
|
|
1441
1441
|
builder.getOutputAmount(tx, args, typeArguments);
|
|
1442
1442
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1443
1443
|
transactionBlock: tx,
|
|
@@ -1455,7 +1455,7 @@ export namespace pool {
|
|
|
1455
1455
|
): Promise<
|
|
1456
1456
|
TypedDevInspectResults<[bigint, bigint, bigint, bigint, bigint]>
|
|
1457
1457
|
> {
|
|
1458
|
-
const tx = new
|
|
1458
|
+
const tx = new Transaction();
|
|
1459
1459
|
builder.getPoolData(tx, args, typeArguments);
|
|
1460
1460
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1461
1461
|
transactionBlock: tx,
|
|
@@ -1471,7 +1471,7 @@ export namespace pool {
|
|
|
1471
1471
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1472
1472
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1473
1473
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1474
|
-
const tx = new
|
|
1474
|
+
const tx = new Transaction();
|
|
1475
1475
|
builder.isPoolCreated(tx, args, typeArguments);
|
|
1476
1476
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1477
1477
|
transactionBlock: tx,
|
|
@@ -1487,7 +1487,7 @@ export namespace pool {
|
|
|
1487
1487
|
args: [string | TransactionObjectArgument | TransactionArgument],
|
|
1488
1488
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1489
1489
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1490
|
-
const tx = new
|
|
1490
|
+
const tx = new Transaction();
|
|
1491
1491
|
builder.isPoolCreatedSorted(tx, args, typeArguments);
|
|
1492
1492
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1493
1493
|
transactionBlock: tx,
|
|
@@ -1509,7 +1509,7 @@ export namespace pool {
|
|
|
1509
1509
|
],
|
|
1510
1510
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1511
1511
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1512
|
-
const tx = new
|
|
1512
|
+
const tx = new Transaction();
|
|
1513
1513
|
builder.processSwapExactInput(tx, args, typeArguments);
|
|
1514
1514
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1515
1515
|
transactionBlock: tx,
|
|
@@ -1531,7 +1531,7 @@ export namespace pool {
|
|
|
1531
1531
|
],
|
|
1532
1532
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1533
1533
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1534
|
-
const tx = new
|
|
1534
|
+
const tx = new Transaction();
|
|
1535
1535
|
builder.processSwapExactOutput(tx, args, typeArguments);
|
|
1536
1536
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1537
1537
|
transactionBlock: tx,
|
|
@@ -1555,7 +1555,7 @@ export namespace pool {
|
|
|
1555
1555
|
): Promise<
|
|
1556
1556
|
TypedDevInspectResults<[_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>]>
|
|
1557
1557
|
> {
|
|
1558
|
-
const tx = new
|
|
1558
|
+
const tx = new Transaction();
|
|
1559
1559
|
builder.removeLiquidity(tx, args, typeArguments);
|
|
1560
1560
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1561
1561
|
transactionBlock: tx,
|
|
@@ -1574,7 +1574,7 @@ export namespace pool {
|
|
|
1574
1574
|
string | TransactionArgument,
|
|
1575
1575
|
],
|
|
1576
1576
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1577
|
-
const tx = new
|
|
1577
|
+
const tx = new Transaction();
|
|
1578
1578
|
builder.setFeeTo_(tx, args);
|
|
1579
1579
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1580
1580
|
transactionBlock: tx,
|
|
@@ -1595,7 +1595,7 @@ export namespace pool {
|
|
|
1595
1595
|
],
|
|
1596
1596
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1597
1597
|
): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T1>]>> {
|
|
1598
|
-
const tx = new
|
|
1598
|
+
const tx = new Transaction();
|
|
1599
1599
|
builder.swapExactFirstToSecond(tx, args, typeArguments);
|
|
1600
1600
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1601
1601
|
transactionBlock: tx,
|
|
@@ -1616,7 +1616,7 @@ export namespace pool {
|
|
|
1616
1616
|
],
|
|
1617
1617
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1618
1618
|
): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T0>]>> {
|
|
1619
|
-
const tx = new
|
|
1619
|
+
const tx = new Transaction();
|
|
1620
1620
|
builder.swapExactSecondToFirst(tx, args, typeArguments);
|
|
1621
1621
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1622
1622
|
transactionBlock: tx,
|
|
@@ -1637,7 +1637,7 @@ export namespace pool {
|
|
|
1637
1637
|
],
|
|
1638
1638
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1639
1639
|
): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T1>]>> {
|
|
1640
|
-
const tx = new
|
|
1640
|
+
const tx = new Transaction();
|
|
1641
1641
|
builder.swapFirstToExactSecond(tx, args, typeArguments);
|
|
1642
1642
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1643
1643
|
transactionBlock: tx,
|
|
@@ -1658,7 +1658,7 @@ export namespace pool {
|
|
|
1658
1658
|
],
|
|
1659
1659
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1660
1660
|
): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T0>]>> {
|
|
1661
|
-
const tx = new
|
|
1661
|
+
const tx = new Transaction();
|
|
1662
1662
|
builder.swapSecondToExactFirst(tx, args, typeArguments);
|
|
1663
1663
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1664
1664
|
transactionBlock: tx,
|
|
@@ -1682,7 +1682,7 @@ export namespace pool {
|
|
|
1682
1682
|
[_0x2.coin.Coin<pool.WISPLP<T0, T1>>, _0x2.coin.Coin<T1>]
|
|
1683
1683
|
>
|
|
1684
1684
|
> {
|
|
1685
|
-
const tx = new
|
|
1685
|
+
const tx = new Transaction();
|
|
1686
1686
|
builder.zapInFirst(tx, args, typeArguments);
|
|
1687
1687
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1688
1688
|
transactionBlock: tx,
|
|
@@ -1706,7 +1706,7 @@ export namespace pool {
|
|
|
1706
1706
|
[_0x2.coin.Coin<pool.WISPLP<T0, T1>>, _0x2.coin.Coin<T0>]
|
|
1707
1707
|
>
|
|
1708
1708
|
> {
|
|
1709
|
-
const tx = new
|
|
1709
|
+
const tx = new Transaction();
|
|
1710
1710
|
builder.zapInSecond(tx, args, typeArguments);
|
|
1711
1711
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1712
1712
|
transactionBlock: tx,
|
|
@@ -1723,7 +1723,7 @@ export namespace pool {
|
|
|
1723
1723
|
export namespace pool_utils {
|
|
1724
1724
|
export namespace builder {
|
|
1725
1725
|
export function executeReturnToken<T0 = any>(
|
|
1726
|
-
tx:
|
|
1726
|
+
tx: Transaction,
|
|
1727
1727
|
args: [_0x2.coin.Coin<T0> | TransactionArgument],
|
|
1728
1728
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1729
1729
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1743,7 +1743,7 @@ export namespace pool_utils {
|
|
|
1743
1743
|
});
|
|
1744
1744
|
}
|
|
1745
1745
|
export function getInputPrice(
|
|
1746
|
-
tx:
|
|
1746
|
+
tx: Transaction,
|
|
1747
1747
|
args: [
|
|
1748
1748
|
bigint | TransactionArgument,
|
|
1749
1749
|
bigint | TransactionArgument,
|
|
@@ -1771,7 +1771,7 @@ export namespace pool_utils {
|
|
|
1771
1771
|
});
|
|
1772
1772
|
}
|
|
1773
1773
|
export function getOptimalZapInAmount(
|
|
1774
|
-
tx:
|
|
1774
|
+
tx: Transaction,
|
|
1775
1775
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
1776
1776
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
1777
1777
|
const _args: any[] = [];
|
|
@@ -1786,7 +1786,7 @@ export namespace pool_utils {
|
|
|
1786
1786
|
});
|
|
1787
1787
|
}
|
|
1788
1788
|
export function getOutputPrice(
|
|
1789
|
-
tx:
|
|
1789
|
+
tx: Transaction,
|
|
1790
1790
|
args: [
|
|
1791
1791
|
bigint | TransactionArgument,
|
|
1792
1792
|
bigint | TransactionArgument,
|
|
@@ -1814,7 +1814,7 @@ export namespace pool_utils {
|
|
|
1814
1814
|
});
|
|
1815
1815
|
}
|
|
1816
1816
|
export function getTripleType<T0 = any, T1 = any, T2 = any>(
|
|
1817
|
-
tx:
|
|
1817
|
+
tx: Transaction,
|
|
1818
1818
|
args: [],
|
|
1819
1819
|
typeArguments: [
|
|
1820
1820
|
TypeDescriptor<T0> | string,
|
|
@@ -1843,7 +1843,7 @@ export namespace pool_utils {
|
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
1845
1845
|
export function getType<T0 = any, T1 = any>(
|
|
1846
|
-
tx:
|
|
1846
|
+
tx: Transaction,
|
|
1847
1847
|
args: [],
|
|
1848
1848
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1849
1849
|
): TransactionArgument & [] {
|
|
@@ -1865,7 +1865,7 @@ export namespace pool_utils {
|
|
|
1865
1865
|
});
|
|
1866
1866
|
}
|
|
1867
1867
|
export function quote(
|
|
1868
|
-
tx:
|
|
1868
|
+
tx: Transaction,
|
|
1869
1869
|
args: [
|
|
1870
1870
|
bigint | TransactionArgument,
|
|
1871
1871
|
bigint | TransactionArgument,
|
|
@@ -1886,7 +1886,7 @@ export namespace pool_utils {
|
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|
|
1888
1888
|
export function sortTokenType(
|
|
1889
|
-
tx:
|
|
1889
|
+
tx: Transaction,
|
|
1890
1890
|
args: [
|
|
1891
1891
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1892
1892
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1910,7 +1910,7 @@ export namespace pool_utils {
|
|
|
1910
1910
|
args: [_0x2.coin.Coin<T0> | TransactionArgument],
|
|
1911
1911
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1912
1912
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1913
|
-
const tx = new
|
|
1913
|
+
const tx = new Transaction();
|
|
1914
1914
|
builder.executeReturnToken(tx, args, typeArguments);
|
|
1915
1915
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1916
1916
|
transactionBlock: tx,
|
|
@@ -1930,7 +1930,7 @@ export namespace pool_utils {
|
|
|
1930
1930
|
bigint | TransactionArgument,
|
|
1931
1931
|
],
|
|
1932
1932
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1933
|
-
const tx = new
|
|
1933
|
+
const tx = new Transaction();
|
|
1934
1934
|
builder.getInputPrice(tx, args);
|
|
1935
1935
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1936
1936
|
transactionBlock: tx,
|
|
@@ -1945,7 +1945,7 @@ export namespace pool_utils {
|
|
|
1945
1945
|
client: SuiClient,
|
|
1946
1946
|
args: [bigint | TransactionArgument, bigint | TransactionArgument],
|
|
1947
1947
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1948
|
-
const tx = new
|
|
1948
|
+
const tx = new Transaction();
|
|
1949
1949
|
builder.getOptimalZapInAmount(tx, args);
|
|
1950
1950
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1951
1951
|
transactionBlock: tx,
|
|
@@ -1965,7 +1965,7 @@ export namespace pool_utils {
|
|
|
1965
1965
|
bigint | TransactionArgument,
|
|
1966
1966
|
],
|
|
1967
1967
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1968
|
-
const tx = new
|
|
1968
|
+
const tx = new Transaction();
|
|
1969
1969
|
builder.getOutputPrice(tx, args);
|
|
1970
1970
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1971
1971
|
transactionBlock: tx,
|
|
@@ -1993,7 +1993,7 @@ export namespace pool_utils {
|
|
|
1993
1993
|
]
|
|
1994
1994
|
>
|
|
1995
1995
|
> {
|
|
1996
|
-
const tx = new
|
|
1996
|
+
const tx = new Transaction();
|
|
1997
1997
|
builder.getTripleType(tx, args, typeArguments);
|
|
1998
1998
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1999
1999
|
transactionBlock: tx,
|
|
@@ -2015,7 +2015,7 @@ export namespace pool_utils {
|
|
|
2015
2015
|
): Promise<
|
|
2016
2016
|
TypedDevInspectResults<[_0x1.type_name.TypeName, _0x1.type_name.TypeName]>
|
|
2017
2017
|
> {
|
|
2018
|
-
const tx = new
|
|
2018
|
+
const tx = new Transaction();
|
|
2019
2019
|
builder.getType(tx, args, typeArguments);
|
|
2020
2020
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2021
2021
|
transactionBlock: tx,
|
|
@@ -2034,7 +2034,7 @@ export namespace pool_utils {
|
|
|
2034
2034
|
bigint | TransactionArgument,
|
|
2035
2035
|
],
|
|
2036
2036
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2037
|
-
const tx = new
|
|
2037
|
+
const tx = new Transaction();
|
|
2038
2038
|
builder.quote(tx, args);
|
|
2039
2039
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2040
2040
|
transactionBlock: tx,
|
|
@@ -2052,7 +2052,7 @@ export namespace pool_utils {
|
|
|
2052
2052
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2053
2053
|
],
|
|
2054
2054
|
): Promise<TypedDevInspectResults<[comparator.Result]>> {
|
|
2055
|
-
const tx = new
|
|
2055
|
+
const tx = new Transaction();
|
|
2056
2056
|
builder.sortTokenType(tx, args);
|
|
2057
2057
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2058
2058
|
transactionBlock: tx,
|
|
@@ -2069,7 +2069,7 @@ export namespace pool_utils {
|
|
|
2069
2069
|
export namespace router {
|
|
2070
2070
|
export namespace builder {
|
|
2071
2071
|
export function addLiquidity_<T0 = any, T1 = any>(
|
|
2072
|
-
tx:
|
|
2072
|
+
tx: Transaction,
|
|
2073
2073
|
args: [
|
|
2074
2074
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2075
2075
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2115,7 +2115,7 @@ export namespace router {
|
|
|
2115
2115
|
});
|
|
2116
2116
|
}
|
|
2117
2117
|
export function createPool_<T0 = any, T1 = any>(
|
|
2118
|
-
tx:
|
|
2118
|
+
tx: Transaction,
|
|
2119
2119
|
args: [
|
|
2120
2120
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2121
2121
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2155,7 +2155,7 @@ export namespace router {
|
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
2157
2157
|
export function removeLiquidity_<T0 = any, T1 = any>(
|
|
2158
|
-
tx:
|
|
2158
|
+
tx: Transaction,
|
|
2159
2159
|
args: [
|
|
2160
2160
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2161
2161
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2195,7 +2195,7 @@ export namespace router {
|
|
|
2195
2195
|
});
|
|
2196
2196
|
}
|
|
2197
2197
|
export function swapExactInput_<T0 = any, T1 = any>(
|
|
2198
|
-
tx:
|
|
2198
|
+
tx: Transaction,
|
|
2199
2199
|
args: [
|
|
2200
2200
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2201
2201
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2232,7 +2232,7 @@ export namespace router {
|
|
|
2232
2232
|
});
|
|
2233
2233
|
}
|
|
2234
2234
|
export function swapExactInputDoublehop_<T0 = any, T1 = any, T2 = any>(
|
|
2235
|
-
tx:
|
|
2235
|
+
tx: Transaction,
|
|
2236
2236
|
args: [
|
|
2237
2237
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2238
2238
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2276,7 +2276,7 @@ export namespace router {
|
|
|
2276
2276
|
});
|
|
2277
2277
|
}
|
|
2278
2278
|
export function swapExactOutput_<T0 = any, T1 = any>(
|
|
2279
|
-
tx:
|
|
2279
|
+
tx: Transaction,
|
|
2280
2280
|
args: [
|
|
2281
2281
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2282
2282
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2313,7 +2313,7 @@ export namespace router {
|
|
|
2313
2313
|
});
|
|
2314
2314
|
}
|
|
2315
2315
|
export function swapExactOutputDoublehop_<T0 = any, T1 = any, T2 = any>(
|
|
2316
|
-
tx:
|
|
2316
|
+
tx: Transaction,
|
|
2317
2317
|
args: [
|
|
2318
2318
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2319
2319
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2357,7 +2357,7 @@ export namespace router {
|
|
|
2357
2357
|
});
|
|
2358
2358
|
}
|
|
2359
2359
|
export function zapIn_<T0 = any, T1 = any>(
|
|
2360
|
-
tx:
|
|
2360
|
+
tx: Transaction,
|
|
2361
2361
|
args: [
|
|
2362
2362
|
string | TransactionObjectArgument | TransactionArgument,
|
|
2363
2363
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -2401,7 +2401,7 @@ export namespace router {
|
|
|
2401
2401
|
],
|
|
2402
2402
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2403
2403
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2404
|
-
const tx = new
|
|
2404
|
+
const tx = new Transaction();
|
|
2405
2405
|
builder.addLiquidity_(tx, args, typeArguments);
|
|
2406
2406
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2407
2407
|
transactionBlock: tx,
|
|
@@ -2423,7 +2423,7 @@ export namespace router {
|
|
|
2423
2423
|
],
|
|
2424
2424
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2425
2425
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2426
|
-
const tx = new
|
|
2426
|
+
const tx = new Transaction();
|
|
2427
2427
|
builder.createPool_(tx, args, typeArguments);
|
|
2428
2428
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2429
2429
|
transactionBlock: tx,
|
|
@@ -2445,7 +2445,7 @@ export namespace router {
|
|
|
2445
2445
|
],
|
|
2446
2446
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2447
2447
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2448
|
-
const tx = new
|
|
2448
|
+
const tx = new Transaction();
|
|
2449
2449
|
builder.removeLiquidity_(tx, args, typeArguments);
|
|
2450
2450
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2451
2451
|
transactionBlock: tx,
|
|
@@ -2466,7 +2466,7 @@ export namespace router {
|
|
|
2466
2466
|
],
|
|
2467
2467
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2468
2468
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2469
|
-
const tx = new
|
|
2469
|
+
const tx = new Transaction();
|
|
2470
2470
|
builder.swapExactInput_(tx, args, typeArguments);
|
|
2471
2471
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2472
2472
|
transactionBlock: tx,
|
|
@@ -2495,7 +2495,7 @@ export namespace router {
|
|
|
2495
2495
|
TypeDescriptor<T2> | string,
|
|
2496
2496
|
],
|
|
2497
2497
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2498
|
-
const tx = new
|
|
2498
|
+
const tx = new Transaction();
|
|
2499
2499
|
builder.swapExactInputDoublehop_(tx, args, typeArguments);
|
|
2500
2500
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2501
2501
|
transactionBlock: tx,
|
|
@@ -2516,7 +2516,7 @@ export namespace router {
|
|
|
2516
2516
|
],
|
|
2517
2517
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2518
2518
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2519
|
-
const tx = new
|
|
2519
|
+
const tx = new Transaction();
|
|
2520
2520
|
builder.swapExactOutput_(tx, args, typeArguments);
|
|
2521
2521
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2522
2522
|
transactionBlock: tx,
|
|
@@ -2545,7 +2545,7 @@ export namespace router {
|
|
|
2545
2545
|
TypeDescriptor<T2> | string,
|
|
2546
2546
|
],
|
|
2547
2547
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2548
|
-
const tx = new
|
|
2548
|
+
const tx = new Transaction();
|
|
2549
2549
|
builder.swapExactOutputDoublehop_(tx, args, typeArguments);
|
|
2550
2550
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2551
2551
|
transactionBlock: tx,
|
|
@@ -2565,7 +2565,7 @@ export namespace router {
|
|
|
2565
2565
|
],
|
|
2566
2566
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2567
2567
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2568
|
-
const tx = new
|
|
2568
|
+
const tx = new Transaction();
|
|
2569
2569
|
builder.zapIn_(tx, args, typeArguments);
|
|
2570
2570
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2571
2571
|
transactionBlock: tx,
|