@typemove/sui 1.0.0-rc.6 → 1.0.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typemove/sui",
3
- "version": "1.0.0-rc.6",
3
+ "version": "1.0.0-rc.7",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,10 +15,10 @@
15
15
  ],
16
16
  "types": "./dist/index.d.ts",
17
17
  "dependencies": {
18
- "@mysten/sui.js": "^0.36.0",
18
+ "@mysten/sui.js": "^0.37.1",
19
19
  "chalk": "^5.2.0",
20
20
  "radash": "^11.0.0",
21
- "@typemove/move": "1.0.0-rc.6"
21
+ "@typemove/move": "1.0.0-rc.7"
22
22
  },
23
23
  "url": "https://github.com/sentioxyz/typemove",
24
24
  "scripts": {
@@ -236,7 +236,8 @@ export namespace coin {
236
236
  args: [
237
237
  ObjectId | ObjectCallArg | TransactionArgument,
238
238
  coin.Coin<T0> | TransactionArgument
239
- ]
239
+ ],
240
+ typeArguments: [TypeDescriptor<T0> | string]
240
241
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
241
242
  const _args = [];
242
243
  _args.push(
@@ -248,7 +249,11 @@ export namespace coin {
248
249
  return tx.moveCall({
249
250
  target: "0x2::coin::burn",
250
251
  arguments: _args,
251
- // typeArguments:
252
+ typeArguments: [
253
+ typeof typeArguments[0] === "string"
254
+ ? typeArguments[0]
255
+ : typeArguments[0].getSignature(),
256
+ ],
252
257
  });
253
258
  }
254
259
 
@@ -257,7 +262,8 @@ export namespace coin {
257
262
  args: [
258
263
  ObjectId | ObjectCallArg | TransactionArgument,
259
264
  coin.Coin<T0> | TransactionArgument
260
- ]
265
+ ],
266
+ typeArguments: [TypeDescriptor<T0> | string]
261
267
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
262
268
  const _args = [];
263
269
  _args.push(
@@ -269,7 +275,11 @@ export namespace coin {
269
275
  return tx.moveCall({
270
276
  target: "0x2::coin::join",
271
277
  arguments: _args,
272
- // typeArguments:
278
+ typeArguments: [
279
+ typeof typeArguments[0] === "string"
280
+ ? typeArguments[0]
281
+ : typeArguments[0].getSignature(),
282
+ ],
273
283
  });
274
284
  }
275
285
 
@@ -280,7 +290,8 @@ export namespace coin {
280
290
  bigint | TransactionArgument,
281
291
  SuiAddress | TransactionArgument,
282
292
  ObjectId | ObjectCallArg | TransactionArgument
283
- ]
293
+ ],
294
+ typeArguments: [TypeDescriptor<T0> | string]
284
295
  ): TransactionArgument &
285
296
  [
286
297
  TransactionArgument,
@@ -302,7 +313,11 @@ export namespace coin {
302
313
  return tx.moveCall({
303
314
  target: "0x2::coin::mint_and_transfer",
304
315
  arguments: _args,
305
- // typeArguments:
316
+ typeArguments: [
317
+ typeof typeArguments[0] === "string"
318
+ ? typeArguments[0]
319
+ : typeArguments[0].getSignature(),
320
+ ],
306
321
  });
307
322
  }
308
323
 
@@ -312,7 +327,8 @@ export namespace coin {
312
327
  ObjectId | ObjectCallArg | TransactionArgument,
313
328
  ObjectId | ObjectCallArg | TransactionArgument,
314
329
  string | TransactionArgument
315
- ]
330
+ ],
331
+ typeArguments: [TypeDescriptor<T0> | string]
316
332
  ): TransactionArgument &
