@typemove/aptos 1.8.3 → 1.9.0

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.
Files changed (46) hide show
  1. package/dist/cjs/builtin/0x1.d.ts +308 -308
  2. package/dist/cjs/builtin/0x1.d.ts.map +1 -1
  3. package/dist/cjs/builtin/0x1.js +2 -2
  4. package/dist/cjs/builtin/0x1.js.map +1 -1
  5. package/dist/cjs/builtin/0x3.d.ts +102 -102
  6. package/dist/cjs/builtin/0x3.d.ts.map +1 -1
  7. package/dist/cjs/builtin/0x3.js +2 -2
  8. package/dist/cjs/builtin/0x3.js.map +1 -1
  9. package/dist/cjs/builtin/0x4.d.ts +22 -22
  10. package/dist/cjs/builtin/0x4.d.ts.map +1 -1
  11. package/dist/cjs/builtin/0x4.js +2 -2
  12. package/dist/cjs/builtin/0x4.js.map +1 -1
  13. package/dist/cjs/codegen/codegen.js +2 -2
  14. package/dist/cjs/codegen/codegen.js.map +1 -1
  15. package/dist/cjs/coder-helpers.js +1 -2
  16. package/dist/cjs/coder-helpers.js.map +1 -1
  17. package/dist/cjs/move-coder.d.ts.map +1 -1
  18. package/dist/cjs/move-coder.js +3 -2
  19. package/dist/cjs/move-coder.js.map +1 -1
  20. package/dist/cjs/to-internal.d.ts.map +1 -1
  21. package/dist/cjs/to-internal.js +6 -6
  22. package/dist/cjs/to-internal.js.map +1 -1
  23. package/dist/esm/builtin/0x1.d.ts +308 -308
  24. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  25. package/dist/esm/builtin/0x1.js.map +1 -1
  26. package/dist/esm/builtin/0x3.d.ts +102 -102
  27. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  28. package/dist/esm/builtin/0x3.js.map +1 -1
  29. package/dist/esm/builtin/0x4.d.ts +22 -22
  30. package/dist/esm/builtin/0x4.d.ts.map +1 -1
  31. package/dist/esm/builtin/0x4.js.map +1 -1
  32. package/dist/esm/move-coder.d.ts.map +1 -1
  33. package/dist/esm/move-coder.js +1 -0
  34. package/dist/esm/move-coder.js.map +1 -1
  35. package/dist/esm/to-internal.d.ts.map +1 -1
  36. package/dist/esm/to-internal.js +2 -1
  37. package/dist/esm/to-internal.js.map +1 -1
  38. package/package.json +2 -2
  39. package/src/builtin/0x1.ts +539 -579
  40. package/src/builtin/0x3.ts +177 -191
  41. package/src/builtin/0x4.ts +28 -31
  42. package/src/move-coder.ts +1 -0
  43. package/src/tests/types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.ts +55 -55
  44. package/src/tests/types/0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99.ts +32 -36
  45. package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts +36 -42
  46. package/src/to-internal.ts +2 -1
@@ -68,10 +68,10 @@ export namespace token {
68
68
  }
69
69
  }
70
70
 
71
- export interface MutationInstance extends TypedEventInstance<Mutation> {
71
+ export type MutationInstance = TypedEventInstance<Mutation> & {
72
72
  data_decoded: Mutation;
73
73
  type_arguments: [];
74
- }
74
+ };
75
75
 
76
76
  export interface MutationEvent {
77
77
  mutated_field_name: string;
@@ -89,11 +89,10 @@ export namespace token {
89
89
  }
90
90
  }
91
91
 
92
- export interface MutationEventInstance
93
- extends TypedEventInstance<MutationEvent> {
92
+ export type MutationEventInstance = TypedEventInstance<MutationEvent> & {
94
93
  data_decoded: MutationEvent;
95
94
  type_arguments: [];
96
- }
95
+ };
97
96
 
98
97
  export interface ConcurrentTokenIdentifiers {
99
98
  index: _0x1.aggregator_v2.AggregatorSnapshot<bigint>;
@@ -432,10 +431,10 @@ export namespace collection {
432
431
  }
433
432
  }
434
433
 
435
- export interface BurnInstance extends TypedEventInstance<Burn> {
434
+ export type BurnInstance = TypedEventInstance<Burn> & {
436
435
  data_decoded: Burn;
437
436
  type_arguments: [];
438
- }
437
+ };
439
438
 
