@bitgo-beta/sdk-coin-sui 3.0.3-beta.9 → 3.0.3-beta.91
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/.mocharc.yml +1 -2
- package/CHANGELOG.md +86 -0
- package/dist/src/lib/compareTransactionBlocks.d.ts +8 -0
- package/dist/src/lib/compareTransactionBlocks.d.ts.map +1 -0
- package/dist/src/lib/compareTransactionBlocks.js +13 -0
- package/dist/src/lib/constants.d.ts +1 -0
- package/dist/src/lib/constants.d.ts.map +1 -1
- package/dist/src/lib/constants.js +3 -2
- package/dist/src/lib/iface.d.ts +1 -0
- package/dist/src/lib/iface.d.ts.map +1 -1
- package/dist/src/lib/iface.js +1 -1
- package/dist/src/lib/mystenlab/builder/Inputs.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/builder/Inputs.js +1 -1
- package/dist/src/lib/mystenlab/builder/TransactionBlock.js +33 -35
- package/dist/src/lib/mystenlab/framework/sui-system-state.d.ts +2 -0
- package/dist/src/lib/mystenlab/framework/sui-system-state.d.ts.map +1 -1
- package/dist/src/lib/mystenlab/framework/sui-system-state.js +5 -2
- package/dist/src/lib/mystenlab/types/coin.d.ts +4 -4
- package/dist/src/lib/mystenlab/types/events.d.ts +12 -12
- package/dist/src/lib/mystenlab/types/objects.d.ts +49 -49
- package/dist/src/lib/mystenlab/types/transactions.d.ts +76 -76
- package/dist/src/lib/mystenlab/types/validator.d.ts +4 -4
- package/dist/src/lib/stakingBuilder.d.ts +3 -3
- package/dist/src/lib/stakingBuilder.d.ts.map +1 -1
- package/dist/src/lib/stakingBuilder.js +28 -25
- package/dist/src/lib/stakingTransaction.d.ts.map +1 -1
- package/dist/src/lib/stakingTransaction.js +9 -12
- package/dist/src/lib/unstakingBuilder.d.ts +8 -1
- package/dist/src/lib/unstakingBuilder.d.ts.map +1 -1
- package/dist/src/lib/unstakingBuilder.js +95 -16
- package/dist/src/lib/unstakingTransaction.d.ts +25 -1
- package/dist/src/lib/unstakingTransaction.d.ts.map +1 -1
- package/dist/src/lib/unstakingTransaction.js +146 -21
- package/dist/src/lib/utils.d.ts +12 -2
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +34 -2
- package/package.json +12 -10
|
@@ -9,15 +9,15 @@ export declare const EventId: import("superstruct").Struct<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare const SuiEvent: import("superstruct").Struct<{
|
|
11
11
|
type: string;
|
|
12
|
+
sender: string;
|
|
12
13
|
id: {
|
|
13
14
|
txDigest: string;
|
|
14
15
|
eventSeq: number;
|
|
15
16
|
};
|
|
16
|
-
sender: string;
|
|
17
17
|
packageId: string;
|
|
18
18
|
transactionModule: 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<{
|
|
@@ -80,15 +80,15 @@ export declare type SuiEventFilter = {
|
|
|
80
80
|
export declare const PaginatedEvents: import("superstruct").Struct<{
|
|
81
81
|
data: {
|
|
82
82
|
type: string;
|
|
83
|
+
sender: string;
|
|
83
84
|
id: {
|
|
84
85
|
txDigest: string;
|
|
85
86
|
eventSeq: number;
|
|
86
87
|
};
|
|
87
|
-
sender: string;
|
|
88
88
|
packageId: string;
|
|
89
89
|
transactionModule: 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: {
|
|
@@ -99,27 +99,27 @@ export declare const PaginatedEvents: import("superstruct").Struct<{
|
|
|
99
99
|
}, {
|
|
100
100
|
data: import("superstruct").Struct<{
|
|
101
101
|
type: string;
|
|
102
|
+
sender: string;
|
|
102
103
|
id: {
|
|
103
104
|
txDigest: string;
|
|
104
105
|
eventSeq: number;
|
|
105
106
|
};
|
|
106
|
-
sender: string;
|
|
107
107
|
packageId: string;
|
|
108
108
|
transactionModule: 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
113
|
type: string;
|
|
114
|
+
sender: string;
|
|
114
115
|
id: {
|
|
115
116
|
txDigest: string;
|
|
116
117
|
eventSeq: number;
|
|
117
118
|
};
|
|
118
|
-
sender: string;
|
|
119
119
|
packageId: string;
|
|
120
120
|
transactionModule: 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<{
|
|
@@ -150,30 +150,30 @@ export declare const SubscriptionEvent: import("superstruct").Struct<{
|
|
|
150
150
|
subscription: number;
|
|
151
151
|
result: {
|
|
152
152
|
type: string;
|
|
153
|
+
sender: string;
|
|
153
154
|
id: {
|
|
154
155
|
txDigest: string;
|
|
155
156
|
eventSeq: number;
|
|
156
157
|
};
|
|
157
|
-
sender: string;
|
|
158
158
|
packageId: string;
|
|
159
159
|
transactionModule: 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
167
|
type: string;
|
|
168
|
+
sender: string;
|
|
168
169
|
id: {
|
|
169
170
|
txDigest: string;
|
|
170
171
|
eventSeq: number;
|
|
171
172
|
};
|
|
172
|
-
sender: string;
|
|
173
173
|
packageId: string;
|
|
174
174
|
transactionModule: 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<{
|
|
@@ -163,27 +163,27 @@ export declare const SuiObjectData: import("superstruct").Struct<{
|
|
|
163
163
|
initial_shared_version: number;
|
|
164
164
|
};
|
|
165
165
|
} | "Immutable" | undefined;
|
|
166
|
-
|
|
166
|
+
content?: {
|
|
167
167
|
type: string;
|
|
168
168
|
fields: Record<string, any>;
|
|
169
169
|
hasPublicTransfer: boolean;
|
|
170
170
|
dataType: "moveObject";
|
|
171
171
|
} | {
|
|
172
|
-
|
|
172
|
+
disassembled: Record<string, string>;
|
|
173
173
|
dataType: "package";
|
|
174
|
-
moduleMap: Record<string, string>;
|
|
175
174
|
} | undefined;
|
|
176
|
-
|
|
177
|
-
previousTransaction?: string | undefined;
|
|
178
|
-
content?: {
|
|
175
|
+
bcs?: {
|
|
179
176
|
type: string;
|
|
180
177
|
fields: Record<string, any>;
|
|
181
178
|
hasPublicTransfer: boolean;
|
|
182
179
|
dataType: "moveObject";
|
|
183
180
|
} | {
|
|
184
|
-
|
|
181
|
+
id: string;
|
|
185
182
|
dataType: "package";
|
|
183
|
+
moduleMap: Record<string, string>;
|
|
186
184
|
} | undefined;
|
|
185
|
+
previousTransaction?: string | undefined;
|
|
186
|
+
storageRebate?: number | undefined;
|
|
187
187
|
display?: Record<string, string> | undefined;
|
|
188
188
|
}, {
|
|
189
189
|
objectId: import("superstruct").Struct<string, null>;
|
|
@@ -347,27 +347,27 @@ export declare const SuiObjectResponse: import("superstruct").Struct<{
|
|
|
347
347
|
initial_shared_version: number;
|
|
348
348
|
};
|
|
349
349
|
} | "Immutable" | undefined;
|
|
350
|
-
|
|
350
|
+
content?: {
|
|
351
351
|
type: string;
|
|
352
352
|
fields: Record<string, any>;
|
|
353
353
|
hasPublicTransfer: boolean;
|
|
354
354
|
dataType: "moveObject";
|
|
355
355
|
} | {
|
|
356
|
-
|
|
356
|
+
disassembled: Record<string, string>;
|
|
357
357
|
dataType: "package";
|
|
358
|
-
moduleMap: Record<string, string>;
|
|
359
358
|
} | undefined;
|
|
360
|
-
|
|
361
|
-
previousTransaction?: string | undefined;
|
|
362
|
-
content?: {
|
|
359
|
+
bcs?: {
|
|
363
360
|
type: string;
|
|
364
361
|
fields: Record<string, any>;
|
|
365
362
|
hasPublicTransfer: boolean;
|
|
366
363
|
dataType: "moveObject";
|
|
367
364
|
} | {
|
|
368
|
-
|
|
365
|
+
id: string;
|
|
369
366
|
dataType: "package";
|
|
367
|
+
moduleMap: Record<string, string>;
|
|
370
368
|
} | undefined;
|
|
369
|
+
previousTransaction?: string | undefined;
|
|
370
|
+
storageRebate?: number | undefined;
|
|
371
371
|
display?: Record<string, string> | undefined;
|
|
372
372
|
} | undefined;
|
|
373
373
|
error?: {
|
|
@@ -391,27 +391,27 @@ export declare const SuiObjectResponse: import("superstruct").Struct<{
|
|
|
391
391
|
initial_shared_version: number;
|
|
392
392
|
};
|
|
393
393
|
} | "Immutable" | undefined;
|
|
394
|
-
|
|
394
|
+
content?: {
|
|
395
395
|
type: string;
|
|
396
396
|
fields: Record<string, any>;
|
|
397
397
|
hasPublicTransfer: boolean;
|
|
398
398
|
dataType: "moveObject";
|
|
399
399
|
} | {
|
|
400
|
-
|
|
400
|
+
disassembled: Record<string, string>;
|
|
401
401
|
dataType: "package";
|
|
402
|
-
moduleMap: Record<string, string>;
|
|
403
402
|
} | undefined;
|
|
404
|
-
|
|
405
|
-
previousTransaction?: string | undefined;
|
|
406
|
-
content?: {
|
|
403
|
+
bcs?: {
|
|
407
404
|
type: string;
|
|
408
405
|
fields: Record<string, any>;
|
|
409
406
|
hasPublicTransfer: boolean;
|
|
410
407
|
dataType: "moveObject";
|
|
411
408
|
} | {
|
|
412
|
-
|
|
409
|
+
id: string;
|
|
413
410
|
dataType: "package";
|
|
411
|
+
moduleMap: Record<string, string>;
|
|
414
412
|
} | undefined;
|
|
413
|
+
previousTransaction?: string | undefined;
|
|
414
|
+
storageRebate?: number | undefined;
|
|
415
415
|
display?: Record<string, string> | undefined;
|
|
416
416
|
} | undefined, {
|
|
417
417
|
objectId: import("superstruct").Struct<string, null>;
|
|
@@ -542,27 +542,27 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
|
|
|
542
542
|
initial_shared_version: number;
|
|
543
543
|
};
|
|
544
544
|
} | "Immutable" | undefined;
|
|
545
|
-
|
|
545
|
+
content?: {
|
|
546
546
|
type: string;
|
|
547
547
|
fields: Record<string, any>;
|
|
548
548
|
hasPublicTransfer: boolean;
|
|
549
549
|
dataType: "moveObject";
|
|
550
550
|
} | {
|
|
551
|
-
|
|
551
|
+
disassembled: Record<string, string>;
|
|
552
552
|
dataType: "package";
|
|
553
|
-
moduleMap: Record<string, string>;
|
|
554
553
|
} | undefined;
|
|
555
|
-
|
|
556
|
-
previousTransaction?: string | undefined;
|
|
557
|
-
content?: {
|
|
554
|
+
bcs?: {
|
|
558
555
|
type: string;
|
|
559
556
|
fields: Record<string, any>;
|
|
560
557
|
hasPublicTransfer: boolean;
|
|
561
558
|
dataType: "moveObject";
|
|
562
559
|
} | {
|
|
563
|
-
|
|
560
|
+
id: string;
|
|
564
561
|
dataType: "package";
|
|
562
|
+
moduleMap: Record<string, string>;
|
|
565
563
|
} | undefined;
|
|
564
|
+
previousTransaction?: string | undefined;
|
|
565
|
+
storageRebate?: number | undefined;
|
|
566
566
|
display?: Record<string, string> | undefined;
|
|
567
567
|
} | undefined;
|
|
568
568
|
error?: {
|
|
@@ -593,27 +593,27 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
|
|
|
593
593
|
initial_shared_version: number;
|
|
594
594
|
};
|
|
595
595
|
} | "Immutable" | undefined;
|
|
596
|
-
|
|
596
|
+
content?: {
|
|
597
597
|
type: string;
|
|
598
598
|
fields: Record<string, any>;
|
|
599
599
|
hasPublicTransfer: boolean;
|
|
600
600
|
dataType: "moveObject";
|
|
601
601
|
} | {
|
|
602
|
-
|
|
602
|
+
disassembled: Record<string, string>;
|
|
603
603
|
dataType: "package";
|
|
604
|
-
moduleMap: Record<string, string>;
|
|
605
604
|
} | undefined;
|
|
606
|
-
|
|
607
|
-
previousTransaction?: string | undefined;
|
|
608
|
-
content?: {
|
|
605
|
+
bcs?: {
|
|
609
606
|
type: string;
|
|
610
607
|
fields: Record<string, any>;
|
|
611
608
|
hasPublicTransfer: boolean;
|
|
612
609
|
dataType: "moveObject";
|
|
613
610
|
} | {
|
|
614
|
-
|
|
611
|
+
id: string;
|
|
615
612
|
dataType: "package";
|
|
613
|
+
moduleMap: Record<string, string>;
|
|
616
614
|
} | undefined;
|
|
615
|
+
previousTransaction?: string | undefined;
|
|
616
|
+
storageRebate?: number | undefined;
|
|
617
617
|
display?: Record<string, string> | undefined;
|
|
618
618
|
} | undefined;
|
|
619
619
|
error?: {
|
|
@@ -637,27 +637,27 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
|
|
|
637
637
|
initial_shared_version: number;
|
|
638
638
|
};
|
|
639
639
|
} | "Immutable" | undefined;
|
|
640
|
-
|
|
640
|
+
content?: {
|
|
641
641
|
type: string;
|
|
642
642
|
fields: Record<string, any>;
|
|
643
643
|
hasPublicTransfer: boolean;
|
|
644
644
|
dataType: "moveObject";
|
|
645
645
|
} | {
|
|
646
|
-
|
|
646
|
+
disassembled: Record<string, string>;
|
|
647
647
|
dataType: "package";
|
|
648
|
-
moduleMap: Record<string, string>;
|
|
649
648
|
} | undefined;
|
|
650
|
-
|
|
651
|
-
previousTransaction?: string | undefined;
|
|
652
|
-
content?: {
|
|
649
|
+
bcs?: {
|
|
653
650
|
type: string;
|
|
654
651
|
fields: Record<string, any>;
|
|
655
652
|
hasPublicTransfer: boolean;
|
|
656
653
|
dataType: "moveObject";
|
|
657
654
|
} | {
|
|
658
|
-
|
|
655
|
+
id: string;
|
|
659
656
|
dataType: "package";
|
|
657
|
+
moduleMap: Record<string, string>;
|
|
660
658
|
} | undefined;
|
|
659
|
+
previousTransaction?: string | undefined;
|
|
660
|
+
storageRebate?: number | undefined;
|
|
661
661
|
display?: Record<string, string> | undefined;
|
|
662
662
|
} | undefined;
|
|
663
663
|
error?: {
|
|
@@ -681,27 +681,27 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
|
|
|
681
681
|
initial_shared_version: number;
|
|
682
682
|
};
|
|
683
683
|
} | "Immutable" | undefined;
|
|
684
|
-
|
|
684
|
+
content?: {
|
|
685
685
|
type: string;
|
|
686
686
|
fields: Record<string, any>;
|
|
687
687
|
hasPublicTransfer: boolean;
|
|
688
688
|
dataType: "moveObject";
|
|
689
689
|
} | {
|
|
690
|
-
|
|
690
|
+
disassembled: Record<string, string>;
|
|
691
691
|
dataType: "package";
|
|
692
|
-
moduleMap: Record<string, string>;
|
|
693
692
|
} | undefined;
|
|
694
|
-
|
|
695
|
-
previousTransaction?: string | undefined;
|
|
696
|
-
content?: {
|
|
693
|
+
bcs?: {
|
|
697
694
|
type: string;
|
|
698
695
|
fields: Record<string, any>;
|
|
699
696
|
hasPublicTransfer: boolean;
|
|
700
697
|
dataType: "moveObject";
|
|
701
698
|
} | {
|
|
702
|
-
|
|
699
|
+
id: string;
|
|
703
700
|
dataType: "package";
|
|
701
|
+
moduleMap: Record<string, string>;
|
|
704
702
|
} | undefined;
|
|
703
|
+
previousTransaction?: string | undefined;
|
|
704
|
+
storageRebate?: number | undefined;
|
|
705
705
|
display?: Record<string, string> | undefined;
|
|
706
706
|
} | undefined, {
|
|
707
707
|
objectId: import("superstruct").Struct<string, null>;
|