@bitgo/sdk-coin-sui 3.0.5 → 3.0.7
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 +14 -0
- package/dist/src/lib/mystenlab/builder/Inputs.d.ts +3 -3
- package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts +68 -68
- package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts +79 -79
- package/dist/src/lib/mystenlab/builder/Transactions.d.ts +91 -91
- 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 +88 -88
- package/dist/src/lib/mystenlab/types/transactions.d.ts +893 -893
- package/dist/src/lib/transferTransaction.d.ts.map +1 -1
- package/dist/src/lib/transferTransaction.js +3 -12
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +4 -14
- package/package.json +6 -6
|
@@ -7,25 +7,25 @@ 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
|
-
budget?: string | undefined;
|
|
11
|
-
price?: string | undefined;
|
|
12
10
|
payment?: {
|
|
13
|
-
digest: string;
|
|
14
11
|
objectId: string;
|
|
15
12
|
version: string | number;
|
|
13
|
+
digest: string;
|
|
16
14
|
}[] | undefined;
|
|
17
15
|
owner?: string | undefined;
|
|
16
|
+
price?: string | undefined;
|
|
17
|
+
budget?: string | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
budget: import("superstruct").Struct<string | undefined, null>;
|
|
20
20
|
price: import("superstruct").Struct<string | undefined, null>;
|
|
21
21
|
payment: import("superstruct").Struct<{
|
|
22
|
-
digest: string;
|
|
23
22
|
objectId: string;
|
|
24
23
|
version: string | number;
|
|
25
|
-
}[] | undefined, import("superstruct").Struct<{
|
|
26
24
|
digest: string;
|
|
25
|
+
}[] | undefined, import("superstruct").Struct<{
|
|
27
26
|
objectId: string;
|
|
28
27
|
version: string | number;
|
|
28
|
+
digest: string;
|
|
29
29
|
}, {
|
|
30
30
|
digest: import("superstruct").Struct<string, null>;
|
|
31
31
|
objectId: import("superstruct").Struct<string, null>;
|
|
@@ -36,31 +36,12 @@ declare const GasConfig: import("superstruct").Struct<{
|
|
|
36
36
|
declare type GasConfig = Infer<typeof GasConfig>;
|
|
37
37
|
export declare const SerializedTransactionDataBuilder: import("superstruct").Struct<{
|
|
38
38
|
version: 1;
|
|
39
|
-
gasConfig: {
|
|
40
|
-
budget?: string | undefined;
|
|
41
|
-
price?: string | undefined;
|
|
42
|
-
payment?: {
|
|
43
|
-
digest: string;
|
|
44
|
-
objectId: string;
|
|
45
|
-
version: string | number;
|
|
46
|
-
}[] | undefined;
|
|
47
|
-
owner?: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
inputs: {
|
|
50
|
-
kind: "Input";
|
|
51
|
-
index: number;
|
|
52
|
-
value?: any;
|
|
53
|
-
type?: "object" | "pure" | undefined;
|
|
54
|
-
}[];
|
|
55
39
|
transactions: ({
|
|
56
|
-
kind: "MoveCall";
|
|
57
|
-
target: `${string}::${string}::${string}`;
|
|
58
|
-
typeArguments: string[];
|
|
59
40
|
arguments: ({
|
|
60
41
|
kind: "Input";
|
|
61
42
|
index: number;
|
|
62
|
-
value?: any;
|
|
63
43
|
type?: "object" | "pure" | undefined;
|
|
44
|
+
value?: any;
|
|
64
45
|
} | {
|
|
65
46
|
kind: "GasCoin";
|
|
66
47
|
} | {
|
|
@@ -71,13 +52,15 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
71
52
|
index: number;
|
|
72
53
|
resultIndex: number;
|
|
73
54
|
})[];
|
|
55
|
+
kind: "MoveCall";
|
|
56
|
+
target: `${string}::${string}::${string}`;
|
|
57
|
+
typeArguments: string[];
|
|
74
58
|
} | {
|
|
75
|
-
kind: "TransferObjects";
|
|
76
59
|
objects: ({
|
|
77
60
|
kind: "Input";
|
|
78
61
|
index: number;
|
|
79
|
-
value?: any;
|
|
80
62
|
type?: "object" | "pure" | undefined;
|
|
63
|
+
value?: any;
|
|
81
64
|
} | {
|
|
82
65
|
kind: "GasCoin";
|
|
83
66
|
} | {
|
|
@@ -88,11 +71,12 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
88
71
|
index: number;
|
|
89
72
|
resultIndex: number;
|
|
90
73
|
})[];
|
|
74
|
+
kind: "TransferObjects";
|
|
91
75
|
address: {
|
|
92
76
|
kind: "Input";
|
|
93
77
|
index: number;
|
|
94
|
-
value?: any;
|
|
95
78
|
type?: "object" | "pure" | undefined;
|
|
79
|
+
value?: any;
|
|
96
80
|
} | {
|
|
97
81
|
kind: "GasCoin";
|
|
98
82
|
} | {
|
|
@@ -108,8 +92,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
108
92
|
coin: {
|
|
109
93
|
kind: "Input";
|
|
110
94
|
index: number;
|
|
111
|
-
value?: any;
|
|
112
95
|
type?: "object" | "pure" | undefined;
|
|
96
|
+
value?: any;
|
|
113
97
|
} | {
|
|
114
98
|
kind: "GasCoin";
|
|
115
99
|
} | {
|
|
@@ -123,8 +107,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
123
107
|
amounts: ({
|
|
124
108
|
kind: "Input";
|
|
125
109
|
index: number;
|
|
126
|
-
value?: any;
|
|
127
110
|
type?: "object" | "pure" | undefined;
|
|
111
|
+
value?: any;
|
|
128
112
|
} | {
|
|
129
113
|
kind: "GasCoin";
|
|
130
114
|
} | {
|
|
@@ -140,8 +124,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
140
124
|
destination: {
|
|
141
125
|
kind: "Input";
|
|
142
126
|
index: number;
|
|
143
|
-
value?: any;
|
|
144
127
|
type?: "object" | "pure" | undefined;
|
|
128
|
+
value?: any;
|
|
145
129
|
} | {
|
|
146
130
|
kind: "GasCoin";
|
|
147
131
|
} | {
|
|
@@ -155,8 +139,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
155
139
|
sources: ({
|
|
156
140
|
kind: "Input";
|
|
157
141
|
index: number;
|
|
158
|
-
value?: any;
|
|
159
142
|
type?: "object" | "pure" | undefined;
|
|
143
|
+
value?: any;
|
|
160
144
|
} | {
|
|
161
145
|
kind: "GasCoin";
|
|
162
146
|
} | {
|
|
@@ -168,16 +152,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
168
152
|
resultIndex: number;
|
|
169
153
|
})[];
|
|
170
154
|
} | {
|
|
171
|
-
kind: "Publish";
|
|
172
|
-
modules: number[][];
|
|
173
|
-
dependencies: string[];
|
|
174
|
-
} | {
|
|
175
|
-
kind: "MakeMoveVec";
|
|
176
155
|
objects: ({
|
|
177
156
|
kind: "Input";
|
|
178
157
|
index: number;
|
|
179
|
-
value?: any;
|
|
180
158
|
type?: "object" | "pure" | undefined;
|
|
159
|
+
value?: any;
|
|
181
160
|
} | {
|
|
182
161
|
kind: "GasCoin";
|
|
183
162
|
} | {
|
|
@@ -188,12 +167,33 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
188
167
|
index: number;
|
|
189
168
|
resultIndex: number;
|
|
190
169
|
})[];
|
|
170
|
+
kind: "MakeMoveVec";
|
|
191
171
|
type?: {
|
|
192
172
|
None: null;
|
|
193
173
|
} | {
|
|
194
174
|
Some: string;
|
|
195
175
|
} | undefined;
|
|
176
|
+
} | {
|
|
177
|
+
kind: "Publish";
|
|
178
|
+
dependencies: string[];
|
|
179
|
+
modules: number[][];
|
|
196
180
|
})[];
|
|
181
|
+
inputs: {
|
|
182
|
+
kind: "Input";
|
|
183
|
+
index: number;
|
|
184
|
+
type?: "object" | "pure" | undefined;
|
|
185
|
+
value?: any;
|
|
186
|
+
}[];
|
|
187
|
+
gasConfig: {
|
|
188
|
+
payment?: {
|
|
189
|
+
objectId: string;
|
|
190
|
+
version: string | number;
|
|
191
|
+
digest: string;
|
|
192
|
+
}[] | undefined;
|
|
193
|
+
owner?: string | undefined;
|
|
194
|
+
price?: string | undefined;
|
|
195
|
+
budget?: string | undefined;
|
|
196
|
+
};
|
|
197
197
|
sender?: string | undefined;
|
|
198
198
|
expiration?: {
|
|
199
199
|
Epoch: number;
|
|
@@ -209,25 +209,25 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
209
209
|
None: true | null;
|
|
210
210
|
} | null | undefined, null>;
|
|
211
211
|
gasConfig: import("superstruct").Struct<{
|
|
212
|
-
budget?: string | undefined;
|
|
213
|
-
price?: string | undefined;
|
|
214
212
|
payment?: {
|
|
215
|
-
digest: string;
|
|
216
213
|
objectId: string;
|
|
217
214
|
version: string | number;
|
|
215
|
+
digest: string;
|
|
218
216
|
}[] | undefined;
|
|
219
217
|
owner?: string | undefined;
|
|
218
|
+
price?: string | undefined;
|
|
219
|
+
budget?: string | undefined;
|
|
220
220
|
}, {
|
|
221
221
|
budget: import("superstruct").Struct<string | undefined, null>;
|
|
222
222
|
price: import("superstruct").Struct<string | undefined, null>;
|
|
223
223
|
payment: import("superstruct").Struct<{
|
|
224
|
-
digest: string;
|
|
225
224
|
objectId: string;
|
|
226
225
|
version: string | number;
|
|
227
|
-
}[] | undefined, import("superstruct").Struct<{
|
|
228
226
|
digest: string;
|
|
227
|
+
}[] | undefined, import("superstruct").Struct<{
|
|
229
228
|
objectId: string;
|
|
230
229
|
version: string | number;
|
|
230
|
+
digest: string;
|
|
231
231
|
}, {
|
|
232
232
|
digest: import("superstruct").Struct<string, null>;
|
|
233
233
|
objectId: import("superstruct").Struct<string, null>;
|
|
@@ -238,13 +238,13 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
238
238
|
inputs: import("superstruct").Struct<{
|
|
239
239
|
kind: "Input";
|
|
240
240
|
index: number;
|
|
241
|
-
value?: any;
|
|
242
241
|
type?: "object" | "pure" | undefined;
|
|
242
|
+
value?: any;
|
|
243
243
|
}[], import("superstruct").Struct<{
|
|
244
244
|
kind: "Input";
|
|
245
245
|
index: number;
|
|
246
|
-
value?: any;
|
|
247
246
|
type?: "object" | "pure" | undefined;
|
|
247
|
+
value?: any;
|
|
248
248
|
}, {
|
|
249
249
|
kind: import("superstruct").Struct<"Input", "Input">;
|
|
250
250
|
index: import("superstruct").Struct<number, null>;
|
|
@@ -252,14 +252,11 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
252
252
|
type: import("superstruct").Struct<"object" | "pure" | undefined, null>;
|
|
253
253
|
}>>;
|
|
254
254
|
transactions: import("superstruct").Struct<({
|
|
255
|
-
kind: "MoveCall";
|
|
256
|
-
target: `${string}::${string}::${string}`;
|
|
257
|
-
typeArguments: string[];
|
|
258
255
|
arguments: ({
|
|
259
256
|
kind: "Input";
|
|
260
257
|
index: number;
|
|
261
|
-
value?: any;
|
|
262
258
|
type?: "object" | "pure" | undefined;
|
|
259
|
+
value?: any;
|
|
263
260
|
} | {
|
|
264
261
|
kind: "GasCoin";
|
|
265
262
|
} | {
|
|
@@ -270,13 +267,15 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
270
267
|
index: number;
|
|
271
268
|
resultIndex: number;
|
|
272
269
|
})[];
|
|
270
|
+
kind: "MoveCall";
|
|
271
|
+
target: `${string}::${string}::${string}`;
|
|
272
|
+
typeArguments: string[];
|
|
273
273
|
} | {
|
|
274
|
-
kind: "TransferObjects";
|
|
275
274
|
objects: ({
|
|
276
275
|
kind: "Input";
|
|
277
276
|
index: number;
|
|
278
|
-
value?: any;
|
|
279
277
|
type?: "object" | "pure" | undefined;
|
|
278
|
+
value?: any;
|
|
280
279
|
} | {
|
|
281
280
|
kind: "GasCoin";
|
|
282
281
|
} | {
|
|
@@ -287,11 +286,12 @@ 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;
|
|
293
|
-
value?: any;
|
|
294
293
|
type?: "object" | "pure" | undefined;
|
|
294
|
+
value?: any;
|
|
295
295
|
} | {
|
|
296
296
|
kind: "GasCoin";
|
|
297
297
|
} | {
|
|
@@ -307,8 +307,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
307
307
|
coin: {
|
|
308
308
|
kind: "Input";
|
|
309
309
|
index: number;
|
|
310
|
-
value?: any;
|
|
311
310
|
type?: "object" | "pure" | undefined;
|
|
311
|
+
value?: any;
|
|
312
312
|
} | {
|
|
313
313
|
kind: "GasCoin";
|
|
314
314
|
} | {
|
|
@@ -322,8 +322,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
322
322
|
amounts: ({
|
|
323
323
|
kind: "Input";
|
|
324
324
|
index: number;
|
|
325
|
-
value?: any;
|
|
326
325
|
type?: "object" | "pure" | undefined;
|
|
326
|
+
value?: any;
|
|
327
327
|
} | {
|
|
328
328
|
kind: "GasCoin";
|
|
329
329
|
} | {
|
|
@@ -339,8 +339,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
339
339
|
destination: {
|
|
340
340
|
kind: "Input";
|
|
341
341
|
index: number;
|
|
342
|
-
value?: any;
|
|
343
342
|
type?: "object" | "pure" | undefined;
|
|
343
|
+
value?: any;
|
|
344
344
|
} | {
|
|
345
345
|
kind: "GasCoin";
|
|
346
346
|
} | {
|
|
@@ -354,8 +354,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
354
354
|
sources: ({
|
|
355
355
|
kind: "Input";
|
|
356
356
|
index: number;
|
|
357
|
-
value?: any;
|
|
358
357
|
type?: "object" | "pure" | undefined;
|
|
358
|
+
value?: any;
|
|
359
359
|
} | {
|
|
360
360
|
kind: "GasCoin";
|
|
361
361
|
} | {
|
|
@@ -367,16 +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";
|
|
375
370
|
objects: ({
|
|
376
371
|
kind: "Input";
|
|
377
372
|
index: number;
|
|
378
|
-
value?: any;
|
|
379
373
|
type?: "object" | "pure" | undefined;
|
|
374
|
+
value?: any;
|
|
380
375
|
} | {
|
|
381
376
|
kind: "GasCoin";
|
|
382
377
|
} | {
|
|
@@ -387,20 +382,22 @@ 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
|
-
kind: "MoveCall";
|
|
397
|
-
target: `${string}::${string}::${string}`;
|
|
398
|
-
typeArguments: string[];
|
|
399
396
|
arguments: ({
|
|
400
397
|
kind: "Input";
|
|
401
398
|
index: number;
|
|
402
|
-
value?: any;
|
|
403
399
|
type?: "object" | "pure" | undefined;
|
|
400
|
+
value?: any;
|
|
404
401
|
} | {
|
|
405
402
|
kind: "GasCoin";
|
|
406
403
|
} | {
|
|
@@ -411,13 +408,15 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
411
408
|
index: number;
|
|
412
409
|
resultIndex: number;
|
|
413
410
|
})[];
|
|
411
|
+
kind: "MoveCall";
|
|
412
|
+
target: `${string}::${string}::${string}`;
|
|
413
|
+
typeArguments: string[];
|
|
414
414
|
} | {
|
|
415
|
-
kind: "TransferObjects";
|
|
416
415
|
objects: ({
|
|
417
416
|
kind: "Input";
|
|
418
417
|
index: number;
|
|
419
|
-
value?: any;
|
|
420
418
|
type?: "object" | "pure" | undefined;
|
|
419
|
+
value?: any;
|
|
421
420
|
} | {
|
|
422
421
|
kind: "GasCoin";
|
|
423
422
|
} | {
|
|
@@ -428,11 +427,12 @@ 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;
|
|
434
|
-
value?: any;
|
|
435
434
|
type?: "object" | "pure" | undefined;
|
|
435
|
+
value?: any;
|
|
436
436
|
} | {
|
|
437
437
|
kind: "GasCoin";
|
|
438
438
|
} | {
|
|
@@ -448,8 +448,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
448
448
|
coin: {
|
|
449
449
|
kind: "Input";
|
|
450
450
|
index: number;
|
|
451
|
-
value?: any;
|
|
452
451
|
type?: "object" | "pure" | undefined;
|
|
452
|
+
value?: any;
|
|
453
453
|
} | {
|
|
454
454
|
kind: "GasCoin";
|
|
455
455
|
} | {
|
|
@@ -463,8 +463,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
463
463
|
amounts: ({
|
|
464
464
|
kind: "Input";
|
|
465
465
|
index: number;
|
|
466
|
-
value?: any;
|
|
467
466
|
type?: "object" | "pure" | undefined;
|
|
467
|
+
value?: any;
|
|
468
468
|
} | {
|
|
469
469
|
kind: "GasCoin";
|
|
470
470
|
} | {
|
|
@@ -480,8 +480,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
480
480
|
destination: {
|
|
481
481
|
kind: "Input";
|
|
482
482
|
index: number;
|
|
483
|
-
value?: any;
|
|
484
483
|
type?: "object" | "pure" | undefined;
|
|
484
|
+
value?: any;
|
|
485
485
|
} | {
|
|
486
486
|
kind: "GasCoin";
|
|
487
487
|
} | {
|
|
@@ -495,8 +495,8 @@ export declare const SerializedTransactionDataBuilder: import("superstruct").Str
|
|
|
495
495
|
sources: ({
|
|
496
496
|
kind: "Input";
|
|
497
497
|
index: number;
|
|
498
|
-
value?: any;
|
|
499
498
|
type?: "object" | "pure" | undefined;
|
|
499
|
+
value?: any;
|
|
500
500
|
} | {
|
|
501
501
|
kind: "GasCoin";
|
|
502
502
|
} | {
|
|
@@ -508,16 +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";
|
|
516
511
|
objects: ({
|
|
517
512
|
kind: "Input";
|
|
518
513
|
index: number;
|
|
519
|
-
value?: any;
|
|
520
514
|
type?: "object" | "pure" | undefined;
|
|
515
|
+
value?: any;
|
|
521
516
|
} | {
|
|
522
517
|
kind: "GasCoin";
|
|
523
518
|
} | {
|
|
@@ -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>;
|