@typemove/aptos 1.10.0 → 1.10.1-rc.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/dist/cjs/aptos-chain-adapter.d.ts +2 -1
- package/dist/cjs/aptos-chain-adapter.d.ts.map +1 -1
- package/dist/cjs/aptos-chain-adapter.js +16 -15
- package/dist/cjs/aptos-chain-adapter.js.map +1 -1
- package/dist/cjs/builtin/0x1.d.ts +80 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +1 -1
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +8 -0
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/builtin/0x4.d.ts +24 -0
- package/dist/cjs/builtin/0x4.d.ts.map +1 -1
- package/dist/cjs/builtin/0x4.js.map +1 -1
- package/dist/esm/aptos-chain-adapter.d.ts +2 -1
- package/dist/esm/aptos-chain-adapter.d.ts.map +1 -1
- package/dist/esm/aptos-chain-adapter.js +16 -15
- package/dist/esm/aptos-chain-adapter.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +80 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +1 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +8 -0
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/builtin/0x4.d.ts +24 -0
- package/dist/esm/builtin/0x4.d.ts.map +1 -1
- package/dist/esm/builtin/0x4.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/0x1.json +47 -3
- package/src/aptos-chain-adapter.ts +20 -17
- package/src/builtin/0x1.ts +109 -1
- package/src/builtin/0x3.ts +11 -0
- package/src/builtin/0x4.ts +30 -0
- package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts +21 -0
package/src/builtin/0x3.ts
CHANGED
|
@@ -695,6 +695,12 @@ export namespace token {
|
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
+
export type WithdrawCapabilityInstance =
|
|
699
|
+
TypedEventInstance<WithdrawCapability> & {
|
|
700
|
+
data_decoded: WithdrawCapability;
|
|
701
|
+
type_arguments: [];
|
|
702
|
+
};
|
|
703
|
+
|
|
698
704
|
export namespace entry {
|
|
699
705
|
export async function burn(
|
|
700
706
|
client: Aptos,
|
|
@@ -1064,6 +1070,11 @@ export namespace token_coin_swap {
|
|
|
1064
1070
|
}
|
|
1065
1071
|
}
|
|
1066
1072
|
|
|
1073
|
+
export type TokenCoinSwapInstance = TypedEventInstance<TokenCoinSwap<any>> & {
|
|
1074
|
+
data_decoded: TokenCoinSwap<any>;
|
|
1075
|
+
type_arguments: [string];
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1067
1078
|
export interface TokenEscrow {
|
|
1068
1079
|
token: token.Token;
|
|
1069
1080
|
locked_until_secs: bigint;
|
package/src/builtin/0x4.ts
CHANGED
|
@@ -38,6 +38,11 @@ export namespace token {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export type BurnRefInstance = TypedEventInstance<BurnRef> & {
|
|
42
|
+
data_decoded: BurnRef;
|
|
43
|
+
type_arguments: [];
|
|
44
|
+
};
|
|
45
|
+
|
|
41
46
|
export interface MutatorRef {
|
|
42
47
|
self: MoveAddressType;
|
|
43
48
|
}
|
|
@@ -52,6 +57,11 @@ export namespace token {
|
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
59
|
|
|
60
|
+
export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
|
|
61
|
+
data_decoded: MutatorRef;
|
|
62
|
+
type_arguments: [];
|
|
63
|
+
};
|
|
64
|
+
|
|
55
65
|
export interface Mutation {
|
|
56
66
|
token_address: MoveAddressType;
|
|
57
67
|
mutated_field_name: string;
|
|
@@ -363,6 +373,11 @@ export namespace royalty {
|
|
|
363
373
|
}
|
|
364
374
|
}
|
|
365
375
|
|
|
376
|
+
export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
|
|
377
|
+
data_decoded: MutatorRef;
|
|
378
|
+
type_arguments: [];
|
|
379
|
+
};
|
|
380
|
+
|
|
366
381
|
export interface Royalty {
|
|
367
382
|
numerator: bigint;
|
|
368
383
|
denominator: bigint;
|
|
@@ -415,6 +430,11 @@ export namespace collection {
|
|
|
415
430
|
}
|
|
416
431
|
}
|
|
417
432
|
|
|
433
|
+
export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
|
|
434
|
+
data_decoded: MutatorRef;
|
|
435
|
+
type_arguments: [];
|
|
436
|
+
};
|
|
437
|
+
|
|
418
438
|
export interface Burn {
|
|
419
439
|
collection: MoveAddressType;
|
|
420
440
|
index: bigint;
|
|
@@ -1427,6 +1447,11 @@ export namespace property_map {
|
|
|
1427
1447
|
}
|
|
1428
1448
|
}
|
|
1429
1449
|
|
|
1450
|
+
export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
|
|
1451
|
+
data_decoded: MutatorRef;
|
|
1452
|
+
type_arguments: [];
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1430
1455
|
export interface PropertyMap {
|
|
1431
1456
|
inner: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
|
|
1432
1457
|
}
|
|
@@ -1456,6 +1481,11 @@ export namespace property_map {
|
|
|
1456
1481
|
}
|
|
1457
1482
|
}
|
|
1458
1483
|
|
|
1484
|
+
export type PropertyValueInstance = TypedEventInstance<PropertyValue> & {
|
|
1485
|
+
data_decoded: PropertyValue;
|
|
1486
|
+
type_arguments: [];
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1459
1489
|
export namespace entry {}
|
|
1460
1490
|
export namespace view {}
|
|
1461
1491
|
}
|
package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts
CHANGED
|
@@ -88,6 +88,11 @@ export namespace amm {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
export type LPInstance = 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;
|
|
@@ -1499,6 +1504,11 @@ export namespace clob_market {
|
|
|
1499
1504
|
}
|
|
1500
1505
|
}
|
|
1501
1506
|
|
|
1507
|
+
export type L2QuoteInstance = TypedEventInstance<L2Quote> & {
|
|
1508
|
+
data_decoded: L2Quote;
|
|
1509
|
+
type_arguments: [];
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1502
1512
|
export interface Level {
|
|
1503
1513
|
price: bigint;
|
|
1504
1514
|
total_quantity: bigint;
|
|
@@ -1610,6 +1620,12 @@ export namespace clob_market {
|
|
|
1610
1620
|
}
|
|
1611
1621
|
}
|
|
1612
1622
|
|
|
1623
|
+
export type OpenOrderEventInfoInstance =
|
|
1624
|
+
TypedEventInstance<OpenOrderEventInfo> & {
|
|
1625
|
+
data_decoded: OpenOrderEventInfo;
|
|
1626
|
+
type_arguments: [];
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1613
1629
|
export interface OpenOrderInfo {
|
|
1614
1630
|
price: bigint;
|
|
1615
1631
|
is_bid: boolean;
|
|
@@ -1626,6 +1642,11 @@ export namespace clob_market {
|
|
|
1626
1642
|
}
|
|
1627
1643
|
}
|
|
1628
1644
|
|
|
1645
|
+
export type OpenOrderInfoInstance = TypedEventInstance<OpenOrderInfo> & {
|
|
1646
|
+
data_decoded: OpenOrderInfo;
|
|
1647
|
+
type_arguments: [];
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1629
1650
|
export interface OpenOrdersEvent {
|
|
1630
1651
|
open_orders: clob_market.OpenOrderEventInfo[];
|
|
1631
1652
|
}
|