@morpho-org/bundler-sdk-viem 3.0.0 → 3.0.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/lib/abis.js CHANGED
@@ -1,7 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compoundV3MigrationAdapterAbi = exports.compoundV2MigrationAdapterAbi = exports.aaveV3OptimizerMigrationAdapterAbi = exports.aaveV3MigrationAdapterAbi = exports.aaveV2MigrationAdapterAbi = exports.erc20WrapperAdapterAbi = exports.paraswapAdapterAbi = exports.ethereumGeneralAdapter1Abi = exports.generalAdapter1Abi = exports.coreAdapterAbi = exports.bundler3Abi = exports.universalRewardsDistributorAbi = exports.compoundV3MigrationBundlerAbi = exports.compoundV2MigrationBundlerAbi = exports.aaveV3OptimizerMigrationBundlerAbi = exports.aaveV3MigrationBundlerAbi = exports.aaveV2MigrationBundlerAbi = exports.stEthBundlerAbi = exports.wNativeBundlerAbi = exports.urdBundlerAbi = exports.morphoBundlerAbi = exports.erc4626BundlerAbi = exports.erc20WrapperBundlerAbi = exports.permit2BundlerAbi = exports.ethereumPermitBundlerAbi = exports.permitBundlerAbi = exports.transferBundlerAbi = exports.baseBundlerAbi = void 0;
1
4
  /**
2
5
  * @deprecated All bundles should be encoded using Bundler3 instead.
3
6
  */
