@sentio/sdk 2.22.3-rc.1 → 2.22.3-rc.3
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/aptos/builtin/0x1.d.ts +337 -338
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +52 -69
- package/lib/aptos/builtin/0x3.d.ts.map +1 -1
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/codegen/codegen.js +0 -1
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/move/abstract-codegen.d.ts.map +1 -1
- package/lib/move/abstract-codegen.js +2 -2
- package/lib/move/abstract-codegen.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +72 -76
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +155 -171
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/codegen/codegen.js +0 -2
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/index.d.ts +0 -1
- package/lib/sui/index.d.ts.map +1 -1
- package/lib/sui/index.js.map +1 -1
- package/lib/sui/move-types.d.ts +0 -1
- package/lib/sui/move-types.d.ts.map +1 -1
- package/lib/sui/move-types.js.map +1 -1
- package/lib/sui/sui-processor.js +3 -3
- package/lib/sui/sui-processor.js.map +1 -1
- package/package.json +4 -4
- package/src/aptos/builtin/0x1.ts +337 -341
- package/src/aptos/builtin/0x3.ts +45 -61
- package/src/aptos/codegen/codegen.ts +0 -1
- package/src/move/abstract-codegen.ts +2 -2
- package/src/sui/builtin/0x1.ts +1 -1
- package/src/sui/builtin/0x2.ts +66 -76
- package/src/sui/builtin/0x3.ts +133 -144
- package/src/sui/codegen/codegen.ts +0 -2
- package/src/sui/index.ts +0 -1
- package/src/sui/move-types.ts +0 -2
- package/src/sui/sui-processor.ts +3 -3
package/src/aptos/builtin/0x3.ts
CHANGED
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
TypedFunctionPayload,
|
21
21
|
AptosContext,
|
22
22
|
} from "@sentio/sdk/aptos";
|
23
|
-
import {
|
23
|
+
import { ModuleClient } from "@sentio/sdk/aptos";
|
24
24
|
|
25
25
|
import * as _0x1 from "./0x1.js";
|
26
26
|
|
@@ -386,7 +386,7 @@ export namespace token {
|
|
386
386
|
}
|
387
387
|
|
388
388
|
export interface CreateCollectionEvent {
|
389
|
-
creator:
|
389
|
+
creator: string;
|
390
390
|
collection_name: string;
|
391
391
|
uri: string;
|
392
392
|
description: string;
|
@@ -416,7 +416,7 @@ export namespace token {
|
|
416
416
|
description: string;
|
417
417
|
maximum: bigint;
|
418
418
|
uri: string;
|
419
|
-
royalty_payee_address:
|
419
|
+
royalty_payee_address: string;
|
420
420
|
royalty_points_denominator: bigint;
|
421
421
|
royalty_points_numerator: bigint;
|
422
422
|
name: string;
|
@@ -515,7 +515,7 @@ export namespace token {
|
|
515
515
|
export interface Royalty {
|
516
516
|
royalty_points_numerator: bigint;
|
517
517
|
royalty_points_denominator: bigint;
|
518
|
-
payee_address:
|
518
|
+
payee_address: string;
|
519
519
|
}
|
520
520
|
|
521
521
|
export namespace Royalty {
|
@@ -567,7 +567,7 @@ export namespace token {
|
|
567
567
|
}
|
568
568
|
|
569
569
|
export interface TokenDataId {
|
570
|
-
creator:
|
570
|
+
creator: string;
|
571
571
|
collection: string;
|
572
572
|
name: string;
|
573
573
|
}
|
@@ -637,7 +637,7 @@ export namespace token {
|
|
637
637
|
}
|
638
638
|
|
639
639
|
export interface WithdrawCapability {
|
640
|
-
token_owner:
|
640
|
+
token_owner: string;
|
641
641
|
token_id: token.TokenId;
|
642
642
|
amount: bigint;
|
643
643
|
expiration_sec: bigint;
|
@@ -677,14 +677,14 @@ export namespace token {
|
|
677
677
|
}
|
678
678
|
|
679
679
|
export interface BurnPayload
|
680
|
-
extends TypedFunctionPayload<[
|
681
|
-
arguments_decoded: [
|
680
|
+
extends TypedFunctionPayload<[string, string, string, bigint, bigint]> {
|
681
|
+
arguments_decoded: [string, string, string, bigint, bigint];
|
682
682
|
type_arguments: [];
|
683
683
|
}
|
684
684
|
|
685
685
|
export interface BurnByCreatorPayload
|
686
|
-
extends TypedFunctionPayload<[
|
687
|
-
arguments_decoded: [
|
686
|
+
extends TypedFunctionPayload<[string, string, string, bigint, bigint]> {
|
687
|
+
arguments_decoded: [string, string, string, bigint, bigint];
|
688
688
|
type_arguments: [];
|
689
689
|
}
|
690
690
|
|
@@ -703,7 +703,7 @@ export namespace token {
|
|
703
703
|
bigint,
|
704
704
|
bigint,
|
705
705
|
string,
|
706
|
-
|
706
|
+
string,
|
707
707
|
bigint,
|
708
708
|
bigint,
|
709
709
|
Boolean[],
|
@@ -719,7 +719,7 @@ export namespace token {
|
|
719
719
|
bigint,
|
720
720
|
bigint,
|
721
721
|
string,
|
722
|
-
|
722
|
+
string,
|
723
723
|
bigint,
|
724
724
|
bigint,
|
725
725
|
Boolean[],
|
@@ -732,9 +732,9 @@ export namespace token {
|
|
732
732
|
|
733
733
|
export interface DirectTransferScriptPayload
|
734
734
|
extends TypedFunctionPayload<
|
735
|
-
[
|
735
|
+
[string, string, string, string, bigint, bigint]
|
736
736
|
> {
|
737
|
-
arguments_decoded: [
|
737
|
+
arguments_decoded: [string, string, string, string, bigint, bigint];
|
738
738
|
type_arguments: [];
|
739
739
|
}
|
740
740
|
|
@@ -745,16 +745,16 @@ export namespace token {
|
|
745
745
|
}
|
746
746
|
|
747
747
|
export interface MintScriptPayload
|
748
|
-
extends TypedFunctionPayload<[
|
749
|
-
arguments_decoded: [
|
748
|
+
extends TypedFunctionPayload<[string, string, string, bigint]> {
|
749
|
+
arguments_decoded: [string, string, string, bigint];
|
750
750
|
type_arguments: [];
|
751
751
|
}
|
752
752
|
|
753
753
|
export interface MutateTokenPropertiesPayload
|
754
754
|
extends TypedFunctionPayload<
|
755
755
|
[
|
756
|
-
|
757
|
-
|
756
|
+
string,
|
757
|
+
string,
|
758
758
|
string,
|
759
759
|
string,
|
760
760
|
bigint,
|
@@ -765,8 +765,8 @@ export namespace token {
|
|
765
765
|
]
|
766
766
|
> {
|
767
767
|
arguments_decoded: [
|
768
|
-
|
769
|
-
|
768
|
+
string,
|
769
|
+
string,
|
770
770
|
string,
|
771
771
|
string,
|
772
772
|
bigint,
|
@@ -786,9 +786,9 @@ export namespace token {
|
|
786
786
|
|
787
787
|
export interface TransferWithOptInPayload
|
788
788
|
extends TypedFunctionPayload<
|
789
|
-
[
|
789
|
+
[string, string, string, bigint, string, bigint]
|
790
790
|
> {
|
791
|
-
arguments_decoded: [
|
791
|
+
arguments_decoded: [string, string, string, bigint, string, bigint];
|
792
792
|
type_arguments: [];
|
793
793
|
}
|
794
794
|
}
|
@@ -996,7 +996,7 @@ export namespace token_coin_swap {
|
|
996
996
|
|
997
997
|
export interface TokenSwapEvent {
|
998
998
|
token_id: token.TokenId;
|
999
|
-
token_buyer:
|
999
|
+
token_buyer: string;
|
1000
1000
|
token_amount: bigint;
|
1001
1001
|
coin_amount: bigint;
|
1002
1002
|
coin_type_info: _0x1.type_info.TypeInfo;
|
@@ -1020,17 +1020,9 @@ export namespace token_coin_swap {
|
|
1020
1020
|
|
1021
1021
|
export interface ListTokenForSwapPayload<T0 = any>
|
1022
1022
|
extends TypedFunctionPayload<
|
1023
|
-
[
|
1023
|
+
[string, string, string, bigint, bigint, bigint, bigint]
|
1024
1024
|
> {
|
1025
|
-
arguments_decoded: [
|
1026
|
-
Address,
|
1027
|
-
string,
|
1028
|
-
string,
|
1029
|
-
bigint,
|
1030
|
-
bigint,
|
1031
|
-
bigint,
|
1032
|
-
bigint
|
1033
|
-
];
|
1025
|
+
arguments_decoded: [string, string, string, bigint, bigint, bigint, bigint];
|
1034
1026
|
type_arguments: [string];
|
1035
1027
|
}
|
1036
1028
|
}
|
@@ -1173,7 +1165,7 @@ export namespace token_transfers {
|
|
1173
1165
|
}
|
1174
1166
|
|
1175
1167
|
export interface TokenCancelOfferEvent {
|
1176
|
-
to_address:
|
1168
|
+
to_address: string;
|
1177
1169
|
token_id: token.TokenId;
|
1178
1170
|
amount: bigint;
|
1179
1171
|
}
|
@@ -1197,7 +1189,7 @@ export namespace token_transfers {
|
|
1197
1189
|
}
|
1198
1190
|
|
1199
1191
|
export interface TokenClaimEvent {
|
1200
|
-
to_address:
|
1192
|
+
to_address: string;
|
1201
1193
|
token_id: token.TokenId;
|
1202
1194
|
amount: bigint;
|
1203
1195
|
}
|
@@ -1221,7 +1213,7 @@ export namespace token_transfers {
|
|
1221
1213
|
}
|
1222
1214
|
|
1223
1215
|
export interface TokenOfferEvent {
|
1224
|
-
to_address:
|
1216
|
+
to_address: string;
|
1225
1217
|
token_id: token.TokenId;
|
1226
1218
|
amount: bigint;
|
1227
1219
|
}
|
@@ -1245,7 +1237,7 @@ export namespace token_transfers {
|
|
1245
1237
|
}
|
1246
1238
|
|
1247
1239
|
export interface TokenOfferId {
|
1248
|
-
to_addr:
|
1240
|
+
to_addr: string;
|
1249
1241
|
token_id: token.TokenId;
|
1250
1242
|
}
|
1251
1243
|
|
@@ -1261,33 +1253,25 @@ export namespace token_transfers {
|
|
1261
1253
|
|
1262
1254
|
export interface CancelOfferScriptPayload
|
1263
1255
|
extends TypedFunctionPayload<
|
1264
|
-
[
|
1256
|
+
[string, string, string, string, string, bigint]
|
1265
1257
|
> {
|
1266
|
-
arguments_decoded: [
|
1258
|
+
arguments_decoded: [string, string, string, string, string, bigint];
|
1267
1259
|
type_arguments: [];
|
1268
1260
|
}
|
1269
1261
|
|
1270
1262
|
export interface ClaimScriptPayload
|
1271
1263
|
extends TypedFunctionPayload<
|
1272
|
-
[
|
1264
|
+
[string, string, string, string, string, bigint]
|
1273
1265
|
> {
|
1274
|
-
arguments_decoded: [
|
1266
|
+
arguments_decoded: [string, string, string, string, string, bigint];
|
1275
1267
|
type_arguments: [];
|
1276
1268
|
}
|
1277
1269
|
|
1278
1270
|
export interface OfferScriptPayload
|
1279
1271
|
extends TypedFunctionPayload<
|
1280
|
-
[
|
1272
|
+
[string, string, string, string, string, bigint, bigint]
|
1281
1273
|
> {
|
1282
|
-
arguments_decoded: [
|
1283
|
-
Address,
|
1284
|
-
Address,
|
1285
|
-
Address,
|
1286
|
-
string,
|
1287
|
-
string,
|
1288
|
-
bigint,
|
1289
|
-
bigint
|
1290
|
-
];
|
1274
|
+
arguments_decoded: [string, string, string, string, string, bigint, bigint];
|
1291
1275
|
type_arguments: [];
|
1292
1276
|
}
|
1293
1277
|
}
|
@@ -1464,7 +1448,7 @@ export class token_event_store extends AptosBaseProcessor {
|
|
1464
1448
|
|
1465
1449
|
export namespace token_event_store {
|
1466
1450
|
export interface CollectionDescriptionMutateEvent {
|
1467
|
-
creator_addr:
|
1451
|
+
creator_addr: string;
|
1468
1452
|
collection_name: string;
|
1469
1453
|
old_description: string;
|
1470
1454
|
new_description: string;
|
@@ -1490,7 +1474,7 @@ export namespace token_event_store {
|
|
1490
1474
|
}
|
1491
1475
|
|
1492
1476
|
export interface CollectionMaxiumMutateEvent {
|
1493
|
-
creator_addr:
|
1477
|
+
creator_addr: string;
|
1494
1478
|
collection_name: string;
|
1495
1479
|
old_maximum: bigint;
|
1496
1480
|
new_maximum: bigint;
|
@@ -1516,7 +1500,7 @@ export namespace token_event_store {
|
|
1516
1500
|
}
|
1517
1501
|
|
1518
1502
|
export interface CollectionUriMutateEvent {
|
1519
|
-
creator_addr:
|
1503
|
+
creator_addr: string;
|
1520
1504
|
collection_name: string;
|
1521
1505
|
old_uri: string;
|
1522
1506
|
new_uri: string;
|
@@ -1542,7 +1526,7 @@ export namespace token_event_store {
|
|
1542
1526
|
}
|
1543
1527
|
|
1544
1528
|
export interface DefaultPropertyMutateEvent {
|
1545
|
-
creator:
|
1529
|
+
creator: string;
|
1546
1530
|
collection: string;
|
1547
1531
|
token: string;
|
1548
1532
|
keys: string[];
|
@@ -1570,7 +1554,7 @@ export namespace token_event_store {
|
|
1570
1554
|
}
|
1571
1555
|
|
1572
1556
|
export interface DescriptionMutateEvent {
|
1573
|
-
creator:
|
1557
|
+
creator: string;
|
1574
1558
|
collection: string;
|
1575
1559
|
token: string;
|
1576
1560
|
old_description: string;
|
@@ -1596,7 +1580,7 @@ export namespace token_event_store {
|
|
1596
1580
|
}
|
1597
1581
|
|
1598
1582
|
export interface MaxiumMutateEvent {
|
1599
|
-
creator:
|
1583
|
+
creator: string;
|
1600
1584
|
collection: string;
|
1601
1585
|
token: string;
|
1602
1586
|
old_maximum: bigint;
|
@@ -1644,15 +1628,15 @@ export namespace token_event_store {
|
|
1644
1628
|
}
|
1645
1629
|
|
1646
1630
|
export interface RoyaltyMutateEvent {
|
1647
|
-
creator:
|
1631
|
+
creator: string;
|
1648
1632
|
collection: string;
|
1649
1633
|
token: string;
|
1650
1634
|
old_royalty_numerator: bigint;
|
1651
1635
|
old_royalty_denominator: bigint;
|
1652
|
-
old_royalty_payee_addr:
|
1636
|
+
old_royalty_payee_addr: string;
|
1653
1637
|
new_royalty_numerator: bigint;
|
1654
1638
|
new_royalty_denominator: bigint;
|
1655
|
-
new_royalty_payee_addr:
|
1639
|
+
new_royalty_payee_addr: string;
|
1656
1640
|
}
|
1657
1641
|
|
1658
1642
|
export namespace RoyaltyMutateEvent {
|
@@ -1699,7 +1683,7 @@ export namespace token_event_store {
|
|
1699
1683
|
}
|
1700
1684
|
|
1701
1685
|
export interface UriMutationEvent {
|
1702
|
-
creator:
|
1686
|
+
creator: string;
|
1703
1687
|
collection: string;
|
1704
1688
|
token: string;
|
1705
1689
|
old_uri: string;
|
@@ -21,7 +21,6 @@ export async function codegen(
|
|
21
21
|
}
|
22
22
|
|
23
23
|
class AptosCodegen extends AbstractCodegen<AptosNetwork, MoveModuleBytecode, Event | MoveResource> {
|
24
|
-
ADDRESS_TYPE = 'Address'
|
25
24
|
MAIN_NET = AptosNetwork.MAIN_NET
|
26
25
|
TEST_NET = AptosNetwork.TEST_NET
|
27
26
|
PREFIX = 'Aptos'
|
@@ -28,7 +28,7 @@ interface Config<NetworkType> {
|
|
28
28
|
export abstract class AbstractCodegen<NetworkType, ModuleTypes, StructType> {
|
29
29
|
TEST_NET: NetworkType
|
30
30
|
MAIN_NET: NetworkType
|
31
|
-
ADDRESS_TYPE: string
|
31
|
+
ADDRESS_TYPE: string = 'string'
|
32
32
|
PREFIX: string
|
33
33
|
STRUCT_FIELD_NAME: string = 'data'
|
34
34
|
GENERATE_CLIENT = false
|
@@ -524,7 +524,7 @@ export class AccountCodegen<NetworkType, ModuleType, StructType> {
|
|
524
524
|
MoveCoder, defaultMoveCoder, ${this.moduleGen.PREFIX}BindOptions, ${this.moduleGen.PREFIX}BaseProcessor,
|
525
525
|
TypedEventInstance, ${this.moduleGen.PREFIX}Network, TypedFunctionPayload,
|
526
526
|
${this.moduleGen.PREFIX}Context } from "@sentio/sdk/${this.moduleGen.PREFIX.toLowerCase()}"
|
527
|
-
import {
|
527
|
+
import { ModuleClient } from "@sentio/sdk/${this.moduleGen.PREFIX.toLowerCase()}"
|
528
528
|
`
|
529
529
|
|
530
530
|
const dependedAccounts: string[] = []
|
package/src/sui/builtin/0x1.ts
CHANGED