@defisaver/positions-sdk 0.0.191 → 0.0.194

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 (77) hide show
  1. package/.mocharc.json +4 -4
  2. package/.nvmrc +1 -1
  3. package/README.md +69 -69
  4. package/cjs/aaveV3/index.js +1 -1
  5. package/cjs/config/contracts.d.ts +264 -0
  6. package/cjs/config/contracts.js +24 -8
  7. package/cjs/helpers/morphoBlueHelpers/index.js +66 -66
  8. package/cjs/morphoAaveV3/index.js +1 -0
  9. package/cjs/types/aave.d.ts +1 -0
  10. package/esm/aaveV3/index.js +1 -1
  11. package/esm/config/contracts.d.ts +264 -0
  12. package/esm/config/contracts.js +24 -8
  13. package/esm/helpers/morphoBlueHelpers/index.js +66 -66
  14. package/esm/morphoAaveV3/index.js +1 -0
  15. package/esm/types/aave.d.ts +1 -0
  16. package/package.json +49 -49
  17. package/src/aaveV2/index.ts +227 -227
  18. package/src/aaveV3/index.ts +625 -624
  19. package/src/assets/index.ts +60 -60
  20. package/src/chickenBonds/index.ts +123 -123
  21. package/src/compoundV2/index.ts +220 -220
  22. package/src/compoundV3/index.ts +291 -291
  23. package/src/config/contracts.js +1095 -1079
  24. package/src/constants/index.ts +6 -6
  25. package/src/contracts.ts +132 -132
  26. package/src/curveUsd/index.ts +229 -229
  27. package/src/eulerV2/index.ts +303 -303
  28. package/src/exchange/index.ts +17 -17
  29. package/src/helpers/aaveHelpers/index.ts +198 -198
  30. package/src/helpers/chickenBondsHelpers/index.ts +23 -23
  31. package/src/helpers/compoundHelpers/index.ts +246 -246
  32. package/src/helpers/curveUsdHelpers/index.ts +40 -40
  33. package/src/helpers/eulerHelpers/index.ts +232 -232
  34. package/src/helpers/index.ts +8 -8
  35. package/src/helpers/llamaLendHelpers/index.ts +53 -53
  36. package/src/helpers/makerHelpers/index.ts +94 -94
  37. package/src/helpers/morphoBlueHelpers/index.ts +365 -365
  38. package/src/helpers/sparkHelpers/index.ts +150 -150
  39. package/src/index.ts +48 -48
  40. package/src/liquity/index.ts +116 -116
  41. package/src/llamaLend/index.ts +275 -275
  42. package/src/maker/index.ts +117 -117
  43. package/src/markets/aave/index.ts +152 -152
  44. package/src/markets/aave/marketAssets.ts +46 -46
  45. package/src/markets/compound/index.ts +213 -213
  46. package/src/markets/compound/marketsAssets.ts +82 -82
  47. package/src/markets/curveUsd/index.ts +69 -69
  48. package/src/markets/euler/index.ts +26 -26
  49. package/src/markets/index.ts +23 -23
  50. package/src/markets/llamaLend/contractAddresses.ts +141 -141
  51. package/src/markets/llamaLend/index.ts +235 -235
  52. package/src/markets/morphoBlue/index.ts +878 -878
  53. package/src/markets/spark/index.ts +29 -29
  54. package/src/markets/spark/marketAssets.ts +10 -10
  55. package/src/moneymarket/moneymarketCommonService.ts +80 -80
  56. package/src/morphoAaveV2/index.ts +256 -256
  57. package/src/morphoAaveV3/index.ts +631 -630
  58. package/src/morphoBlue/index.ts +204 -204
  59. package/src/multicall/index.ts +22 -22
  60. package/src/services/dsrService.ts +15 -15
  61. package/src/services/priceService.ts +62 -62
  62. package/src/services/utils.ts +56 -56
  63. package/src/setup.ts +8 -8
  64. package/src/spark/index.ts +461 -461
  65. package/src/staking/staking.ts +220 -220
  66. package/src/types/aave.ts +271 -270
  67. package/src/types/chickenBonds.ts +45 -45
  68. package/src/types/common.ts +84 -84
  69. package/src/types/compound.ts +131 -131
  70. package/src/types/curveUsd.ts +118 -118
  71. package/src/types/euler.ts +171 -171
  72. package/src/types/index.ts +9 -9
  73. package/src/types/liquity.ts +30 -30
  74. package/src/types/llamaLend.ts +155 -155
  75. package/src/types/maker.ts +50 -50
  76. package/src/types/morphoBlue.ts +191 -191
  77. package/src/types/spark.ts +131 -131