440
439
  export interface BurnEvent {
441
440
  index: bigint;
@@ -452,10 +451,10 @@ export namespace collection {
452
451
  }
453
452
  }
454
453
 
455
- export interface BurnEventInstance extends TypedEventInstance<BurnEvent> {
454
+ export type BurnEventInstance = TypedEventInstance<BurnEvent> & {
456
455
  data_decoded: BurnEvent;
457
456
  type_arguments: [];
458
- }
457
+ };
459
458
 
460
459
  export interface Collection {
461
460
  creator: MoveAddressType;
@@ -493,11 +492,11 @@ export namespace collection {
493
492
  }
494
493
  }
495
494
 
496
- export interface ConcurrentBurnEventInstance
497
- extends TypedEventInstance<ConcurrentBurnEvent> {
498
- data_decoded: ConcurrentBurnEvent;
499
- type_arguments: [];
500
- }
495
+ export type ConcurrentBurnEventInstance =
496
+ TypedEventInstance<ConcurrentBurnEvent> & {
497
+ data_decoded: ConcurrentBurnEvent;
498
+ type_arguments: [];
499
+ };
501
500
 
502
501
  export interface ConcurrentMintEvent {
503
502
  collection_addr: MoveAddressType;
@@ -517,11 +516,11 @@ export namespace collection {
517
516
  }
518
517
  }
519
518
 
520
- export interface ConcurrentMintEventInstance
521
- extends TypedEventInstance<ConcurrentMintEvent> {
522
- data_decoded: ConcurrentMintEvent;
523
- type_arguments: [];
524
- }
519
+ export type ConcurrentMintEventInstance =
520
+ TypedEventInstance<ConcurrentMintEvent> & {
521
+ data_decoded: ConcurrentMintEvent;
522
+ type_arguments: [];
523
+ };
525
524
 
526
525
  export interface FixedSupply {
527
526
  current_supply: bigint;
@@ -557,10 +556,10 @@ export namespace collection {
557
556
  }
558
557
  }
559
558
 
560
- export interface MintInstance extends TypedEventInstance<Mint> {
559
+ export type MintInstance = TypedEventInstance<Mint> & {
561
560
  data_decoded: Mint;
562
561
  type_arguments: [];
563
- }
562
+ };
564
563
 
565
564
  export interface MintEvent {
566
565
  index: bigint;
@@ -577,10 +576,10 @@ export namespace collection {
577
576
  }
578
577
  }
579
578
 
580
- export interface MintEventInstance extends TypedEventInstance<MintEvent> {
579
+ export type MintEventInstance = TypedEventInstance<MintEvent> & {
581
580
  data_decoded: MintEvent;
582
581
  type_arguments: [];
583
- }
582
+ };
584
583
 
585
584
  export interface Mutation {
586
585
  mutated_field_name: string;
@@ -599,10 +598,10 @@ export namespace collection {
599
598
  }
600
599
  }
601
600
 
602
- export interface MutationInstance extends TypedEventInstance<Mutation> {
601
+ export type MutationInstance = TypedEventInstance<Mutation> & {
603
602
  data_decoded: Mutation;
604
603
  type_arguments: [];
605
- }
604
+ };
606
605
 
607
606
  export interface MutationEvent {
608
607
  mutated_field_name: string;
@@ -618,11 +617,10 @@ export namespace collection {
618
617
  }
619
618
  }
620
619
 
621
- export interface MutationEventInstance
622
- extends TypedEventInstance<MutationEvent> {
620
+ export type MutationEventInstance = TypedEventInstance<MutationEvent> & {
623
621
  data_decoded: MutationEvent;
624
622
  type_arguments: [];
625
- }
623
+ };
626
624
 
627
625
  export interface SetMaxSupply {
628
626
  collection: _0x1.object$.Object<collection.Collection>;
@@ -640,11 +638,10 @@ export namespace collection {
640
638
  }
641
639
  }
642
640
 
643
- export interface SetMaxSupplyInstance
644
- extends TypedEventInstance<SetMaxSupply> {
641
+ export type SetMaxSupplyInstance = TypedEventInstance<SetMaxSupply> & {
645
642
  data_decoded: SetMaxSupply;
646
643
  type_arguments: [];
647
- }
644
+ };
648
645
 
