morpho-contracts-helper 0.0.11 → 0.0.13

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 (96) hide show
  1. package/contracts/MorphoMarketDataFetcher.sol +129 -0
  2. package/contracts/external/morpho/interfaces/IAdapter.sol +19 -0
  3. package/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.sol +66 -0
  4. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.d.ts +48 -0
  5. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.d.ts.map +1 -0
  6. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.js +3 -0
  7. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.js.map +1 -0
  8. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.d.ts +84 -0
  9. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.d.ts.map +1 -0
  10. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.js +3 -0
  11. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.js.map +1 -0
  12. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.d.ts +62 -0
  13. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.d.ts.map +1 -0
  14. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.js +3 -0
  15. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.js.map +1 -0
  16. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.d.ts +135 -0
  17. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.d.ts.map +1 -0
  18. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.js +3 -0
  19. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.js.map +1 -0
  20. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.d.ts +5 -0
  21. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.d.ts.map +1 -0
  22. package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.js.map +1 -0
  23. package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.d.ts +74 -0
  24. package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.d.ts.map +1 -0
  25. package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.js +3 -0
  26. package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.js.map +1 -0
  27. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.d.ts +427 -0
  28. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.d.ts.map +1 -0
  29. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.js +3 -0
  30. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.js.map +1 -0
  31. package/dist/typechain-types/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.d.ts → IMorphoMarketV1AdapterV2Factory.d.ts} +1 -1
  32. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.d.ts.map +1 -0
  33. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.js.map +1 -0
  34. package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts +3 -2
  35. package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
  36. package/dist/typechain-types/contracts/index.d.ts +2 -0
  37. package/dist/typechain-types/contracts/index.d.ts.map +1 -1
  38. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.d.ts +56 -0
  39. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.d.ts.map +1 -0
  40. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.js +84 -0
  41. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.js.map +1 -0
  42. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.d.ts +108 -0
  43. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.d.ts.map +1 -0
  44. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.js +151 -0
  45. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.js.map +1 -0
  46. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.d.ts +69 -0
  47. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.d.ts.map +1 -0
  48. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.js +101 -0
  49. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.js.map +1 -0
  50. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.d.ts +293 -0
  51. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.d.ts.map +1 -0
  52. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.js +389 -0
  53. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.js.map +1 -0
  54. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.d.ts +5 -0
  55. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.d.ts.map +1 -0
  56. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.js +16 -0
  57. package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.js.map +1 -0
  58. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.d.ts +78 -0
  59. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.d.ts.map +1 -0
  60. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js +112 -0
  61. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js.map +1 -0
  62. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.d.ts → IMorphoMarketV1AdapterV2Factory__factory.d.ts} +1 -1
  63. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory__factory.d.ts.map +1 -0
  64. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory__factory.js.map +1 -0
  65. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.d.ts +619 -0
  66. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.d.ts.map +1 -0
  67. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.js +812 -0
  68. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.js.map +1 -0
  69. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts +3 -1
  70. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
  71. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js +7 -2
  72. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js.map +1 -1
  73. package/dist/typechain-types/factories/contracts/index.d.ts +1 -0
  74. package/dist/typechain-types/factories/contracts/index.d.ts.map +1 -1
  75. package/dist/typechain-types/factories/contracts/index.js +2 -1
  76. package/dist/typechain-types/factories/contracts/index.js.map +1 -1
  77. package/dist/typechain-types/index.d.ts +8 -2
  78. package/dist/typechain-types/index.d.ts.map +1 -1
  79. package/dist/typechain-types/index.js +9 -2
  80. package/dist/typechain-types/index.js.map +1 -1
  81. package/package.json +1 -1
  82. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.d.ts.map +0 -1
  83. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.js.map +0 -1
  84. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts +0 -2
  85. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts.map +0 -1
  86. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js.map +0 -1
  87. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.d.ts.map +0 -1
  88. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.js.map +0 -1
  89. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts +0 -2
  90. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts.map +0 -1
  91. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js +0 -10
  92. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js.map +0 -1
  93. /package/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol → IMorphoMarketV1AdapterV2Factory.sol} +0 -0
  94. /package/dist/typechain-types/contracts/{external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol → MorphoMarketDataFetcher.sol}/index.js +0 -0
  95. /package/dist/typechain-types/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.js → IMorphoMarketV1AdapterV2Factory.js} +0 -0
  96. /package/dist/typechain-types/factories/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.js → IMorphoMarketV1AdapterV2Factory__factory.js} +0 -0