317
333
  [TransactionArgument, TransactionArgument, TransactionArgument] {
318
334
  const _args = [];
@@ -328,7 +344,11 @@ export namespace coin {
328
344
  return tx.moveCall({
329
345
  target: "0x2::coin::update_description",
330
346
  arguments: _args,
331
- // typeArguments:
347
+ typeArguments: [
348
+ typeof typeArguments[0] === "string"
349
+ ? typeArguments[0]
350
+ : typeArguments[0].getSignature(),
351
+ ],
332
352
  });
333
353
  }
334
354
  export function updateIconUrl<T0 = any>(
@@ -337,7 +357,8 @@ export namespace coin {
337
357
  ObjectId | ObjectCallArg | TransactionArgument,
338
358
  ObjectId | ObjectCallArg | TransactionArgument,
339
359
  _0x1.ascii.String | TransactionArgument
340
- ]
360
+ ],
361
+ typeArguments: [TypeDescriptor<T0> | string]
341
362
  ): TransactionArgument &
342
363
  [TransactionArgument, TransactionArgument, TransactionArgument] {
343
364
  const _args = [];
@@ -353,7 +374,11 @@ export namespace coin {
353
374
  return tx.moveCall({
354
375
  target: "0x2::coin::update_icon_url",
355
376
  arguments: _args,
356
- // typeArguments:
377
+ typeArguments: [
378
+ typeof typeArguments[0] === "string"
379
+ ? typeArguments[0]
380
+ : typeArguments[0].getSignature(),
381
+ ],
357
382
  });
358
383
  }
359
384
  export function updateName<T0 = any>(
@@ -362,7 +387,8 @@ export namespace coin {
362
387
  ObjectId | ObjectCallArg | TransactionArgument,
363
388
  ObjectId | ObjectCallArg | TransactionArgument,
364
389
  string | TransactionArgument
365
- ]
390
+ ],
391
+ typeArguments: [TypeDescriptor<T0> | string]
366
392
  ): TransactionArgument &
367
393
  [TransactionArgument, TransactionArgument, TransactionArgument] {
368
394
  const _args = [];
@@ -378,7 +404,11 @@ export namespace coin {
378
404
  return tx.moveCall({
379
405
  target: "0x2::coin::update_name",
380
406
  arguments: _args,
381
- // typeArguments:
407
+ typeArguments: [
408
+ typeof typeArguments[0] === "string"
409
+ ? typeArguments[0]
410
+ : typeArguments[0].getSignature(),
411
+ ],
382
412
  });
383
413
  }
384
414
  export function updateSymbol<T0 = any>(
@@ -387,7 +417,8 @@ export namespace coin {
387
417
  ObjectId | ObjectCallArg | TransactionArgument,
388
418
  ObjectId | ObjectCallArg | TransactionArgument,
389
419
  _0x1.ascii.String | TransactionArgument
390
- ]
420
+ ],
421
+ typeArguments: [TypeDescriptor<T0> | string]
391
422
  ): TransactionArgument &
392
423
  [TransactionArgument, TransactionArgument, TransactionArgument] {
393
424
  const _args = [];
@@ -403,7 +434,11 @@ export namespace coin {
403
434
  return tx.moveCall({
404
435
  target: "0x2::coin::update_symbol",
405
436
  arguments: _args,
406
- // typeArguments:
437
+ typeArguments: [
438
+ typeof typeArguments[0] === "string"
439
+ ? typeArguments[0]
440
+ : typeArguments[0].getSignature(),
441
+ ],
407
442
  });
408
443
  }
409
444
  }
@@ -485,7 +520,8 @@ export namespace display {
485
520
  ObjectId | ObjectCallArg | TransactionArgument,
486
521
  string | TransactionArgument,
487
522
  string | TransactionArgument
488
- ]
523
+ ],
524
+ typeArguments: [TypeDescriptor<T0> | string]
489
525
  ): TransactionArgument &
490
526
  [TransactionArgument, TransactionArgument, TransactionArgument] {
491
527
  const _args = [];
@@ -499,7 +535,11 @@ export namespace display {
499
535
  return tx.moveCall({
500
536
  target: "0x2::display::add",
501
537
  arguments: _args,
502
- // typeArguments:
538
+ typeArguments: [
539
+ typeof typeArguments[0] === "string"
540
+ ? typeArguments[0]
541
+ : typeArguments[0].getSignature(),
542
+ ],
503
543
  });
504
544
  }
505
545
  export function addMultiple<T0 = any>(
@@ -508,7 +548,8 @@ export namespace display {
508
548
  ObjectId | ObjectCallArg | TransactionArgument,
509
549
  (ObjectId | ObjectCallArg)[] | TransactionArgument,
510
550
  (ObjectId | ObjectCallArg)[] | TransactionArgument
511
- ]
551
+ ],
552
+ typeArguments: [TypeDescriptor<T0> | string]
512
553
  ): TransactionArgument &
