@mysten/sui 1.45.0 → 1.45.1
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 +6 -0
- package/dist/cjs/transactions/Arguments.d.ts +2 -2
- package/dist/cjs/transactions/Transaction.d.ts +88 -88
- package/dist/cjs/transactions/TransactionData.d.ts +6 -6
- package/dist/cjs/transactions/data/internal.d.ts +107 -105
- package/dist/cjs/transactions/data/internal.js +6 -4
- package/dist/cjs/transactions/data/internal.js.map +2 -2
- package/dist/cjs/transactions/data/v1.d.ts +95 -92
- package/dist/cjs/transactions/data/v2.d.ts +15 -147
- package/dist/cjs/version.d.ts +2 -2
- package/dist/cjs/version.js +2 -2
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/transactions/Arguments.d.ts +2 -2
- package/dist/esm/transactions/Transaction.d.ts +88 -88
- package/dist/esm/transactions/TransactionData.d.ts +6 -6
- package/dist/esm/transactions/data/internal.d.ts +107 -105
- package/dist/esm/transactions/data/internal.js +6 -4
- package/dist/esm/transactions/data/internal.js.map +2 -2
- package/dist/esm/transactions/data/v1.d.ts +95 -92
- package/dist/esm/transactions/data/v2.d.ts +15 -147
- package/dist/esm/version.d.ts +2 -2
- package/dist/esm/version.js +2 -2
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/transactions/data/internal.ts +21 -14
- package/src/version.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -29,8 +29,8 @@ export declare const Arguments: {
|
|
|
29
29
|
type?: "object";
|
|
30
30
|
};
|
|
31
31
|
objectRef: (args_0: {
|
|
32
|
-
version: string | number;
|
|
33
32
|
objectId: string;
|
|
33
|
+
version: string | number;
|
|
34
34
|
digest: string;
|
|
35
35
|
}) => (tx: Transaction) => {
|
|
36
36
|
$kind: "Input";
|
|
@@ -38,8 +38,8 @@ export declare const Arguments: {
|
|
|
38
38
|
type?: "object";
|
|
39
39
|
};
|
|
40
40
|
receivingRef: (args_0: {
|
|
41
|
-
version: string | number;
|
|
42
41
|
objectId: string;
|
|
42
|
+
version: string | number;
|
|
43
43
|
digest: string;
|
|
44
44
|
}) => (tx: Transaction) => {
|
|
45
45
|
$kind: "Input";
|
|
@@ -80,29 +80,47 @@ export declare class Transaction {
|
|
|
80
80
|
/** @deprecated Use `getData()` instead. */
|
|
81
81
|
get blockData(): {
|
|
82
82
|
version: 1;
|
|
83
|
+
sender?: string | undefined;
|
|
84
|
+
expiration?: {
|
|
85
|
+
Epoch: number;
|
|
86
|
+
} | {
|
|
87
|
+
None: true | null;
|
|
88
|
+
} | null | undefined;
|
|
89
|
+
gasConfig: {
|
|
90
|
+
budget?: string | number | bigint | undefined;
|
|
91
|
+
price?: string | number | bigint | undefined;
|
|
92
|
+
payment?: {
|
|
93
|
+
digest: string;
|
|
94
|
+
objectId: string;
|
|
95
|
+
version: string | number | bigint;
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
owner?: string | undefined;
|
|
98
|
+
};
|
|
83
99
|
inputs: ({
|
|
84
100
|
kind: "Input";
|
|
85
|
-
value: unknown;
|
|
86
101
|
index: number;
|
|
102
|
+
value: unknown;
|
|
87
103
|
type?: "object" | undefined;
|
|
88
104
|
} | {
|
|
89
|
-
type: "pure";
|
|
90
105
|
kind: "Input";
|
|
91
|
-
value: unknown;
|
|
92
106
|
index: number;
|
|
107
|
+
value: unknown;
|
|
108
|
+
type: "pure";
|
|
93
109
|
})[];
|
|
94
110
|
transactions: ({
|
|
111
|
+
kind: "MoveCall";
|
|
112
|
+
target: `${string}::${string}::${string}`;
|
|
95
113
|
typeArguments: string[];
|
|
96
114
|
arguments: ({
|
|
97
115
|
kind: "Input";
|
|
98
|
-
value: unknown;
|
|
99
116
|
index: number;
|
|
117
|
+
value: unknown;
|
|
100
118
|
type?: "object" | undefined;
|
|
101
119
|
} | {
|
|
102
|
-
type: "pure";
|
|
103
120
|
kind: "Input";
|
|
104
|
-
value: unknown;
|
|
105
121
|
index: number;
|
|
122
|
+
value: unknown;
|
|
123
|
+
type: "pure";
|
|
106
124
|
} | {
|
|
107
125
|
kind: "GasCoin";
|
|
108
126
|
} | {
|
|
@@ -113,19 +131,18 @@ export declare class Transaction {
|
|
|
113
131
|
index: number;
|
|
114
132
|
resultIndex: number;
|
|
115
133
|
})[];
|
|
116
|
-
kind: "MoveCall";
|
|
117
|
-
target: `${string}::${string}::${string}`;
|
|
118
134
|
} | {
|
|
119
|
-
|
|
135
|
+
kind: "TransferObjects";
|
|
136
|
+
objects: ({
|
|
120
137
|
kind: "Input";
|
|
121
|
-
value: unknown;
|
|
122
138
|
index: number;
|
|
139
|
+
value: unknown;
|
|
123
140
|
type?: "object" | undefined;
|
|
124
141
|
} | {
|
|
125
|
-
type: "pure";
|
|
126
142
|
kind: "Input";
|
|
127
|
-
value: unknown;
|
|
128
143
|
index: number;
|
|
144
|
+
value: unknown;
|
|
145
|
+
type: "pure";
|
|
129
146
|
} | {
|
|
130
147
|
kind: "GasCoin";
|
|
131
148
|
} | {
|
|
@@ -135,17 +152,17 @@ export declare class Transaction {
|
|
|
135
152
|
kind: "NestedResult";
|
|
136
153
|
index: number;
|
|
137
154
|
resultIndex: number;
|
|
138
|
-
};
|
|
139
|
-
|
|
155
|
+
})[];
|
|
156
|
+
address: {
|
|
140
157
|
kind: "Input";
|
|
141
|
-
value: unknown;
|
|
142
158
|
index: number;
|
|
159
|
+
value: unknown;
|
|
143
160
|
type?: "object" | undefined;
|
|
144
161
|
} | {
|
|
145
|
-
type: "pure";
|
|
146
162
|
kind: "Input";
|
|
147
|
-
value: unknown;
|
|
148
163
|
index: number;
|
|
164
|
+
value: unknown;
|
|
165
|
+
type: "pure";
|
|
149
166
|
} | {
|
|
150
167
|
kind: "GasCoin";
|
|
151
168
|
} | {
|
|
@@ -155,19 +172,19 @@ export declare class Transaction {
|
|
|
155
172
|
kind: "NestedResult";
|
|
156
173
|
index: number;
|
|
157
174
|
resultIndex: number;
|
|
158
|
-
}
|
|
159
|
-
kind: "TransferObjects";
|
|
175
|
+
};
|
|
160
176
|
} | {
|
|
177
|
+
kind: "SplitCoins";
|
|
161
178
|
coin: {
|
|
162
179
|
kind: "Input";
|
|
163
|
-
value: unknown;
|
|
164
180
|
index: number;
|
|
181
|
+
value: unknown;
|
|
165
182
|
type?: "object" | undefined;
|
|
166
183
|
} | {
|
|
167
|
-
type: "pure";
|
|
168
184
|
kind: "Input";
|
|
169
|
-
value: unknown;
|
|
170
185
|
index: number;
|
|
186
|
+
value: unknown;
|
|
187
|
+
type: "pure";
|
|
171
188
|
} | {
|
|
172
189
|
kind: "GasCoin";
|
|
173
190
|
} | {
|
|
@@ -180,14 +197,14 @@ export declare class Transaction {
|
|
|
180
197
|
};
|
|
181
198
|
amounts: ({
|
|
182
199
|
kind: "Input";
|
|
183
|
-
value: unknown;
|
|
184
200
|
index: number;
|
|
201
|
+
value: unknown;
|
|
185
202
|
type?: "object" | undefined;
|
|
186
203
|
} | {
|
|
187
|
-
type: "pure";
|
|
188
204
|
kind: "Input";
|
|
189
|
-
value: unknown;
|
|
190
205
|
index: number;
|
|
206
|
+
value: unknown;
|
|
207
|
+
type: "pure";
|
|
191
208
|
} | {
|
|
192
209
|
kind: "GasCoin";
|
|
193
210
|
} | {
|
|
@@ -198,18 +215,18 @@ export declare class Transaction {
|
|
|
198
215
|
index: number;
|
|
199
216
|
resultIndex: number;
|
|
200
217
|
})[];
|
|
201
|
-
kind: "SplitCoins";
|
|
202
218
|
} | {
|
|
219
|
+
kind: "MergeCoins";
|
|
203
220
|
destination: {
|
|
204
221
|
kind: "Input";
|
|
205
|
-
value: unknown;
|
|
206
222
|
index: number;
|
|
223
|
+
value: unknown;
|
|
207
224
|
type?: "object" | undefined;
|
|
208
225
|
} | {
|
|
209
|
-
type: "pure";
|
|
210
226
|
kind: "Input";
|
|
211
|
-
value: unknown;
|
|
212
227
|
index: number;
|
|
228
|
+
value: unknown;
|
|
229
|
+
type: "pure";
|
|
213
230
|
} | {
|
|
214
231
|
kind: "GasCoin";
|
|
215
232
|
} | {
|
|
@@ -222,14 +239,14 @@ export declare class Transaction {
|
|
|
222
239
|
};
|
|
223
240
|
sources: ({
|
|
224
241
|
kind: "Input";
|
|
225
|
-
value: unknown;
|
|
226
242
|
index: number;
|
|
243
|
+
value: unknown;
|
|
227
244
|
type?: "object" | undefined;
|
|
228
245
|
} | {
|
|
229
|
-
type: "pure";
|
|
230
246
|
kind: "Input";
|
|
231
|
-
value: unknown;
|
|
232
247
|
index: number;
|
|
248
|
+
value: unknown;
|
|
249
|
+
type: "pure";
|
|
233
250
|
} | {
|
|
234
251
|
kind: "GasCoin";
|
|
235
252
|
} | {
|
|
@@ -240,18 +257,23 @@ export declare class Transaction {
|
|
|
240
257
|
index: number;
|
|
241
258
|
resultIndex: number;
|
|
242
259
|
})[];
|
|
243
|
-
kind: "MergeCoins";
|
|
244
260
|
} | {
|
|
261
|
+
kind: "MakeMoveVec";
|
|
262
|
+
type: {
|
|
263
|
+
Some: import("../bcs/types.js").TypeTag;
|
|
264
|
+
} | {
|
|
265
|
+
None: true | null;
|
|
266
|
+
};
|
|
245
267
|
objects: ({
|
|
246
268
|
kind: "Input";
|
|
247
|
-
value: unknown;
|
|
248
269
|
index: number;
|
|
270
|
+
value: unknown;
|
|
249
271
|
type?: "object" | undefined;
|
|
250
272
|
} | {
|
|
251
|
-
type: "pure";
|
|
252
273
|
kind: "Input";
|
|
253
|
-
value: unknown;
|
|
254
274
|
index: number;
|
|
275
|
+
value: unknown;
|
|
276
|
+
type: "pure";
|
|
255
277
|
} | {
|
|
256
278
|
kind: "GasCoin";
|
|
257
279
|
} | {
|
|
@@ -262,29 +284,25 @@ export declare class Transaction {
|
|
|
262
284
|
index: number;
|
|
263
285
|
resultIndex: number;
|
|
264
286
|
})[];
|
|
265
|
-
type: {
|
|
266
|
-
Some: import("../bcs/types.js").TypeTag;
|
|
267
|
-
} | {
|
|
268
|
-
None: true | null;
|
|
269
|
-
};
|
|
270
|
-
kind: "MakeMoveVec";
|
|
271
287
|
} | {
|
|
288
|
+
kind: "Publish";
|
|
272
289
|
modules: number[][];
|
|
273
290
|
dependencies: string[];
|
|
274
|
-
kind: "Publish";
|
|
275
291
|
} | {
|
|
292
|
+
kind: "Upgrade";
|
|
276
293
|
modules: number[][];
|
|
277
294
|
dependencies: string[];
|
|
295
|
+
packageId: string;
|
|
278
296
|
ticket: {
|
|
279
297
|
kind: "Input";
|
|
280
|
-
value: unknown;
|
|
281
298
|
index: number;
|
|
299
|
+
value: unknown;
|
|
282
300
|
type?: "object" | undefined;
|
|
283
301
|
} | {
|
|
284
|
-
type: "pure";
|
|
285
302
|
kind: "Input";
|
|
286
|
-
value: unknown;
|
|
287
303
|
index: number;
|
|
304
|
+
value: unknown;
|
|
305
|
+
type: "pure";
|
|
288
306
|
} | {
|
|
289
307
|
kind: "GasCoin";
|
|
290
308
|
} | {
|
|
@@ -295,34 +313,31 @@ export declare class Transaction {
|
|
|
295
313
|
index: number;
|
|
296
314
|
resultIndex: number;
|
|
297
315
|
};
|
|
298
|
-
kind: "Upgrade";
|
|
299
|
-
packageId: string;
|
|
300
316
|
})[];
|
|
301
|
-
gasConfig: {
|
|
302
|
-
owner?: string | undefined;
|
|
303
|
-
payment?: {
|
|
304
|
-
version: string | number | bigint;
|
|
305
|
-
objectId: string;
|
|
306
|
-
digest: string;
|
|
307
|
-
}[] | undefined;
|
|
308
|
-
price?: string | number | bigint | undefined;
|
|
309
|
-
budget?: string | number | bigint | undefined;
|
|
310
|
-
};
|
|
311
|
-
sender?: string | undefined;
|
|
312
|
-
expiration?: {
|
|
313
|
-
Epoch: number;
|
|
314
|
-
} | {
|
|
315
|
-
None: true | null;
|
|
316
|
-
} | null | undefined;
|
|
317
317
|
};
|
|
318
318
|
/** Get a snapshot of the transaction data, in JSON form: */
|
|
319
319
|
getData(): {
|
|
320
320
|
version: 2;
|
|
321
|
+
sender?: string | null | undefined;
|
|
322
|
+
expiration?: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
323
|
+
None: true;
|
|
324
|
+
Epoch: string | number;
|
|
325
|
+
}, "None" | "Epoch"> | null | undefined;
|
|
326
|
+
gasData: {
|
|
327
|
+
budget: string | number | null;
|
|
328
|
+
price: string | number | null;
|
|
329
|
+
owner: string | null;
|
|
330
|
+
payment: {
|
|
331
|
+
objectId: string;
|
|
332
|
+
version: string | number;
|
|
333
|
+
digest: string;
|
|
334
|
+
}[] | null;
|
|
335
|
+
};
|
|
321
336
|
inputs: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
322
337
|
Object: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
323
338
|
ImmOrOwnedObject: {
|
|
324
|
-
version: string | number;
|
|
325
339
|
objectId: string;
|
|
340
|
+
version: string | number;
|
|
326
341
|
digest: string;
|
|
327
342
|
};
|
|
328
343
|
SharedObject: {
|
|
@@ -331,8 +346,8 @@ export declare class Transaction {
|
|
|
331
346
|
mutable: boolean;
|
|
332
347
|
};
|
|
333
348
|
Receiving: {
|
|
334
|
-
version: string | number;
|
|
335
349
|
objectId: string;
|
|
350
|
+
version: string | number;
|
|
336
351
|
digest: string;
|
|
337
352
|
};
|
|
338
353
|
}, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
|
|
@@ -352,9 +367,9 @@ export declare class Transaction {
|
|
|
352
367
|
}, "Pure" | "Object" | "UnresolvedPure" | "UnresolvedObject">[];
|
|
353
368
|
commands: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
354
369
|
MoveCall: {
|
|
355
|
-
function: string;
|
|
356
|
-
module: string;
|
|
357
370
|
package: string;
|
|
371
|
+
module: string;
|
|
372
|
+
function: string;
|
|
358
373
|
typeArguments: string[];
|
|
359
374
|
arguments: ({
|
|
360
375
|
$kind: "GasCoin";
|
|
@@ -380,7 +395,7 @@ export declare class Transaction {
|
|
|
380
395
|
}[] | null | undefined;
|
|
381
396
|
};
|
|
382
397
|
TransferObjects: {
|
|
383
|
-
|
|
398
|
+
objects: ({
|
|
384
399
|
$kind: "GasCoin";
|
|
385
400
|
GasCoin: true;
|
|
386
401
|
} | {
|
|
@@ -397,8 +412,8 @@ export declare class Transaction {
|
|
|
397
412
|
} | {
|
|
398
413
|
$kind: "NestedResult";
|
|
399
414
|
NestedResult: [number, number];
|
|
400
|
-
};
|
|
401
|
-
|
|
415
|
+
})[];
|
|
416
|
+
address: {
|
|
402
417
|
$kind: "GasCoin";
|
|
403
418
|
GasCoin: true;
|
|
404
419
|
} | {
|
|
@@ -415,7 +430,7 @@ export declare class Transaction {
|
|
|
415
430
|
} | {
|
|
416
431
|
$kind: "NestedResult";
|
|
417
432
|
NestedResult: [number, number];
|
|
418
|
-
}
|
|
433
|
+
};
|
|
419
434
|
};
|
|
420
435
|
SplitCoins: {
|
|
421
436
|
coin: {
|
|
@@ -519,9 +534,9 @@ export declare class Transaction {
|
|
|
519
534
|
})[];
|
|
520
535
|
};
|
|
521
536
|
Upgrade: {
|
|
522
|
-
package: string;
|
|
523
537
|
modules: string[];
|
|
524
538
|
dependencies: string[];
|
|
539
|
+
package: string;
|
|
525
540
|
ticket: {
|
|
526
541
|
$kind: "GasCoin";
|
|
527
542
|
GasCoin: true;
|
|
@@ -585,21 +600,6 @@ export declare class Transaction {
|
|
|
585
600
|
};
|
|
586
601
|
};
|
|
587
602
|
}, "MoveCall" | "TransferObjects" | "SplitCoins" | "MergeCoins" | "Publish" | "MakeMoveVec" | "Upgrade" | "$Intent">[];
|
|
588
|
-
gasData: {
|
|
589
|
-
owner: string | null;
|
|
590
|
-
payment: {
|
|
591
|
-
version: string | number;
|
|
592
|
-
objectId: string;
|
|
593
|
-
digest: string;
|
|
594
|
-
}[] | null;
|
|
595
|
-
price: string | number | null;
|
|
596
|
-
budget: string | number | null;
|
|
597
|
-
};
|
|
598
|
-
sender?: string | null | undefined;
|
|
599
|
-
expiration?: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
600
|
-
None: true;
|
|
601
|
-
Epoch: string | number;
|
|
602
|
-
}, "None" | "Epoch"> | null | undefined;
|
|
603
603
|
};
|
|
604
604
|
get pure(): ReturnType<typeof createPure<Argument>>;
|
|
605
605
|
constructor();
|
|
@@ -15,24 +15,24 @@ export declare class TransactionDataBuilder implements TransactionData {
|
|
|
15
15
|
*/
|
|
16
16
|
static getDigestFromBytes(bytes: Uint8Array): string;
|
|
17
17
|
get gasConfig(): {
|
|
18
|
+
budget: string | number | null;
|
|
19
|
+
price: string | number | null;
|
|
18
20
|
owner: string | null;
|
|
19
21
|
payment: {
|
|
20
|
-
version: string | number;
|
|
21
22
|
objectId: string;
|
|
23
|
+
version: string | number;
|
|
22
24
|
digest: string;
|
|
23
25
|
}[] | null;
|
|
24
|
-
price: string | number | null;
|
|
25
|
-
budget: string | number | null;
|
|
26
26
|
};
|
|
27
27
|
set gasConfig(value: {
|
|
28
|
+
budget: string | number | null;
|
|
29
|
+
price: string | number | null;
|
|
28
30
|
owner: string | null;
|
|
29
31
|
payment: {
|
|
30
|
-
version: string | number;
|
|
31
32
|
objectId: string;
|
|
33
|
+
version: string | number;
|
|
32
34
|
digest: string;
|
|
33
35
|
}[] | null;
|
|
34
|
-
price: string | number | null;
|
|
35
|
-
budget: string | number | null;
|
|
36
36
|
});
|
|
37
37
|
version: 2;
|
|
38
38
|
sender: string | null;
|