@@ -0,0 +1,129 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.20;
3
+
4
+ struct MarketParams {
5
+ address loanToken;
6
+ address collateralToken;
7
+ address oracle;
8
+ address irm;
9
+ uint256 lltv;
10
+ }
11
+
12
+ interface IERC20Metadata {
13
+ function name() external view returns (string memory);
14
+ function symbol() external view returns (string memory);
15
+ function decimals() external view returns (uint8);
16
+ function allowance(address owner, address spender) external view returns (uint256);
17
+ }
18
+
19
+ interface IMorphoChainlinkOracleV2 {
20
+ function BASE_FEED_1() external view returns (address);
21
+ function BASE_FEED_2() external view returns (address);
22
+ function BASE_VAULT() external view returns (address);
23
+ function BASE_VAULT_CONVERSION_SAMPLE() external view returns (address);
24
+ function QUOTE_FEED_1() external view returns (address);
25
+ function QUOTE_FEED_2() external view returns (address);
26
+ function QUOTE_VAULT() external view returns (address);
27
+ function QUOTE_VAULT_CONVERSION_SAMPLE() external view returns (address);
28
+ function SCALE_FACTOR() external view returns (uint256);
29
+ function price() external view returns (uint256);
30
+ }
31
+
32
+ interface IMorpho {
33
+ function position(bytes32 marketId, address account) external view returns (uint128 supplyShares, uint128 borrowShares, uint128 collateral);
34
+ function idToMarketParams(bytes32 marketId) external view returns (MarketParams memory);
35
+ }
36
+
37
+ contract MorphoMarketDataFetcher {
38
+
39
+ address public immutable morphoAddress;
40
+
41
+ constructor(address _morphoAddress) {
42
+ morphoAddress = _morphoAddress;
43
+ }
44
+
45
+ struct TokenInfo {
46
+ address tokenAddress;
47
+ string name;
48
+ string symbol;
49
+ uint8 decimals;
50
+ uint256 userAllowance;
51
+ }
52
+
53
+ struct OracleInfo {
54
+ address oracleAddress;
55
+ address baseFeed1;
56
+ address baseFeed2;
57
+ address baseVault;
58
+ address baseVaultConversionSample;
59
+ address quoteFeed1;
60
+ address quoteFeed2;
61
+ address quoteVault;
62
+ address quoteVaultConversionSample;
63
+ uint256 scaleFactor;
64
+ uint256 currentPrice;
65
+ }
66
+
67
+ struct MarketData {
68
+ TokenInfo loanToken;
69
+ TokenInfo collateralToken;
70
+ OracleInfo oracle;
71
+ uint256 deadAddressSupply;
72
+ }
73
+
74
+ function getMarketDetailsById(bytes32 marketId) external view returns (MarketData memory) {
75
+ MarketParams memory params = IMorpho(morphoAddress).idToMarketParams(marketId);
76
+
77
+ return this.getMarketDetails(
78
+ params.loanToken,
79
+ params.collateralToken,
80
+ params.oracle,
81
+ marketId,
82
+ msg.sender
83
+ );
84
+ }
85
+
86
+ function getMarketDetails(
87
+ address loanToken,
88
+ address collateralToken,
89
+ address oracle,
90
+ bytes32 marketId,
91
+ address connectedAddress
92
+ ) external view returns (MarketData memory data) {
93
+
94
+ data.loanToken.tokenAddress = loanToken;
95
+ try IERC20Metadata(loanToken).name() returns (string memory _name) { data.loanToken.name = _name; } catch {}
96
+ try IERC20Metadata(loanToken).symbol() returns (string memory _sym) { data.loanToken.symbol = _sym; } catch {}
97
+ try IERC20Metadata(loanToken).decimals() returns (uint8 _dec) { data.loanToken.decimals = _dec; } catch {}
98
+
99
+ if (connectedAddress != address(0) && morphoAddress != address(0)) {
100
+ try IERC20Metadata(loanToken).allowance(connectedAddress, morphoAddress) returns (uint256 _allow) { data.loanToken.userAllowance = _allow; } catch {}
101
+ }
102
+
103
+ data.collateralToken.tokenAddress = collateralToken;
104
+ try IERC20Metadata(collateralToken).name() returns (string memory _name) { data.collateralToken.name = _name; } catch {}
105
+ try IERC20Metadata(collateralToken).symbol() returns (string memory _sym) { data.collateralToken.symbol = _sym; } catch {}
106
+ try IERC20Metadata(collateralToken).decimals() returns (uint8 _dec) { data.collateralToken.decimals = _dec; } catch {}
107
+
108
+ if (oracle != address(0)) {
109
+ data.oracle.oracleAddress = oracle;
110
+ try IMorphoChainlinkOracleV2(oracle).BASE_FEED_1() returns (address a) { data.oracle.baseFeed1 = a; } catch {}
111
+ try IMorphoChainlinkOracleV2(oracle).BASE_FEED_2() returns (address a) { data.oracle.baseFeed2 = a; } catch {}
112
+ try IMorphoChainlinkOracleV2(oracle).BASE_VAULT() returns (address a) { data.oracle.baseVault = a; } catch {}
113
+ try IMorphoChainlinkOracleV2(oracle).BASE_VAULT_CONVERSION_SAMPLE() returns (address a) { data.oracle.baseVaultConversionSample = a; } catch {}
114
+ try IMorphoChainlinkOracleV2(oracle).QUOTE_FEED_1() returns (address a) { data.oracle.quoteFeed1 = a; } catch {}
115
+ try IMorphoChainlinkOracleV2(oracle).QUOTE_FEED_2() returns (address a) { data.oracle.quoteFeed2 = a; } catch {}
116
+ try IMorphoChainlinkOracleV2(oracle).QUOTE_VAULT() returns (address a) { data.oracle.quoteVault = a; } catch {}
117
+ try IMorphoChainlinkOracleV2(oracle).QUOTE_VAULT_CONVERSION_SAMPLE() returns (address a) { data.oracle.quoteVaultConversionSample = a; } catch {}
118
+ try IMorphoChainlinkOracleV2(oracle).SCALE_FACTOR() returns (uint256 s) { data.oracle.scaleFactor = s; } catch {}
119
+ try IMorphoChainlinkOracleV2(oracle).price() returns (uint256 p) { data.oracle.currentPrice = p; } catch {}
120
+ }
121
+
122
+ if (morphoAddress != address(0) && marketId != bytes32(0)) {
123
+ address deadAddress = 0x000000000000000000000000000000000000dEaD;
124
+ try IMorpho(morphoAddress).position(marketId, deadAddress) returns (uint128 supplyShares, uint128, uint128) {
125
+ data.deadAddressSupply = uint256(supplyShares);
126
+ } catch {}
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,19 @@
1
+ // SPDX-License-Identifier: GPL-2.0-or-later
2
+ // Copyright (c) 2025 Morpho Association
3
+ pragma solidity >=0.5.0;
4
+
5
+ /// @dev See VaultV2 NatSpec comments for more details on adapter's spec.
6
+ interface IAdapter {
7
+ /// @dev Returns the market' ids and the change in assets on this market.
8
+ function allocate(bytes memory data, uint256 assets, bytes4 selector, address sender)
9
+ external
10
+ returns (bytes32[] memory ids, int256 change);
11
+
12
+ /// @dev Returns the market' ids and the change in assets on this market.
13
+ function deallocate(bytes memory data, uint256 assets, bytes4 selector, address sender)
14
+ external
15
+ returns (bytes32[] memory ids, int256 change);
16
+
17
+ /// @dev Returns the current value of the investments of the adapter (in underlying asset).
18
+ function realAssets() external view returns (uint256 assets);
19
+ }
@@ -0,0 +1,66 @@
1
+ // SPDX-License-Identifier: GPL-2.0-or-later
2
+ // Copyright (c) 2025 Morpho Association
3
+ pragma solidity >=0.5.0;
4
+
5
+ import {IAdapter} from "./IAdapter.sol";
6
+ import {MarketParams} from "./IMorpho.sol";
7
+
8
+ interface IMorphoMarketV1AdapterV2 is IAdapter {
9
+ /* EVENTS */
10
+
11
+ event Submit(bytes4 indexed selector, bytes data, uint256 executableAt);
12
+ event Revoke(address indexed sender, bytes4 indexed selector, bytes data);
13
+ event Accept(bytes4 indexed selector, bytes data);
14
+ event Abdicate(bytes4 indexed selector);
15
+ event IncreaseTimelock(bytes4 indexed selector, uint256 newDuration);
16
+ event DecreaseTimelock(bytes4 indexed selector, uint256 newDuration);
17
+ event SetSkimRecipient(address indexed newSkimRecipient);
18
+ event Skim(address indexed token, uint256 assets);
19
+ event BurnShares(bytes32 indexed marketId, uint256 supplyShares);
20
+ event Allocate(bytes32 indexed marketId, uint256 newAllocation, uint256 mintedShares);
21
+ event Deallocate(bytes32 indexed marketId, uint256 newAllocation, uint256 burnedShares);
22
+
23
+ /* ERRORS */
24
+
25
+ error Abdicated();
26
+ error AutomaticallyTimelocked();
27
+ error DataAlreadyPending();
28
+ error DataNotTimelocked();
29
+ error IrmMismatch();
30
+ error LoanAssetMismatch();
31
+ error SharePriceAboveOne();
32
+ error TimelockNotDecreasing();
33
+ error TimelockNotExpired();
34
+ error TimelockNotIncreasing();
35
+ error Unauthorized();
36
+
37
+ /* VIEW FUNCTIONS */
38
+
39
+ function factory() external view returns (address);
40
+ function parentVault() external view returns (address);
41
+ function asset() external view returns (address);
42
+ function morpho() external view returns (address);
43
+ function marketIds(uint256 index) external view returns (bytes32);
44
+ function supplyShares(bytes32 marketId) external view returns (uint256);
45
+ function adapterId() external view returns (bytes32);
46
+ function skimRecipient() external view returns (address);
47
+ function marketIdsLength() external view returns (uint256);
48
+ function adaptiveCurveIrm() external view returns (address);
49
+ function allocation(MarketParams memory marketParams) external view returns (uint256);
50
+ function expectedSupplyAssets(bytes32 marketId) external view returns (uint256);
51
+ function ids(MarketParams memory marketParams) external view returns (bytes32[] memory);
52
+ function timelock(bytes4 selector) external view returns (uint256);
53
+ function abdicated(bytes4 selector) external view returns (bool);
54
+ function executableAt(bytes memory data) external view returns (uint256);
55
+
56
+ /* NON-VIEW FUNCTIONS */
57
+
58
+ function submit(bytes memory data) external;
59
+ function revoke(bytes memory data) external;
60
+ function increaseTimelock(bytes4 selector, uint256 newDuration) external;
61
+ function decreaseTimelock(bytes4 selector, uint256 newDuration) external;
62
+ function abdicate(bytes4 selector) external;
63
+ function setSkimRecipient(address newSkimRecipient) external;
64
+ function burnShares(bytes32 marketId) external;
65
+ function skim(address token) external;
66
+ }
@@ -0,0 +1,48 @@
1
+ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
+ export interface IERC20MetadataInterface extends Interface {
4
+ getFunction(nameOrSignature: "allowance" | "decimals" | "name" | "symbol"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
6
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
9
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
10
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
11
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
12
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
13
+ }
14
+ export interface IERC20Metadata extends BaseContract {
15
+ connect(runner?: ContractRunner | null): IERC20Metadata;
16
+ waitForDeployment(): Promise<this>;
17
+ interface: IERC20MetadataInterface;
18
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
19
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
20
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
21
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
22
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
23
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
24
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
25
+ listeners(eventName?: string): Promise<Array<Listener>>;
26
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
27
+ allowance: TypedContractMethod<[
28
+ owner: AddressLike,
29
+ spender: AddressLike
30
+ ], [
31
+ bigint
32
+ ], "view">;
33
+ decimals: TypedContractMethod<[], [bigint], "view">;
34
+ name: TypedContractMethod<[], [string], "view">;
35
+ symbol: TypedContractMethod<[], [string], "view">;
36
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
37
+ getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
38
+ owner: AddressLike,
39
+ spender: AddressLike
40
+ ], [
41
+ bigint
42
+ ], "view">;
43
+ getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
44
+ getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
45
+ getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
46
+ filters: {};
47
+ }
48
+ //# sourceMappingURL=IERC20Metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IERC20Metadata.d.ts","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACT,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,uBAAwB,SAAQ,SAAS;IACxD,WAAW,CACT,eAAe,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAC5D,gBAAgB,CAAC;IAEpB,kBAAkB,CAChB,gBAAgB,EAAE,WAAW,EAC7B,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,GACjC,MAAM,CAAC;IACV,kBAAkB,C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,MAAM,CAAC,CAAC;IAEpD,IAAI,EAAE,mBAAmB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAEhD,MAAM,EAAE,mBAAmB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAElD,WAAW,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EACnD,GAAG,EAAE,MAAM,GAAG,gBAAgB,GAC7B,CAAC,CAAC;IAEL,WAAW,CACT,eAAe,EAAE,WAAW,GAC3B,mBAAmB,CACpB;QAAC,KAAK,EAAE,WAAW;QAAE,OAAO,EAAE,WAAW;KAAC,EAC1C;QAAC,MAAM;KAAC,EACR,MAAM,CACP,CAAC;IACF,WAAW,CACT,eAAe,EAAE,UAAU,GAC1B,mBAAmB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7C,WAAW,CACT,eAAe,EAAE,MAAM,GACtB,mBAAmB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7C,WAAW,CACT,eAAe,EAAE,QAAQ,GACxB,mBAAmB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAE7C,OAAO,EAAE,EAAE,CAAC;CACb"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IERC20Metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IERC20Metadata.js","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.ts"],"names":[],"mappings":""}
@@ -0,0 +1,84 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
+ export type MarketParamsStruct = {
4
+ loanToken: AddressLike;
5
+ collateralToken: AddressLike;
6
+ oracle: AddressLike;
7
+ irm: AddressLike;
8
+ lltv: BigNumberish;
9
+ };
10
+ export type MarketParamsStructOutput = [
11
+ loanToken: string,
12
+ collateralToken: string,
13
+ oracle: string,
14
+ irm: string,
15
+ lltv: bigint
16
+ ] & {
17
+ loanToken: string;
18
+ collateralToken: string;
19
+ oracle: string;
20
+ irm: string;
21
+ lltv: bigint;
22
+ };
23
+ export interface IMorphoInterface extends Interface {
24
+ getFunction(nameOrSignature: "idToMarketParams" | "position"): FunctionFragment;
25
+ encodeFunctionData(functionFragment: "idToMarketParams", values: [BytesLike]): string;
26
+ encodeFunctionData(functionFragment: "position", values: [BytesLike, AddressLike]): string;
27
+ decodeFunctionResult(functionFragment: "idToMarketParams", data: BytesLike): Result;
28
+ decodeFunctionResult(functionFragment: "position", data: BytesLike): Result;
29
+ }
30
+ export interface IMorpho extends BaseContract {
31
+ connect(runner?: ContractRunner | null): IMorpho;
32
+ waitForDeployment(): Promise<this>;
33
+ interface: IMorphoInterface;
34
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
35
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
36
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
37
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
38
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
39
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
40
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
41
+ listeners(eventName?: string): Promise<Array<Listener>>;
42
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
43
+ idToMarketParams: TypedContractMethod<[
44
+ marketId: BytesLike
45
+ ], [
46
+ MarketParamsStructOutput
47
+ ], "view">;
48
+ position: TypedContractMethod<[
49
+ marketId: BytesLike,
50
+ account: AddressLike
51
+ ], [
52
+ [
53
+ bigint,
54
+ bigint,
55
+ bigint
56
+ ] & {
57
+ supplyShares: bigint;
58
+ borrowShares: bigint;
59
+ collateral: bigint;
60
+ }
61
+ ], "view">;
62
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
63
+ getFunction(nameOrSignature: "idToMarketParams"): TypedContractMethod<[
64
+ marketId: BytesLike
65
+ ], [
66
+ MarketParamsStructOutput
67
+ ], "view">;
68
+ getFunction(nameOrSignature: "position"): TypedContractMethod<[
69
+ marketId: BytesLike,
70
+ account: AddressLike
71
+ ], [
72
+ [
73
+ bigint,
74
+ bigint,
75
+ bigint
76
+ ] & {
77
+ supplyShares: bigint;
78
+ borrowShares: bigint;
79
+ collateral: bigint;
80
+ }
81
+ ], "view">;
82
+ filters: {};
83
+ }
84
+ //# sourceMappingURL=IMorpho.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorpho.d.ts","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACT,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACpB,MAAM,cAAc,CAA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esModule", { value: true });
3
+ //# sourceMappingURL=IMorpho.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorpho.js","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.ts"],"names":[],"mappings":""}
@@ -0,0 +1,62 @@
1
+ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
+ export interface IMorphoChainlinkOracleV2Interface extends Interface {
4
+ getFunction(nameOrSignature: "BASE_FEED_1" | "BASE_FEED_2" | "BASE_VAULT" | "BASE_VAULT_CONVERSION_SAMPLE" | "QUOTE_FEED_1" | "QUOTE_FEED_2" | "QUOTE_VAULT" | "QUOTE_VAULT_CONVERSION_SAMPLE" | "SCALE_FACTOR" | "price"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "BASE_FEED_1", values?: undefined): string;
6
+ encodeFunctionData(functionFragment: "BASE_FEED_2", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "BASE_VAULT", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "BASE_VAULT_CONVERSION_SAMPLE", values?: undefined): string;
9
+ encodeFunctionData(functionFragment: "QUOTE_FEED_1", values?: undefined): string;
10
+ encodeFunctionData(functionFragment: "QUOTE_FEED_2", values?: undefined): string;
11
+ encodeFunctionData(functionFragment: "QUOTE_VAULT", values?: undefined): string;
12
+ encodeFunctionData(functionFragment: "QUOTE_VAULT_CONVERSION_SAMPLE", values?: undefined): string;
13
+ encodeFunctionData(functionFragment: "SCALE_FACTOR", values?: undefined): string;
14
+ encodeFunctionData(functionFragment: "price", values?: undefined): string;
15
+ decodeFunctionResult(functionFragment: "BASE_FEED_1", data: BytesLike): Result;
16
+ decodeFunctionResult(functionFragment: "BASE_FEED_2", data: BytesLike): Result;
17
+ decodeFunctionResult(functionFragment: "BASE_VAULT", data: BytesLike): Result;
18
+ decodeFunctionResult(functionFragment: "BASE_VAULT_CONVERSION_SAMPLE", data: BytesLike): Result;
19
+ decodeFunctionResult(functionFragment: "QUOTE_FEED_1", data: BytesLike): Result;
20
+ decodeFunctionResult(functionFragment: "QUOTE_FEED_2", data: BytesLike): Result;
21
+ decodeFunctionResult(functionFragment: "QUOTE_VAULT", data: BytesLike): Result;
22
+ decodeFunctionResult(functionFragment: "QUOTE_VAULT_CONVERSION_SAMPLE", data: BytesLike): Result;
23
+ decodeFunctionResult(functionFragment: "SCALE_FACTOR", data: BytesLike): Result;
24
+ decodeFunctionResult(functionFragment: "price", data: BytesLike): Result;
25
+ }
26
+ export interface IMorphoChainlinkOracleV2 extends BaseContract {
27
+ connect(runner?: ContractRunner | null): IMorphoChainlinkOracleV2;
28
+ waitForDeployment(): Promise<this>;
29
+ interface: IMorphoChainlinkOracleV2Interface;
30
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
31
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
32
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
33
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
34
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
35
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
36
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
37
+ listeners(eventName?: string): Promise<Array<Listener>>;
38
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
39
+ BASE_FEED_1: TypedContractMethod<[], [string], "view">;
40
+ BASE_FEED_2: TypedContractMethod<[], [string], "view">;
41
+ BASE_VAULT: TypedContractMethod<[], [string], "view">;
42
+ BASE_VAULT_CONVERSION_SAMPLE: TypedContractMethod<[], [string], "view">;
43
+ QUOTE_FEED_1: TypedContractMethod<[], [string], "view">;
44
+ QUOTE_FEED_2: TypedContractMethod<[], [string], "view">;
45
+ QUOTE_VAULT: TypedContractMethod<[], [string], "view">;
46
+ QUOTE_VAULT_CONVERSION_SAMPLE: TypedContractMethod<[], [string], "view">;
47
+ SCALE_FACTOR: TypedContractMethod<[], [bigint], "view">;
48
+ price: TypedContractMethod<[], [bigint], "view">;
49
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
50
+ getFunction(nameOrSignature: "BASE_FEED_1"): TypedContractMethod<[], [string], "view">;
51
+ getFunction(nameOrSignature: "BASE_FEED_2"): TypedContractMethod<[], [string], "view">;
52
+ getFunction(nameOrSignature: "BASE_VAULT"): TypedContractMethod<[], [string], "view">;
53
+ getFunction(nameOrSignature: "BASE_VAULT_CONVERSION_SAMPLE"): TypedContractMethod<[], [string], "view">;
54
+ getFunction(nameOrSignature: "QUOTE_FEED_1"): TypedContractMethod<[], [string], "view">;
55
+ getFunction(nameOrSignature: "QUOTE_FEED_2"): TypedContractMethod<[], [string], "view">;
56
+ getFunction(nameOrSignature: "QUOTE_VAULT"): TypedContractMethod<[], [string], "view">;
57
+ getFunction(nameOrSignature: "QUOTE_VAULT_CONVERSION_SAMPLE"): TypedContractMethod<[], [string], "view">;
58
+ getFunction(nameOrSignature: "SCALE_FACTOR"): TypedContractMethod<[], [bigint], "view">;
59
+ getFunction(nameOrSignature: "price"): TypedContractMethod<[], [bigint], "view">;
60
+ filters: {};
61
+ }
62
+ //# sourceMappingURL=IMorphoChainlinkOracleV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorphoChainlinkOracleV2.d.ts","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,cAAc,EACd,cAAc,EACd,QAAQ,EACT,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,iCAAkC,SAAQ,SAAS;IAClE,WAAW,CACT,eAAe,EACX,aAAa,GACb,aAAa,GACb,YAAY,GACZ,8BAA8B,GAC9B,cAAc,GACd,cAAc,GACd,aAAa,GACb,+BAA+B,GAC/B,cAAc,GACd,OAAO,GACV,gBAAgB,CAAC;IAEpB,kBAAkB,CAChB,gBAAgB,EAAE,aAAa,EAC/B,MAAM,CAAC,EAAE,SAAS,GACjB,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAAE,aAAa,EAC/B,MAAM,CAAC,EAAE,SAAS,GACjB,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAAE,YAAY,EAC9B,MAAM,CAAC,EAAE,SAAS,GACjB,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAAE,8BAA8B,EAChD,MAAM,CAAC,EAAE,SAAS,GACjB,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAAE,cAAc,EAChC,MAAM,CAAC,EAAE,SAAS,GACjB,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAAE,cAAc,EAChC,MAAM,CAAC,EAAE,SAAS,GACjB,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAAE,aAAa,EAC/B,MAAM,CAAC,EAAE,SAAS,GACjB,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAAE,+BAA+B,EACjD,MAAM,CAAC,E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=IMorphoChainlinkOracleV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorphoChainlinkOracleV2.js","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.ts"],"names":[],"mappings":""}
@@ -0,0 +1,135 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
+ export declare namespace MorphoMarketDataFetcher {
4
+ type TokenInfoStruct = {
5
+ tokenAddress: AddressLike;
6
+ name: string;
7
+ symbol: string;
8
+ decimals: BigNumberish;
9
+ userAllowance: BigNumberish;
10
+ };
11
+ type TokenInfoStructOutput = [
12
+ tokenAddress: string,
13
+ name: string,
14
+ symbol: string,
15
+ decimals: bigint,
16
+ userAllowance: bigint
17
+ ] & {
18
+ tokenAddress: string;
19
+ name: string;
20
+ symbol: string;
21
+ decimals: bigint;
22
+ userAllowance: bigint;
23
+ };
24
+ type OracleInfoStruct = {
25
+ oracleAddress: AddressLike;
26
+ baseFeed1: AddressLike;
27
+ baseFeed2: AddressLike;
28
+ baseVault: AddressLike;
29
+ baseVaultConversionSample: AddressLike;
30
+ quoteFeed1: AddressLike;
31
+ quoteFeed2: AddressLike;
32
+ quoteVault: AddressLike;
33
+ quoteVaultConversionSample: AddressLike;
34
+ scaleFactor: BigNumberish;
35
+ currentPrice: BigNumberish;
36
+ };
37
+ type OracleInfoStructOutput = [
38
+ oracleAddress: string,
39
+ baseFeed1: string,
40
+ baseFeed2: string,
41
+ baseVault: string,
42
+ baseVaultConversionSample: string,
43
+ quoteFeed1: string,
44
+ quoteFeed2: string,
45
+ quoteVault: string,
46
+ quoteVaultConversionSample: string,
47
+ scaleFactor: bigint,
48
+ currentPrice: bigint
49
+ ] & {
50
+ oracleAddress: string;
51
+ baseFeed1: string;
52
+ baseFeed2: string;
53
+ baseVault: string;
54
+ baseVaultConversionSample: string;
55
+ quoteFeed1: string;
56
+ quoteFeed2: string;
57
+ quoteVault: string;
58
+ quoteVaultConversionSample: string;
59
+ scaleFactor: bigint;
60
+ currentPrice: bigint;
61
+ };
62
+ type MarketDataStruct = {
63
+ loanToken: MorphoMarketDataFetcher.TokenInfoStruct;
64
+ collateralToken: MorphoMarketDataFetcher.TokenInfoStruct;
65
+ oracle: MorphoMarketDataFetcher.OracleInfoStruct;
66
+ deadAddressSupply: BigNumberish;
67
+ };
68
+ type MarketDataStructOutput = [
69
+ loanToken: MorphoMarketDataFetcher.TokenInfoStructOutput,
70
+ collateralToken: MorphoMarketDataFetcher.TokenInfoStructOutput,
71
+ oracle: MorphoMarketDataFetcher.OracleInfoStructOutput,
72
+ deadAddressSupply: bigint
73
+ ] & {
74
+ loanToken: MorphoMarketDataFetcher.TokenInfoStructOutput;
75
+ collateralToken: MorphoMarketDataFetcher.TokenInfoStructOutput;
76
+ oracle: MorphoMarketDataFetcher.OracleInfoStructOutput;
77
+ deadAddressSupply: bigint;
78
+ };
79
+ }
80
+ export interface MorphoMarketDataFetcherInterface extends Interface {
81
+ getFunction(nameOrSignature: "getMarketDetails" | "getMarketDetailsById" | "morphoAddress"): FunctionFragment;
82
+ encodeFunctionData(functionFragment: "getMarketDetails", values: [AddressLike, AddressLike, AddressLike, BytesLike, AddressLike]): string;
83
+ encodeFunctionData(functionFragment: "getMarketDetailsById", values: [BytesLike]): string;
84
+ encodeFunctionData(functionFragment: "morphoAddress", values?: undefined): string;
85
+ decodeFunctionResult(functionFragment: "getMarketDetails", data: BytesLike): Result;
86
+ decodeFunctionResult(functionFragment: "getMarketDetailsById", data: BytesLike): Result;
87
+ decodeFunctionResult(functionFragment: "morphoAddress", data: BytesLike): Result;
88
+ }
89
+ export interface MorphoMarketDataFetcher extends BaseContract {
90
+ connect(runner?: ContractRunner | null): MorphoMarketDataFetcher;
91
+ waitForDeployment(): Promise<this>;
92
+ interface: MorphoMarketDataFetcherInterface;
93
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
94
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
95
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
96
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
97
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
98
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
99
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
100
+ listeners(eventName?: string): Promise<Array<Listener>>;
101
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
102
+ getMarketDetails: TypedContractMethod<[
103
+ loanToken: AddressLike,
104
+ collateralToken: AddressLike,
105
+ oracle: AddressLike,
106
+ marketId: BytesLike,
107
+ connectedAddress: AddressLike
108
+ ], [
109
+ MorphoMarketDataFetcher.MarketDataStructOutput
110
+ ], "view">;
111
+ getMarketDetailsById: TypedContractMethod<[
112
+ marketId: BytesLike
113
+ ], [
114
+ MorphoMarketDataFetcher.MarketDataStructOutput
115
+ ], "view">;
116
+ morphoAddress: TypedContractMethod<[], [string], "view">;
117
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
118
+ getFunction(nameOrSignature: "getMarketDetails"): TypedContractMethod<[
119
+ loanToken: AddressLike,
120
+ collateralToken: AddressLike,
121
+ oracle: AddressLike,
122
+ marketId: BytesLike,
123
+ connectedAddress: AddressLike
124
+ ], [
125
+ MorphoMarketDataFetcher.MarketDataStructOutput
126
+ ], "view">;
127
+ getFunction(nameOrSignature: "getMarketDetailsById"): TypedContractMethod<[
128
+ marketId: BytesLike
129
+ ], [
130
+ MorphoMarketDataFetcher.MarketDataStructOutput
131
+ ], "view">;
132
+ getFunction(nameOrSignature: "morphoAddress"): TypedContractMethod<[], [string], "view">;
133
+ filters: {};
134
+ }
135
+ //# sourceMappingURL=MorphoMarketDataFetcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MorphoMarketDataFetcher.d.ts","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACT,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,KAAY,eAAe,GAAG;QAC5B,YAAY,EAAE,WAAW,CAAC;QAC1B,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,YAAY,CAAC;QACvB,aAAa,EAAE,YAAY,CAAC;KAC7B,CAAC;IAEF,KAAY,qBAAqB,GAAG;QAClC,YAAY,EAAE,MAAM;QACpB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,MAAM;KACtB,GAAG;QACF,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,C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;KAAC,EACrB;QAAC,uBAAuB,CAAC,sBAAsB;KAAC,EAChD,MAAM,CACP,CAAC;IACF,WAAW,CACT,eAAe,EAAE,eAAe,GAC/B,mBAAmB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAE7C,OAAO,EAAE,EAAE,CAAC;CACb"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MorphoMarketDataFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MorphoMarketDataFetcher.js","sourceRoot":"","sources":["../../../../typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type { IERC20Metadata } from "./IERC20Metadata";
2
+ export type { IMorpho } from "./IMorpho";
3
+ export type { IMorphoChainlinkOracleV2 } from "./IMorphoChainlinkOracleV2";
4
+ export type { MorphoMarketDataFetcher } from "./MorphoMarketDataFetcher";
5
+ //# sourceMappingURL=index.d.ts.map