@0xobelisk/sui-client 0.5.17 → 0.5.19

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 (37) hide show
  1. package/dist/index.d.ts +9 -8
  2. package/dist/index.js +309 -208
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +299 -201
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/libs/multiSig/client.d.ts +2 -2
  7. package/dist/libs/multiSig/publickey.d.ts +1 -1
  8. package/dist/libs/suiAccountManager/index.d.ts +1 -1
  9. package/dist/libs/suiAccountManager/keypair.d.ts +1 -1
  10. package/dist/libs/suiContractFactory/index.d.ts +1 -1
  11. package/dist/libs/suiContractFactory/types.d.ts +1 -1
  12. package/dist/libs/suiInteractor/suiInteractor.d.ts +5 -5
  13. package/dist/libs/suiModel/suiOwnedObject.d.ts +2 -2
  14. package/dist/libs/suiModel/suiSharedObject.d.ts +1 -1
  15. package/dist/libs/suiTxBuilder/index.d.ts +365 -160
  16. package/dist/libs/suiTxBuilder/util.d.ts +8 -17
  17. package/dist/metadata/index.d.ts +1 -1
  18. package/dist/obelisk.d.ts +16 -12
  19. package/dist/types/index.d.ts +65 -15
  20. package/package.json +11 -8
  21. package/src/index.ts +9 -8
  22. package/src/libs/multiSig/client.ts +2 -2
  23. package/src/libs/multiSig/publickey.ts +3 -3
  24. package/src/libs/suiAccountManager/index.ts +2 -2
  25. package/src/libs/suiAccountManager/keypair.ts +1 -1
  26. package/src/libs/suiAccountManager/util.ts +1 -1
  27. package/src/libs/suiContractFactory/index.ts +1 -1
  28. package/src/libs/suiContractFactory/types.ts +1 -1
  29. package/src/libs/suiInteractor/index.ts +0 -1
  30. package/src/libs/suiInteractor/suiInteractor.ts +4 -4
  31. package/src/libs/suiModel/suiOwnedObject.ts +5 -3
  32. package/src/libs/suiModel/suiSharedObject.ts +4 -2
  33. package/src/libs/suiTxBuilder/index.ts +120 -108
  34. package/src/libs/suiTxBuilder/util.ts +55 -48
  35. package/src/metadata/index.ts +2 -3
  36. package/src/obelisk.ts +199 -90
  37. package/src/types/index.ts +82 -44
