@bitgo/sdk-coin-sui 5.11.0 → 5.11.2

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.
@@ -23,9 +23,9 @@ export declare function isObjectDataFull(resp: ObjectData | ObjectDataFull): res
23
23
  export declare const CoinMetadataStruct: import("superstruct").Struct<{
24
24
  symbol: string;
25
25
  id: string | null;
26
+ description: string;
26
27
  name: string;
27
28
  decimals: number;
28
- description: string;
29
29
  iconUrl: string | null;
30
30
  }, {
31
31
  decimals: import("superstruct").Struct<number, null>;
@@ -8,7 +8,6 @@ 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;
@@ -16,6 +15,7 @@ export declare const SuiEvent: import("superstruct").Struct<{
16
15
  packageId: string;
17
16
  transactionModule: string;
18
17
  sender: string;
18
+ type: string;
19
19
  parsedJson?: Record<string, any> | undefined;
20
20
  bcs?: string | undefined;
21
21
  timestampMs?: number | undefined;
@@ -79,7 +79,6 @@ export 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;
@@ -87,6 +86,7 @@ export declare const PaginatedEvents: import("superstruct").Struct<{
87
86
  packageId: string;
88
87
  transactionModule: string;
89
88
  sender: string;
89
+ type: string;
90
90
  parsedJson?: Record<string, any> | undefined;
91
91
  bcs?: string | undefined;
92
92
  timestampMs?: number | undefined;
@@ -98,7 +98,6 @@ 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;
@@ -106,11 +105,11 @@ export declare const PaginatedEvents: import("superstruct").Struct<{
106
105
  packageId: string;
107
106
  transactionModule: string;
108
107
  sender: string;
108
+ type: string;
109
109
  parsedJson?: Record<string, any> | undefined;
110
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;
@@ -118,6 +117,7 @@ export declare const PaginatedEvents: import("superstruct").Struct<{
118
117
  packageId: string;
119
118
  transactionModule: string;
120
119
  sender: string;
120
+ type: string;
121
121
  parsedJson?: Record<string, any> | undefined;
122
122
  bcs?: string | undefined;
123
123
  timestampMs?: number | undefined;
@@ -149,7 +149,6 @@ export 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;
@@ -157,6 +156,7 @@ export declare const SubscriptionEvent: import("superstruct").Struct<{
157
156
  packageId: string;
158
157
  transactionModule: string;
159
158
  sender: string;
159
+ type: string;
160
160
  parsedJson?: Record<string, any> | undefined;
161
161
  bcs?: string | undefined;
162
162
  timestampMs?: number | undefined;
@@ -164,7 +164,6 @@ export declare const SubscriptionEvent: import("superstruct").Struct<{
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;
@@ -172,6 +171,7 @@ export declare const SubscriptionEvent: import("superstruct").Struct<{
172
171
  packageId: string;
173
172
  transactionModule: string;
174
173
  sender: string;
174
+ type: string;
175
175
  parsedJson?: Record<string, any> | undefined;
176
176
  bcs?: string | undefined;
177
177
  timestampMs?: number | undefined;
@@ -4,8 +4,8 @@ import { OwnedObjectRef } from './transactions';
4
4
  export declare const ObjectType: import("superstruct").Struct<string, null>;
5
5
  export type ObjectType = Infer<typeof ObjectType>;
6
6
  export declare const SuiObjectRef: import("superstruct").Struct<{
7
- version: string | number;
8
7
  objectId: string;
8
+ version: string | number;
9
9
  digest: string;
10
10
  }, {
11
11
  /** Base64 string representing the object digest */
@@ -17,22 +17,22 @@ export declare const SuiObjectRef: import("superstruct").Struct<{
17
17
  }>;
18
18
  export type SuiObjectRef = Infer<typeof SuiObjectRef>;
19
19
  export declare const SuiGasData: import("superstruct").Struct<{
20
- owner: string;
21
20
  payment: {
22
- version: string | number;
23
21
  objectId: string;
22
+ version: string | number;
24
23
  digest: string;
25
24
  }[];
25
+ owner: string;
26
26
  price: number;
27
27
  budget: number;
28
28
  }, {
29
29
  payment: import("superstruct").Struct<{
30
- version: string | number;
31
30
  objectId: string;
31
+ version: string | number;
32
32
  digest: string;
33
33
  }[], import("superstruct").Struct<{
34
- version: string | number;
35
34
  objectId: string;
35
+ version: string | number;
36
36
  digest: string;
37
37
  }, {
38
38
  /** Base64 string representing the object digest */
@@ -50,6 +50,9 @@ export declare const SuiGasData: import("superstruct").Struct<{
50
50
  export type SuiGasData = Infer<typeof SuiGasData>;
51
51
  export declare const SuiObjectInfo: import("superstruct").Struct<{
52
52
  type: string;
53
+ objectId: string;
54
+ version: string | number;
55
+ digest: string;
53
56
  owner: {
54
57
  AddressOwner: string;
55
58
  } | {
@@ -59,9 +62,6 @@ export declare const SuiObjectInfo: import("superstruct").Struct<{
59
62
  initial_shared_version: number;
60
63
  };
61
64
  } | "Immutable";
62
- version: string | number;
63
- objectId: string;
64
- digest: string;
65
65
  previousTransaction: string;
66
66
  }, {
67
67
  type: import("superstruct").Struct<string, null>;
@@ -75,8 +75,8 @@ export declare const SuiObjectInfo: import("superstruct").Struct<{
75
75
  };
76
76
  } | "Immutable", null>;
77
77
  previousTransaction: import("superstruct").Struct<string, null>;
78
- version: import("superstruct").Struct<string | number, null>;
79
78
  objectId: import("superstruct").Struct<string, null>;
79
+ version: import("superstruct").Struct<string | number, null>;
80
80
  digest: import("superstruct").Struct<string, null>;
81
81
  }>;
82
82
  export type SuiObjectInfo = Infer<typeof SuiObjectInfo>;
@@ -150,19 +150,10 @@ export declare const MIST_PER_SUI: bigint;
150
150
  export declare const ObjectDigest: import("superstruct").Struct<string, null>;
151
151
  export type ObjectDigest = Infer<typeof ObjectDigest>;
152
152
  export declare const SuiObjectData: import("superstruct").Struct<{
153
- version: number;
154
153
  objectId: string;
154
+ version: number;
155
155
  digest: string;
156
156
  type?: string | undefined;
157
- owner?: {
158
- AddressOwner: string;
159
- } | {
160
- ObjectOwner: string;
161
- } | {
162
- Shared: {
163
- initial_shared_version: number;
164
- };
165
- } | "Immutable" | undefined;
166
157
  bcs?: {
167
158
  type: string;
168
159
  fields: Record<string, any>;
@@ -173,6 +164,15 @@ export declare const SuiObjectData: import("superstruct").Struct<{
173
164
  dataType: "package";
174
165
  moduleMap: Record<string, string>;
175
166
  } | undefined;
167
+ owner?: {
168
+ AddressOwner: string;
169
+ } | {
170
+ ObjectOwner: string;
171
+ } | {
172
+ Shared: {
173
+ initial_shared_version: number;
174
+ };
175
+ } | "Immutable" | undefined;
176
176
  storageRebate?: number | undefined;
177
177
  previousTransaction?: string | undefined;
178
178
  content?: {
@@ -275,6 +275,9 @@ export declare const ObjectStatus: import("superstruct").Struct<"Exists" | "NotE
275
275
  export type ObjectStatus = Infer<typeof ObjectStatus>;
276
276
  export declare const GetOwnedObjectsResponse: import("superstruct").Struct<{
277
277
  type: string;
278
+ objectId: string;
279
+ version: string | number;
280
+ digest: string;
278
281
  owner: {
279
282
  AddressOwner: string;
280
283
  } | {
@@ -284,12 +287,12 @@ export declare const GetOwnedObjectsResponse: import("superstruct").Struct<{
284
287
  initial_shared_version: number;
285
288
  };
286
289
  } | "Immutable";
287
- version: string | number;
288
- objectId: string;
289
- digest: string;
290
290
  previousTransaction: string;
291
291
  }[], import("superstruct").Struct<{
292
292
  type: string;
293
+ objectId: string;
294
+ version: string | number;
295
+ digest: string;
293
296
  owner: {
294
297
  AddressOwner: string;
295
298
  } | {
@@ -299,9 +302,6 @@ export declare const GetOwnedObjectsResponse: import("superstruct").Struct<{
299
302
  initial_shared_version: number;
300
303
  };
301
304
  } | "Immutable";
302
- version: string | number;
303
- objectId: string;
304
- digest: string;
305
305
  previousTransaction: string;
306
306
  }, {
307
307
  type: import("superstruct").Struct<string, null>;
@@ -315,8 +315,8 @@ export declare const GetOwnedObjectsResponse: import("superstruct").Struct<{
315
315
  };
316
316
  } | "Immutable", null>;
317
317
  previousTransaction: import("superstruct").Struct<string, null>;
318
- version: import("superstruct").Struct<string | number, null>;
319
318
  objectId: import("superstruct").Struct<string, null>;
319
+ version: import("superstruct").Struct<string | number, null>;
320
320
  digest: import("superstruct").Struct<string, null>;
321
321
  }>>;
322
322
  export type GetOwnedObjectsResponse = Infer<typeof GetOwnedObjectsResponse>;
@@ -334,19 +334,10 @@ export declare const SuiObjectResponseError: import("superstruct").Struct<{
334
334
  export type SuiObjectResponseError = Infer<typeof SuiObjectResponseError>;
335
335
  export declare const SuiObjectResponse: import("superstruct").Struct<{
336
336
  data?: {
337
- version: number;
338
337
  objectId: string;
338
+ version: number;
339
339
  digest: string;
340
340
  type?: string | undefined;
341
- owner?: {
342
- AddressOwner: string;
343
- } | {
344
- ObjectOwner: string;
345
- } | {
346
- Shared: {
347
- initial_shared_version: number;
348
- };
349
- } | "Immutable" | undefined;
350
341
  bcs?: {
351
342
  type: string;
352
343
  fields: Record<string, any>;
@@ -357,6 +348,15 @@ export declare const SuiObjectResponse: import("superstruct").Struct<{
357
348
  dataType: "package";
358
349
  moduleMap: Record<string, string>;
359
350
  } | undefined;
351
+ owner?: {
352
+ AddressOwner: string;
353
+ } | {
354
+ ObjectOwner: string;
355
+ } | {
356
+ Shared: {
357
+ initial_shared_version: number;
358
+ };
359
+ } | "Immutable" | undefined;
360
360
  storageRebate?: number | undefined;
361
361
  previousTransaction?: string | undefined;
362
362
  content?: {
@@ -378,19 +378,10 @@ export declare const SuiObjectResponse: import("superstruct").Struct<{
378
378
  } | undefined;
379
379
  }, {
380
380
  data: import("superstruct").Struct<{
381
- version: number;
382
381
  objectId: string;
382
+ version: number;
383
383
  digest: string;
384
384
  type?: string | undefined;
385
- owner?: {
386
- AddressOwner: string;
387
- } | {
388
- ObjectOwner: string;
389
- } | {
390
- Shared: {
391
- initial_shared_version: number;
392
- };
393
- } | "Immutable" | undefined;
394
385
  bcs?: {
395
386
  type: string;
396
387
  fields: Record<string, any>;
@@ -401,6 +392,15 @@ export declare const SuiObjectResponse: import("superstruct").Struct<{
401
392
  dataType: "package";
402
393
  moduleMap: Record<string, string>;
403
394
  } | undefined;
395
+ owner?: {
396
+ AddressOwner: string;
397
+ } | {
398
+ ObjectOwner: string;
399
+ } | {
400
+ Shared: {
401
+ initial_shared_version: number;
402
+ };
403
+ } | "Immutable" | undefined;
404
404
  storageRebate?: number | undefined;
405
405
  previousTransaction?: string | undefined;
406
406
  content?: {
@@ -529,19 +529,10 @@ export type CheckpointedObjectId = Infer<typeof CheckpointedObjectId>;
529
529
  export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
530
530
  data: {
531
531
  data?: {
532
- version: number;
533
532
  objectId: string;
533
+ version: number;
534
534
  digest: string;
535
535
  type?: string | undefined;
536
- owner?: {
537
- AddressOwner: string;
538
- } | {
539
- ObjectOwner: string;
540
- } | {
541
- Shared: {
542
- initial_shared_version: number;
543
- };
544
- } | "Immutable" | undefined;
545
536
  bcs?: {
546
537
  type: string;
547
538
  fields: Record<string, any>;
@@ -552,6 +543,15 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
552
543
  dataType: "package";
553
544
  moduleMap: Record<string, string>;
554
545
  } | undefined;
546
+ owner?: {
547
+ AddressOwner: string;
548
+ } | {
549
+ ObjectOwner: string;
550
+ } | {
551
+ Shared: {
552
+ initial_shared_version: number;
553
+ };
554
+ } | "Immutable" | undefined;
555
555
  storageRebate?: number | undefined;
556
556
  previousTransaction?: string | undefined;
557
557
  content?: {
@@ -580,19 +580,10 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
580
580
  }, {
581
581
  data: import("superstruct").Struct<{
582
582
  data?: {
583
- version: number;
584
583
  objectId: string;
584
+ version: number;
585
585
  digest: string;
586
586
  type?: string | undefined;
587
- owner?: {
588
- AddressOwner: string;
589
- } | {
590
- ObjectOwner: string;
591
- } | {
592
- Shared: {
593
- initial_shared_version: number;
594
- };
595
- } | "Immutable" | undefined;
596
587
  bcs?: {
597
588
  type: string;
598
589
  fields: Record<string, any>;
@@ -603,6 +594,15 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
603
594
  dataType: "package";
604
595
  moduleMap: Record<string, string>;
605
596
  } | undefined;
597
+ owner?: {
598
+ AddressOwner: string;
599
+ } | {
600
+ ObjectOwner: string;
601
+ } | {
602
+ Shared: {
603
+ initial_shared_version: number;
604
+ };
605
+ } | "Immutable" | undefined;
606
606
  storageRebate?: number | undefined;
607
607
  previousTransaction?: string | undefined;
608
608
  content?: {
@@ -624,19 +624,10 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
624
624
  } | undefined;
625
625
  }[], import("superstruct").Struct<{
626
626
  data?: {
627
- version: number;
628
627
  objectId: string;
628
+ version: number;
629
629
  digest: string;
630
630
  type?: string | undefined;
631
- owner?: {
632
- AddressOwner: string;
633
- } | {
634
- ObjectOwner: string;
635
- } | {
636
- Shared: {
637
- initial_shared_version: number;
638
- };
639
- } | "Immutable" | undefined;
640
631
  bcs?: {
641
632
  type: string;
642
633
  fields: Record<string, any>;
@@ -647,6 +638,15 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
647
638
  dataType: "package";
648
639
  moduleMap: Record<string, string>;
649
640
  } | undefined;
641
+ owner?: {
642
+ AddressOwner: string;
643
+ } | {
644
+ ObjectOwner: string;
645
+ } | {
646
+ Shared: {
647
+ initial_shared_version: number;
648
+ };
649
+ } | "Immutable" | undefined;
650
650
  storageRebate?: number | undefined;
651
651
  previousTransaction?: string | undefined;
652
652
  content?: {
@@ -668,19 +668,10 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
668
668
  } | undefined;
669
669
  }, {
670
670
  data: import("superstruct").Struct<{
671
- version: number;
672
671
  objectId: string;
672
+ version: number;
673
673
  digest: string;
674
674
  type?: string | undefined;
675
- owner?: {
676
- AddressOwner: string;
677
- } | {
678
- ObjectOwner: string;
679
- } | {
680
- Shared: {
681
- initial_shared_version: number;
682
- };
683
- } | "Immutable" | undefined;
684
675
  bcs?: {
685
676
  type: string;
686
677
  fields: Record<string, any>;
@@ -691,6 +682,15 @@ export declare const PaginatedObjectsResponse: import("superstruct").Struct<{
691
682
  dataType: "package";
692
683
  moduleMap: Record<string, string>;
693
684
  } | undefined;
685
+ owner?: {
686
+ AddressOwner: string;
687
+ } | {
688
+ ObjectOwner: string;
689
+ } | {
690
+ Shared: {
691
+ initial_shared_version: number;
692
+ };
693
+ } | "Immutable" | undefined;
694
694
  storageRebate?: number | undefined;
695
695
  previousTransaction?: string | undefined;
696
696
  content?: {