4
- export const baseBundlerAbi = [
7
+ exports.baseBundlerAbi = [
5
8
  {
6
9
  type: "function",
7
10
  name: "initiator",
@@ -20,8 +23,8 @@ export const baseBundlerAbi = [
20
23
  /**
21
24
  * @deprecated All bundles should be encoded using Bundler3 instead.
22
25
  */
23
- export const transferBundlerAbi = [
24
- ...baseBundlerAbi,
26
+ exports.transferBundlerAbi = [
27
+ ...exports.baseBundlerAbi,
25
28
  {
26
29
  type: "function",
27
30
  name: "erc20Transfer",
@@ -57,8 +60,8 @@ export const transferBundlerAbi = [
57
60
  /**
58
61
  * @deprecated All bundles should be encoded using Bundler3 instead.
59
62
  */
60
- export const permitBundlerAbi = [
61
- ...baseBundlerAbi,
63
+ exports.permitBundlerAbi = [
64
+ ...exports.baseBundlerAbi,
62
65
  {
63
66
  type: "function",
64
67
  name: "permit",
@@ -78,8 +81,8 @@ export const permitBundlerAbi = [
78
81
  /**
79
82
  * @deprecated All bundles should be encoded using Bundler3 instead.
80
83
  */
81
- export const ethereumPermitBundlerAbi = [
82
- ...permitBundlerAbi,
84
+ exports.ethereumPermitBundlerAbi = [
85
+ ...exports.permitBundlerAbi,
83
86
  {
84
87
  type: "function",
85
88
  name: "permitDai",
@@ -99,8 +102,8 @@ export const ethereumPermitBundlerAbi = [
99
102
  /**
100
103
  * @deprecated All bundles should be encoded using Bundler3 instead.
101
104
  */
102
- export const permit2BundlerAbi = [
103
- ...baseBundlerAbi,
105
+ exports.permit2BundlerAbi = [
106
+ ...exports.baseBundlerAbi,
104
107
  {
105
108
  type: "function",
106
109
  name: "approve2",
@@ -146,8 +149,8 @@ export const permit2BundlerAbi = [
146
149
  /**
147
150
  * @deprecated All bundles should be encoded using Bundler3 instead.
148
151
  */
149
- export const erc20WrapperBundlerAbi = [
150
- ...baseBundlerAbi,
152
+ exports.erc20WrapperBundlerAbi = [
153
+ ...exports.baseBundlerAbi,
151
154
  {
152
155
  type: "function",
153
156
  name: "erc20WrapperDepositFor",
@@ -173,8 +176,8 @@ export const erc20WrapperBundlerAbi = [
173
176
  /**
174
177
  * @deprecated All bundles should be encoded using Bundler3 instead.
175
178
  */
176
- export const erc4626BundlerAbi = [
177
- ...baseBundlerAbi,
179
+ exports.erc4626BundlerAbi = [
180
+ ...exports.baseBundlerAbi,
178
181
  {
179
182
  type: "function",
180
183
  name: "erc4626Deposit",
@@ -229,8 +232,8 @@ export const erc4626BundlerAbi = [
229
232
  /**
230
233
  * @deprecated All bundles should be encoded using Bundler3 instead.
231
234
  */
232
- export const morphoBundlerAbi = [
233
- ...baseBundlerAbi,
235
+ exports.morphoBundlerAbi = [
236
+ ...exports.baseBundlerAbi,
234
237
  {
235
238
  type: "function",
236
239
  name: "MORPHO",
@@ -514,8 +517,8 @@ export const morphoBundlerAbi = [
514
517
  /**
515
518
  * @deprecated All bundles should be encoded using Bundler3 instead.
516
519
  */
517
- export const urdBundlerAbi = [
518
- ...baseBundlerAbi,
520
+ exports.urdBundlerAbi = [
521
+ ...exports.baseBundlerAbi,
519
522
  {
520
523
  type: "function",
521
524
  name: "urdClaim",
@@ -534,8 +537,8 @@ export const urdBundlerAbi = [
534
537
  /**
535
538
  * @deprecated All bundles should be encoded using Bundler3 instead.
536
539
  */
537
- export const wNativeBundlerAbi = [
538
- ...baseBundlerAbi,
540
+ exports.wNativeBundlerAbi = [
541
+ ...exports.baseBundlerAbi,
539
542
  { type: "receive", stateMutability: "payable" },
540
543
  {
541
544
  type: "function",
@@ -562,8 +565,8 @@ export const wNativeBundlerAbi = [
562
565
  /**
563
566
  * @deprecated All bundles should be encoded using Bundler3 instead.
564
567
  */
565
- export const stEthBundlerAbi = [
566
- ...baseBundlerAbi,
568
+ exports.stEthBundlerAbi = [
569
+ ...exports.baseBundlerAbi,
567
570
  {
568
571
  type: "function",
569
572
  name: "ST_ETH",
@@ -607,13 +610,13 @@ export const stEthBundlerAbi = [
607
610
  /**
608
611
  * @deprecated All bundles should be encoded using Bundler3 instead.
609
612
  */
610
- export const aaveV2MigrationBundlerAbi = [
611
- ...transferBundlerAbi,
612
- ...permitBundlerAbi,
613
- ...permit2BundlerAbi,
614
- ...stEthBundlerAbi,
615
- ...erc4626BundlerAbi,
616
- ...morphoBundlerAbi,
613
+ exports.aaveV2MigrationBundlerAbi = [
614
+ ...exports.transferBundlerAbi,
615
+ ...exports.permitBundlerAbi,
616
+ ...exports.permit2BundlerAbi,
617
+ ...exports.stEthBundlerAbi,
618
+ ...exports.erc4626BundlerAbi,
619
+ ...exports.morphoBundlerAbi,
617
620
  {
618
621
  type: "constructor",
619
622
  inputs: [
@@ -656,13 +659,13 @@ export const aaveV2MigrationBundlerAbi = [
656
659
  /**
657
660
  * @deprecated All bundles should be encoded using Bundler3 instead.
658
661
  */
659
- export const aaveV3MigrationBundlerAbi = [
660
- ...transferBundlerAbi,
661
- ...permitBundlerAbi,
662
- ...permit2BundlerAbi,
663
- ...stEthBundlerAbi,
664
- ...erc4626BundlerAbi,
665
- ...morphoBundlerAbi,
662
+ exports.aaveV3MigrationBundlerAbi = [
663
+ ...exports.transferBundlerAbi,
664
+ ...exports.permitBundlerAbi,
665
+ ...exports.permit2BundlerAbi,
666
+ ...exports.stEthBundlerAbi,
667
+ ...exports.erc4626BundlerAbi,
668
+ ...exports.morphoBundlerAbi,
666
669
  {
667
670
  type: "constructor",
668
671
  inputs: [
@@ -704,13 +707,13 @@ export const aaveV3MigrationBundlerAbi = [
704
707
  /**
705
708
  * @deprecated All bundles should be encoded using Bundler3 instead.
706
709
  */
707
- export const aaveV3OptimizerMigrationBundlerAbi = [
708
- ...transferBundlerAbi,
709
- ...permitBundlerAbi,
710
- ...permit2BundlerAbi,
711
- ...stEthBundlerAbi,
712
- ...erc4626BundlerAbi,
713
- ...morphoBundlerAbi,
710
+ exports.aaveV3OptimizerMigrationBundlerAbi = [
711
+ ...exports.transferBundlerAbi,
712
+ ...exports.permitBundlerAbi,
713
+ ...exports.permit2BundlerAbi,
714
+ ...exports.stEthBundlerAbi,
715
+ ...exports.erc4626BundlerAbi,
716
+ ...exports.morphoBundlerAbi,
714
717
  {
715
718
  type: "constructor",
716
719
  inputs: [
@@ -786,13 +789,13 @@ export const aaveV3OptimizerMigrationBundlerAbi = [
786
789
  /**
787
790
  * @deprecated All bundles should be encoded using Bundler3 instead.
788
791
  */
789
- export const compoundV2MigrationBundlerAbi = [
790
- ...transferBundlerAbi,
791
- ...permitBundlerAbi,
792
- ...permit2BundlerAbi,
793
- ...stEthBundlerAbi,
794
- ...erc4626BundlerAbi,
795
- ...morphoBundlerAbi,
792
+ exports.compoundV2MigrationBundlerAbi = [
793
+ ...exports.transferBundlerAbi,
794
+ ...exports.permitBundlerAbi,
795
+ ...exports.permit2BundlerAbi,
796
+ ...exports.stEthBundlerAbi,
797
+ ...exports.erc4626BundlerAbi,
798
+ ...exports.morphoBundlerAbi,
796
799
  {
797
800
  type: "constructor",
798
801
  inputs: [
@@ -835,13 +838,13 @@ export const compoundV2MigrationBundlerAbi = [
835
838
  /**
836
839
  * @deprecated All bundles should be encoded using Bundler3 instead.
837
840
  */
838
- export const compoundV3MigrationBundlerAbi = [
839
- ...transferBundlerAbi,
840
- ...permitBundlerAbi,
841
- ...permit2BundlerAbi,
842
- ...stEthBundlerAbi,
843
- ...erc4626BundlerAbi,
844
- ...morphoBundlerAbi,
841
+ exports.compoundV3MigrationBundlerAbi = [
842
+ ...exports.transferBundlerAbi,
843
+ ...exports.permitBundlerAbi,
844
+ ...exports.permit2BundlerAbi,
845
+ ...exports.stEthBundlerAbi,
846
+ ...exports.erc4626BundlerAbi,
847
+ ...exports.morphoBundlerAbi,
845
848
  {
846
849
  type: "constructor",
847
850
  inputs: [{ name: "morpho", type: "address", internalType: "address" }],
@@ -886,7 +889,7 @@ export const compoundV3MigrationBundlerAbi = [
886
889
  },
887
890
  { type: "error", name: "UnsafeCast", inputs: [] },
888
891
  ];
889
- export const universalRewardsDistributorAbi = [
892
+ exports.universalRewardsDistributorAbi = [
890
893
  {
891
894
  inputs: [
892
895
  { internalType: "address", name: "initialOwner", type: "address" },
@@ -1024,7 +1027,7 @@ export const universalRewardsDistributorAbi = [
1024
1027
  type: "function",
1025
1028
  },
1026
1029
  ];
1027
- export const bundler3Abi = [
1030
+ exports.bundler3Abi = [
1028
1031
  {
1029
1032
  type: "function",
1030
1033
  name: "initiator",
@@ -1152,7 +1155,7 @@ export const bundler3Abi = [
1152
1155
  inputs: [],
1153
1156
  },
1154
1157
  ];
1155
- export const coreAdapterAbi = [
1158
+ exports.coreAdapterAbi = [
1156
1159
  {
1157
1160
  type: "receive",
1158
1161
  stateMutability: "payable",
@@ -1264,8 +1267,8 @@ export const coreAdapterAbi = [
1264
1267
  inputs: [],
1265
1268
  },
1266
1269
  ];
1267
- export const generalAdapter1Abi = [
1268
- ...coreAdapterAbi,
1270
+ exports.generalAdapter1Abi = [
1271
+ ...exports.coreAdapterAbi,
1269
1272
  {
1270
1273
  type: "constructor",
1271
1274
  inputs: [
@@ -1988,8 +1991,8 @@ export const generalAdapter1Abi = [
1988
1991
  inputs: [],
1989
1992
  },
1990
1993
  ];
1991
- export const ethereumGeneralAdapter1Abi = [
1992
- ...generalAdapter1Abi,
1994
+ exports.ethereumGeneralAdapter1Abi = [
1995
+ ...exports.generalAdapter1Abi,
1993
1996
  {
1994
1997
  type: "constructor",
1995
1998
  inputs: [
@@ -2179,8 +2182,8 @@ export const ethereumGeneralAdapter1Abi = [
2179
2182
  stateMutability: "nonpayable",
2180
2183
  },
2181
2184
  ];
2182
- export const paraswapAdapterAbi = [
2183
- ...coreAdapterAbi,
2185
+ exports.paraswapAdapterAbi = [
2186
+ ...exports.coreAdapterAbi,
2184
2187
  {
2185
2188
  type: "constructor",
2186
2189
  inputs: [
@@ -2456,8 +2459,8 @@ export const paraswapAdapterAbi = [
2456
2459
  inputs: [],
2457
2460
  },
2458
2461
  ];
2459
- export const erc20WrapperAdapterAbi = [
2460
- ...coreAdapterAbi,
2462
+ exports.erc20WrapperAdapterAbi = [
2463
+ ...exports.coreAdapterAbi,
2461
2464
  {
2462
2465
  type: "constructor",
2463
2466
  inputs: [
@@ -2521,8 +2524,8 @@ export const erc20WrapperAdapterAbi = [
2521
2524
  inputs: [],
2522
2525
  },
2523
2526
  ];
2524
- export const aaveV2MigrationAdapterAbi = [
2525
- ...coreAdapterAbi,
2527
+ exports.aaveV2MigrationAdapterAbi = [
2528
+ ...exports.coreAdapterAbi,
2526
2529
  {
2527
2530
  type: "constructor",
2528
2531
  inputs: [
@@ -2591,8 +2594,8 @@ export const aaveV2MigrationAdapterAbi = [
2591
2594
  stateMutability: "nonpayable",
2592
2595
  },
2593
2596
  ];
2594
- export const aaveV3MigrationAdapterAbi = [
2595
- ...coreAdapterAbi,
2597
+ exports.aaveV3MigrationAdapterAbi = [
2598
+ ...exports.coreAdapterAbi,
2596
2599
  {
2597
2600
  type: "constructor",
2598
2601
  inputs: [
@@ -2661,8 +2664,8 @@ export const aaveV3MigrationAdapterAbi = [
2661
2664
  stateMutability: "nonpayable",
2662
2665
  },
2663
2666
  ];
2664
- export const aaveV3OptimizerMigrationAdapterAbi = [
2665
- ...coreAdapterAbi,
2667
+ exports.aaveV3OptimizerMigrationAdapterAbi = [
2668
+ ...exports.coreAdapterAbi,
2666
2669
  {
2667
2670
  type: "constructor",
2668
2671
  inputs: [
@@ -2754,8 +2757,8 @@ export const aaveV3OptimizerMigrationAdapterAbi = [
2754
2757
  stateMutability: "nonpayable",
2755
2758
  },
2756
2759
  ];
2757
- export const compoundV2MigrationAdapterAbi = [
2758
- ...coreAdapterAbi,
2760
+ exports.compoundV2MigrationAdapterAbi = [
2761
+ ...exports.coreAdapterAbi,
2759
2762
  {
2760
2763
  type: "constructor",
2761
2764
  inputs: [
@@ -2868,8 +2871,8 @@ export const compoundV2MigrationAdapterAbi = [
2868
2871
  stateMutability: "nonpayable",
2869
2872
  },
2870
2873
  ];
2871
- export const compoundV3MigrationAdapterAbi = [
2872
- ...coreAdapterAbi,
2874
+ exports.compoundV3MigrationAdapterAbi = [
2875
+ ...exports.coreAdapterAbi,
2873
2876
  {
2874
2877
  type: "constructor",
2875
2878
  inputs: [