@@ -1,288 +1,502 @@
1
- import { TransactionBlock } from '@mysten/sui.js/transactions';
2
- import type { SuiClient, SuiObjectRef } from '@mysten/sui.js/client';
3
- import type { TransactionObjectArgument } from '@mysten/sui.js/transactions';
4
- import type { TransactionExpiration, SharedObjectRef } from '@mysten/sui.js/bcs';
5
- import type { Keypair } from '@mysten/sui.js/cryptography';
6
- import type { ObjectCallArg, TransactionType, SuiTxArg, SuiAddressArg, SuiObjectArg, SuiVecTxArg } from '../../types';
7
- export declare class SuiTxBlock {
8
- txBlock: TransactionBlock;
9
- constructor(transaction?: TransactionBlock);
10
- get gas(): TransactionObjectArgument;
1
+ import { Transaction } from '@mysten/sui/transactions';
2
+ import type { SuiClient, SuiObjectRef } from '@mysten/sui/client';
3
+ import type { TransactionObjectArgument, TransactionObjectInput } from '@mysten/sui/transactions';
4
+ import type { Keypair } from '@mysten/sui/cryptography';
5
+ import { SerializedBcs } from '@mysten/bcs';
6
+ import type { SuiTxArg, SuiAddressArg, SuiObjectArg, SuiVecTxArg, SuiAmountsArg } from '../../types';
7
+ import type { bcs } from '@mysten/sui/bcs';
8
+ export declare class SuiTx {
9
+ tx: Transaction;
10
+ constructor(transaction?: Transaction);
11
+ get gas(): {
12
+ $kind: "GasCoin";
13
+ GasCoin: true;
14
+ };
11
15
  get blockData(): {
12
16
  version: 1;
13
17
  inputs: ({
14
- index: number;
15
18
  kind: "Input";
16
- value?: any;
19
+ value: unknown;
20
+ index: number;
17
21
  type?: "object" | undefined;
18
22
  } | {
19
- index: number;
20
- kind: "Input";
21
23
  type: "pure";
22
- value?: any;
24
+ kind: "Input";
25
+ value: unknown;
26
+ index: number;
23
27
  })[];
28
+ expiration: {
29
+ Epoch: number;
30
+ } | {
31
+ None: true | null;
32
+ } | null | undefined;
33
+ gasConfig: {
34
+ payment?: {
35
+ objectId: string;
36
+ version: string | number | bigint;
37
+ digest: string;
38
+ }[] | undefined;
39
+ owner?: string | undefined;
40
+ price?: string | number | bigint | undefined;
41
+ budget?: string | number | bigint | undefined;
42
+ };
24
43
  transactions: ({
25
- kind: "MoveCall";
44
+ typeArguments: string[];
26
45
  arguments: ({
27
- index: number;
28
46
  kind: "Input";
29
- value?: any;
47
+ value: unknown;
48
+ index: number;
30
49
  type?: "object" | undefined;
31
50
  } | {
32
- index: number;
33
- kind: "Input";
34
51
  type: "pure";
35
- value?: any;
52
+ kind: "Input";
53
+ value: unknown;
54
+ index: number;
36
55
  } | {
37
56
  kind: "GasCoin";
38
57
  } | {
39
- index: number;
40
58
  kind: "Result";
59
+ index: number;
41
60
  } | {
61
+ kind: "NestedResult";
42
62
  index: number;
43
63
  resultIndex: number;
44
- kind: "NestedResult";
45
64
  })[];
65
+ kind: "MoveCall";
46
66
  target: `${string}::${string}::${string}`;
47
- typeArguments: string[];
48
67
  } | {
49
68
  address: {
50
- index: number;
51
69
  kind: "Input";
52
- value?: any;
70
+ value: unknown;
71
+ index: number;
53
72
  type?: "object" | undefined;
54
73
  } | {
55
- index: number;
56
- kind: "Input";
57
74
  type: "pure";
58
- value?: any;
75
+ kind: "Input";
76
+ value: unknown;
77
+ index: number;
59
78
  } | {
60
79
  kind: "GasCoin";
61
80
  } | {
62
- index: number;
63
81
  kind: "Result";
82
+ index: number;
64
83
  } | {
84
+ kind: "NestedResult";
65
85
  index: number;
66
86
  resultIndex: number;
67
- kind: "NestedResult";
68
87
  };
69
- kind: "TransferObjects";
70
88
  objects: ({
71
- index: number;
72
89
  kind: "Input";
73
- value?: any;
90
+ value: unknown;
91
+ index: number;
74
92
  type?: "object" | undefined;
75
93
  } | {
76
- index: number;
77
- kind: "Input";
78
94
  type: "pure";
79
- value?: any;
95
+ kind: "Input";
96
+ value: unknown;
97
+ index: number;
80
98
  } | {
81
99
  kind: "GasCoin";
82
100
  } | {
83
- index: number;
84
101
  kind: "Result";
102
+ index: number;
85
103
  } | {
104
+ kind: "NestedResult";
86
105
  index: number;
87
106
  resultIndex: number;
88
- kind: "NestedResult";
89
107
  })[];
108
+ kind: "TransferObjects";
90
109
  } | {
91
- kind: "SplitCoins";
92
110
  coin: {
93
- index: number;
94
111
  kind: "Input";
95
- value?: any;
112
+ value: unknown;
113
+ index: number;
96
114
  type?: "object" | undefined;
97
115
  } | {
98
- index: number;
99
- kind: "Input";
100
116
  type: "pure";
101
- value?: any;
117
+ kind: "Input";
118
+ value: unknown;
119
+ index: number;
102
120
  } | {
103
121
  kind: "GasCoin";
104
122
  } | {
105
- index: number;
106
123
  kind: "Result";
124
+ index: number;
107
125
  } | {
126
+ kind: "NestedResult";
108
127
  index: number;
109
128
  resultIndex: number;
110
- kind: "NestedResult";
111
129
  };
112
130
  amounts: ({
113
- index: number;
114
131
  kind: "Input";
115
- value?: any;
132
+ value: unknown;
133
+ index: number;
116
134
  type?: "object" | undefined;
117
135
  } | {
118
- index: number;
119
- kind: "Input";
120
136
  type: "pure";
121
- value?: any;
137
+ kind: "Input";
138
+ value: unknown;
139
+ index: number;
122
140
  } | {
123
141
  kind: "GasCoin";
124
142
  } | {
125
- index: number;
126
143
  kind: "Result";
144
+ index: number;
127
145
  } | {
146
+ kind: "NestedResult";
128
147
  index: number;
129
148
  resultIndex: number;
130
- kind: "NestedResult";
131
149
  })[];
150
+ kind: "SplitCoins";
132
151
  } | {
133
- kind: "MergeCoins";
134
152
  destination: {
135
- index: number;
136
153
  kind: "Input";
137
- value?: any;
154
+ value: unknown;
155
+ index: number;
138
156
  type?: "object" | undefined;
139
157
  } | {
140
- index: number;
141
- kind: "Input";
142
158
  type: "pure";
143
- value?: any;
159
+ kind: "Input";
160
+ value: unknown;
161
+ index: number;
144
162
  } | {
145
163
  kind: "GasCoin";
146
164
  } | {
147
- index: number;
148
165
  kind: "Result";
166
+ index: number;
149
167
  } | {
168
+ kind: "NestedResult";
150
169
  index: number;
151
170
  resultIndex: number;
152
- kind: "NestedResult";
153
171
  };
154
172
  sources: ({
155
- index: number;
156
173
  kind: "Input";
157
- value?: any;
174
+ value: unknown;
175
+ index: number;
158
176
  type?: "object" | undefined;
159
177
  } | {
160
- index: number;
161
- kind: "Input";
162
178
  type: "pure";
163
- value?: any;
179
+ kind: "Input";
180
+ value: unknown;
181
+ index: number;
164
182
  } | {
165
183
  kind: "GasCoin";
166
184
  } | {
167
- index: number;
168
185
  kind: "Result";
186
+ index: number;
169
187
  } | {
188
+ kind: "NestedResult";
170
189
  index: number;
171
190
  resultIndex: number;
172
- kind: "NestedResult";
173
191
  })[];
192
+ kind: "MergeCoins";
174
193
  } | {
175
- kind: "Publish";
176
- modules: number[][];
177
- dependencies: string[];
178
- } | {
179
- kind: "Upgrade";
180
- modules: number[][];
181
- dependencies: string[];
182
- packageId: string;
183
- ticket: {
184
- index: number;
194
+ objects: ({
185
195
  kind: "Input";
186
- value?: any;
196
+ value: unknown;
197
+ index: number;
187
198
  type?: "object" | undefined;
188
199
  } | {
189
- index: number;
190
- kind: "Input";
191
200
  type: "pure";
192
- value?: any;
201
+ kind: "Input";
202
+ value: unknown;
203
+ index: number;
193
204
  } | {
194
205
  kind: "GasCoin";
195
206
  } | {
196
- index: number;
197
207
  kind: "Result";
208
+ index: number;
198
209
  } | {
210
+ kind: "NestedResult";
199
211
  index: number;
200
212
  resultIndex: number;
201
- kind: "NestedResult";
202
- };
203
- } | {
204
- kind: "MakeMoveVec";
213
+ })[];
205
214
  type: {
206
- Some: import("@mysten/sui.js/bcs").TypeTag;
215
+ Some: import("@mysten/sui/bcs").TypeTag;
207
216
  } | {
208
217
  None: true | null;
209
218
  };
210
- objects: ({
211
- index: number;
219
+ kind: "MakeMoveVec";
220
+ } | {
221
+ modules: number[][];
222
+ dependencies: string[];
223
+ kind: "Publish";
224
+ } | {
225
+ modules: number[][];
226
+ dependencies: string[];
227
+ ticket: {
212
228
  kind: "Input";
213
- value?: any;
229
+ value: unknown;
230
+ index: number;
214
231
  type?: "object" | undefined;
215
232
  } | {
216
- index: number;
217
- kind: "Input";
218
233
  type: "pure";
219
- value?: any;
234
+ kind: "Input";
235
+ value: unknown;
236
+ index: number;
220
237
  } | {
221
238
  kind: "GasCoin";
222
239
  } | {
223
- index: number;
224
240
  kind: "Result";
241
+ index: number;
225
242
  } | {
243
+ kind: "NestedResult";
226
244
  index: number;
227
245
  resultIndex: number;
228
- kind: "NestedResult";
229
- })[];
246
+ };
247
+ kind: "Upgrade";
248
+ packageId: string;
230
249
  })[];
231
- gasConfig: {
232
- payment?: {
233
- digest: string;
234
- objectId: string;
235
- version: string | number | bigint;
236
- }[] | undefined;
237
- owner?: string | undefined;
238
- price?: string | number | bigint | undefined;
239
- budget?: string | number | bigint | undefined;
240
- };
241
250
  sender?: string | undefined;
242
- expiration?: {
243
- Epoch: number;
244
- } | {
245
- None: true | null;
246
- } | null | undefined;
247
251
  };
252
+ autoPure(value: SuiTxArg, type?: string): import("@mysten/sui/transactions").TransactionArgument[] | undefined;
248
253
  address(value: string): {
249
- index: number;
250
- kind: "Input";
251
- value?: any;
254
+ $kind: "GasCoin";
255
+ GasCoin: true;
256
+ } | {
257
+ $kind: "Input";
258
+ Input: number;
259
+ type?: "pure" | undefined;
260
+ } | {
261
+ $kind: "Input";
262
+ Input: number;
252
263
  type?: "object" | undefined;
253
264
  } | {
254
- index: number;
255
- kind: "Input";
256
- type: "pure";
257
- value?: any;
265
+ $kind: "Result";
266
+ Result: number;
267
+ } | {
268
+ $kind: "NestedResult";
269
+ NestedResult: [number, number];
270
+ };
271
+ get pure(): {
272
+ (value: SerializedBcs<any, any> | Uint8Array): {
273
+ $kind: "GasCoin";
274
+ GasCoin: true;
275
+ } | {
276
+ $kind: "Input";
277
+ Input: number;
278
+ type?: "pure" | undefined;
279
+ } | {
280
+ $kind: "Input";
281
+ Input: number;
282
+ type?: "object" | undefined;
283
+ } | {
284
+ $kind: "Result";
285
+ Result: number;
286
+ } | {
287
+ $kind: "NestedResult";
288
+ NestedResult: [number, number];
289
+ };
290
+ u8(value: number): {
291
+ $kind: "GasCoin";
292
+ GasCoin: true;
293
+ } | {
294
+ $kind: "Input";
295
+ Input: number;
296
+ type?: "pure" | undefined;
297
+ } | {
298
+ $kind: "Input";
299
+ Input: number;
300
+ type?: "object" | undefined;
301
+ } | {
302
+ $kind: "Result";
303
+ Result: number;
304
+ } | {
305
+ $kind: "NestedResult";
306
+ NestedResult: [number, number];
307
+ };
308
+ u16(value: number): {
309
+ $kind: "GasCoin";
310
+ GasCoin: true;
311
+ } | {
312
+ $kind: "Input";
313
+ Input: number;
314
+ type?: "pure" | undefined;
315
+ } | {
316
+ $kind: "Input";
317
+ Input: number;
318
+ type?: "object" | undefined;
319
+ } | {
320
+ $kind: "Result";
321
+ Result: number;
322
+ } | {
323
+ $kind: "NestedResult";
324
+ NestedResult: [number, number];
325
+ };
326
+ u32(value: number): {
327
+ $kind: "GasCoin";
328
+ GasCoin: true;
329
+ } | {
330
+ $kind: "Input";
331
+ Input: number;
332
+ type?: "pure" | undefined;
333
+ } | {
334
+ $kind: "Input";
335
+ Input: number;
336
+ type?: "object" | undefined;
337
+ } | {
338
+ $kind: "Result";
339
+ Result: number;
340
+ } | {
341
+ $kind: "NestedResult";
342
+ NestedResult: [number, number];
343
+ };
344
+ u64(value: string | number | bigint): {
345
+ $kind: "GasCoin";
346
+ GasCoin: true;
347
+ } | {
348
+ $kind: "Input";
349
+ Input: number;
350
+ type?: "pure" | undefined;
351
+ } | {
352
+ $kind: "Input";
353
+ Input: number;
354
+ type?: "object" | undefined;
355
+ } | {
356
+ $kind: "Result";
357
+ Result: number;
358
+ } | {
359
+ $kind: "NestedResult";
360
+ NestedResult: [number, number];
361
+ };
362
+ u128(value: string | number | bigint): {
363
+ $kind: "GasCoin";
364
+ GasCoin: true;
365
+ } | {
366
+ $kind: "Input";
367
+ Input: number;
368
+ type?: "pure" | undefined;
369
+ } | {
370
+ $kind: "Input";
371
+ Input: number;
372
+ type?: "object" | undefined;
373
+ } | {
374
+ $kind: "Result";
375
+ Result: number;
376
+ } | {
377
+ $kind: "NestedResult";
378
+ NestedResult: [number, number];
379
+ };
380
+ u256(value: string | number | bigint): {
381
+ $kind: "GasCoin";
382
+ GasCoin: true;
383
+ } | {
384
+ $kind: "Input";
385
+ Input: number;
386
+ type?: "pure" | undefined;
387
+ } | {
388
+ $kind: "Input";
389
+ Input: number;
390
+ type?: "object" | undefined;
391
+ } | {
392
+ $kind: "Result";
393
+ Result: number;
394
+ } | {
395
+ $kind: "NestedResult";
396
+ NestedResult: [number, number];
397
+ };
398
+ bool(value: boolean): {
399
+ $kind: "GasCoin";
400
+ GasCoin: true;
401
+ } | {
402
+ $kind: "Input";
403
+ Input: number;
404
+ type?: "pure" | undefined;
405
+ } | {
406
+ $kind: "Input";
407
+ Input: number;
408
+ type?: "object" | undefined;
409
+ } | {
410
+ $kind: "Result";
411
+ Result: number;
412
+ } | {
413
+ $kind: "NestedResult";
414
+ NestedResult: [number, number];
415
+ };
416
+ string(value: string): {
417
+ $kind: "GasCoin";
418
+ GasCoin: true;
419
+ } | {
420
+ $kind: "Input";
421
+ Input: number;
422
+ type?: "pure" | undefined;
423
+ } | {
424
+ $kind: "Input";
425
+ Input: number;
426
+ type?: "object" | undefined;
427
+ } | {
428
+ $kind: "Result";
429
+ Result: number;
430
+ } | {
431
+ $kind: "NestedResult";
432
+ NestedResult: [number, number];
433
+ };
434
+ address(value: string): {
435
+ $kind: "GasCoin";
436
+ GasCoin: true;
437
+ } | {
438
+ $kind: "Input";
439
+ Input: number;
440
+ type?: "pure" | undefined;
441
+ } | {
442
+ $kind: "Input";
443
+ Input: number;
444
+ type?: "object" | undefined;
445
+ } | {
446
+ $kind: "Result";
447
+ Result: number;
448
+ } | {
449
+ $kind: "NestedResult";
450
+ NestedResult: [number, number];
451
+ };
452
+ id: (value: string) => {
453
+ $kind: "GasCoin";
454
+ GasCoin: true;
455
+ } | {
456
+ $kind: "Input";
457
+ Input: number;
458
+ type?: "pure" | undefined;
459
+ } | {
460
+ $kind: "Input";
461
+ Input: number;
462
+ type?: "object" | undefined;
463
+ } | {
464
+ $kind: "Result";
465
+ Result: number;
466
+ } | {
467
+ $kind: "NestedResult";
468
+ NestedResult: [number, number];
469
+ };
258
470
  };
259
- pure(value: unknown, type?: string): {
260
- index: number;
261
- kind: "Input";
262
- value?: any;
471
+ object(value: string | TransactionObjectInput): {
472
+ $kind: "Input";
473
+ Input: number;
474
+ type?: "object" | undefined;
475
+ };
476
+ objectRef(ref: SuiObjectRef): {
477
+ $kind: "Input";
478
+ Input: number;
479
+ type?: "object" | undefined;
480
+ };
481
+ sharedObjectRef(ref: typeof bcs.SharedObjectRef.$inferType): {
482
+ $kind: "Input";
483
+ Input: number;
263
484
  type?: "object" | undefined;
264
- } | {
265
- index: number;
266
- kind: "Input";
267
- type: "pure";
268
- value?: any;
269
485
  };
270
- object(value: string | ObjectCallArg): TransactionObjectArgument;
271
- objectRef(ref: SuiObjectRef): TransactionObjectArgument;
272
- sharedObjectRef(ref: SharedObjectRef): TransactionObjectArgument;
273
486
  setSender(sender: string): void;
274
487
  setSenderIfNotSet(sender: string): void;
275
- setExpiration(expiration?: TransactionExpiration): void;
488
+ setExpiration(expiration?: Parameters<typeof this.tx.setExpiration>[0]): void;
276
489
  setGasPrice(price: number | bigint): void;
277
490
  setGasBudget(budget: number | bigint): void;
278
491
  setGasOwner(owner: string): void;
279
492
  setGasPayment(payments: SuiObjectRef[]): void;
280
493
  serialize(): string;
494
+ toJSON(): Promise<string>;
281
495
  sign(params: {
282
496
  signer: Keypair;
283
497
  client?: SuiClient;
284
498
  onlyTransactionKind?: boolean;
285
- }): Promise<import("@mysten/sui.js/cryptography").SignatureWithBytes>;
499
+ }): Promise<import("@mysten/sui/cryptography").SignatureWithBytes>;
286
500
  build(params?: {
287
501
  client?: SuiClient;
288
502
  onlyTransactionKind?: boolean;
@@ -290,44 +504,35 @@ export declare class SuiTxBlock {
290
504
  getDigest(params?: {
291
505
  client?: SuiClient;
292
506
  }): Promise<string>;
293
- add(...args: TransactionType): import("@mysten/sui.js/transactions").TransactionResult;
507
+ add(...args: Parameters<typeof this.tx.add>): import("@mysten/sui/transactions").TransactionResult;
294
508
  publish({ modules, dependencies, }: {
295
509
  modules: number[][] | string[];
296
510
  dependencies: string[];
297
- }): import("@mysten/sui.js/transactions").TransactionResult;
298
- upgrade({ modules, dependencies, packageId, ticket, }: {
299
- modules: number[][] | string[];
300
- dependencies: string[];
301
- packageId: string;
302
- ticket: TransactionObjectArgument | string;
303
- }): import("@mysten/sui.js/transactions").TransactionResult;
304
- makeMoveVec({ objects, type, }: {
305
- objects: (TransactionObjectArgument | string)[];
306
- type?: string;
307
- }): import("@mysten/sui.js/transactions").TransactionResult;
308
- transferObjects(objects: SuiObjectArg[], address: SuiAddressArg): import("@mysten/sui.js/transactions").TransactionResult;
511
+ }): import("@mysten/sui/transactions").TransactionResult;
512
+ upgrade(...args: Parameters<typeof this.tx.upgrade>): import("@mysten/sui/transactions").TransactionResult;
513
+ makeMoveVec(...args: Parameters<typeof this.tx.makeMoveVec>): import("@mysten/sui/transactions").TransactionResult;
514
+ transferObjects(objects: SuiObjectArg[], address: SuiAddressArg): import("@mysten/sui/transactions").TransactionResult;
309
515
  splitCoins(coin: SuiObjectArg, amounts: SuiTxArg[]): {
310
- index: number;
311
- resultIndex: number;
312
- kind: "NestedResult";
516
+ $kind: "NestedResult";
517
+ NestedResult: [number, number];
313
518
  }[];
314
- mergeCoins(destination: SuiObjectArg, sources: SuiObjectArg[]): import("@mysten/sui.js/transactions").TransactionResult;
519
+ mergeCoins(destination: SuiObjectArg, sources: SuiObjectArg[]): import("@mysten/sui/transactions").TransactionResult;
315
520
  /**
316
521
  * @description Move call
317
522
  * @param target `${string}::${string}::${string}`, e.g. `0x3::sui_system::request_add_stake`
318
523
  * @param args the arguments of the move call, such as `['0x1', '0x2']`
319
524
  * @param typeArgs the type arguments of the move call, such as `['0x2::sui::SUI']`
320
525
  */
321
- moveCall(target: string, args?: (SuiTxArg | SuiVecTxArg)[], typeArgs?: string[]): import("@mysten/sui.js/transactions").TransactionResult;
322
- transferSuiToMany(recipients: SuiAddressArg[], amounts: SuiTxArg[]): this;
323
- transferSui(address: SuiAddressArg, amount: SuiTxArg): this;
324
- takeAmountFromCoins(coins: SuiObjectArg[], amount: SuiTxArg): TransactionObjectArgument[];
325
- splitSUIFromGas(amounts: SuiTxArg[]): import("@mysten/sui.js/transactions").TransactionResult;
326
- splitMultiCoins(coins: SuiObjectArg[], amounts: SuiTxArg[]): {
327
- splitedCoins: import("@mysten/sui.js/transactions").TransactionResult;
526
+ moveCall(target: string, args?: (SuiTxArg | SuiVecTxArg)[], typeArgs?: string[]): import("@mysten/sui/transactions").TransactionResult;
527
+ transferSuiToMany(recipients: SuiAddressArg[], amounts: (SuiTxArg | number | bigint)[]): this;
528
+ transferSui(address: SuiAddressArg, amount: SuiTxArg | number | bigint): this;
529
+ takeAmountFromCoins(coins: SuiObjectArg[], amount: SuiTxArg | number | bigint): TransactionObjectArgument[];
530
+ splitSUIFromGas(amounts: SuiTxArg[]): import("@mysten/sui/transactions").TransactionResult;
531
+ splitMultiCoins(coins: SuiObjectArg[], amounts: SuiAmountsArg[]): {
532
+ splitedCoins: import("@mysten/sui/transactions").TransactionResult;
328
533
  mergedCoin: TransactionObjectArgument;
329
534
  };
330
- transferCoinToMany(coins: SuiObjectArg[], sender: SuiAddressArg, recipients: SuiAddressArg[], amounts: SuiTxArg[]): this;
535
+ transferCoinToMany(coins: SuiObjectArg[], sender: SuiAddressArg, recipients: SuiAddressArg[], amounts: SuiAmountsArg[]): this;
331
536
  transferCoin(coins: SuiObjectArg[], sender: SuiAddressArg, recipient: SuiAddressArg, amount: SuiTxArg): this;
332
- stakeSui(amount: SuiTxArg, validatorAddr: SuiAddressArg): import("@mysten/sui.js/transactions").TransactionResult;
537
+ stakeSui(amount: SuiTxArg | number | bigint, validatorAddr: SuiAddressArg): import("@mysten/sui/transactions").TransactionResult;
333
538
  }