649
646
  export interface UnlimitedSupply {
650
647
  current_supply: bigint;
package/src/move-coder.ts CHANGED
@@ -27,6 +27,7 @@ export class MoveCoder extends AbstractMoveCoder<MoveModuleBytecode, Event | Mov
27
27
  if (m) {
28
28
  return m
29
29
  }
30
+ this.accounts.add(module.abi.address)
30
31
  m = toInternalModule(module)
31
32
  this.loadInternal(m, address)
32
33
  return m
@@ -150,11 +150,11 @@ export namespace base_pool {
150
150
  }
151
151
  }
152
152
 
153
- export interface BasePoolParamChangeEventInstance
154
- extends TypedEventInstance<BasePoolParamChangeEvent> {
155
- data_decoded: BasePoolParamChangeEvent;
156
- type_arguments: [];
157
- }
153
+ export type BasePoolParamChangeEventInstance =
154
+ TypedEventInstance<BasePoolParamChangeEvent> & {
155
+ data_decoded: BasePoolParamChangeEvent;
156
+ type_arguments: [];
157
+ };
158
158
 
159
159
  export interface BasePoolParams {
160
160
  swap_fee_protocol_allocation_ratio: _0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.fixed_point64.FixedPoint64;
@@ -320,11 +320,12 @@ export namespace stable_pool {
320
320
  }
321
321
  }
322
322
 
323
- export interface AddLiquidityEventInstance
324
- extends TypedEventInstance<AddLiquidityEvent<any, any, any, any>> {
323
+ export type AddLiquidityEventInstance = TypedEventInstance<
324
+ AddLiquidityEvent<any, any, any, any>
325
+ > & {
325
326
  data_decoded: AddLiquidityEvent<any, any, any, any>;
326
327
  type_arguments: [string, string, string, string];
327
- }
328
+ };
328
329
 
329
330
  export interface Flashloan<T0, T1, T2, T3> {
330
331
  amount_0: bigint;
@@ -376,11 +377,12 @@ export namespace stable_pool {
376
377
  }
377
378
  }
378
379
 
379
- export interface FlashloanEventInstance
380
- extends TypedEventInstance<FlashloanEvent<any, any, any, any>> {
380
+ export type FlashloanEventInstance = TypedEventInstance<
381
+ FlashloanEvent<any, any, any, any>
382
+ > & {
381
383
  data_decoded: FlashloanEvent<any, any, any, any>;
382
384
  type_arguments: [string, string, string, string];
383
- }
385
+ };
384
386
 
385
387
  export interface FlashloanHelper<T0, T1, T2, T3> {
386
388
  locked: boolean;
@@ -434,11 +436,12 @@ export namespace stable_pool {
434
436
  }
435
437
  }
436
438
 
437
- export interface RemoveLiquidityEventInstance
438
- extends TypedEventInstance<RemoveLiquidityEvent<any, any, any, any>> {
439
+ export type RemoveLiquidityEventInstance = TypedEventInstance<
440
+ RemoveLiquidityEvent<any, any, any, any>
441
+ > & {
439
442
  data_decoded: RemoveLiquidityEvent<any, any, any, any>;
440
443
  type_arguments: [string, string, string, string];
441
- }
444
+ };
442
445
 
443
446
  export interface StablePool<T0, T1, T2, T3> {
444
447
  asset_0: _0x1.coin.Coin<T0>;
@@ -507,11 +510,12 @@ export namespace stable_pool {
507
510
  }
508
511
  }
509
512
 
510
- export interface StablePoolCreationEventInstance
511
- extends TypedEventInstance<StablePoolCreationEvent<any, any, any, any>> {
513
+ export type StablePoolCreationEventInstance = TypedEventInstance<
514
+ StablePoolCreationEvent<any, any, any, any>
515
+ > & {
512
516
  data_decoded: StablePoolCreationEvent<any, any, any, any>;
513
517
  type_arguments: [string, string, string, string];
514
- }
518
+ };
515
519
 
516
520
  export interface StablePoolEvents<T0, T1, T2, T3> {
517
521
  pool_creation_events: _0x1.event.EventHandle<
@@ -601,11 +605,11 @@ export namespace stable_pool {
601
605
  }
602
606
  }
603
607
 
