@bitgo/sdk-coin-sui 4.2.6 → 4.2.8
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 +12 -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/transactions.d.ts +243 -243
- package/dist/src/lib/mystenlab/types/validator.d.ts +4 -4
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-sui@4.2.0...@bitgo/sdk-coin-sui@4.2.8) (2023-09-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
11
|
+
|
|
12
|
+
## [4.2.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-sui@4.2.0...@bitgo/sdk-coin-sui@4.2.7) (2023-09-05)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
17
|
+
|
|
6
18
|
## [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
19
|
|
|
8
20
|
### Bug Fixes
|
|
@@ -37,6 +37,8 @@ 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
|
+
} | {
|
|
40
42
|
Object: {
|
|
41
43
|
ImmOrOwned: {
|
|
42
44
|
objectId: string;
|
|
@@ -50,8 +52,6 @@ export declare const BuilderCallArg: import("superstruct").Struct<{
|
|
|
50
52
|
mutable: boolean;
|
|
51
53
|
};
|
|
52
54
|
};
|
|
53
|
-
} | {
|
|
54
|
-
Pure: number[];
|
|
55
55
|
}, null>;
|
|
56
56
|
export declare type BuilderCallArg = Infer<typeof BuilderCallArg>;
|
|
57
57
|
export declare const Inputs: {
|
|
@@ -113,7 +113,6 @@ export declare class TransactionBlock {
|
|
|
113
113
|
index: number;
|
|
114
114
|
resultIndex: number;
|
|
115
115
|
}): {
|
|
116
|
-
kind: "TransferObjects";
|
|
117
116
|
objects: ({
|
|
118
117
|
kind: "Input";
|
|
119
118
|
index: number;
|
|
@@ -129,6 +128,7 @@ export declare class TransactionBlock {
|
|
|
129
128
|
index: number;
|
|
130
129
|
resultIndex: number;
|
|
131
130
|
})[];
|
|
131
|
+
kind: "TransferObjects";
|
|
132
132
|
address: {
|
|
133
133
|
kind: "Input";
|
|
134
134
|
index: number;
|
|
@@ -269,11 +269,10 @@ export declare class TransactionBlock {
|
|
|
269
269
|
};
|
|
270
270
|
Publish(modules: number[][], dependencies: string[]): {
|
|
271
271
|
kind: "Publish";
|
|
272
|
-
modules: number[][];
|
|
273
272
|
dependencies: string[];
|
|
273
|
+
modules: number[][];
|
|
274
274
|
};
|
|
275
275
|
MakeMoveVec({ type, objects, }: Omit<{
|
|
276
|
-
kind: "MakeMoveVec";
|
|
277
276
|
objects: ({
|
|
278
277
|
kind: "Input";
|
|
279
278
|
index: number;
|
|
@@ -289,6 +288,7 @@ export declare class TransactionBlock {
|
|
|
289
288
|
index: number;
|
|
290
289
|
resultIndex: number;
|
|
291
290
|
})[];
|
|
291
|
+
kind: "MakeMoveVec";
|
|
292
292
|
type?: {
|
|
293
293
|
None: null;
|
|
294
294
|
} | {
|
|
@@ -297,7 +297,6 @@ export declare class TransactionBlock {
|
|
|
297
297
|
}, "type" | "kind"> & {
|
|
298
298
|
type?: string | undefined;
|
|
299
299
|
}): {
|
|
300
|
-
kind: "MakeMoveVec";
|
|
301
300
|
objects: ({
|
|
302
301
|
kind: "Input";
|
|
303
302
|
index: number;
|
|
@@ -313,6 +312,7 @@ export declare class TransactionBlock {
|
|
|
313
312
|
index: number;
|
|
314
313
|
resultIndex: number;
|
|
315
314
|
})[];
|
|
315
|
+
kind: "MakeMoveVec";
|
|
316
316
|
type?: {
|
|
317
317
|
None: null;
|
|
318
318
|
} | {
|
|
@@ -394,7 +394,6 @@ export declare class TransactionBlock {
|
|
|
394
394
|
target: `${string}::${string}::${string}`;
|
|
395
395
|
typeArguments: string[];
|
|
396
396
|
} | {
|
|
397
|
-
kind: "TransferObjects";
|
|
398
397
|
objects: ({
|
|
399
398
|
kind: "Input";
|
|
400
399
|
index: number;
|
|
@@ -410,6 +409,7 @@ export declare class TransactionBlock {
|
|
|
410
409
|
index: number;
|
|
411
410
|
resultIndex: number;
|
|
412
411
|
})[];
|
|
412
|
+
kind: "TransferObjects";
|
|
413
413
|
address: {
|
|
414
414
|
kind: "Input";
|
|
415
415
|
index: number;
|
|
@@ -490,11 +490,6 @@ 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";
|
|
498
493
|
objects: ({
|
|
499
494
|
kind: "Input";
|
|
500
495
|
index: number;
|
|
@@ -510,11 +505,16 @@ export declare class TransactionBlock {
|
|
|
510
505
|
index: number;
|
|
511
506
|
resultIndex: number;
|
|
512
507
|
})[];
|
|
508
|
+
kind: "MakeMoveVec";
|
|
513
509
|
type?: {
|
|
514
510
|
None: null;
|
|
515
511
|
} | {
|
|
516
512
|
Some: string;
|
|
517
513
|
} | 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;
|
|
527
526
|
payment?: {
|
|
528
527
|
objectId: string;
|
|
529
528
|
version: string | number;
|
|
530
529
|
digest: string;
|
|
531
530
|
}[] | 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;
|
|
11
10
|
payment?: {
|
|
12
11
|
objectId: string;
|
|
13
12
|
version: string | number;
|
|
14
13
|
digest: string;
|
|
15
14
|
}[] | undefined;
|
|
15
|
+
owner?: string | undefined;
|
|
16
16
|
price?: string | undefined;
|
|
17
17
|
budget?: string | undefined;
|
|
18
18
|
}, {
|
|
@@ -56,7 +56,6 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
56
56
|
target: `${string}::${string}::${string}`;
|
|
57
57
|
typeArguments: string[];
|
|
58
58
|
} | {
|
|
59
|
-
kind: "TransferObjects";
|
|
60
59
|
objects: ({
|
|
61
60
|
kind: "Input";
|
|
62
61
|
index: number;
|
|
@@ -72,6 +71,7 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
72
71
|
index: number;
|
|
73
72
|
resultIndex: number;
|
|
74
73
|
})[];
|
|
74
|
+
kind: "TransferObjects";
|
|
75
75
|
address: {
|
|
76
76
|
kind: "Input";
|
|
77
77
|
index: number;
|
|
@@ -152,11 +152,6 @@ 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";
|
|
160
155
|
objects: ({
|
|
161
156
|
kind: "Input";
|
|
162
157
|
index: number;
|
|
@@ -172,11 +167,16 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
172
167
|
index: number;
|
|
173
168
|
resultIndex: number;
|
|
174
169
|
})[];
|
|
170
|
+
kind: "MakeMoveVec";
|
|
175
171
|
type?: {
|
|
176
172
|
None: null;
|
|
177
173
|
} | {
|
|
178
174
|
Some: string;
|
|
179
175
|
} | 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;
|
|
189
188
|
payment?: {
|
|
190
189
|
objectId: string;
|
|
191
190
|
version: string | number;
|
|
192
191
|
digest: string;
|
|
193
192
|
}[] | 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;
|
|
213
212
|
payment?: {
|
|
214
213
|
objectId: string;
|
|
215
214
|
version: string | number;
|
|
216
215
|
digest: string;
|
|
217
216
|
}[] | undefined;
|
|
217
|
+
owner?: string | undefined;
|
|
218
218
|
price?: string | undefined;
|
|
219
219
|
budget?: string | undefined;
|
|
220
220
|
}, {
|
|
@@ -271,7 +271,6 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
271
271
|
target: `${string}::${string}::${string}`;
|
|
272
272
|
typeArguments: string[];
|
|
273
273
|
} | {
|
|
274
|
-
kind: "TransferObjects";
|
|
275
274
|
objects: ({
|
|
276
275
|
kind: "Input";
|
|
277
276
|
index: number;
|
|
@@ -287,6 +286,7 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
287
286
|
index: number;
|
|
288
287
|
resultIndex: number;
|
|
289
288
|
})[];
|
|
289
|
+
kind: "TransferObjects";
|
|
290
290
|
address: {
|
|
291
291
|
kind: "Input";
|
|
292
292
|
index: number;
|
|
@@ -367,11 +367,6 @@ 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";
|
|
375
370
|
objects: ({
|
|
376
371
|
kind: "Input";
|
|
377
372
|
index: number;
|
|
@@ -387,11 +382,16 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
387
382
|
index: number;
|
|
388
383
|
resultIndex: number;
|
|
389
384
|
})[];
|
|
385
|
+
kind: "MakeMoveVec";
|
|
390
386
|
type?: {
|
|
391
387
|
None: null;
|
|
392
388
|
} | {
|
|
393
389
|
Some: string;
|
|
394
390
|
} | undefined;
|
|
391
|
+
} | {
|
|
392
|
+
kind: "Publish";
|
|
393
|
+
dependencies: string[];
|
|
394
|
+
modules: number[][];
|
|
395
395
|
})[], import("superstruct").Struct<{
|
|
396
396
|
arguments: ({
|
|
397
397
|
kind: "Input";
|
|
@@ -412,7 +412,6 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
412
412
|
target: `${string}::${string}::${string}`;
|
|
413
413
|
typeArguments: string[];
|
|
414
414
|
} | {
|
|
415
|
-
kind: "TransferObjects";
|
|
416
415
|
objects: ({
|
|
417
416
|
kind: "Input";
|
|
418
417
|
index: number;
|
|
@@ -428,6 +427,7 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
428
427
|
index: number;
|
|
429
428
|
resultIndex: number;
|
|
430
429
|
})[];
|
|
430
|
+
kind: "TransferObjects";
|
|
431
431
|
address: {
|
|
432
432
|
kind: "Input";
|
|
433
433
|
index: number;
|
|
@@ -508,11 +508,6 @@ 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";
|
|
516
511
|
objects: ({
|
|
517
512
|
kind: "Input";
|
|
518
513
|
index: number;
|
|
@@ -528,11 +523,16 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
528
523
|
index: number;
|
|
529
524
|
resultIndex: number;
|
|
530
525
|
})[];
|
|
526
|
+
kind: "MakeMoveVec";
|
|
531
527
|
type?: {
|
|
532
528
|
None: null;
|
|
533
529
|
} | {
|
|
534
530
|
Some: string;
|
|
535
531
|
} | 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,7 +113,6 @@ 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";
|
|
117
116
|
objects: ({
|
|
118
117
|
kind: "Input";
|
|
119
118
|
index: number;
|
|
@@ -129,6 +128,7 @@ export declare const TransferObjectsTransaction: Struct<{
|
|
|
129
128
|
index: number;
|
|
130
129
|
resultIndex: number;
|
|
131
130
|
})[];
|
|
131
|
+
kind: "TransferObjects";
|
|
132
132
|
address: {
|
|
133
133
|
kind: "Input";
|
|
134
134
|
index: number;
|
|
@@ -353,7 +353,6 @@ 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";
|
|
357
356
|
objects: ({
|
|
358
357
|
kind: "Input";
|
|
359
358
|
index: number;
|
|
@@ -369,6 +368,7 @@ export declare const MakeMoveVecTransaction: Struct<{
|
|
|
369
368
|
index: number;
|
|
370
369
|
resultIndex: number;
|
|
371
370
|
})[];
|
|
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
|
-
modules: number[][];
|
|
418
417
|
dependencies: string[];
|
|
418
|
+
modules: number[][];
|
|
419
419
|
}, {
|
|
420
420
|
kind: Struct<"Publish", "Publish">;
|
|
421
421
|
modules: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
@@ -442,7 +442,6 @@ export declare const TransactionType: Struct<{
|
|
|
442
442
|
target: `${string}::${string}::${string}`;
|
|
443
443
|
typeArguments: string[];
|
|
444
444
|
} | {
|
|
445
|
-
kind: "TransferObjects";
|
|
446
445
|
objects: ({
|
|
447
446
|
kind: "Input";
|
|
448
447
|
index: number;
|
|
@@ -458,6 +457,7 @@ export declare const TransactionType: Struct<{
|
|
|
458
457
|
index: number;
|
|
459
458
|
resultIndex: number;
|
|
460
459
|
})[];
|
|
460
|
+
kind: "TransferObjects";
|
|
461
461
|
address: {
|
|
462
462
|
kind: "Input";
|
|
463
463
|
index: number;
|
|
@@ -538,11 +538,6 @@ 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";
|
|
546
541
|
objects: ({
|
|
547
542
|
kind: "Input";
|
|
548
543
|
index: number;
|
|
@@ -558,11 +553,16 @@ export declare const TransactionType: Struct<{
|
|
|
558
553
|
index: number;
|
|
559
554
|
resultIndex: number;
|
|
560
555
|
})[];
|
|
556
|
+
kind: "MakeMoveVec";
|
|
561
557
|
type?: {
|
|
562
558
|
None: null;
|
|
563
559
|
} | {
|
|
564
560
|
Some: string;
|
|
565
561
|
} | 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,7 +618,6 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
618
618
|
resultIndex: number;
|
|
619
619
|
}, null>>;
|
|
620
620
|
}> | Struct<{
|
|
621
|
-
kind: "TransferObjects";
|
|
622
621
|
objects: ({
|
|
623
622
|
kind: "Input";
|
|
624
623
|
index: number;
|
|
@@ -634,6 +633,7 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
634
633
|
index: number;
|
|
635
634
|
resultIndex: number;
|
|
636
635
|
})[];
|
|
636
|
+
kind: "TransferObjects";
|
|
637
637
|
address: {
|
|
638
638
|
kind: "Input";
|
|
639
639
|
index: number;
|
|
@@ -852,15 +852,6 @@ 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";
|
|
864
855
|
objects: ({
|
|
865
856
|
kind: "Input";
|
|
866
857
|
index: number;
|
|
@@ -876,6 +867,7 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
876
867
|
index: number;
|
|
877
868
|
resultIndex: number;
|
|
878
869
|
})[];
|
|
870
|
+
kind: "MakeMoveVec";
|
|
879
871
|
type?: {
|
|
880
872
|
None: null;
|
|
881
873
|
} | {
|
|
@@ -917,6 +909,14 @@ export declare function getTransactionType(data: unknown): Struct<{
|
|
|
917
909
|
index: number;
|
|
918
910
|
resultIndex: number;
|
|
919
911
|
}, 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,7 +964,6 @@ 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";
|
|
968
967
|
objects: ({
|
|
969
968
|
kind: "Input";
|
|
970
969
|
index: number;
|
|
@@ -980,6 +979,7 @@ export declare const Transactions: {
|
|
|
980
979
|
index: number;
|
|
981
980
|
resultIndex: number;
|
|
982
981
|
})[];
|
|
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
|
-
previousTransaction: string;
|
|
6
5
|
coinType: string;
|
|
6
|
+
previousTransaction: 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
|
-
previousTransaction: string;
|
|
25
24
|
coinType: string;
|
|
25
|
+
previousTransaction: 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
|
-
previousTransaction: string;
|
|
37
36
|
coinType: string;
|
|
37
|
+
previousTransaction: 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
|
-
previousTransaction: string;
|
|
45
44
|
coinType: string;
|
|
45
|
+
previousTransaction: 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;
|
|
12
11
|
id: {
|
|
13
12
|
txDigest: string;
|
|
14
13
|
eventSeq: number;
|
|
15
14
|
};
|
|
16
|
-
sender: string;
|
|
17
15
|
packageId: string;
|
|
18
16
|
transactionModule: string;
|
|
19
|
-
|
|
17
|
+
sender: string;
|
|
18
|
+
type: string;
|
|
20
19
|
parsedJson?: Record<string, any> | undefined;
|
|
20
|
+
bcs?: string | 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;
|
|
83
82
|
id: {
|
|
84
83
|
txDigest: string;
|
|
85
84
|
eventSeq: number;
|
|
86
85
|
};
|
|
87
|
-
sender: string;
|
|
88
86
|
packageId: string;
|
|
89
87
|
transactionModule: string;
|
|
90
|
-
|
|
88
|
+
sender: string;
|
|
89
|
+
type: string;
|
|
91
90
|
parsedJson?: Record<string, any> | undefined;
|
|
91
|
+
bcs?: string | 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;
|
|
102
101
|
id: {
|
|
103
102
|
txDigest: string;
|
|
104
103
|
eventSeq: number;
|
|
105
104
|
};
|
|
106
|
-
sender: string;
|
|
107
105
|
packageId: string;
|
|
108
106
|
transactionModule: string;
|
|
109
|
-
|
|
107
|
+
sender: string;
|
|
108
|
+
type: string;
|
|
110
109
|
parsedJson?: Record<string, any> | undefined;
|
|
110
|
+
bcs?: string | undefined;
|
|
111
111
|
timestampMs?: number | undefined;
|
|
112
112
|
}[], import("superstruct").Struct<{
|
|
113
|
-
type: string;
|
|
114
113
|
id: {
|
|
115
114
|
txDigest: string;
|
|
116
115
|
eventSeq: number;
|
|
117
116
|
};
|
|
118
|
-
sender: string;
|
|
119
117
|
packageId: string;
|
|
120
118
|
transactionModule: string;
|
|
121
|
-
|
|
119
|
+
sender: string;
|
|
120
|
+
type: string;
|
|
122
121
|
parsedJson?: Record<string, any> | undefined;
|
|
122
|
+
bcs?: string | 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;
|
|
153
152
|
id: {
|
|
154
153
|
txDigest: string;
|
|
155
154
|
eventSeq: number;
|
|
156
155
|
};
|
|
157
|
-
sender: string;
|
|
158
156
|
packageId: string;
|
|
159
157
|
transactionModule: string;
|
|
160
|
-
|
|
158
|
+
sender: string;
|
|
159
|
+
type: string;
|
|
161
160
|
parsedJson?: Record<string, any> | undefined;
|
|
161
|
+
bcs?: string | 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;
|
|
168
167
|
id: {
|
|
169
168
|
txDigest: string;
|
|
170
169
|
eventSeq: number;
|
|
171
170
|
};
|
|
172
|
-
sender: string;
|
|
173
171
|
packageId: string;
|
|
174
172
|
transactionModule: string;
|
|
175
|
-
|
|
173
|
+
sender: string;
|
|
174
|
+
type: string;
|
|
176
175
|
parsedJson?: Record<string, any> | undefined;
|
|
176
|
+
bcs?: string | undefined;
|
|
177
177
|
timestampMs?: number | undefined;
|
|
178
178
|
}, {
|
|
179
179
|
id: import("superstruct").Struct<{
|