package/.mocharc.json CHANGED
@@ -1,4 +1,4 @@
1
- {
2
- "require": "ts-node/register",
3
- "extension": ["ts"]
4
- }
1
+ {
2
+ "require": "ts-node/register",
3
+ "extension": ["ts"]
4
+ }
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- v20.17.0
1
+ v20.17.0
package/README.md CHANGED
@@ -1,69 +1,69 @@
1
- # DeFi Saver Positions SDK
2
-
3
- Supported protocols:
4
- - [Maker](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/maker)
5
- - [Spark](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/spark)
6
- - [CrvUSD](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/curveUsd)
7
- - [Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV2)
8
- - [Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV3)
9
- - [Morpho Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/morphoAaveV2)
10
- - [Morpho Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/morphoAaveV3)
11
- - [Compound V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV2)
12
- - [Compound V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV3)
13
- - [Liquity](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/liquity)
14
- - [Chicken Bonds](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/chickenBonds)
15
-
16
- ## Setup
17
- Supported Node version is v10.
18
-
19
- - run `npm install` (first time)
20
- - run `npm run build`
21
-
22
- `build` command will generate contracts and build ejs and esm folders
23
-
24
- ## How to use
25
- [All available imports](https://github.com/defisaver/defisaver-positions-sdk/blob/main/src/index.ts)
26
-
27
- This is a Compound V3 example, and every other protocol is similar
28
- ```js
29
- import Web3 from 'web3';
30
- import { compoundV3 } from '@defisaver/positions-sdk';
31
-
32
-
33
- // every protocol has market data and user data getters
34
- const {
35
- getCompoundV3MarketsData,
36
- getCompoundV3AccountData,
37
- } = compoundV3;
38
-
39
- const provider = 'Your RPC provider';
40
- const web3 = new Web3(provider);
41
-
42
- const user = '0x123...';
43
-
44
- const { assetsData } = await getCompoundV3MarketsData(
45
- web3, // rpc for the network you are using (note: can be tenderly or any other testnet rpc)
46
- 1, // network
47
- selectedMarket, // market object like in /src/markets/compound/index.ts
48
- web3, // this must be mainnet rpc - used for getting prices onchain and calculating apys
49
- );
50
-
51
- const userData = await getCompoundV3AccountData(
52
- web3,
53
- 1, // network
54
- userAddress, // EOA or DSProxy
55
- '', // proxy address of the user, or just empty string if checking for EOA
56
- {
57
- selectedMarket, // market object as in /src/markets/compound/index.ts
58
- assetsData,
59
- }
60
- );
61
- ```
62
-
63
- More examples found [here](https://github.com/defisaver/defisaver-positions-sdk/tree/main/tests)
64
-
65
- ## Testing
66
-
67
- `npm run test` - Run all tests
68
-
69
- `npm run test-single --name=your_test_name` - Run single test for specified name e.g. for MyTest.js test name is MyTest
1
+ # DeFi Saver Positions SDK
2
+
3
+ Supported protocols:
4
+ - [Maker](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/maker)
5
+ - [Spark](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/spark)
6
+ - [CrvUSD](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/curveUsd)
7
+ - [Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV2)
8
+ - [Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV3)
9
+ - [Morpho Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/morphoAaveV2)
10
+ - [Morpho Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/morphoAaveV3)
11
+ - [Compound V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV2)
12
+ - [Compound V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV3)
13
+ - [Liquity](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/liquity)
14
+ - [Chicken Bonds](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/chickenBonds)
15
+
16
+ ## Setup
17
+ Supported Node version is v10.
18
+
19
+ - run `npm install` (first time)
20
+ - run `npm run build`
21
+
22
+ `build` command will generate contracts and build ejs and esm folders
23
+
24
+ ## How to use
25
+ [All available imports](https://github.com/defisaver/defisaver-positions-sdk/blob/main/src/index.ts)
26
+
27
+ This is a Compound V3 example, and every other protocol is similar
28
+ ```js
29
+ import Web3 from 'web3';
30
+ import { compoundV3 } from '@defisaver/positions-sdk';
31
+
32
+
33
+ // every protocol has market data and user data getters
34
+ const {
35
+ getCompoundV3MarketsData,
36
+ getCompoundV3AccountData,
37
+ } = compoundV3;
38
+
39
+ const provider = 'Your RPC provider';
40
+ const web3 = new Web3(provider);
41
+
42
+ const user = '0x123...';
43
+
44
+ const { assetsData } = await getCompoundV3MarketsData(
45
+ web3, // rpc for the network you are using (note: can be tenderly or any other testnet rpc)
46
+ 1, // network
47
+ selectedMarket, // market object like in /src/markets/compound/index.ts
48
+ web3, // this must be mainnet rpc - used for getting prices onchain and calculating apys
49
+ );
50
+
51
+ const userData = await getCompoundV3AccountData(
52
+ web3,
53
+ 1, // network
54
+ userAddress, // EOA or DSProxy
55
+ '', // proxy address of the user, or just empty string if checking for EOA
56
+ {
57
+ selectedMarket, // market object as in /src/markets/compound/index.ts
58
+ assetsData,
59
+ }
60
+ );
61
+ ```
62
+
63
+ More examples found [here](https://github.com/defisaver/defisaver-positions-sdk/tree/main/tests)
64
+
65
+ ## Testing
66
+
67
+ `npm run test` - Run all tests
68
+
69
+ `npm run test-single --name=your_test_name` - Run single test for specified name e.g. for MyTest.js test name is MyTest
@@ -182,7 +182,7 @@ function getAaveV3MarketData(web3, network, market, defaultWeb3) {
182
182
  minDiscountTokenBalance,
183
183
  minGhoBalanceForDiscount,
184
184
  },
185
- })), { symbol, isIsolated: new decimal_js_1.default(tokenMarket.debtCeilingForIsolationMode).gt(0), debtCeilingForIsolationMode: new decimal_js_1.default(tokenMarket.debtCeilingForIsolationMode).div(100).toString(), isSiloed: tokenMarket.isSiloedForBorrowing, isolationModeTotalDebt: new decimal_js_1.default(tokenMarket.isolationModeTotalDebt).div(100).toString(), assetId: Number(tokenMarket.assetId), underlyingTokenAddress: tokenMarket.underlyingTokenAddress, supplyRate: (0, moneymarket_1.aprToApy)(new decimal_js_1.default(tokenMarket.supplyRate.toString()).div(1e25).toString()), borrowRate: (0, moneymarket_1.aprToApy)(new decimal_js_1.default(tokenMarket.borrowRateVariable.toString()).div(1e25).toString()), borrowRateDiscounted: (0, moneymarket_1.aprToApy)(nativeAsset ? new decimal_js_1.default(tokenMarket.borrowRateVariable.toString()).div(1e25).mul(1 - parseFloat(discountRateOnBorrow)).toString() : '0'), borrowRateStable: (0, moneymarket_1.aprToApy)(new decimal_js_1.default(tokenMarket.borrowRateStable.toString()).div(1e25).toString()), collateralFactor: new decimal_js_1.default(tokenMarket.collateralFactor.toString()).div(10000).toString(), liquidationRatio: new decimal_js_1.default(tokenMarket.liquidationRatio.toString()).div(10000).toString(), marketLiquidity, utilization: new decimal_js_1.default(tokenMarket.totalBorrow.toString()).times(100).div(new decimal_js_1.default(tokenMarket.totalSupply.toString())).toString(), usageAsCollateralEnabled: tokenMarket.usageAsCollateralEnabled, supplyCap: tokenMarket.supplyCap, borrowCap, totalSupply: (0, tokens_1.assetAmountInEth)(tokenMarket.totalSupply.toString(), symbol), isInactive: !tokenMarket.isActive, isFrozen: tokenMarket.isFrozen, isPaused: tokenMarket.isPaused, canBeBorrowed: tokenMarket.isActive && !tokenMarket.isPaused && !tokenMarket.isFrozen && tokenMarket.borrowingEnabled && isBorrowAllowed, canBeSupplied: !nativeAsset && tokenMarket.isActive && !tokenMarket.isPaused && !tokenMarket.isFrozen, canBeWithdrawn: tokenMarket.isActive && !tokenMarket.isPaused, canBePayBacked: tokenMarket.isActive && !tokenMarket.isPaused, disabledStableBorrowing: !tokenMarket.stableBorrowRateEnabled, totalBorrow: (0, tokens_1.assetAmountInEth)(tokenMarket.totalBorrow.toString(), symbol), totalBorrowVar: (0, tokens_1.assetAmountInEth)(tokenMarket.totalBorrowVar.toString(), symbol), price: new decimal_js_1.default(tokenMarket.price.toString()).div(1e8).toString(), isolationModeBorrowingEnabled: tokenMarket.isolationModeBorrowingEnabled, isFlashLoanEnabled: tokenMarket.isFlashLoanEnabled, aTokenAddress: tokenMarket.aTokenAddress }));
185
+ })), { symbol, isIsolated: new decimal_js_1.default(tokenMarket.debtCeilingForIsolationMode).gt(0), debtCeilingForIsolationMode: new decimal_js_1.default(tokenMarket.debtCeilingForIsolationMode).div(100).toString(), isSiloed: tokenMarket.isSiloedForBorrowing, isolationModeTotalDebt: new decimal_js_1.default(tokenMarket.isolationModeTotalDebt).div(100).toString(), assetId: Number(tokenMarket.assetId), underlyingTokenAddress: tokenMarket.underlyingTokenAddress, supplyRate: (0, moneymarket_1.aprToApy)(new decimal_js_1.default(tokenMarket.supplyRate.toString()).div(1e25).toString()), borrowRate: (0, moneymarket_1.aprToApy)(new decimal_js_1.default(tokenMarket.borrowRateVariable.toString()).div(1e25).toString()), borrowRateDiscounted: (0, moneymarket_1.aprToApy)(nativeAsset ? new decimal_js_1.default(tokenMarket.borrowRateVariable.toString()).div(1e25).mul(1 - parseFloat(discountRateOnBorrow)).toString() : '0'), borrowRateStable: (0, moneymarket_1.aprToApy)(new decimal_js_1.default(tokenMarket.borrowRateStable.toString()).div(1e25).toString()), collateralFactor: new decimal_js_1.default(tokenMarket.collateralFactor.toString()).div(10000).toString(), liquidationBonus: new decimal_js_1.default(tokenMarket.liquidationBonus.toString()).div(10000).toString(), liquidationRatio: new decimal_js_1.default(tokenMarket.liquidationRatio.toString()).div(10000).toString(), marketLiquidity, utilization: new decimal_js_1.default(tokenMarket.totalBorrow.toString()).times(100).div(new decimal_js_1.default(tokenMarket.totalSupply.toString())).toString(), usageAsCollateralEnabled: tokenMarket.usageAsCollateralEnabled, supplyCap: tokenMarket.supplyCap, borrowCap, totalSupply: (0, tokens_1.assetAmountInEth)(tokenMarket.totalSupply.toString(), symbol), isInactive: !tokenMarket.isActive, isFrozen: tokenMarket.isFrozen, isPaused: tokenMarket.isPaused, canBeBorrowed: tokenMarket.isActive && !tokenMarket.isPaused && !tokenMarket.isFrozen && tokenMarket.borrowingEnabled && isBorrowAllowed, canBeSupplied: !nativeAsset && tokenMarket.isActive && !tokenMarket.isPaused && !tokenMarket.isFrozen, canBeWithdrawn: tokenMarket.isActive && !tokenMarket.isPaused, canBePayBacked: tokenMarket.isActive && !tokenMarket.isPaused, disabledStableBorrowing: !tokenMarket.stableBorrowRateEnabled, totalBorrow: (0, tokens_1.assetAmountInEth)(tokenMarket.totalBorrow.toString(), symbol), totalBorrowVar: (0, tokens_1.assetAmountInEth)(tokenMarket.totalBorrowVar.toString(), symbol), price: new decimal_js_1.default(tokenMarket.price.toString()).div(1e8).toString(), isolationModeBorrowingEnabled: tokenMarket.isolationModeBorrowingEnabled, isFlashLoanEnabled: tokenMarket.isFlashLoanEnabled, aTokenAddress: tokenMarket.aTokenAddress }));
186
186
  })));
