@typemove/aptos 1.2.2 → 1.2.3-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/dist/cjs/aptos-chain-adapter.d.ts.map +1 -1
- package/dist/cjs/aptos-chain-adapter.js +27 -15
- package/dist/cjs/aptos-chain-adapter.js.map +1 -1
- package/dist/cjs/builtin/0x1.d.ts +252 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +40 -0
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/esm/aptos-chain-adapter.d.ts.map +1 -1
- package/dist/esm/aptos-chain-adapter.js +27 -15
- package/dist/esm/aptos-chain-adapter.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +252 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +40 -0
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/package.json +2 -2
- package/src/aptos-chain-adapter.ts +29 -15
- package/src/builtin/0x1.ts +346 -0
- package/src/builtin/0x3.ts +56 -0
- package/src/tests/types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.ts +12 -0
- package/src/tests/types/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.ts +6 -0
- package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts +63 -0
package/src/builtin/0x3.ts
CHANGED
|
@@ -81,6 +81,12 @@ export namespace token {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
export interface CollectionMutabilityConfigInstance
|
|
85
|
+
extends TypedEventInstance<CollectionMutabilityConfig> {
|
|
86
|
+
data_decoded: CollectionMutabilityConfig;
|
|
87
|
+
type_arguments: [];
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
export interface Collections {
|
|
85
91
|
collection_data: _0x1.table.Table<string, token.CollectionData>;
|
|
86
92
|
token_data: _0x1.table.Table<token.TokenDataId, token.TokenData>;
|
|
@@ -242,6 +248,11 @@ export namespace token {
|
|
|
242
248
|
}
|
|
243
249
|
}
|
|
244
250
|
|
|
251
|
+
export interface RoyaltyInstance extends TypedEventInstance<Royalty> {
|
|
252
|
+
data_decoded: Royalty;
|
|
253
|
+
type_arguments: [];
|
|
254
|
+
}
|
|
255
|
+
|
|
245
256
|
export interface Token {
|
|
246
257
|
id: token.TokenId;
|
|
247
258
|
amount: bigint;
|
|
@@ -296,6 +307,11 @@ export namespace token {
|
|
|
296
307
|
}
|
|
297
308
|
}
|
|
298
309
|
|
|
310
|
+
export interface TokenDataIdInstance extends TypedEventInstance<TokenDataId> {
|
|
311
|
+
data_decoded: TokenDataId;
|
|
312
|
+
type_arguments: [];
|
|
313
|
+
}
|
|
314
|
+
|
|
299
315
|
export interface TokenId {
|
|
300
316
|
token_data_id: token.TokenDataId;
|
|
301
317
|
property_version: bigint;
|
|
@@ -311,6 +327,11 @@ export namespace token {
|
|
|
311
327
|
}
|
|
312
328
|
}
|
|
313
329
|
|
|
330
|
+
export interface TokenIdInstance extends TypedEventInstance<TokenId> {
|
|
331
|
+
data_decoded: TokenId;
|
|
332
|
+
type_arguments: [];
|
|
333
|
+
}
|
|
334
|
+
|
|
314
335
|
export interface TokenMutabilityConfig {
|
|
315
336
|
maximum: Boolean;
|
|
316
337
|
uri: Boolean;
|
|
@@ -331,6 +352,12 @@ export namespace token {
|
|
|
331
352
|
}
|
|
332
353
|
}
|
|
333
354
|
|
|
355
|
+
export interface TokenMutabilityConfigInstance
|
|
356
|
+
extends TypedEventInstance<TokenMutabilityConfig> {
|
|
357
|
+
data_decoded: TokenMutabilityConfig;
|
|
358
|
+
type_arguments: [];
|
|
359
|
+
}
|
|
360
|
+
|
|
334
361
|
export interface TokenStore {
|
|
335
362
|
tokens: _0x1.table.Table<token.TokenId, token.Token>;
|
|
336
363
|
direct_transfer: Boolean;
|
|
@@ -369,6 +396,12 @@ export namespace token {
|
|
|
369
396
|
}
|
|
370
397
|
}
|
|
371
398
|
|
|
399
|
+
export interface WithdrawCapabilityInstance
|
|
400
|
+
extends TypedEventInstance<WithdrawCapability> {
|
|
401
|
+
data_decoded: WithdrawCapability;
|
|
402
|
+
type_arguments: [];
|
|
403
|
+
}
|
|
404
|
+
|
|
372
405
|
export interface WithdrawEvent {
|
|
373
406
|
id: token.TokenId;
|
|
374
407
|
amount: bigint;
|
|
@@ -682,6 +715,11 @@ export namespace property_map {
|
|
|
682
715
|
}
|
|
683
716
|
}
|
|
684
717
|
|
|
718
|
+
export interface PropertyMapInstance extends TypedEventInstance<PropertyMap> {
|
|
719
|
+
data_decoded: PropertyMap;
|
|
720
|
+
type_arguments: [];
|
|
721
|
+
}
|
|
722
|
+
|
|
685
723
|
export interface PropertyValue {
|
|
686
724
|
value: string;
|
|
687
725
|
type: string;
|
|
@@ -697,6 +735,12 @@ export namespace property_map {
|
|
|
697
735
|
}
|
|
698
736
|
}
|
|
699
737
|
|
|
738
|
+
export interface PropertyValueInstance
|
|
739
|
+
extends TypedEventInstance<PropertyValue> {
|
|
740
|
+
data_decoded: PropertyValue;
|
|
741
|
+
type_arguments: [];
|
|
742
|
+
}
|
|
743
|
+
|
|
700
744
|
export namespace entry {}
|
|
701
745
|
export namespace view {}
|
|
702
746
|
}
|
|
@@ -721,6 +765,12 @@ export namespace token_coin_swap {
|
|
|
721
765
|
}
|
|
722
766
|
}
|
|
723
767
|
|
|
768
|
+
export interface TokenCoinSwapInstance
|
|
769
|
+
extends TypedEventInstance<TokenCoinSwap<any>> {
|
|
770
|
+
data_decoded: TokenCoinSwap<any>;
|
|
771
|
+
type_arguments: [string];
|
|
772
|
+
}
|
|
773
|
+
|
|
724
774
|
export interface TokenEscrow {
|
|
725
775
|
token: token.Token;
|
|
726
776
|
locked_until_secs: bigint;
|
|
@@ -957,6 +1007,12 @@ export namespace token_transfers {
|
|
|
957
1007
|
}
|
|
958
1008
|
}
|
|
959
1009
|
|
|
1010
|
+
export interface TokenOfferIdInstance
|
|
1011
|
+
extends TypedEventInstance<TokenOfferId> {
|
|
1012
|
+
data_decoded: TokenOfferId;
|
|
1013
|
+
type_arguments: [];
|
|
1014
|
+
}
|
|
1015
|
+
|
|
960
1016
|
export namespace entry {
|
|
961
1017
|
export async function cancelOfferScript(
|
|
962
1018
|
client: AptosClient,
|
package/src/tests/types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.ts
CHANGED
|
@@ -543,6 +543,12 @@ export namespace stable_pool {
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
|
|
546
|
+
export interface StablePoolInfoInstance
|
|
547
|
+
extends TypedEventInstance<StablePoolInfo> {
|
|
548
|
+
data_decoded: StablePoolInfo;
|
|
549
|
+
type_arguments: [];
|
|
550
|
+
}
|
|
551
|
+
|
|
546
552
|
export interface StablePoolLookup {
|
|
547
553
|
name_to_pool: _0x1.table.Table<string, stable_pool.StablePoolInfo>;
|
|
548
554
|
id_to_name: _0x1.table.Table<bigint, string>;
|
|
@@ -1695,6 +1701,12 @@ export namespace weighted_pool {
|
|
|
1695
1701
|
}
|
|
1696
1702
|
}
|
|
1697
1703
|
|
|
1704
|
+
export interface WeightedPoolInfoInstance
|
|
1705
|
+
extends TypedEventInstance<WeightedPoolInfo> {
|
|
1706
|
+
data_decoded: WeightedPoolInfo;
|
|
1707
|
+
type_arguments: [];
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1698
1710
|
export interface WeightedPoolLookup {
|
|
1699
1711
|
name_to_pool: _0x1.table.Table<string, weighted_pool.WeightedPoolInfo>;
|
|
1700
1712
|
id_to_name: _0x1.table.Table<bigint, string>;
|
package/src/tests/types/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.ts
CHANGED
|
@@ -51,6 +51,12 @@ export namespace fixed_point64 {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export interface FixedPoint64Instance
|
|
55
|
+
extends TypedEventInstance<FixedPoint64> {
|
|
56
|
+
data_decoded: FixedPoint64;
|
|
57
|
+
type_arguments: [];
|
|
58
|
+
}
|
|
59
|
+
|
|
54
60
|
export namespace entry {}
|
|
55
61
|
export namespace view {}
|
|
56
62
|
}
|
package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts
CHANGED
|
@@ -88,6 +88,11 @@ export namespace amm {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
export interface LPInstance extends TypedEventInstance<LP<any, any>> {
|
|
92
|
+
data_decoded: LP<any, any>;
|
|
93
|
+
type_arguments: [string, string];
|
|
94
|
+
}
|
|
95
|
+
|
|
91
96
|
export interface Pool<T0, T1> {
|
|
92
97
|
frozen: Boolean;
|
|
93
98
|
timestamp: bigint;
|
|
@@ -506,6 +511,11 @@ export namespace util {
|
|
|
506
511
|
}
|
|
507
512
|
}
|
|
508
513
|
|
|
514
|
+
export interface TypeInstance extends TypedEventInstance<Type> {
|
|
515
|
+
data_decoded: Type;
|
|
516
|
+
type_arguments: [];
|
|
517
|
+
}
|
|
518
|
+
|
|
509
519
|
export namespace entry {}
|
|
510
520
|
export namespace view {}
|
|
511
521
|
}
|
|
@@ -600,6 +610,11 @@ export namespace vault {
|
|
|
600
610
|
}
|
|
601
611
|
}
|
|
602
612
|
|
|
613
|
+
export interface NothingInstance extends TypedEventInstance<Nothing> {
|
|
614
|
+
data_decoded: Nothing;
|
|
615
|
+
type_arguments: [];
|
|
616
|
+
}
|
|
617
|
+
|
|
603
618
|
export interface TransferEvent {
|
|
604
619
|
coinType: string;
|
|
605
620
|
from: Address;
|
|
@@ -921,6 +936,11 @@ export namespace critbit {
|
|
|
921
936
|
}
|
|
922
937
|
}
|
|
923
938
|
|
|
939
|
+
export interface DataNodeInstance extends TypedEventInstance<DataNode<any>> {
|
|
940
|
+
data_decoded: DataNode<any>;
|
|
941
|
+
type_arguments: [string];
|
|
942
|
+
}
|
|
943
|
+
|
|
924
944
|
export interface TreeNode {
|
|
925
945
|
mask: bigint;
|
|
926
946
|
parent: bigint;
|
|
@@ -939,6 +959,11 @@ export namespace critbit {
|
|
|
939
959
|
}
|
|
940
960
|
}
|
|
941
961
|
|
|
962
|
+
export interface TreeNodeInstance extends TypedEventInstance<TreeNode> {
|
|
963
|
+
data_decoded: TreeNode;
|
|
964
|
+
type_arguments: [];
|
|
965
|
+
}
|
|
966
|
+
|
|
942
967
|
export namespace entry {}
|
|
943
968
|
export namespace view {}
|
|
944
969
|
}
|
|
@@ -960,6 +985,11 @@ export namespace uint256 {
|
|
|
960
985
|
}
|
|
961
986
|
}
|
|
962
987
|
|
|
988
|
+
export interface Uint256Instance extends TypedEventInstance<Uint256> {
|
|
989
|
+
data_decoded: Uint256;
|
|
990
|
+
type_arguments: [];
|
|
991
|
+
}
|
|
992
|
+
|
|
963
993
|
export namespace entry {}
|
|
964
994
|
export namespace view {}
|
|
965
995
|
}
|
|
@@ -1094,6 +1124,12 @@ export namespace critbit_v {
|
|
|
1094
1124
|
}
|
|
1095
1125
|
}
|
|
1096
1126
|
|
|
1127
|
+
export interface CritbitTreeInstance
|
|
1128
|
+
extends TypedEventInstance<CritbitTree<any>> {
|
|
1129
|
+
data_decoded: CritbitTree<any>;
|
|
1130
|
+
type_arguments: [string];
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1097
1133
|
export interface DataNode<T0> {
|
|
1098
1134
|
key: bigint;
|
|
1099
1135
|
parent: bigint;
|
|
@@ -1113,6 +1149,11 @@ export namespace critbit_v {
|
|
|
1113
1149
|
}
|
|
1114
1150
|
}
|
|
1115
1151
|
|
|
1152
|
+
export interface DataNodeInstance extends TypedEventInstance<DataNode<any>> {
|
|
1153
|
+
data_decoded: DataNode<any>;
|
|
1154
|
+
type_arguments: [string];
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1116
1157
|
export interface TreeNode {
|
|
1117
1158
|
mask: bigint;
|
|
1118
1159
|
parent: bigint;
|
|
@@ -1131,6 +1172,11 @@ export namespace critbit_v {
|
|
|
1131
1172
|
}
|
|
1132
1173
|
}
|
|
1133
1174
|
|
|
1175
|
+
export interface TreeNodeInstance extends TypedEventInstance<TreeNode> {
|
|
1176
|
+
data_decoded: TreeNode;
|
|
1177
|
+
type_arguments: [];
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1134
1180
|
export namespace entry {}
|
|
1135
1181
|
export namespace view {}
|
|
1136
1182
|
}
|
|
@@ -1416,6 +1462,11 @@ export namespace clob_market {
|
|
|
1416
1462
|
}
|
|
1417
1463
|
}
|
|
1418
1464
|
|
|
1465
|
+
export interface L2QuoteInstance extends TypedEventInstance<L2Quote> {
|
|
1466
|
+
data_decoded: L2Quote;
|
|
1467
|
+
type_arguments: [];
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1419
1470
|
export interface Level {
|
|
1420
1471
|
price: bigint;
|
|
1421
1472
|
total_quantity: bigint;
|
|
@@ -1527,6 +1578,12 @@ export namespace clob_market {
|
|
|
1527
1578
|
}
|
|
1528
1579
|
}
|
|
1529
1580
|
|
|
1581
|
+
export interface OpenOrderEventInfoInstance
|
|
1582
|
+
extends TypedEventInstance<OpenOrderEventInfo> {
|
|
1583
|
+
data_decoded: OpenOrderEventInfo;
|
|
1584
|
+
type_arguments: [];
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1530
1587
|
export interface OpenOrderInfo {
|
|
1531
1588
|
price: bigint;
|
|
1532
1589
|
is_bid: Boolean;
|
|
@@ -1543,6 +1600,12 @@ export namespace clob_market {
|
|
|
1543
1600
|
}
|
|
1544
1601
|
}
|
|
1545
1602
|
|
|
1603
|
+
export interface OpenOrderInfoInstance
|
|
1604
|
+
extends TypedEventInstance<OpenOrderInfo> {
|
|
1605
|
+
data_decoded: OpenOrderInfo;
|
|
1606
|
+
type_arguments: [];
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1546
1609
|
export interface OpenOrdersEvent {
|
|
1547
1610
|
open_orders: clob_market.OpenOrderEventInfo[];
|
|
1548
1611
|
}
|