@typemove/sui 1.8.3 → 1.9.0-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/builtin/0x1.d.ts +12 -12
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +2 -2
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +66 -66
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +2 -2
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +26 -26
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +2 -2
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.js +2 -2
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +4 -3
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/cjs/move-coder.test.js.map +1 -1
- package/dist/cjs/to-internal.d.ts.map +1 -1
- package/dist/cjs/to-internal.js +16 -3
- package/dist/cjs/to-internal.js.map +1 -1
- package/dist/cjs/transaction.js +13 -14
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +12 -12
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +66 -66
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +26 -26
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +1 -0
- package/dist/esm/move-coder.js.map +1 -1
- package/dist/esm/move-coder.test.js.map +1 -1
- package/dist/esm/to-internal.d.ts.map +1 -1
- package/dist/esm/to-internal.js +15 -1
- package/dist/esm/to-internal.js.map +1 -1
- package/package.json +3 -3
- package/src/builtin/0x1.ts +12 -13
- package/src/builtin/0x2.ts +87 -86
- package/src/builtin/0x3.ts +65 -65
- package/src/move-coder.ts +1 -0
- package/src/tests/abis/testnet/enum.json +5941 -0
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +2 -2
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +20 -16
- package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +6 -8
- package/src/tests/types/testnet/0xdee9.ts +40 -34
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +166 -165
- package/src/tests/types/testnet/enum.ts +5419 -0
- package/src/tests/types/testnet/index.ts +1 -0
- package/src/to-internal.ts +18 -1
|
@@ -97,10 +97,10 @@ export namespace oracle {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export
|
|
100
|
+
export type PriceEventInstance = TypedEventInstance<PriceEvent> & {
|
|
101
101
|
data_decoded: PriceEvent;
|
|
102
102
|
type_arguments: [];
|
|
103
|
-
}
|
|
103
|
+
};
|
|
104
104
|
|
|
105
105
|
export namespace builder {
|
|
106
106
|
export function copyKey<T0 = any>(
|
|
@@ -437,10 +437,10 @@ export namespace pool {
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
export
|
|
440
|
+
export type FeeToSetInstance = TypedEventInstance<FeeToSet> & {
|
|
441
441
|
data_decoded: FeeToSet;
|
|
442
442
|
type_arguments: [];
|
|
443
|
-
}
|
|
443
|
+
};
|
|
444
444
|
|
|
445
445
|
export interface LiquidityAdded<T0, T1> {
|
|
446
446
|
user: string;
|
|
@@ -468,11 +468,12 @@ export namespace pool {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
export
|
|
472
|
-
|
|
471
|
+
export type LiquidityAddedInstance = TypedEventInstance<
|
|
472
|
+
LiquidityAdded<any, any>
|
|
473
|
+
> & {
|
|
473
474
|
data_decoded: LiquidityAdded<any, any>;
|
|
474
475
|
type_arguments: [string, string];
|
|
475
|
-
}
|
|
476
|
+
};
|
|
476
477
|
|
|
477
478
|
export interface LiquidityRemoved<T0, T1> {
|
|
478
479
|
user: string;
|
|
@@ -500,11 +501,12 @@ export namespace pool {
|
|
|
500
501
|
}
|
|
501
502
|
}
|
|
502
503
|
|
|
503
|
-
export
|
|
504
|
-
|
|
504
|
+
export type LiquidityRemovedInstance = TypedEventInstance<
|
|
505
|
+
LiquidityRemoved<any, any>
|
|
506
|
+
> & {
|
|
505
507
|
data_decoded: LiquidityRemoved<any, any>;
|
|
506
508
|
type_arguments: [string, string];
|
|
507
|
-
}
|
|
509
|
+
};
|
|
508
510
|
|
|
509
511
|
export interface Pool<T0, T1> {
|
|
510
512
|
id: _0x2.object$.UID;
|
|
@@ -551,11 +553,12 @@ export namespace pool {
|
|
|
551
553
|
}
|
|
552
554
|
}
|
|
553
555
|
|
|
554
|
-
export
|
|
555
|
-
|
|
556
|
+
export type PoolCreatedInstance = TypedEventInstance<
|
|
557
|
+
PoolCreated<any, any>
|
|
558
|
+
> & {
|
|
556
559
|
data_decoded: PoolCreated<any, any>;
|
|
557
560
|
type_arguments: [string, string];
|
|
558
|
-
}
|
|
561
|
+
};
|
|
559
562
|
|
|
560
563
|
export interface PoolName {
|
|
561
564
|
first_type: _0x1.type_name.TypeName;
|
|
@@ -573,10 +576,10 @@ export namespace pool {
|
|
|
573
576
|
}
|
|
574
577
|
}
|
|
575
578
|
|
|
576
|
-
export
|
|
579
|
+
export type PoolNameInstance = TypedEventInstance<PoolName> & {
|
|
577
580
|
data_decoded: PoolName;
|
|
578
581
|
type_arguments: [];
|
|
579
|
-
}
|
|
582
|
+
};
|
|
580
583
|
|
|
581
584
|
export interface PoolRegistry {
|
|
582
585
|
id: _0x2.object$.UID;
|
|
@@ -621,11 +624,12 @@ export namespace pool {
|
|
|
621
624
|
}
|
|
622
625
|
}
|
|
623
626
|
|
|
624
|
-
export
|
|
625
|
-
|
|
627
|
+
export type TokenSwappedInstance = TypedEventInstance<
|
|
628
|
+
TokenSwapped<any, any>
|
|
629
|
+
> & {
|
|
626
630
|
data_decoded: TokenSwapped<any, any>;
|
|
627
631
|
type_arguments: [string, string];
|
|
628
|
-
}
|
|
632
|
+
};
|
|
629
633
|
|
|
630
634
|
export interface WISPLP<T0, T1> {
|
|
631
635
|
dummy_field: boolean;
|
|
@@ -88,11 +88,10 @@ export namespace airdrop {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export
|
|
92
|
-
extends TypedEventInstance<AirdropEvent<any>> {
|
|
91
|
+
export type AirdropEventInstance = TypedEventInstance<AirdropEvent<any>> & {
|
|
93
92
|
data_decoded: AirdropEvent<any>;
|
|
94
93
|
type_arguments: [string];
|
|
95
|
-
}
|
|
94
|
+
};
|
|
96
95
|
|
|
97
96
|
export interface AirdropRegistry {
|
|
98
97
|
id: _0x2.object$.UID;
|
|
@@ -519,10 +518,10 @@ export namespace roles {
|
|
|
519
518
|
}
|
|
520
519
|
}
|
|
521
520
|
|
|
522
|
-
export
|
|
521
|
+
export type RoleInstance = TypedEventInstance<Role<any>> & {
|
|
523
522
|
data_decoded: Role<any>;
|
|
524
523
|
type_arguments: [string];
|
|
525
|
-
}
|
|
524
|
+
};
|
|
526
525
|
|
|
527
526
|
export interface Roles {
|
|
528
527
|
data: _0x2.bag.Bag;
|
|
@@ -1235,11 +1234,10 @@ export namespace treasury {
|
|
|
1235
1234
|
}
|
|
1236
1235
|
}
|
|
1237
1236
|
|
|
1238
|
-
export
|
|
1239
|
-
extends TypedEventInstance<TreasuryCapKey> {
|
|
1237
|
+
export type TreasuryCapKeyInstance = TypedEventInstance<TreasuryCapKey> & {
|
|
1240
1238
|
data_decoded: TreasuryCapKey;
|
|
1241
1239
|
type_arguments: [];
|
|
1242
|
-
}
|
|
1240
|
+
};
|
|
1243
1241
|
|
|
1244
1242
|
export interface WrappedTreasury<T0> {
|
|
1245
1243
|
id: _0x2.object$.UID;
|
|
@@ -82,11 +82,12 @@ export namespace clob {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export
|
|
86
|
-
|
|
85
|
+
export type OrderCanceledInstance = TypedEventInstance<
|
|
86
|
+
OrderCanceled<any, any>
|
|
87
|
+
> & {
|
|
87
88
|
data_decoded: OrderCanceled<any, any>;
|
|
88
89
|
type_arguments: [string, string];
|
|
89
|
-
}
|
|
90
|
+
};
|
|
90
91
|
|
|
91
92
|
export interface OrderFilled<T0, T1> {
|
|
92
93
|
pool_id: _0x2.object$.ID;
|
|
@@ -114,11 +115,12 @@ export namespace clob {
|
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
|
|
117
|
-
export
|
|
118
|
-
|
|
118
|
+
export type OrderFilledInstance = TypedEventInstance<
|
|
119
|
+
OrderFilled<any, any>
|
|
120
|
+
> & {
|
|
119
121
|
data_decoded: OrderFilled<any, any>;
|
|
120
122
|
type_arguments: [string, string];
|
|
121
|
-
}
|
|
123
|
+
};
|
|
122
124
|
|
|
123
125
|
export interface OrderFilledV2<T0, T1> {
|
|
124
126
|
pool_id: _0x2.object$.ID;
|
|
@@ -148,11 +150,12 @@ export namespace clob {
|
|
|
148
150
|
}
|
|
149
151
|
}
|
|
150
152
|
|
|
151
|
-
export
|
|
152
|
-
|
|
153
|
+
export type OrderFilledV2Instance = TypedEventInstance<
|
|
154
|
+
OrderFilledV2<any, any>
|
|
155
|
+
> & {
|
|
153
156
|
data_decoded: OrderFilledV2<any, any>;
|
|
154
157
|
type_arguments: [string, string];
|
|
155
|
-
}
|
|
158
|
+
};
|
|
156
159
|
|
|
157
160
|
export interface OrderPlaced<T0, T1> {
|
|
158
161
|
pool_id: _0x2.object$.ID;
|
|
@@ -178,11 +181,12 @@ export namespace clob {
|
|
|
178
181
|
}
|
|
179
182
|
}
|
|
180
183
|
|
|
181
|
-
export
|
|
182
|
-
|
|
184
|
+
export type OrderPlacedInstance = TypedEventInstance<
|
|
185
|
+
OrderPlaced<any, any>
|
|
186
|
+
> & {
|
|
183
187
|
data_decoded: OrderPlaced<any, any>;
|
|
184
188
|
type_arguments: [string, string];
|
|
185
|
-
}
|
|
189
|
+
};
|
|
186
190
|
|
|
187
191
|
export interface OrderPlacedV2<T0, T1> {
|
|
188
192
|
pool_id: _0x2.object$.ID;
|
|
@@ -209,11 +213,12 @@ export namespace clob {
|
|
|
209
213
|
}
|
|
210
214
|
}
|
|
211
215
|
|
|
212
|
-
export
|
|
213
|
-
|
|
216
|
+
export type OrderPlacedV2Instance = TypedEventInstance<
|
|
217
|
+
OrderPlacedV2<any, any>
|
|
218
|
+
> & {
|
|
214
219
|
data_decoded: OrderPlacedV2<any, any>;
|
|
215
220
|
type_arguments: [string, string];
|
|
216
|
-
}
|
|
221
|
+
};
|
|
217
222
|
|
|
218
223
|
export interface Pool<T0, T1> {
|
|
219
224
|
id: _0x2.object$.UID;
|
|
@@ -269,10 +274,10 @@ export namespace clob {
|
|
|
269
274
|
}
|
|
270
275
|
}
|
|
271
276
|
|
|
272
|
-
export
|
|
277
|
+
export type PoolCreatedInstance = TypedEventInstance<PoolCreated> & {
|
|
273
278
|
data_decoded: PoolCreated;
|
|
274
279
|
type_arguments: [];
|
|
275
|
-
}
|
|
280
|
+
};
|
|
276
281
|
|
|
277
282
|
export interface TickLevel {
|
|
278
283
|
price: bigint;
|
|
@@ -1211,11 +1216,10 @@ export namespace clob_v2 {
|
|
|
1211
1216
|
}
|
|
1212
1217
|
}
|
|
1213
1218
|
|
|
1214
|
-
export
|
|
1215
|
-
extends TypedEventInstance<DepositAsset<any>> {
|
|
1219
|
+
export type DepositAssetInstance = TypedEventInstance<DepositAsset<any>> & {
|
|
1216
1220
|
data_decoded: DepositAsset<any>;
|
|
1217
1221
|
type_arguments: [string];
|
|
1218
|
-
}
|
|
1222
|
+
};
|
|
1219
1223
|
|
|
1220
1224
|
export interface Order {
|
|
1221
1225
|
order_id: bigint;
|
|
@@ -1265,11 +1269,12 @@ export namespace clob_v2 {
|
|
|
1265
1269
|
}
|
|
1266
1270
|
}
|
|
1267
1271
|
|
|
1268
|
-
export
|
|
1269
|
-
|
|
1272
|
+
export type OrderCanceledInstance = TypedEventInstance<
|
|
1273
|
+
OrderCanceled<any, any>
|
|
1274
|
+
> & {
|
|
1270
1275
|
data_decoded: OrderCanceled<any, any>;
|
|
1271
1276
|
type_arguments: [string, string];
|
|
1272
|
-
}
|
|
1277
|
+
};
|
|
1273
1278
|
|
|
1274
1279
|
export interface OrderFilled<T0, T1> {
|
|
1275
1280
|
pool_id: _0x2.object$.ID;
|
|
@@ -1302,11 +1307,12 @@ export namespace clob_v2 {
|
|
|
1302
1307
|
}
|
|
1303
1308
|
}
|
|
1304
1309
|
|
|
1305
|
-
export
|
|
1306
|
-
|
|
1310
|
+
export type OrderFilledInstance = TypedEventInstance<
|
|
1311
|
+
OrderFilled<any, any>
|
|
1312
|
+
> & {
|
|
1307
1313
|
data_decoded: OrderFilled<any, any>;
|
|
1308
1314
|
type_arguments: [string, string];
|
|
1309
|
-
}
|
|
1315
|
+
};
|
|
1310
1316
|
|
|
1311
1317
|
export interface OrderPlaced<T0, T1> {
|
|
1312
1318
|
pool_id: _0x2.object$.ID;
|
|
@@ -1335,11 +1341,12 @@ export namespace clob_v2 {
|
|
|
1335
1341
|
}
|
|
1336
1342
|
}
|
|
1337
1343
|
|
|
1338
|
-
export
|
|
1339
|
-
|
|
1344
|
+
export type OrderPlacedInstance = TypedEventInstance<
|
|
1345
|
+
OrderPlaced<any, any>
|
|
1346
|
+
> & {
|
|
1340
1347
|
data_decoded: OrderPlaced<any, any>;
|
|
1341
1348
|
type_arguments: [string, string];
|
|
1342
|
-
}
|
|
1349
|
+
};
|
|
1343
1350
|
|
|
1344
1351
|
export interface Pool<T0, T1> {
|
|
1345
1352
|
id: _0x2.object$.UID;
|
|
@@ -1395,10 +1402,10 @@ export namespace clob_v2 {
|
|
|
1395
1402
|
}
|
|
1396
1403
|
}
|
|
1397
1404
|
|
|
1398
|
-
export
|
|
1405
|
+
export type PoolCreatedInstance = TypedEventInstance<PoolCreated> & {
|
|
1399
1406
|
data_decoded: PoolCreated;
|
|
1400
1407
|
type_arguments: [];
|
|
1401
|
-
}
|
|
1408
|
+
};
|
|
1402
1409
|
|
|
1403
1410
|
export interface TickLevel {
|
|
1404
1411
|
price: bigint;
|
|
@@ -1435,11 +1442,10 @@ export namespace clob_v2 {
|
|
|
1435
1442
|
}
|
|
1436
1443
|
}
|
|
1437
1444
|
|
|
1438
|
-
export
|
|
1439
|
-
extends TypedEventInstance<WithdrawAsset<any>> {
|
|
1445
|
+
export type WithdrawAssetInstance = TypedEventInstance<WithdrawAsset<any>> & {
|
|
1440
1446
|
data_decoded: WithdrawAsset<any>;
|
|
1441
1447
|
type_arguments: [string];
|
|
1442
|
-
}
|
|
1448
|
+
};
|
|
1443
1449
|
|
|
1444
1450
|
export namespace builder {
|
|
1445
1451
|
export function accountBalance<T0 = any, T1 = any>(
|