187
187
  // Get incentives data
188
188
  yield Promise.all(assetsData.map((_market) => __awaiter(this, void 0, void 0, function* () {
@@ -67,6 +67,72 @@ export namespace AaveV3View {
67
67
  address: string;
68
68
  createdBlock: number;
69
69
  oldVersions: {
70
+ "20920193": {
71
+ abi: ({
72
+ inputs: ({
73
+ internalType: string;
74
+ name: string;
75
+ type: string;
76
+ components?: undefined;
77
+ } | {
78
+ components: {
79
+ internalType: string;
80
+ name: string;
81
+ type: string;
82
+ }[];
83
+ internalType: string;
84
+ name: string;
85
+ type: string;
86
+ })[];
87
+ name: string;
88
+ outputs: {
89
+ components: {
90
+ internalType: string;
91
+ name: string;
92
+ type: string;
93
+ }[];
94
+ internalType: string;
95
+ name: string;
96
+ type: string;
97
+ }[];
98
+ stateMutability: string;
99
+ type: string;
100
+ } | {
101
+ inputs: {
102
+ internalType: string;
103
+ name: string;
104
+ type: string;
105
+ }[];
106
+ name: string;
107
+ outputs: {
108
+ internalType: string;
109
+ name: string;
110
+ type: string;
111
+ }[];
112
+ stateMutability: string;
113
+ type: string;
114
+ } | {
115
+ inputs: {
116
+ components: {
117
+ internalType: string;
118
+ name: string;
119
+ type: string;
120
+ }[];
121
+ internalType: string;
122
+ name: string;
123
+ type: string;
124
+ }[];
125
+ name: string;
126
+ outputs: {
127
+ internalType: string;
128
+ name: string;
129
+ type: string;
130
+ }[];
131
+ stateMutability: string;
132
+ type: string;
133
+ })[];
134
+ address: string;
135
+ };
70
136
  "20412114": {
71
137
  abi: ({
72
138
  inputs: ({
@@ -373,6 +439,72 @@ export namespace AaveV3View {
373
439
  address: string;
374
440
  createdBlock: number;
375
441
  oldVersions: {
442
+ "126392881": {
443
+ abi: ({
444
+ inputs: ({
445
+ internalType: string;
446
+ name: string;
447
+ type: string;
448
+ components?: undefined;
449
+ } | {
450
+ components: {
451
+ internalType: string;
452
+ name: string;
453
+ type: string;
454
+ }[];
455
+ internalType: string;
456
+ name: string;
457
+ type: string;
458
+ })[];
459
+ name: string;
460
+ outputs: {
461
+ components: {
462
+ internalType: string;
463
+ name: string;
464
+ type: string;
465
+ }[];
466
+ internalType: string;
467
+ name: string;
468
+ type: string;
469
+ }[];
470
+ stateMutability: string;
471
+ type: string;
472
+ } | {
473
+ inputs: {
474
+ internalType: string;
475
+ name: string;
476
+ type: string;
477
+ }[];
478
+ name: string;
479
+ outputs: {
480
+ internalType: string;
481
+ name: string;
482
+ type: string;
483
+ }[];
484
+ stateMutability: string;
485
+ type: string;
486
+ } | {
487
+ inputs: {
488
+ components: {
489
+ internalType: string;
490
+ name: string;
491
+ type: string;
492
+ }[];
493
+ internalType: string;
494
+ name: string;
495
+ type: string;
496
+ }[];
497
+ name: string;
498
+ outputs: {
499
+ internalType: string;
500
+ name: string;
501
+ type: string;
502
+ }[];
503
+ stateMutability: string;
504
+ type: string;
505
+ })[];
506
+ address: string;
507
+ };
376
508
  "123328755": {
377
509
  abi: ({
378
510
  inputs: ({
@@ -817,6 +949,72 @@ export namespace AaveV3View {
817
949
  address: string;
818
950
  createdBlock: number;
819
951
  oldVersions: {
952
+ "261636818": {
953
+ abi: ({
954
+ inputs: ({
955
+ internalType: string;
956
+ name: string;
957
+ type: string;
958
+ components?: undefined;
959
+ } | {
960
+ components: {
961
+ internalType: string;
962
+ name: string;
963
+ type: string;
964
+ }[];
965
+ internalType: string;
966
+ name: string;
967
+ type: string;
968
+ })[];
969
+ name: string;
970
+ outputs: {
971
+ components: {
972
+ internalType: string;
973
+ name: string;
974
+ type: string;
975
+ }[];
976
+ internalType: string;
977
+ name: string;
978
+ type: string;
979
+ }[];
980
+ stateMutability: string;
981
+ type: string;
982
+ } | {
983
+ inputs: {
984
+ internalType: string;
985
+ name: string;
986
+ type: string;
987
+ }[];
988
+ name: string;
989
+ outputs: {
990
+ internalType: string;
991
+ name: string;
992
+ type: string;
993
+ }[];
994
+ stateMutability: string;
995
+ type: string;
996
+ } | {
997
+ inputs: {
998
+ components: {
999
+ internalType: string;
1000
+ name: string;
1001
+ type: string;
1002
+ }[];
1003
+ internalType: string;
1004
+ name: string;
1005
+ type: string;
1006
+ }[];
1007
+ name: string;
1008
+ outputs: {
1009
+ internalType: string;
1010
+ name: string;
1011
+ type: string;
1012
+ }[];
1013
+ stateMutability: string;
1014
+ type: string;
1015
+ })[];
1016
+ address: string;
1017
+ };
820
1018
  "237278836": {
821
1019
  abi: ({
822
1020
  inputs: ({
@@ -1238,6 +1436,72 @@ export namespace AaveV3View {
1238
1436
  address: string;
1239
1437
  createdBlock: number;
1240
1438
  oldVersions: {
1439
+ "20797819": {
1440
+ abi: ({
1441
+ inputs: ({
1442
+ internalType: string;
1443
+ name: string;
1444
+ type: string;
1445
+ components?: undefined;
1446
+ } | {
1447
+ components: {
1448
+ internalType: string;
1449
+ name: string;
1450
+ type: string;
1451
+ }[];
1452
+ internalType: string;
1453
+ name: string;
1454
+ type: string;
1455
+ })[];
1456
+ name: string;
1457
+ outputs: {
1458
+ components: {
1459
+ internalType: string;
1460
+ name: string;
1461
+ type: string;
1462
+ }[];
1463
+ internalType: string;
1464
+ name: string;
1465
+ type: string;
1466
+ }[];
1467
+ stateMutability: string;
1468
+ type: string;
1469
+ } | {
1470
+ inputs: {
1471
+ internalType: string;
1472
+ name: string;
1473
+ type: string;
1474
+ }[];
1475
+ name: string;
1476
+ outputs: {
1477
+ internalType: string;
1478
+ name: string;
1479
+ type: string;
1480
+ }[];
1481
+ stateMutability: string;
1482
+ type: string;
1483
+ } | {
1484
+ inputs: {
1485
+ components: {
1486
+ internalType: string;
1487
+ name: string;
1488
+ type: string;
1489
+ }[];
1490
+ internalType: string;
1491
+ name: string;
1492
+ type: string;
1493
+ }[];
1494
+ name: string;
1495
+ outputs: {
1496
+ internalType: string;
1497
+ name: string;
1498
+ type: string;
1499
+ }[];
1500
+ stateMutability: string;
1501
+ type: string;
1502
+ })[];
1503
+ address: string;
1504
+ };
1241
1505
  "17733546": {
1242
1506
  abi: ({
1243
1507
  inputs: ({