604
- export interface StablePoolParamChangeEventInstance
605
- extends TypedEventInstance<StablePoolParamChangeEvent> {
606
- data_decoded: StablePoolParamChangeEvent;
607
- type_arguments: [];
608
- }
608
+ export type StablePoolParamChangeEventInstance =
609
+ TypedEventInstance<StablePoolParamChangeEvent> & {
610
+ data_decoded: StablePoolParamChangeEvent;
611
+ type_arguments: [];
612
+ };
609
613
 
610
614
  export interface StablePoolParams {
611
615
  default_swap_fee_ratio: _0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.fixed_point64.FixedPoint64;
@@ -678,11 +682,12 @@ export namespace stable_pool {
678
682
  }
679
683
  }
680
684
 
681
- export interface SwapEventInstance
682
- extends TypedEventInstance<SwapEvent<any, any, any, any>> {
685
+ export type SwapEventInstance = TypedEventInstance<
686
+ SwapEvent<any, any, any, any>
687
+ > & {
683
688
  data_decoded: SwapEvent<any, any, any, any>;
684
689
  type_arguments: [string, string, string, string];
685
- }
690
+ };
686
691
 
687
692
  export namespace entry {
688
693
  export async function setAmpFactor<T0 = any, T1 = any, T2 = any, T3 = any>(
@@ -1090,10 +1095,9 @@ export namespace weighted_pool {
1090
1095
  }
1091
1096
  }
1092
1097
 
1093
- export interface AddLiquidityEventInstance
1094
- extends TypedEventInstance<
1095
- AddLiquidityEvent<any, any, any, any, any, any, any, any>
1096
- > {
1098
+ export type AddLiquidityEventInstance = TypedEventInstance<
1099
+ AddLiquidityEvent<any, any, any, any, any, any, any, any>
1100
+ > & {
1097
1101
  data_decoded: AddLiquidityEvent<any, any, any, any, any, any, any, any>;
1098
1102
  type_arguments: [
1099
1103
  string,
@@ -1105,7 +1109,7 @@ export namespace weighted_pool {
1105
1109
  string,
1106
1110
  string,
1107
1111
  ];
1108
- }
1112
+ };
1109
1113
 
1110
1114
  export interface Flashloan<T0, T1, T2, T3, T4, T5, T6, T7> {
1111
1115
  amount_0: bigint;
@@ -1165,10 +1169,9 @@ export namespace weighted_pool {
1165
1169
  }
1166
1170
  }
1167
1171
 
1168
- export interface FlashloanEventInstance
1169
- extends TypedEventInstance<
1170
- FlashloanEvent<any, any, any, any, any, any, any, any>
1171
- > {
1172
+ export type FlashloanEventInstance = TypedEventInstance<
1173
+ FlashloanEvent<any, any, any, any, any, any, any, any>
1174
+ > & {
1172
1175
  data_decoded: FlashloanEvent<any, any, any, any, any, any, any, any>;
1173
1176
  type_arguments: [
1174
1177
  string,
@@ -1180,7 +1183,7 @@ export namespace weighted_pool {
1180
1183
  string,
1181
1184
  string,
1182
1185
  ];
1183
- }
1186
+ };
1184
1187
 
1185
1188
  export interface FlashloanHelper<T0, T1, T2, T3, T4, T5, T6, T7> {
1186
1189
  locked: boolean;
@@ -1242,10 +1245,9 @@ export namespace weighted_pool {
1242
1245
  }
1243
1246
  }
1244
1247
 
1245
- export interface RemoveLiquidityEventInstance
1246
- extends TypedEventInstance<
1247
- RemoveLiquidityEvent<any, any, any, any, any, any, any, any>
1248
- > {
1248
+ export type RemoveLiquidityEventInstance = TypedEventInstance<
1249
+ RemoveLiquidityEvent<any, any, any, any, any, any, any, any>
1250
+ > & {
1249
1251
  data_decoded: RemoveLiquidityEvent<any, any, any, any, any, any, any, any>;
1250
1252
  type_arguments: [
1251
1253
  string,
@@ -1257,7 +1259,7 @@ export namespace weighted_pool {
1257
1259
  string,
1258
1260
  string,
1259
1261
  ];
1260
- }
1262
+ };
1261
1263
 
1262
1264
  export interface SwapEvent<T0, T1, T2, T3, T4, T5, T6, T7> {
1263
1265
  idx_in: bigint;
@@ -1293,10 +1295,9 @@ export namespace weighted_pool {
1293
1295
  }
1294
1296
  }
1295
1297
 
1296
- export interface SwapEventInstance
1297
- extends TypedEventInstance<
1298
- SwapEvent<any, any, any, any, any, any, any, any>
1299
- > {
1298
+ export type SwapEventInstance = TypedEventInstance<
1299
+ SwapEvent<any, any, any, any, any, any, any, any>
1300
+ > & {
1300
1301
  data_decoded: SwapEvent<any, any, any, any, any, any, any, any>;
1301
1302
  type_arguments: [
1302
1303
  string,
@@ -1308,7 +1309,7 @@ export namespace weighted_pool {
1308
1309
  string,
1309
1310
  string,
1310
1311
  ];
1311
- }
1312
+ };
1312
1313
 
1313
1314
  export interface Weight_10 {
1314
1315
  dummy_field: boolean;
@@ -1674,10 +1675,9 @@ export namespace weighted_pool {
1674
1675
  }
1675
1676
  }
1676
1677
 
1677
- export interface WeightedPoolCreationEventInstance
1678
- extends TypedEventInstance<
1679
- WeightedPoolCreationEvent<any, any, any, any, any, any, any, any>
1680
- > {
1678
+ export type WeightedPoolCreationEventInstance = TypedEventInstance<
1679
+ WeightedPoolCreationEvent<any, any, any, any, any, any, any, any>
1680
+ > & {
1681
1681
  data_decoded: WeightedPoolCreationEvent<
1682
1682
  any,
1683
1683
  any,
@@ -1698,7 +1698,7 @@ export namespace weighted_pool {
1698
1698
  string,
1699
1699
  string,
1700
1700
  ];
1701
- }
1701
+ };
1702
1702
 
1703
1703
  export interface WeightedPoolEvents<T0, T1, T2, T3, T4, T5, T6, T7> {
1704
1704
  pool_creation_events: _0x1.event.EventHandle<
@@ -1795,11 +1795,11 @@ export namespace weighted_pool {
1795
1795
  }
1796
1796
  }
1797
1797
 
1798
- export interface WeightedPoolParamChangeEventInstance
1799
- extends TypedEventInstance<WeightedPoolParamChangeEvent> {
1800
- data_decoded: WeightedPoolParamChangeEvent;
1801
- type_arguments: [];
1802
- }
1798
+ export type WeightedPoolParamChangeEventInstance =
1799
+ TypedEventInstance<WeightedPoolParamChangeEvent> & {
1800
+ data_decoded: WeightedPoolParamChangeEvent;
1801
+ type_arguments: [];
1802
+ };
1803
1803
 
1804
1804
  export interface WeightedPoolParams {
1805
1805
  default_swap_fee_ratio: _0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.fixed_point64.FixedPoint64;
@@ -44,11 +44,11 @@ export namespace farming {
44
44
  }
45
45
  }
46
46
 
47
- export interface BoostMultiplierChangeEventInstance
48
- extends TypedEventInstance<BoostMultiplierChangeEvent> {
49
- data_decoded: BoostMultiplierChangeEvent;
50
- type_arguments: [];
51
- }
47
+ export type BoostMultiplierChangeEventInstance =
48
+ TypedEventInstance<BoostMultiplierChangeEvent> & {
49
+ data_decoded: BoostMultiplierChangeEvent;
50
+ type_arguments: [];
51
+ };
52
52
 
53
53
  export interface BoostedFarming {
54
54
  boost_multipliers: _0x1.smart_table.SmartTable<
@@ -87,10 +87,10 @@ export namespace farming {
87
87
  }
88
88
  }
89
89
 
90
- export interface ClaimEventInstance extends TypedEventInstance<ClaimEvent> {
90
+ export type ClaimEventInstance = TypedEventInstance<ClaimEvent> & {
91
91
  data_decoded: ClaimEvent;
92
92
  type_arguments: [];
93
- }
93
+ };
94
94
 
95
95
  export interface EpochInfo {
96
96
  start_sec: bigint;
@@ -195,11 +195,10 @@ export namespace farming {
195
195
  }
196
196
  }
197
197
 
198
- export interface PoolChangeEventInstance
199
- extends TypedEventInstance<PoolChangeEvent> {
198
+ export type PoolChangeEventInstance = TypedEventInstance<PoolChangeEvent> & {
200
199
  data_decoded: PoolChangeEvent;
201
200
  type_arguments: [];
202
- }
201
+ };
203
202
 
204
203
  export interface PoolInfo {
205
204
  stake_coin: string;
@@ -259,11 +258,11 @@ export namespace farming {
259
258
  }
260
259
  }
261
260
 
262
- export interface RateLimitMaxQtyUpdateEventInstance
263
- extends TypedEventInstance<RateLimitMaxQtyUpdateEvent> {
264
- data_decoded: RateLimitMaxQtyUpdateEvent;
265
- type_arguments: [];
266
- }
261
+ export type RateLimitMaxQtyUpdateEventInstance =
262
+ TypedEventInstance<RateLimitMaxQtyUpdateEvent> & {
263
+ data_decoded: RateLimitMaxQtyUpdateEvent;
264
+ type_arguments: [];
265
+ };
267
266
 
268
267
  export interface RateLimitWindowDurationUpdateEvent {
269
268
  window_duration_seconds: bigint;
@@ -282,11 +281,11 @@ export namespace farming {
282
281
  }
283
282
  }
284
283
 
285
- export interface RateLimitWindowDurationUpdateEventInstance
286
- extends TypedEventInstance<RateLimitWindowDurationUpdateEvent> {
287
- data_decoded: RateLimitWindowDurationUpdateEvent;
288
- type_arguments: [];
289
- }
284
+ export type RateLimitWindowDurationUpdateEventInstance =
285
+ TypedEventInstance<RateLimitWindowDurationUpdateEvent> & {
286
+ data_decoded: RateLimitWindowDurationUpdateEvent;
287
+ type_arguments: [];
288
+ };
290
289
 
291
290
  export interface RewardEpochEvent {
292
291
  reward_coin: string;
@@ -308,11 +307,11 @@ export namespace farming {
308
307
  }
309
308
  }
310
309
 
311
- export interface RewardEpochEventInstance
312
- extends TypedEventInstance<RewardEpochEvent> {
313
- data_decoded: RewardEpochEvent;
314
- type_arguments: [];
315
- }
310
+ export type RewardEpochEventInstance =
311
+ TypedEventInstance<RewardEpochEvent> & {
312
+ data_decoded: RewardEpochEvent;
313
+ type_arguments: [];
314
+ };
316
315
 
317
316
  export interface StakeEvent {
318
317
  pid: bigint;
@@ -331,10 +330,10 @@ export namespace farming {
331
330
  }
332
331
  }
333
332
 
334
- export interface StakeEventInstance extends TypedEventInstance<StakeEvent> {
333
+ export type StakeEventInstance = TypedEventInstance<StakeEvent> & {
335
334
  data_decoded: StakeEvent;
336
335
  type_arguments: [];
337
- }
336
+ };
338
337
 
339
338
  export interface StakeEventV2 {
340
339
  pid: bigint;
@@ -355,11 +354,10 @@ export namespace farming {
355
354
  }
356
355
  }
357
356
 
358
- export interface StakeEventV2Instance
359
- extends TypedEventInstance<StakeEventV2> {
357
+ export type StakeEventV2Instance = TypedEventInstance<StakeEventV2> & {
360
358
  data_decoded: StakeEventV2;
361
359
  type_arguments: [];
362
- }
360
+ };
363
361
 
364
362
  export interface Staker {
365
363
  pool_info: _0x1.table.Table<bigint, farming.UserPoolInfo>;
@@ -393,11 +391,10 @@ export namespace farming {
393
391
  }
394
392
  }
395
393
 
396
- export interface UnstakeEventInstance
397
- extends TypedEventInstance<UnstakeEvent> {
394
+ export type UnstakeEventInstance = TypedEventInstance<UnstakeEvent> & {
398
395
  data_decoded: UnstakeEvent;
399
396
  type_arguments: [];
400
- }
397
+ };
401
398
 
402
399
  export interface UnstakeEventV2 {
403
400
  pid: bigint;
@@ -418,11 +415,10 @@ export namespace farming {
418
415
  }
419
416
  }
420
417
 
421
- export interface UnstakeEventV2Instance
422
- extends TypedEventInstance<UnstakeEventV2> {
418
+ export type UnstakeEventV2Instance = TypedEventInstance<UnstakeEventV2> & {
423
419
  data_decoded: UnstakeEventV2;
424
420
  type_arguments: [];
425
- }
421
+ };
426
422
 
427
423
  export interface UserPoolInfo {
428
424
  amount: bigint;