@bitgo/sdk-coin-sui 4.2.4 → 4.2.6
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/CHANGELOG.md +10 -0
- package/dist/src/lib/mystenlab/builder/Inputs.d.ts +2 -2
- package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts +11 -11
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts +21 -21
- package/dist/src/lib/mystenlab/builder/Transactions.d.ts +20 -20
- package/dist/src/lib/mystenlab/types/coin.d.ts +4 -4
- package/dist/src/lib/mystenlab/types/events.d.ts +18 -18
- package/dist/src/lib/mystenlab/types/objects.d.ts +82 -82
- package/dist/src/lib/mystenlab/types/sui-bcs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/types/sui-bcs.js +2 -2
- package/dist/src/lib/mystenlab/types/transactions.d.ts +243 -243
- package/dist/src/lib/mystenlab/types/validator.d.ts +4 -4
- package/dist/src/lib/stakingTransaction.d.ts +1 -0
- package/dist/src/lib/stakingTransaction.d.ts.map +1 -1
- package/dist/src/lib/transaction.d.ts +1 -0
- package/dist/src/lib/transaction.d.ts.map +1 -1
- package/dist/src/lib/transferTransaction.d.ts +1 -0
- package/dist/src/lib/transferTransaction.d.ts.map +1 -1
- package/dist/src/lib/unstakingTransaction.d.ts +1 -0
- package/dist/src/lib/unstakingTransaction.d.ts.map +1 -1
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +5 -4
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.2.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-sui@4.2.0...@bitgo/sdk-coin-sui@4.2.6) (2023-09-01)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
11
|
+
|
|
12
|
+
## [4.2.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-sui@4.2.0...@bitgo/sdk-coin-sui@4.2.5) (2023-08-29)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-sui
|
|
15
|
+
|
|
6
16
|
## [4.2.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-sui@4.2.0...@bitgo/sdk-coin-sui@4.2.4) (2023-08-25)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @bitgo/sdk-coin-sui
|
|
@@ -37,8 +37,6 @@ export declare const ObjectCallArg: import("superstruct").Struct<{
|
|
|
37
37
|
export declare type PureCallArg = Infer<typeof PureCallArg>;
|
|
38
38
|
export declare type ObjectCallArg = Infer<typeof ObjectCallArg>;
|
|
39
39
|
export declare const BuilderCallArg: import("superstruct").Struct<{
|
|
40
|
-
Pure: number[];
|
|
41
|
-
} | {
|
|
42
40
|
Object: {
|
|
43
41
|
ImmOrOwned: {
|
|
44
42
|
objectId: string;
|
|
@@ -52,6 +50,8 @@ export declare const BuilderCallArg: import("superstruct").Struct<{
|
|
|
52
50
|
mutable: boolean;
|
|
53
51
|
};
|
|
54
52
|
};
|
|
53
|
+
} | {
|
|
54
|
+
Pure: number[];
|
|
55
55
|
}, null>;
|
|
56
56
|
export declare type BuilderCallArg = Infer<typeof BuilderCallArg>;
|
|
57
57
|
export declare const Inputs: {
|
|
@@ -113,6 +113,7 @@ export declare class TransactionBlock {
|
|
|
113
113
|
index: number;
|
|
114
114
|
resultIndex: number;
|
|
115
115
|
}): {
|
|
116
|
+
kind: "TransferObjects";
|
|
116
117
|
objects: ({
|
|
117
118
|
kind: "Input";
|
|
118
119
|
index: number;
|
|
@@ -128,7 +129,6 @@ export declare class TransactionBlock {
|
|
|
128
129
|
index: number;
|
|
129
130
|
resultIndex: number;
|
|
130
131
|
})[];
|
|
131
|
-
kind: "TransferObjects";
|
|
132
132
|
address: {
|
|
133
133
|
kind: "Input";
|
|
134
134
|
index: number;
|
|
@@ -269,10 +269,11 @@ export declare class TransactionBlock {
|
|
|
269
269
|
};
|
|
270
270
|
Publish(modules: number[][], dependencies: string[]): {
|
|
271
271
|
kind: "Publish";
|
|
272
|
-
dependencies: string[];
|
|
273
272
|
modules: number[][];
|
|
273
|
+
dependencies: string[];
|
|
274
274
|
};
|
|
275
275
|
MakeMoveVec({ type, objects, }: Omit<{
|
|
276
|
+
kind: "MakeMoveVec";
|
|
276
277
|
objects: ({
|
|
277
278
|
kind: "Input";
|
|
278
279
|
index: number;
|
|
@@ -288,7 +289,6 @@ export declare class TransactionBlock {
|
|
|
288
289
|
index: number;
|
|
289
290
|
resultIndex: number;
|
|
290
291
|
})[];
|
|
291
|
-
kind: "MakeMoveVec";
|
|
292
292
|
type?: {
|
|
293
293
|
None: null;
|
|
294
294
|
} | {
|
|
@@ -297,6 +297,7 @@ export declare class TransactionBlock {
|
|
|
297
297
|
}, "type" | "kind"> & {
|
|
298
298
|
type?: string | undefined;
|
|
299
299
|
}): {
|
|
300
|
+
kind: "MakeMoveVec";
|
|
300
301
|
objects: ({
|
|
301
302
|
kind: "Input";
|
|
302
303
|
index: number;
|
|
@@ -312,7 +313,6 @@ export declare class TransactionBlock {
|
|
|
312
313
|
index: number;
|
|
313
314
|
resultIndex: number;
|
|
314
315
|
})[];
|
|
315
|
-
kind: "MakeMoveVec";
|
|
316
316
|
type?: {
|
|
317
317
|
None: null;
|
|
318
318
|
} | {
|
|
@@ -394,6 +394,7 @@ export declare class TransactionBlock {
|
|
|
394
394
|
target: `${string}::${string}::${string}`;
|
|
395
395
|
typeArguments: string[];
|
|
396
396
|
} | {
|
|
397
|
+
kind: "TransferObjects";
|
|
397
398
|
objects: ({
|
|
398
399
|
kind: "Input";
|
|
399
400
|
index: number;
|
|
@@ -409,7 +410,6 @@ export declare class TransactionBlock {
|
|
|
409
410
|
index: number;
|
|
410
411
|
resultIndex: number;
|
|
411
412
|
})[];
|
|
412
|
-
kind: "TransferObjects";
|
|
413
413
|
address: {
|
|
414
414
|
kind: "Input";
|
|
415
415
|
index: number;
|
|
@@ -490,6 +490,11 @@ export declare class TransactionBlock {
|
|
|
490
490
|
resultIndex: number;
|
|
491
491
|
})[];
|
|
492
492
|
} | {
|
|
493
|
+
kind: "Publish";
|
|
494
|
+
modules: number[][];
|
|
495
|
+
dependencies: string[];
|
|
496
|
+
} | {
|
|
497
|
+
kind: "MakeMoveVec";
|
|
493
498
|
objects: ({
|
|
494
499
|
kind: "Input";
|
|
495
500
|
index: number;
|
|
@@ -505,16 +510,11 @@ export declare class TransactionBlock {
|
|
|
505
510
|
index: number;
|
|
506
511
|
resultIndex: number;
|
|
507
512
|
})[];
|
|
508
|
-
kind: "MakeMoveVec";
|
|
509
513
|
type?: {
|
|
510
514
|
None: null;
|
|
511
515
|
} | {
|
|
512
516
|
Some: string;
|
|
513
517
|
} | undefined;
|
|
514
|
-
} | {
|
|
515
|
-
kind: "Publish";
|
|
516
|
-
dependencies: string[];
|
|
517
|
-
modules: number[][];
|
|
518
518
|
})[];
|
|
519
519
|
inputs: {
|
|
520
520
|
kind: "Input";
|
|
@@ -523,12 +523,12 @@ export declare class TransactionBlock {
|
|
|
523
523
|
value?: any;
|
|
524
524
|
}[];
|
|
525
525
|
gasConfig: {
|
|
526
|
+
owner?: string | undefined;
|
|
526
527
|
payment?: {
|
|
527
528
|
objectId: string;
|
|
528
529
|
version: string | number;
|
|
529
530
|
digest: string;
|
|
530
531
|
}[] | undefined;
|
|
531
|
-
owner?: string | undefined;
|
|
532
532
|
price?: string | undefined;
|
|
533
533
|
budget?: string | undefined;
|
|
534
534
|
};
|
|
@@ -7,12 +7,12 @@ export declare const TransactionExpiration: import("superstruct").Struct<{
|
|
|
7
7
|
} | null | undefined, null>;
|
|
8
8
|
export declare type TransactionExpiration = Infer<typeof TransactionExpiration>;
|
|
9
9
|
declare const GasConfig: import("superstruct").Struct<{
|
|
10
|
+
owner?: string | undefined;
|
|
10
11
|
payment?: {
|
|
11
12
|
objectId: string;
|
|
12
13
|
version: string | number;
|
|
13
14
|
digest: string;
|
|
14
15
|
}[] | undefined;
|
|
15
|
-
owner?: string | undefined;
|
|
16
16
|
price?: string | undefined;
|
|
17
17
|
budget?: string | undefined;
|
|
18
18
|
}, {
|
|
@@ -56,6 +56,7 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
56
56
|
target: `${string}::${string}::${string}`;
|
|
57
57
|
typeArguments: string[];
|
|
58
58
|
} | {
|
|
59
|
+
kind: "TransferObjects";
|
|
59
60
|
objects: ({
|
|
60
61
|
kind: "Input";
|
|
61
62
|
index: number;
|
|
@@ -71,7 +72,6 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
71
72
|
index: number;
|
|
72
73
|
resultIndex: number;
|
|
73
74
|
})[];
|
|
74
|
-
kind: "TransferObjects";
|
|
75
75
|
address: {
|
|
76
76
|
kind: "Input";
|
|
77
77
|
index: number;
|
|
@@ -152,6 +152,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
152
152
|
resultIndex: number;
|
|
153
153
|
})[];
|
|
154
154
|
} | {
|
|
155
|
+
kind: "Publish";
|
|
156
|
+
modules: number[][];
|
|
157
|
+
dependencies: string[];
|
|
158
|
+
} | {
|
|
159
|
+
kind: "MakeMoveVec";
|
|
155
160
|
objects: ({
|
|
156
161
|
kind: "Input";
|
|
157
162
|
index: number;
|
|
@@ -167,16 +172,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
167
172
|
index: number;
|
|
168
173
|
resultIndex: number;
|
|
169
174
|
})[];
|
|
170
|
-
kind: "MakeMoveVec";
|
|
171
175
|
type?: {
|
|
172
176
|
None: null;
|
|
173
177
|
} | {
|
|
174
178
|
Some: string;
|
|
175
179
|
} | undefined;
|
|
176
|
-
} | {
|
|
177
|
-
kind: "Publish";
|
|
178
|
-
dependencies: string[];
|
|
179
|
-
modules: number[][];
|
|
180
180
|
})[];
|
|
181
181
|
inputs: {
|
|
182
182
|
kind: "Input";
|
|
@@ -185,12 +185,12 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
185
185
|
value?: any;
|
|
186
186
|
}[];
|
|
187
187
|
gasConfig: {
|
|
188
|
+
owner?: string | undefined;
|
|
188
189
|
payment?: {
|
|
189
190
|
objectId: string;
|
|
190
191
|
version: string | number;
|
|
191
192
|
digest: string;
|
|
192
193
|
}[] | undefined;
|
|
193
|
-
owner?: string | undefined;
|
|
194
194
|
price?: string | undefined;
|
|
195
195
|
budget?: string | undefined;
|
|
196
196
|
};
|
|
@@ -209,12 +209,12 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
209
209
|
None: true | null;
|
|
210
210
|
} | null | undefined, null>;
|
|
211
211
|
gasConfig: import("superstruct").Struct<{
|
|
212
|
+
owner?: string | undefined;
|
|
212
213
|
payment?: {
|
|
213
214
|
objectId: string;
|
|
214
215
|
version: string | number;
|
|
215
216
|
digest: string;
|
|
216
217
|
}[] | undefined;
|
|
217
|
-
owner?: string | undefined;
|
|
218
218
|
price?: string | undefined;
|
|
219
219
|
budget?: string | undefined;
|
|
220
220
|
}, {
|
|
@@ -271,6 +271,7 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
271
271
|
target: `${string}::${string}::${string}`;
|
|
272
272
|
typeArguments: string[];
|
|
273
273
|
} | {
|
|
274
|
+
kind: "TransferObjects";
|
|
274
275
|
objects: ({
|
|
275
276
|
kind: "Input";
|
|
276
277
|
index: number;
|
|
@@ -286,7 +287,6 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
286
287
|
index: number;
|
|
287
288
|
resultIndex: number;
|
|
288
289
|
})[];
|
|
289
|
-
kind: "TransferObjects";
|
|
290
290
|
address: {
|
|
291
291
|
kind: "Input";
|
|
292
292
|
index: number;
|
|
@@ -367,6 +367,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
367
367
|
resultIndex: number;
|
|
368
368
|
})[];
|
|
369
369
|
} | {
|
|
370
|
+
kind: "Publish";
|
|
371
|
+
modules: number[][];
|
|
372
|
+
dependencies: string[];
|
|
373
|
+
} | {
|
|
374
|
+
kind: "MakeMoveVec";
|
|
370
375
|
objects: ({
|
|
371
376
|
kind: "Input";
|
|
372
377
|
index: number;
|
|
@@ -382,16 +387,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
382
387
|
index: number;
|
|
383
388
|
resultIndex: number;
|
|
384
389
|
})[];
|
|
385
|
-
kind: "MakeMoveVec";
|
|
386
390
|
type?: {
|
|
387
391
|
None: null;
|
|
388
392
|
} | {
|
|
389
393
|
Some: string;
|
|
390
394
|
} | undefined;
|
|
391
|
-
} | {
|
|
392
|
-
kind: "Publish";
|
|
393
|
-
dependencies: string[];
|
|
394
|
-
modules: number[][];
|
|
395
395
|
})[], import("superstruct").Struct<{
|
|
396
396
|
arguments: ({
|
|
397
397
|
kind: "Input";
|
|
@@ -412,6 +412,7 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
412
412
|
target: `${string}::${string}::${string}`;
|
|
413
413
|
typeArguments: string[];
|
|
414
414
|
} | {
|
|
415
|
+
kind: "TransferObjects";
|
|
415
416
|
objects: ({
|
|
416
417
|
kind: "Input";
|
|
417
418
|
index: number;
|
|
@@ -427,7 +428,6 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
427
428
|
index: number;
|
|
428
429
|
resultIndex: number;
|
|
429
430
|
})[];
|
|
430
|
-
kind: "TransferObjects";
|
|
431
431
|
address: {
|
|
432
432
|
kind: "Input";
|
|
433
433
|
index: number;
|
|
@@ -508,6 +508,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
508
508
|
resultIndex: number;
|
|
509
509
|
})[];
|
|
510
510
|
} | {
|
|
511
|
+
kind: "Publish";
|
|
512
|
+
modules: number[][];
|
|
513
|
+
dependencies: string[];
|
|
514
|
+
} | {
|
|
515
|
+
kind: "MakeMoveVec";
|
|
511
516
|
objects: ({
|
|
512
517
|
kind: "Input";
|
|
513
518
|
index: number;
|
|
@@ -523,16 +528,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
523
528
|
index: number;
|
|
524
529
|
resultIndex: number;
|
|
525
530
|
})[];
|
|
526
|
-
kind: "MakeMoveVec";
|
|
527
531
|
type?: {
|
|
528
532
|
None: null;
|
|
529
533
|
} | {
|
|
530
534
|
Some: string;
|
|
531
535
|
} | undefined;
|
|
532
|
-
} | {
|
|
533
|
-
kind: "Publish";
|
|
534
|
-
dependencies: string[];
|
|
535
|
-
modules: number[][];
|
|
536
536
|
}, null>>;
|
|
537
537
|
}>;
|
|
538
538
|
export declare type SerializedTransactionDataBuilder = Infer<typeof SerializedTransactionDataBuilder>;
|
|
@@ -113,6 +113,7 @@ export declare const MoveCallTransaction: Struct<{
|
|
|
113
113
|
}>;
|
|
114
114
|
export declare type MoveCallTransaction = Infer<typeof MoveCallTransaction>;
|
|
115
115
|
export declare const TransferObjectsTransaction: Struct<{
|
|
116
|
+
kind: "TransferObjects";
|
|
116
117
|
objects: ({
|
|
117
118
|
kind: "Input";
|
|
118
119
|
index: number;
|
|
@@ -128,7 +129,6 @@ export declare const TransferObjectsTransaction: Struct<{
|
|
|
128
129
|
index: number;
|
|
129
130
|
resultIndex: number;
|
|
130
131
|
})[];
|
|
131
|
-
kind: "TransferObjects";
|
|
132
132
|
address: {
|
|
133
133
|
kind: "Input";
|
|
134
134
|
index: number;
|
|
@@ -353,6 +353,7 @@ export declare const MergeCoinsTransaction: Struct<{
|
|
|
353
353
|
}>;
|
|
354
354
|
export declare type MergeCoinsTransaction = Infer<typeof MergeCoinsTransaction>;
|
|
355
355
|
export declare const MakeMoveVecTransaction: Struct<{
|
|
356
|
+
kind: "MakeMoveVec";
|
|
356
357
|
objects: ({
|
|
357
358
|
kind: "Input";
|
|
358
359
|
index: number;
|
|
@@ -368,7 +369,6 @@ export declare const MakeMoveVecTransaction: Struct<{
|
|
|
368
369
|
index: number;
|
|
369
370
|
resultIndex: number;
|
|
370
371
|
})[];
|
|
371
|
-
kind: "MakeMoveVec";
|
|
372
372
|
type?: {
|
|
373
373
|
None: null;
|
|
374
374
|
} | {
|
|
@@ -414,8 +414,8 @@ export declare const MakeMoveVecTransaction: Struct<{
|
|
|
414
414
|
export declare type MakeMoveVecTransaction = Infer<typeof MakeMoveVecTransaction>;
|
|
415
415
|
export declare const PublishTransaction: Struct<{
|
|
416
416
|
kind: "Publish";
|
|
417
|
-
dependencies: string[];
|
|
418
417
|
modules: number[][];
|
|
418
|
+
dependencies: string[];
|
|
419
419
|
}, {
|
|
420
420
|
kind: Struct<"Publish", "Publish">;
|
|
421
421
|
modules: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
@@ -442,6 +442,7 @@ export declare const TransactionType: Struct<{
|
|
|
442
442
|
target: `${string}::${string}::${string}`;
|
|
443
443
|
typeArguments: string[];
|
|
444
444
|
} | {
|
|
445
|
+
kind: "TransferObjects";
|
|
445
446
|
objects: ({
|
|
446
447
|
kind: "Input";
|
|
447
448
|
index: number;
|
|
@@ -457,7 +458,6 @@ export declare const TransactionType: Struct<{
|
|
|
457
458
|
index: number;
|
|
458
459
|
resultIndex: number;
|
|
459
460
|
})[];
|
|
460
|
-
kind: "TransferObjects";
|
|
461
461
|
address: {
|
|
462
462
|
kind: "Input";
|
|
463
463
|
index: number;
|
|
@@ -538,6 +538,11 @@ export declare const TransactionType: Struct<{
|
|
|
538
538
|
resultIndex: number;
|
|
539
539
|
})[];
|
|
540
540
|
} | {
|
|
541
|
+
kind: "Publish";
|
|
542
|
+
modules: number[][];
|
|
543
|
+
dependencies: string[];
|
|
544
|
+
} | {
|
|
545
|
+
kind: "MakeMoveVec";
|
|
541
546
|
objects: ({
|
|
542
547
|
kind: "Input";
|
|
543
548
|
index: number;
|
|
@@ -553,16 +558,11 @@ export declare const TransactionType: Struct<{
|
|
|
553
558
|
index: number;
|
|
554
559
|
resultIndex: number;
|
|
555
560
|
})[];
|
|
556
|
-
kind: "MakeMoveVec";
|
|
557
561
|
type?: {
|
|
558
562
|
None: null;
|
|
559
563
|
} | {
|
|
560
564
|
Some: string;
|
|
561
565
|
} | undefined;
|
|
562
|
-
} | {
|
|
563
|
-
kind: "Publish";
|
|
564
|
-
dependencies: string[];
|
|
565
|
-
modules: number[][];
|
|
566
566
|
}, null>;
|
|
567
567
|
export declare type TransactionType = Infer<typeof TransactionType>;
|
|
568
568
|
export declare function getTransactionType(data: unknown): Struct<{
|
|
@@ -618,6 +618,7 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
618
618
|
resultIndex: number;
|
|
619
619
|
}, null>>;
|
|
620
620
|
}> | Struct<{
|
|
621
|
+
kind: "TransferObjects";
|
|
621
622
|
objects: ({
|
|
622
623
|
kind: "Input";
|
|
623
624
|
index: number;
|
|
@@ -633,7 +634,6 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
633
634
|
index: number;
|
|
634
635
|
resultIndex: number;
|
|
635
636
|
})[];
|
|
636
|
-
kind: "TransferObjects";
|
|
637
637
|
address: {
|
|
638
638
|
kind: "Input";
|
|
639
639
|
index: number;
|
|
@@ -852,6 +852,15 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
852
852
|
resultIndex: number;
|
|
853
853
|
}, null>>;
|
|
854
854
|
}> | Struct<{
|
|
855
|
+
kind: "Publish";
|
|
856
|
+
modules: number[][];
|
|
857
|
+
dependencies: string[];
|
|
858
|
+
}, {
|
|
859
|
+
kind: Struct<"Publish", "Publish">;
|
|
860
|
+
modules: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
861
|
+
dependencies: Struct<string[], Struct<string, null>>;
|
|
862
|
+
}> | Struct<{
|
|
863
|
+
kind: "MakeMoveVec";
|
|
855
864
|
objects: ({
|
|
856
865
|
kind: "Input";
|
|
857
866
|
index: number;
|
|
@@ -867,7 +876,6 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
867
876
|
index: number;
|
|
868
877
|
resultIndex: number;
|
|
869
878
|
})[];
|
|
870
|
-
kind: "MakeMoveVec";
|
|
871
879
|
type?: {
|
|
872
880
|
None: null;
|
|
873
881
|
} | {
|
|
@@ -909,14 +917,6 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
909
917
|
index: number;
|
|
910
918
|
resultIndex: number;
|
|
911
919
|
}, null>>;
|
|
912
|
-
}> | Struct<{
|
|
913
|
-
kind: "Publish";
|
|
914
|
-
dependencies: string[];
|
|
915
|
-
modules: number[][];
|
|
916
|
-
}, {
|
|
917
|
-
kind: Struct<"Publish", "Publish">;
|
|
918
|
-
modules: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
919
|
-
dependencies: Struct<string[], Struct<string, null>>;
|
|
920
920
|
}>;
|
|
921
921
|
/**
|
|
922
922
|
* Simple helpers used to construct transactions:
|
|
@@ -964,6 +964,7 @@ export declare const Transactions: {
|
|
|
964
964
|
MergeCoins(destination: TransactionArgument, sources: TransactionArgument[]): MergeCoinsTransaction;
|
|
965
965
|
Publish(modules: number[][], dependencies: ObjectId[]): PublishTransaction;
|
|
966
966
|
MakeMoveVec({ type, objects, }: Omit<{
|
|
967
|
+
kind: "MakeMoveVec";
|
|
967
968
|
objects: ({
|
|
968
969
|
kind: "Input";
|
|
969
970
|
index: number;
|
|
@@ -979,7 +980,6 @@ export declare const Transactions: {
|
|
|
979
980
|
index: number;
|
|
980
981
|
resultIndex: number;
|
|
981
982
|
})[];
|
|
982
|
-
kind: "MakeMoveVec";
|
|
983
983
|
type?: {
|
|
984
984
|
None: null;
|
|
985
985
|
} | {
|
|
@@ -2,8 +2,8 @@ import { Infer } from 'superstruct';
|
|
|
2
2
|
export declare const CoinStruct: import("superstruct").Struct<{
|
|
3
3
|
version: number;
|
|
4
4
|
digest: string;
|
|
5
|
-
coinType: string;
|
|
6
5
|
previousTransaction: string;
|
|
6
|
+
coinType: string;
|
|
7
7
|
coinObjectId: string;
|
|
8
8
|
balance: number;
|
|
9
9
|
lockedUntilEpoch: number | null;
|
|
@@ -21,8 +21,8 @@ export declare const PaginatedCoins: import("superstruct").Struct<{
|
|
|
21
21
|
data: {
|
|
22
22
|
version: number;
|
|
23
23
|
digest: string;
|
|
24
|
-
coinType: string;
|
|
25
24
|
previousTransaction: string;
|
|
25
|
+
coinType: string;
|
|
26
26
|
coinObjectId: string;
|
|
27
27
|
balance: number;
|
|
28
28
|
lockedUntilEpoch: number | null;
|
|
@@ -33,16 +33,16 @@ export declare const PaginatedCoins: import("superstruct").Struct<{
|
|
|
33
33
|
data: import("superstruct").Struct<{
|
|
34
34
|
version: number;
|
|
35
35
|
digest: string;
|
|
36
|
-
coinType: string;
|
|
37
36
|
previousTransaction: string;
|
|
37
|
+
coinType: string;
|
|
38
38
|
coinObjectId: string;
|
|
39
39
|
balance: number;
|
|
40
40
|
lockedUntilEpoch: number | null;
|
|
41
41
|
}[], import("superstruct").Struct<{
|
|
42
42
|
version: number;
|
|
43
43
|
digest: string;
|
|
44
|
-
coinType: string;
|
|
45
44
|
previousTransaction: string;
|
|
45
|
+
coinType: string;
|
|
46
46
|
coinObjectId: string;
|
|
47
47
|
balance: number;
|
|
48
48
|
lockedUntilEpoch: number | null;
|
|
@@ -8,16 +8,16 @@ export declare const EventId: import("superstruct").Struct<{
|
|
|
8
8
|
eventSeq: import("superstruct").Struct<number, null>;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const SuiEvent: import("superstruct").Struct<{
|
|
11
|
+
type: string;
|
|
11
12
|
id: {
|
|
12
13
|
txDigest: string;
|
|
13
14
|
eventSeq: number;
|
|
14
15
|
};
|
|
16
|
+
sender: string;
|
|
15
17
|
packageId: string;
|
|
16
18
|
transactionModule: string;
|
|
17
|
-
sender: string;
|
|
18
|
-
type: string;
|
|
19
|
-
parsedJson?: Record<string, any> | undefined;
|
|
20
19
|
bcs?: string | undefined;
|
|
20
|
+
parsedJson?: Record<string, any> | undefined;
|
|
21
21
|
timestampMs?: number | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
id: import("superstruct").Struct<{
|
|
@@ -79,16 +79,16 @@ export declare type SuiEventFilter = {
|
|
|
79
79
|
};
|
|
80
80
|
export declare const PaginatedEvents: import("superstruct").Struct<{
|
|
81
81
|
data: {
|
|
82
|
+
type: string;
|
|
82
83
|
id: {
|
|
83
84
|
txDigest: string;
|
|
84
85
|
eventSeq: number;
|
|
85
86
|
};
|
|
87
|
+
sender: string;
|
|
86
88
|
packageId: string;
|
|
87
89
|
transactionModule: string;
|
|
88
|
-
sender: string;
|
|
89
|
-
type: string;
|
|
90
|
-
parsedJson?: Record<string, any> | undefined;
|
|
91
90
|
bcs?: string | undefined;
|
|
91
|
+
parsedJson?: Record<string, any> | undefined;
|
|
92
92
|
timestampMs?: number | undefined;
|
|
93
93
|
}[];
|
|
94
94
|
nextCursor: {
|
|
@@ -98,28 +98,28 @@ export declare const PaginatedEvents: import("superstruct").Struct<{
|
|
|
98
98
|
hasNextPage: boolean;
|
|
99
99
|
}, {
|
|
100
100
|
data: import("superstruct").Struct<{
|
|
101
|
+
type: string;
|
|
101
102
|
id: {
|
|
102
103
|
txDigest: string;
|
|
103
104
|
eventSeq: number;
|
|
104
105
|
};
|
|
106
|
+
sender: string;
|
|
105
107
|
packageId: string;
|
|
106
108
|
transactionModule: string;
|
|
107
|
-
sender: string;
|
|
108
|
-
type: string;
|
|
109
|
-
parsedJson?: Record<string, any> | undefined;
|
|
110
109
|
bcs?: string | undefined;
|
|
110
|
+
parsedJson?: Record<string, any> | undefined;
|
|
111
111
|
timestampMs?: number | undefined;
|
|
112
112
|
}[], import("superstruct").Struct<{
|
|
113
|
+
type: string;
|
|
113
114
|
id: {
|
|
114
115
|
txDigest: string;
|
|
115
116
|
eventSeq: number;
|
|
116
117
|
};
|
|
118
|
+
sender: string;
|
|
117
119
|
packageId: string;
|
|
118
120
|
transactionModule: string;
|
|
119
|
-
sender: string;
|
|
120
|
-
type: string;
|
|
121
|
-
parsedJson?: Record<string, any> | undefined;
|
|
122
121
|
bcs?: string | undefined;
|
|
122
|
+
parsedJson?: Record<string, any> | undefined;
|
|
123
123
|
timestampMs?: number | undefined;
|
|
124
124
|
}, {
|
|
125
125
|
id: import("superstruct").Struct<{
|
|
@@ -149,31 +149,31 @@ export declare type SubscriptionId = Infer<typeof SubscriptionId>;
|
|
|
149
149
|
export declare const SubscriptionEvent: import("superstruct").Struct<{
|
|
150
150
|
subscription: number;
|
|
151
151
|
result: {
|
|
152
|
+
type: string;
|
|
152
153
|
id: {
|
|
153
154
|
txDigest: string;
|
|
154
155
|
eventSeq: number;
|
|
155
156
|
};
|
|
157
|
+
sender: string;
|
|
156
158
|
packageId: string;
|
|
157
159
|
transactionModule: string;
|
|
158
|
-
sender: string;
|
|
159
|
-
type: string;
|
|
160
|
-
parsedJson?: Record<string, any> | undefined;
|
|
161
160
|
bcs?: string | undefined;
|
|
161
|
+
parsedJson?: Record<string, any> | undefined;
|
|
162
162
|
timestampMs?: number | undefined;
|
|
163
163
|
};
|
|
164
164
|
}, {
|
|
165
165
|
subscription: import("superstruct").Struct<number, null>;
|
|
166
166
|
result: import("superstruct").Struct<{
|
|
167
|
+
type: string;
|
|
167
168
|
id: {
|
|
168
169
|
txDigest: string;
|
|
169
170
|
eventSeq: number;
|
|
170
171
|
};
|
|
172
|
+
sender: string;
|
|
171
173
|
packageId: string;
|
|
172
174
|
transactionModule: string;
|
|
173
|
-
sender: string;
|
|
174
|
-
type: string;
|
|
175
|
-
parsedJson?: Record<string, any> | undefined;
|
|
176
175
|
bcs?: string | undefined;
|
|
176
|
+
parsedJson?: Record<string, any> | undefined;
|
|
177
177
|
timestampMs?: number | undefined;
|
|
178
178
|
}, {
|
|
179
179
|
id: import("superstruct").Struct<{
|