@sentio/sdk 2.13.5 → 2.13.6-rc.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.
- package/lib/move/abstract-move-coder.js +3 -4
- package/lib/move/abstract-move-coder.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +130 -43
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +216 -62
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/sui-chain-adapter.js +5 -4
- package/lib/sui/sui-chain-adapter.js.map +1 -1
- package/package.json +3 -3
- package/src/move/abstract-move-coder.ts +3 -4
- package/src/sui/builtin/0x2.ts +130 -46
- package/src/sui/builtin/0x3.ts +198 -64
- package/src/sui/sui-chain-adapter.ts +5 -4
@@ -14,10 +14,11 @@ class SuiChainAdapter extends ChainAdapter {
|
|
14
14
|
return Object.values(modules);
|
15
15
|
}
|
16
16
|
getMeaningfulFunctionParams(params) {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
return params;
|
18
|
+
// if (params.length === 0) {
|
19
|
+
// return params
|
20
|
+
// }
|
21
|
+
// return params.slice(0, params.length - 1)
|
21
22
|
}
|
22
23
|
toInternalModules(modules) {
|
23
24
|
return Object.values(modules).map(toInternalModule);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sui-chain-adapter.js","sourceRoot":"","sources":["../../src/sui/sui-chain-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAkB,MAAM,kBAAkB,CAAA;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EACL,UAAU,EACV,eAAe,EAEf,QAAQ,EAER,aAAa,GACd,MAAM,gBAAgB,CAAA;AAEvB,MAAa,eAAgB,SAAQ,YAA2E;IAC9G,M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,IAAI,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;YACzB,OAAO,GAAG,CAAC,MAAa,CAAA;SACzB;QACD,+BAA+B;QAC/B,6BAA6B;QAC7B,IAAI;QACJ,qDAAqD;QACrD,IAAI,QAAQ,IAAI,GAAG,EAAE;YACnB,IAAI,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;gBAClD,OAAO,GAAG,CAAC,MAAa,CAAA;aACzB;SACF;QACD,OAAO,GAAU,CAAA;IACnB,CAAC;;SA5DU,eAAe;AA+D5B,SAAS,cAAc,CAAC,OAAmB;IACzC,QAAQ,OAAO,EAAE;QACf,KAAK,UAAU,CAAC,QAAQ;YACtB,OAAO,kCAAkC,CAAA;KAC5C;IACD,OAAO,kCAAkC,CAAA;AAC3C,CAAC;AAED,SAAS,YAAY,CAAC,OAAmB;IACvC,OAAO,IAAI,eAAe,CAAC,IAAI,UAAU,CAAC,EAAE,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;AACnF,CAAC","sourcesContent":["import { ChainAdapter, moduleQname, SPLITTER, TypeDescriptor } from '../move/index.js'\nimport { toInternalModule } from './move-types.js'\nimport { SuiNetwork } from './network.js'\nimport { InternalMoveModule, InternalMoveStruct } from '../move/internal-models.js'\nimport {\n Connection,\n JsonRpcProvider,\n SuiMoveNormalizedModule,\n SuiEvent,\n SuiMoveObject,\n SuiParsedData,\n} from '@mysten/sui.js'\n\nexport class SuiChainAdapter extends ChainAdapter<SuiNetwork, SuiMoveNormalizedModule, SuiEvent | SuiMoveObject> {\n static INSTANCE = new SuiChainAdapter()\n\n async fetchModule(account: string, module: string, network: SuiNetwork): Promise<SuiMoveNormalizedModule> {\n const client = getRpcClient(network)\n return await client.getNormalizedMoveModule({ package: account, module })\n }\n\n async fetchModules(account: string, network: SuiNetwork): Promise<SuiMoveNormalizedModule[]> {\n const client = getRpcClient(network)\n const modules = await client.getNormalizedMoveModulesByPackage({ package: account })\n return Object.values(modules)\n }\n\n getMeaningfulFunctionParams(params: TypeDescriptor[]): TypeDescriptor[] {\n return params\n // if (params.length === 0) {\n // return params\n // }\n // return params.slice(0, params.length - 1)\n }\n\n toInternalModules(modules: SuiMoveNormalizedModule[]): InternalMoveModule[] {\n return Object.values(modules).map(toInternalModule)\n }\n\n getEventStructs(module: InternalMoveModule) {\n const qname = moduleQname(module)\n const eventMap = new Map<string, InternalMoveStruct>()\n\n for (const struct of module.structs) {\n const abilities = new Set(struct.abilities)\n if (abilities.has('Drop') && abilities.has('Copy')) {\n eventMap.set(qname + SPLITTER + struct.name, struct)\n }\n }\n return eventMap\n }\n\n getType(base: SuiEvent | SuiMoveObject): string {\n return base.type\n }\n\n getData(val: SuiEvent | SuiMoveObject) {\n if (SuiEvent.is(val)) {\n return val.parsedJson as any\n }\n if (SuiParsedData.is(val)) {\n return val.fields as any\n }\n // if (SuiMoveObject.is(val)) {\n // return val.fields as any\n // }\n // This may not be perfect, just think everything has\n if ('fields' in val) {\n if ('type' in val && Object.keys(val).length === 2) {\n return val.fields as any\n }\n }\n return val as any\n }\n}\n\nfunction getRpcEndpoint(network: SuiNetwork): string {\n switch (network) {\n case SuiNetwork.TEST_NET:\n return 'https://fullnode.testnet.sui.io/'\n }\n return 'https://fullnode.mainnet.sui.io/'\n}\n\nfunction getRpcClient(network: SuiNetwork): JsonRpcProvider {\n return new JsonRpcProvider(new Connection({ fullnode: getRpcEndpoint(network) }))\n}\n"]}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/sdk",
|
3
3
|
"license": "Apache-2.0",
|
4
|
-
"version": "2.13.
|
4
|
+
"version": "2.13.6-rc.2",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"@mysten/sui.js": "npm:@sentio/sui.js@^0.32.0-patch.1",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
"nice-grpc-common": "^2.0.2",
|
31
31
|
"@coral-xyz/borsh": "^0.27.0",
|
32
32
|
"typedoc": "^0.24.1",
|
33
|
-
"@sentio/protos": "^2.13.
|
34
|
-
"@sentio/runtime": "^2.13.
|
33
|
+
"@sentio/protos": "^2.13.6-rc.2",
|
34
|
+
"@sentio/runtime": "^2.13.6-rc.2"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@certusone/wormhole-sdk": "^0.9.10",
|
@@ -233,8 +233,7 @@ export abstract class AbstractMoveCoder<Network, ModuleType, StructType> {
|
|
233
233
|
try {
|
234
234
|
entriesDecoded.push(await this.decode(arg, argType))
|
235
235
|
} catch (e) {
|
236
|
-
|
237
|
-
return entries
|
236
|
+
throw Error('Decoding error for ' + JSON.stringify(arg) + 'using type' + argType + e.toString())
|
238
237
|
}
|
239
238
|
}
|
240
239
|
return entriesDecoded
|
@@ -298,8 +297,8 @@ export abstract class AbstractMoveCoder<Network, ModuleType, StructType> {
|
|
298
297
|
try {
|
299
298
|
dataTyped = await this.decode(typeStruct, typeDescriptor)
|
300
299
|
} catch (e) {
|
301
|
-
|
302
|
-
return undefined
|
300
|
+
throw Error('Decoding error for struct' + JSON.stringify(typeStruct) + e.toString())
|
301
|
+
// return undefined
|
303
302
|
}
|
304
303
|
return {
|
305
304
|
...typeStruct,
|
package/src/sui/builtin/0x2.ts
CHANGED
@@ -393,24 +393,34 @@ export namespace coin {
|
|
393
393
|
}
|
394
394
|
|
395
395
|
export interface BurnPayload<T0 = any>
|
396
|
-
extends TypedFunctionPayload<
|
397
|
-
|
396
|
+
extends TypedFunctionPayload<
|
397
|
+
[SuiAddress | undefined, coin.Coin<T0> | undefined]
|
398
|
+
> {
|
399
|
+
arguments_decoded: [SuiAddress | undefined, coin.Coin<T0> | undefined];
|
398
400
|
type_arguments: [string];
|
399
401
|
}
|
400
402
|
|
401
403
|
export interface JoinPayload<T0 = any>
|
402
|
-
extends TypedFunctionPayload<
|
403
|
-
|
404
|
+
extends TypedFunctionPayload<
|
405
|
+
[SuiAddress | undefined, coin.Coin<T0> | undefined]
|
406
|
+
> {
|
407
|
+
arguments_decoded: [SuiAddress | undefined, coin.Coin<T0> | undefined];
|
404
408
|
type_arguments: [string];
|
405
409
|
}
|
406
410
|
|
407
411
|
export interface MintAndTransferPayload<T0 = any>
|
408
412
|
extends TypedFunctionPayload<
|
409
|
-
[
|
413
|
+
[
|
414
|
+
SuiAddress | undefined,
|
415
|
+
bigint | undefined,
|
416
|
+
SuiAddress | undefined,
|
417
|
+
SuiAddress | undefined
|
418
|
+
]
|
410
419
|
> {
|
411
420
|
arguments_decoded: [
|
412
421
|
SuiAddress | undefined,
|
413
422
|
bigint | undefined,
|
423
|
+
SuiAddress | undefined,
|
414
424
|
SuiAddress | undefined
|
415
425
|
];
|
416
426
|
type_arguments: [string];
|
@@ -418,33 +428,57 @@ export namespace coin {
|
|
418
428
|
|
419
429
|
export interface UpdateDescriptionPayload<T0 = any>
|
420
430
|
extends TypedFunctionPayload<
|
421
|
-
[SuiAddress | undefined, SuiAddress | undefined]
|
431
|
+
[SuiAddress | undefined, SuiAddress | undefined, string | undefined]
|
422
432
|
> {
|
423
|
-
arguments_decoded: [
|
433
|
+
arguments_decoded: [
|
434
|
+
SuiAddress | undefined,
|
435
|
+
SuiAddress | undefined,
|
436
|
+
string | undefined
|
437
|
+
];
|
424
438
|
type_arguments: [string];
|
425
439
|
}
|
426
440
|
|
427
441
|
export interface UpdateIconUrlPayload<T0 = any>
|
428
442
|
extends TypedFunctionPayload<
|
429
|
-
[
|
443
|
+
[
|
444
|
+
SuiAddress | undefined,
|
445
|
+
SuiAddress | undefined,
|
446
|
+
_0x1.ascii.String | undefined
|
447
|
+
]
|
430
448
|
> {
|
431
|
-
arguments_decoded: [
|
449
|
+
arguments_decoded: [
|
450
|
+
SuiAddress | undefined,
|
451
|
+
SuiAddress | undefined,
|
452
|
+
_0x1.ascii.String | undefined
|
453
|
+
];
|
432
454
|
type_arguments: [string];
|
433
455
|
}
|
434
456
|
|
435
457
|
export interface UpdateNamePayload<T0 = any>
|
436
458
|
extends TypedFunctionPayload<
|
437
|
-
[SuiAddress | undefined, SuiAddress | undefined]
|
459
|
+
[SuiAddress | undefined, SuiAddress | undefined, string | undefined]
|
438
460
|
> {
|
439
|
-
arguments_decoded: [
|
461
|
+
arguments_decoded: [
|
462
|
+
SuiAddress | undefined,
|
463
|
+
SuiAddress | undefined,
|
464
|
+
string | undefined
|
465
|
+
];
|
440
466
|
type_arguments: [string];
|
441
467
|
}
|
442
468
|
|
443
469
|
export interface UpdateSymbolPayload<T0 = any>
|
444
470
|
extends TypedFunctionPayload<
|
445
|
-
[
|
471
|
+
[
|
472
|
+
SuiAddress | undefined,
|
473
|
+
SuiAddress | undefined,
|
474
|
+
_0x1.ascii.String | undefined
|
475
|
+
]
|
446
476
|
> {
|
447
|
-
arguments_decoded: [
|
477
|
+
arguments_decoded: [
|
478
|
+
SuiAddress | undefined,
|
479
|
+
SuiAddress | undefined,
|
480
|
+
_0x1.ascii.String | undefined
|
481
|
+
];
|
448
482
|
type_arguments: [string];
|
449
483
|
}
|
450
484
|
}
|
@@ -657,40 +691,58 @@ export namespace display {
|
|
657
691
|
}
|
658
692
|
|
659
693
|
export interface AddPayload<T0 = any>
|
660
|
-
extends TypedFunctionPayload<
|
661
|
-
|
694
|
+
extends TypedFunctionPayload<
|
695
|
+
[SuiAddress | undefined, string | undefined, string | undefined]
|
696
|
+
> {
|
697
|
+
arguments_decoded: [
|
698
|
+
SuiAddress | undefined,
|
699
|
+
string | undefined,
|
700
|
+
string | undefined
|
701
|
+
];
|
662
702
|
type_arguments: [string];
|
663
703
|
}
|
664
704
|
|
665
705
|
export interface AddMultiplePayload<T0 = any>
|
666
706
|
extends TypedFunctionPayload<
|
667
|
-
[SuiAddress | undefined, string[] | undefined]
|
707
|
+
[SuiAddress | undefined, string[] | undefined, string[] | undefined]
|
668
708
|
> {
|
669
|
-
arguments_decoded: [
|
709
|
+
arguments_decoded: [
|
710
|
+
SuiAddress | undefined,
|
711
|
+
string[] | undefined,
|
712
|
+
string[] | undefined
|
713
|
+
];
|
670
714
|
type_arguments: [string];
|
671
715
|
}
|
672
716
|
|
673
717
|
export interface CreateAndKeepPayload<T0 = any>
|
674
|
-
extends TypedFunctionPayload<
|
675
|
-
|
718
|
+
extends TypedFunctionPayload<
|
719
|
+
[SuiAddress | undefined, SuiAddress | undefined]
|
720
|
+
> {
|
721
|
+
arguments_decoded: [SuiAddress | undefined, SuiAddress | undefined];
|
676
722
|
type_arguments: [string];
|
677
723
|
}
|
678
724
|
|
679
725
|
export interface EditPayload<T0 = any>
|
680
|
-
extends TypedFunctionPayload<
|
681
|
-
|
726
|
+
extends TypedFunctionPayload<
|
727
|
+
[SuiAddress | undefined, string | undefined, string | undefined]
|
728
|
+
> {
|
729
|
+
arguments_decoded: [
|
730
|
+
SuiAddress | undefined,
|
731
|
+
string | undefined,
|
732
|
+
string | undefined
|
733
|
+
];
|
682
734
|
type_arguments: [string];
|
683
735
|
}
|
684
736
|
|
685
737
|
export interface RemovePayload<T0 = any>
|
686
|
-
extends TypedFunctionPayload<[SuiAddress | undefined]> {
|
687
|
-
arguments_decoded: [SuiAddress | undefined];
|
738
|
+
extends TypedFunctionPayload<[SuiAddress | undefined, string | undefined]> {
|
739
|
+
arguments_decoded: [SuiAddress | undefined, string | undefined];
|
688
740
|
type_arguments: [string];
|
689
741
|
}
|
690
742
|
|
691
743
|
export interface UpdateVersionPayload<T0 = any>
|
692
|
-
extends TypedFunctionPayload<[]> {
|
693
|
-
arguments_decoded: [];
|
744
|
+
extends TypedFunctionPayload<[SuiAddress | undefined]> {
|
745
|
+
arguments_decoded: [SuiAddress | undefined];
|
694
746
|
type_arguments: [string];
|
695
747
|
}
|
696
748
|
}
|
@@ -1394,19 +1446,21 @@ export namespace package_ {
|
|
1394
1446
|
}
|
1395
1447
|
}
|
1396
1448
|
|
1397
|
-
export interface MakeImmutablePayload
|
1398
|
-
|
1449
|
+
export interface MakeImmutablePayload
|
1450
|
+
extends TypedFunctionPayload<[package_.UpgradeCap | undefined]> {
|
1451
|
+
arguments_decoded: [package_.UpgradeCap | undefined];
|
1399
1452
|
type_arguments: [];
|
1400
1453
|
}
|
1401
1454
|
|
1402
1455
|
export interface OnlyAdditiveUpgradesPayload
|
1403
|
-
extends TypedFunctionPayload<[]> {
|
1404
|
-
arguments_decoded: [];
|
1456
|
+
extends TypedFunctionPayload<[SuiAddress | undefined]> {
|
1457
|
+
arguments_decoded: [SuiAddress | undefined];
|
1405
1458
|
type_arguments: [];
|
1406
1459
|
}
|
1407
1460
|
|
1408
|
-
export interface OnlyDepUpgradesPayload
|
1409
|
-
|
1461
|
+
export interface OnlyDepUpgradesPayload
|
1462
|
+
extends TypedFunctionPayload<[SuiAddress | undefined]> {
|
1463
|
+
arguments_decoded: [SuiAddress | undefined];
|
1410
1464
|
type_arguments: [];
|
1411
1465
|
}
|
1412
1466
|
}
|
@@ -1539,42 +1593,66 @@ export class pay extends SuiBaseProcessor {
|
|
1539
1593
|
|
1540
1594
|
export namespace pay {
|
1541
1595
|
export interface DivideAndKeepPayload<T0 = any>
|
1542
|
-
extends TypedFunctionPayload<
|
1543
|
-
|
1596
|
+
extends TypedFunctionPayload<
|
1597
|
+
[SuiAddress | undefined, bigint | undefined, SuiAddress | undefined]
|
1598
|
+
> {
|
1599
|
+
arguments_decoded: [
|
1600
|
+
SuiAddress | undefined,
|
1601
|
+
bigint | undefined,
|
1602
|
+
SuiAddress | undefined
|
1603
|
+
];
|
1544
1604
|
type_arguments: [string];
|
1545
1605
|
}
|
1546
1606
|
|
1547
1607
|
export interface JoinPayload<T0 = any>
|
1548
|
-
extends TypedFunctionPayload<
|
1549
|
-
|
1608
|
+
extends TypedFunctionPayload<
|
1609
|
+
[SuiAddress | undefined, coin.Coin<T0> | undefined]
|
1610
|
+
> {
|
1611
|
+
arguments_decoded: [SuiAddress | undefined, coin.Coin<T0> | undefined];
|
1550
1612
|
type_arguments: [string];
|
1551
1613
|
}
|
1552
1614
|
|
1553
1615
|
export interface JoinVecPayload<T0 = any>
|
1554
|
-
extends TypedFunctionPayload<
|
1555
|
-
|
1616
|
+
extends TypedFunctionPayload<
|
1617
|
+
[SuiAddress | undefined, coin.Coin<T0>[] | undefined]
|
1618
|
+
> {
|
1619
|
+
arguments_decoded: [SuiAddress | undefined, coin.Coin<T0>[] | undefined];
|
1556
1620
|
type_arguments: [string];
|
1557
1621
|
}
|
1558
1622
|
|
1559
1623
|
export interface JoinVecAndTransferPayload<T0 = any>
|
1560
|
-
extends TypedFunctionPayload<
|
1561
|
-
|
1624
|
+
extends TypedFunctionPayload<
|
1625
|
+
[coin.Coin<T0>[] | undefined, SuiAddress | undefined]
|
1626
|
+
> {
|
1627
|
+
arguments_decoded: [coin.Coin<T0>[] | undefined, SuiAddress | undefined];
|
1562
1628
|
type_arguments: [string];
|
1563
1629
|
}
|
1564
1630
|
|
1565
1631
|
export interface SplitPayload<T0 = any>
|
1566
|
-
extends TypedFunctionPayload<
|
1567
|
-
|
1632
|
+
extends TypedFunctionPayload<
|
1633
|
+
[SuiAddress | undefined, bigint | undefined, SuiAddress | undefined]
|
1634
|
+
> {
|
1635
|
+
arguments_decoded: [
|
1636
|
+
SuiAddress | undefined,
|
1637
|
+
bigint | undefined,
|
1638
|
+
SuiAddress | undefined
|
1639
|
+
];
|
1568
1640
|
type_arguments: [string];
|
1569
1641
|
}
|
1570
1642
|
|
1571
1643
|
export interface SplitAndTransferPayload<T0 = any>
|
1572
1644
|
extends TypedFunctionPayload<
|
1573
|
-
[
|
1645
|
+
[
|
1646
|
+
SuiAddress | undefined,
|
1647
|
+
bigint | undefined,
|
1648
|
+
SuiAddress | undefined,
|
1649
|
+
SuiAddress | undefined
|
1650
|
+
]
|
1574
1651
|
> {
|
1575
1652
|
arguments_decoded: [
|
1576
1653
|
SuiAddress | undefined,
|
1577
1654
|
bigint | undefined,
|
1655
|
+
SuiAddress | undefined,
|
1578
1656
|
SuiAddress | undefined
|
1579
1657
|
];
|
1580
1658
|
type_arguments: [string];
|
@@ -1582,9 +1660,13 @@ export namespace pay {
|
|
1582
1660
|
|
1583
1661
|
export interface SplitVecPayload<T0 = any>
|
1584
1662
|
extends TypedFunctionPayload<
|
1585
|
-
[SuiAddress | undefined, bigint[] | undefined]
|
1663
|
+
[SuiAddress | undefined, bigint[] | undefined, SuiAddress | undefined]
|
1586
1664
|
> {
|
1587
|
-
arguments_decoded: [
|
1665
|
+
arguments_decoded: [
|
1666
|
+
SuiAddress | undefined,
|
1667
|
+
bigint[] | undefined,
|
1668
|
+
SuiAddress | undefined
|
1669
|
+
];
|
1588
1670
|
type_arguments: [string];
|
1589
1671
|
}
|
1590
1672
|
}
|
@@ -1674,8 +1756,10 @@ export namespace sui {
|
|
1674
1756
|
}
|
1675
1757
|
|
1676
1758
|
export interface TransferPayload
|
1677
|
-
extends TypedFunctionPayload<
|
1678
|
-
|
1759
|
+
extends TypedFunctionPayload<
|
1760
|
+
[coin.Coin<sui.SUI> | undefined, SuiAddress | undefined]
|
1761
|
+
> {
|
1762
|
+
arguments_decoded: [coin.Coin<sui.SUI> | undefined, SuiAddress | undefined];
|
1679
1763
|
type_arguments: [];
|
1680
1764
|
}
|
1681
1765
|
}
|