513
554
  [TransactionArgument, TransactionArgument, TransactionArgument] {
514
555
  const _args = [];
@@ -536,7 +577,11 @@ export namespace display {
536
577
  return tx.moveCall({
537
578
  target: "0x2::display::add_multiple",
538
579
  arguments: _args,
539
- // typeArguments:
580
+ typeArguments: [
581
+ typeof typeArguments[0] === "string"
582
+ ? typeArguments[0]
583
+ : typeArguments[0].getSignature(),
584
+ ],
540
585
  });
541
586
  }
542
587
  export function createAndKeep<T0 = any>(
@@ -544,7 +589,8 @@ export namespace display {
544
589
  args: [
545
590
  ObjectId | ObjectCallArg | TransactionArgument,
546
591
  ObjectId | ObjectCallArg | TransactionArgument
547
- ]
592
+ ],
593
+ typeArguments: [TypeDescriptor<T0> | string]
548
594
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
549
595
  const _args = [];
550
596
  _args.push(
@@ -558,7 +604,11 @@ export namespace display {
558
604
  return tx.moveCall({
559
605
  target: "0x2::display::create_and_keep",
560
606
  arguments: _args,
561
- // typeArguments:
607
+ typeArguments: [
608
+ typeof typeArguments[0] === "string"
609
+ ? typeArguments[0]
610
+ : typeArguments[0].getSignature(),
611
+ ],
562
612
  });
563
613
  }
564
614
  export function edit<T0 = any>(
@@ -567,7 +617,8 @@ export namespace display {
567
617
  ObjectId | ObjectCallArg | TransactionArgument,
568
618
  string | TransactionArgument,
569
619
  string | TransactionArgument
570
- ]
620
+ ],
621
+ typeArguments: [TypeDescriptor<T0> | string]
571
622
  ): TransactionArgument &
572
623
  [TransactionArgument, TransactionArgument, TransactionArgument] {
573
624
  const _args = [];
@@ -581,7 +632,11 @@ export namespace display {
581
632
  return tx.moveCall({
582
633
  target: "0x2::display::edit",
583
634
  arguments: _args,
584
- // typeArguments:
635
+ typeArguments: [
636
+ typeof typeArguments[0] === "string"
637
+ ? typeArguments[0]
638
+ : typeArguments[0].getSignature(),
639
+ ],
585
640
  });
586
641
  }
587
642
 
@@ -590,7 +645,8 @@ export namespace display {
590
645
  args: [
591
646
  ObjectId | ObjectCallArg | TransactionArgument,
592
647
  string | TransactionArgument
593
- ]
648
+ ],
649
+ typeArguments: [TypeDescriptor<T0> | string]
594
650
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
595
651
  const _args = [];
596
652
  _args.push(
@@ -602,12 +658,17 @@ export namespace display {
602
658
  return tx.moveCall({
603
659
  target: "0x2::display::remove",
604
660
  arguments: _args,
605
- // typeArguments:
661
+ typeArguments: [
662
+ typeof typeArguments[0] === "string"
663
+ ? typeArguments[0]
664
+ : typeArguments[0].getSignature(),
665
+ ],
606
666
  });
607
667
  }
608
668
  export function updateVersion<T0 = any>(
609
669
  tx: TransactionBlock,
610
- args: [ObjectId | ObjectCallArg | TransactionArgument]
670
+ args: [ObjectId | ObjectCallArg | TransactionArgument],
671
+ typeArguments: [TypeDescriptor<T0> | string]
611
672
  ): TransactionArgument & [TransactionArgument] {
612
673
  const _args = [];
613
674
  _args.push(
@@ -618,7 +679,11 @@ export namespace display {
618
679
  return tx.moveCall({
619
680
  target: "0x2::display::update_version",
620
681
  arguments: _args,
621
- // typeArguments:
682
+ typeArguments: [
683
+ typeof typeArguments[0] === "string"
684
+ ? typeArguments[0]
685
+ : typeArguments[0].getSignature(),
686
+ ],
622
687
  });
623
688
  }
624
689
  }
@@ -1194,7 +1259,6 @@ export namespace package_ {
1194
1259
  return tx.moveCall({
1195
1260
  target: "0x2::package::make_immutable",
1196
1261
  arguments: _args,
1197
- // typeArguments:
1198
1262
  });
1199
1263
  }
1200
1264
  export function onlyAdditiveUpgrades(
@@ -1210,7 +1274,6 @@ export namespace package_ {
1210
1274
  return tx.moveCall({
1211
1275
  target: "0x2::package::only_additive_upgrades",
1212
1276
  arguments: _args,
1213
- // typeArguments:
1214
1277
  });
1215
1278
  }
1216
1279
  export function onlyDepUpgrades(
@@ -1226,7 +1289,6 @@ export namespace package_ {
1226
1289
  return tx.moveCall({
1227
1290
  target: "0x2::package::only_dep_upgrades",
1228
1291
  arguments: _args,
1229
- // typeArguments:
1230
1292
  });
1231
1293
  }
1232
1294
  }
@@ -1240,7 +1302,8 @@ export namespace pay {
1240
1302
  ObjectId | ObjectCallArg | TransactionArgument,
1241
1303
  bigint | TransactionArgument,
1242
1304
  ObjectId | ObjectCallArg | TransactionArgument
1243
- ]
1305
+ ],
1306
+ typeArguments: [TypeDescriptor<T0> | string]
1244
1307
  ): TransactionArgument &
1245
1308
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1246
1309
  const _args = [];
@@ -1256,7 +1319,11 @@ export namespace pay {
1256
1319
  return tx.moveCall({
1257
1320
  target: "0x2::pay::divide_and_keep",
1258
1321
  arguments: _args,
1259
- // typeArguments:
1322
+ typeArguments: [
1323
+ typeof typeArguments[0] === "string"
1324
+ ? typeArguments[0]
1325
+ : typeArguments[0].getSignature(),
1326
+ ],
1260
1327
  });
1261
1328
  }
1262
1329
  export function join<T0 = any>(
@@ -1264,7 +1331,8 @@ export namespace pay {
1264
1331
  args: [
1265
1332
  ObjectId | ObjectCallArg | TransactionArgument,
1266
1333
  coin.Coin<T0> | TransactionArgument
1267
- ]
1334
+ ],
1335
+ typeArguments: [TypeDescriptor<T0> | string]
1268
1336
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1269
1337
  const _args = [];
1270
1338
  _args.push(
@@ -1276,7 +1344,11 @@ export namespace pay {
1276
1344
  return tx.moveCall({
1277
1345
  target: "0x2::pay::join",
1278
1346
  arguments: _args,
1279
- // typeArguments:
1347
+ typeArguments: [
1348
+ typeof typeArguments[0] === "string"
1349
+ ? typeArguments[0]
1350
+ : typeArguments[0].getSignature(),
1351
+ ],
1280
1352
  });
1281
1353
  }
1282
1354
  export function joinVec<T0 = any>(
@@ -1284,7 +1356,8 @@ export namespace pay {
1284
1356
  args: [
1285
1357
  ObjectId | ObjectCallArg | TransactionArgument,
1286
1358
  (ObjectId | ObjectCallArg)[] | TransactionArgument
1287
- ]
1359
+ ],
1360
+ typeArguments: [TypeDescriptor<T0> | string]
1288
1361
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1289
1362
  const _args = [];
1290
1363
  _args.push(
@@ -1303,7 +1376,11 @@ export namespace pay {
1303
1376
  return tx.moveCall({
1304
1377
  target: "0x2::pay::join_vec",
1305
1378
  arguments: _args,
1306
- // typeArguments:
1379
+ typeArguments: [
1380
+ typeof typeArguments[0] === "string"
1381
+ ? typeArguments[0]
1382
+ : typeArguments[0].getSignature(),
1383
+ ],
1307
1384
  });
1308
1385
  }
1309
1386
  export function joinVecAndTransfer<T0 = any>(
@@ -1311,7 +1388,8 @@ export namespace pay {
1311
1388
  args: [
1312
1389
  (ObjectId | ObjectCallArg)[] | TransactionArgument,
1313
1390
  SuiAddress | TransactionArgument
1314
- ]
1391
+ ],
1392
+ typeArguments: [TypeDescriptor<T0> | string]
1315
1393
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1316
1394
  const _args = [];
1317
1395
  _args.push(
@@ -1328,7 +1406,11 @@ export namespace pay {
1328
1406
  return tx.moveCall({
1329
1407
  target: "0x2::pay::join_vec_and_transfer",
1330
1408
  arguments: _args,
1331
- // typeArguments:
1409
+ typeArguments: [
1410
+ typeof typeArguments[0] === "string"
1411
+ ? typeArguments[0]
1412
+ : typeArguments[0].getSignature(),
1413
+ ],
1332
1414
  });
1333
1415
  }
1334
1416
 
@@ -1338,7 +1420,8 @@ export namespace pay {
1338
1420
  ObjectId | ObjectCallArg | TransactionArgument,
1339
1421
  bigint | TransactionArgument,
1340
1422
  ObjectId | ObjectCallArg | TransactionArgument
1341
- ]
1423
+ ],
1424
+ typeArguments: [TypeDescriptor<T0> | string]
1342
1425
  ): TransactionArgument &
1343
1426
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1344
1427
  const _args = [];
@@ -1354,7 +1437,11 @@ export namespace pay {
1354
1437
  return tx.moveCall({
1355
1438
  target: "0x2::pay::split",
1356
1439
  arguments: _args,
1357
- // typeArguments:
1440
+ typeArguments: [
1441
+ typeof typeArguments[0] === "string"
1442
+ ? typeArguments[0]
1443
+ : typeArguments[0].getSignature(),
1444
+ ],
1358
1445
  });
1359
1446
  }
1360
1447
  export function splitAndTransfer<T0 = any>(
@@ -1364,7 +1451,8 @@ export namespace pay {
1364
1451
  bigint | TransactionArgument,
1365
1452
  SuiAddress | TransactionArgument,
1366
1453
  ObjectId | ObjectCallArg | TransactionArgument
1367
- ]
1454
+ ],
1455
+ typeArguments: [TypeDescriptor<T0> | string]
1368
1456
  ): TransactionArgument &
1369
1457
  [
1370
1458
  TransactionArgument,
@@ -1386,7 +1474,11 @@ export namespace pay {
1386
1474
  return tx.moveCall({
1387
1475
  target: "0x2::pay::split_and_transfer",
1388
1476
  arguments: _args,
1389
- // typeArguments:
1477
+ typeArguments: [
1478
+ typeof typeArguments[0] === "string"
1479
+ ? typeArguments[0]
1480
+ : typeArguments[0].getSignature(),
1481
+ ],
1390
1482
  });
1391
1483
  }
1392
1484
  export function splitVec<T0 = any>(
@@ -1395,7 +1487,8 @@ export namespace pay {
1395
1487
  ObjectId | ObjectCallArg | TransactionArgument,
1396
1488
  (ObjectId | ObjectCallArg)[] | TransactionArgument,
1397
1489
  ObjectId | ObjectCallArg | TransactionArgument
1398
- ]
1490
+ ],
1491
+ typeArguments: [TypeDescriptor<T0> | string]
1399
1492
  ): TransactionArgument &
1400
1493
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1401
1494
  const _args = [];
@@ -1418,7 +1511,11 @@ export namespace pay {
1418
1511
  return tx.moveCall({
1419
1512
  target: "0x2::pay::split_vec",
1420
1513
  arguments: _args,
1421
- // typeArguments:
1514
+ typeArguments: [
1515
+ typeof typeArguments[0] === "string"
1516
+ ? typeArguments[0]
1517
+ : typeArguments[0].getSignature(),
1518
+ ],
1422
1519
  });
1423
1520
  }
1424
1521
  }
@@ -1498,7 +1595,6 @@ export namespace sui {
1498
1595
  return tx.moveCall({
1499
1596
  target: "0x2::sui::transfer",
1500
1597
  arguments: _args,
1501
- // typeArguments:
1502
1598
  });
1503
1599
  }
1504
1600
  }