morpho-contracts-helper 0.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.
Files changed (190) hide show
  1. package/contracts/external/morpho/interfaces/IIrm.sol +19 -0
  2. package/contracts/external/morpho/interfaces/IMorpho.sol +362 -0
  3. package/contracts/external/morpho/interfaces/IOracle.sol +15 -0
  4. package/contracts/external/morpho/libraries/ConstantsLib.sol +22 -0
  5. package/contracts/external/morpho/libraries/ErrorsLib.sol +80 -0
  6. package/contracts/external/morpho/libraries/EventsLib.sol +157 -0
  7. package/contracts/external/morpho/libraries/MarketParamsLib.sol +21 -0
  8. package/contracts/external/morpho/libraries/MathLib.sol +45 -0
  9. package/contracts/external/morpho/libraries/SafeTransferLib.sol +36 -0
  10. package/contracts/external/morpho/libraries/SharesMathLib.sol +45 -0
  11. package/contracts/external/morpho/libraries/UtilsLib.sol +38 -0
  12. package/contracts/external/morpho/libraries/periphery/MorphoBalancesLib.sol +115 -0
  13. package/contracts/external/morpho/libraries/periphery/MorphoLib.sol +63 -0
  14. package/contracts/external/morpho/libraries/periphery/MorphoStorageLib.sol +109 -0
  15. package/dist/hardhat.config.cjs +33 -0
  16. package/dist/hardhat.config.cjs.map +1 -0
  17. package/dist/hardhat.config.d.cts +5 -0
  18. package/dist/hardhat.config.d.cts.map +1 -0
  19. package/dist/src/index.d.ts +2 -0
  20. package/dist/src/index.d.ts.map +1 -0
  21. package/dist/src/index.js +18 -0
  22. package/dist/src/index.js.map +1 -0
  23. package/dist/typechain-types/@openzeppelin/contracts/index.d.ts +3 -0
  24. package/dist/typechain-types/@openzeppelin/contracts/index.d.ts.map +1 -0
  25. package/dist/typechain-types/@openzeppelin/contracts/index.js +3 -0
  26. package/dist/typechain-types/@openzeppelin/contracts/index.js.map +1 -0
  27. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +130 -0
  28. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts.map +1 -0
  29. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.js +3 -0
  30. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.js.map +1 -0
  31. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts +2 -0
  32. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -0
  33. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.js +3 -0
  34. package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
  35. package/dist/typechain-types/@openzeppelin/contracts/token/index.d.ts +3 -0
  36. package/dist/typechain-types/@openzeppelin/contracts/token/index.d.ts.map +1 -0
  37. package/dist/typechain-types/@openzeppelin/contracts/token/index.js +3 -0
  38. package/dist/typechain-types/@openzeppelin/contracts/token/index.js.map +1 -0
  39. package/dist/typechain-types/@openzeppelin/index.d.ts +3 -0
  40. package/dist/typechain-types/@openzeppelin/index.d.ts.map +1 -0
  41. package/dist/typechain-types/@openzeppelin/index.js +3 -0
  42. package/dist/typechain-types/@openzeppelin/index.js.map +1 -0
  43. package/dist/typechain-types/common.d.ts +51 -0
  44. package/dist/typechain-types/common.d.ts.map +1 -0
  45. package/dist/typechain-types/common.js +3 -0
  46. package/dist/typechain-types/common.js.map +1 -0
  47. package/dist/typechain-types/contracts/external/index.d.ts +3 -0
  48. package/dist/typechain-types/contracts/external/index.d.ts.map +1 -0
  49. package/dist/typechain-types/contracts/external/index.js +3 -0
  50. package/dist/typechain-types/contracts/external/index.js.map +1 -0
  51. package/dist/typechain-types/contracts/external/morpho/index.d.ts +5 -0
  52. package/dist/typechain-types/contracts/external/morpho/index.d.ts.map +1 -0
  53. package/dist/typechain-types/contracts/external/morpho/index.js +3 -0
  54. package/dist/typechain-types/contracts/external/morpho/index.js.map +1 -0
  55. package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.d.ts +93 -0
  56. package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.d.ts.map +1 -0
  57. package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.js +3 -0
  58. package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.js.map +1 -0
  59. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.d.ts +469 -0
  60. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.d.ts.map +1 -0
  61. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.js +3 -0
  62. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.js.map +1 -0
  63. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.d.ts +406 -0
  64. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.d.ts.map +1 -0
  65. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.js +3 -0
  66. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.js.map +1 -0
  67. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.d.ts +512 -0
  68. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.d.ts.map +1 -0
  69. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.js +3 -0
  70. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.js.map +1 -0
  71. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts +4 -0
  72. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts.map +1 -0
  73. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.js +3 -0
  74. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.js.map +1 -0
  75. package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.d.ts +26 -0
  76. package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.d.ts.map +1 -0
  77. package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.js +3 -0
  78. package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.js.map +1 -0
  79. package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts +5 -0
  80. package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts.map +1 -0
  81. package/dist/typechain-types/contracts/external/morpho/interfaces/index.js +3 -0
  82. package/dist/typechain-types/contracts/external/morpho/interfaces/index.js.map +1 -0
  83. package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.d.ts +452 -0
  84. package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.d.ts.map +1 -0
  85. package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.js +3 -0
  86. package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.js.map +1 -0
  87. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.d.ts +52 -0
  88. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.d.ts.map +1 -0
  89. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.js +3 -0
  90. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.js.map +1 -0
  91. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts +2 -0
  92. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts.map +1 -0
  93. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js +3 -0
  94. package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js.map +1 -0
  95. package/dist/typechain-types/contracts/external/morpho/libraries/index.d.ts +4 -0
  96. package/dist/typechain-types/contracts/external/morpho/libraries/index.d.ts.map +1 -0
  97. package/dist/typechain-types/contracts/external/morpho/libraries/index.js +3 -0
  98. package/dist/typechain-types/contracts/external/morpho/libraries/index.js.map +1 -0
  99. package/dist/typechain-types/contracts/index.d.ts +3 -0
  100. package/dist/typechain-types/contracts/index.d.ts.map +1 -0
  101. package/dist/typechain-types/contracts/index.js +3 -0
  102. package/dist/typechain-types/contracts/index.js.map +1 -0
  103. package/dist/typechain-types/factories/@openzeppelin/contracts/index.d.ts +2 -0
  104. package/dist/typechain-types/factories/@openzeppelin/contracts/index.d.ts.map +1 -0
  105. package/dist/typechain-types/factories/@openzeppelin/contracts/index.js +42 -0
  106. package/dist/typechain-types/factories/@openzeppelin/contracts/index.js.map +1 -0
  107. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +148 -0
  108. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts.map +1 -0
  109. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +204 -0
  110. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js.map +1 -0
  111. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +2 -0
  112. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -0
  113. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.js +10 -0
  114. package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
  115. package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.d.ts +2 -0
  116. package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.d.ts.map +1 -0
  117. package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.js +42 -0
  118. package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.js.map +1 -0
  119. package/dist/typechain-types/factories/@openzeppelin/index.d.ts +2 -0
  120. package/dist/typechain-types/factories/@openzeppelin/index.d.ts.map +1 -0
  121. package/dist/typechain-types/factories/@openzeppelin/index.js +42 -0
  122. package/dist/typechain-types/factories/@openzeppelin/index.js.map +1 -0
  123. package/dist/typechain-types/factories/contracts/external/index.d.ts +2 -0
  124. package/dist/typechain-types/factories/contracts/external/index.d.ts.map +1 -0
  125. package/dist/typechain-types/factories/contracts/external/index.js +42 -0
  126. package/dist/typechain-types/factories/contracts/external/index.js.map +1 -0
  127. package/dist/typechain-types/factories/contracts/external/morpho/index.d.ts +3 -0
  128. package/dist/typechain-types/factories/contracts/external/morpho/index.d.ts.map +1 -0
  129. package/dist/typechain-types/factories/contracts/external/morpho/index.js +43 -0
  130. package/dist/typechain-types/factories/contracts/external/morpho/index.js.map +1 -0
  131. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.d.ts +136 -0
  132. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.d.ts.map +1 -0
  133. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.js +187 -0
  134. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.js.map +1 -0
  135. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.d.ts +690 -0
  136. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.d.ts.map +1 -0
  137. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.js +905 -0
  138. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.js.map +1 -0
  139. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.d.ts +780 -0
  140. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.d.ts.map +1 -0
  141. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.js +1022 -0
  142. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.js.map +1 -0
  143. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.d.ts +795 -0
  144. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.d.ts.map +1 -0
  145. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.js +1043 -0
  146. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.js.map +1 -0
  147. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts +4 -0
  148. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts.map +1 -0
  149. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.js +14 -0
  150. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.js.map +1 -0
  151. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.d.ts +18 -0
  152. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.d.ts.map +1 -0
  153. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.js +34 -0
  154. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.js.map +1 -0
  155. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts +4 -0
  156. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts.map +1 -0
  157. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js +46 -0
  158. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js.map +1 -0
  159. package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.d.ts +434 -0
  160. package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.d.ts.map +1 -0
  161. package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.js +553 -0
  162. package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.js.map +1 -0
  163. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.d.ts +48 -0
  164. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.d.ts.map +1 -0
  165. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.js +74 -0
  166. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.js.map +1 -0
  167. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts +2 -0
  168. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts.map +1 -0
  169. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js +10 -0
  170. package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js.map +1 -0
  171. package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.d.ts +3 -0
  172. package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.d.ts.map +1 -0
  173. package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.js +44 -0
  174. package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.js.map +1 -0
  175. package/dist/typechain-types/factories/contracts/index.d.ts +2 -0
  176. package/dist/typechain-types/factories/contracts/index.d.ts.map +1 -0
  177. package/dist/typechain-types/factories/contracts/index.js +42 -0
  178. package/dist/typechain-types/factories/contracts/index.js.map +1 -0
  179. package/dist/typechain-types/factories/index.d.ts +3 -0
  180. package/dist/typechain-types/factories/index.d.ts.map +1 -0
  181. package/dist/typechain-types/factories/index.js +43 -0
  182. package/dist/typechain-types/factories/index.js.map +1 -0
  183. package/dist/typechain-types/index.d.ts +22 -0
  184. package/dist/typechain-types/index.d.ts.map +1 -0
  185. package/dist/typechain-types/index.js +54 -0
  186. package/dist/typechain-types/index.js.map +1 -0
  187. package/hardhat.config.cts +33 -0
  188. package/package.json +25 -0
  189. package/src/index.ts +1 -0
  190. package/tsconfig.json +33 -0
@@ -0,0 +1,1022 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ // @ts-nocheck
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.IMorphoStaticTyping__factory = void 0;
8
+ const ethers_1 = require("ethers");
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "DOMAIN_SEPARATOR",
13
+ outputs: [
14
+ {
15
+ internalType: "bytes32",
16
+ name: "",
17
+ type: "bytes32",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ {
24
+ inputs: [
25
+ {
26
+ components: [
27
+ {
28
+ internalType: "address",
29
+ name: "loanToken",
30
+ type: "address",
31
+ },
32
+ {
33
+ internalType: "address",
34
+ name: "collateralToken",
35
+ type: "address",
36
+ },
37
+ {
38
+ internalType: "address",
39
+ name: "oracle",
40
+ type: "address",
41
+ },
42
+ {
43
+ internalType: "address",
44
+ name: "irm",
45
+ type: "address",
46
+ },
47
+ {
48
+ internalType: "uint256",
49
+ name: "lltv",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ internalType: "struct MarketParams",
54
+ name: "marketParams",
55
+ type: "tuple",
56
+ },
57
+ ],
58
+ name: "accrueInterest",
59
+ outputs: [],
60
+ stateMutability: "nonpayable",
61
+ type: "function",
62
+ },
63
+ {
64
+ inputs: [
65
+ {
66
+ components: [
67
+ {
68
+ internalType: "address",
69
+ name: "loanToken",
70
+ type: "address",
71
+ },
72
+ {
73
+ internalType: "address",
74
+ name: "collateralToken",
75
+ type: "address",
76
+ },
77
+ {
78
+ internalType: "address",
79
+ name: "oracle",
80
+ type: "address",
81
+ },
82
+ {
83
+ internalType: "address",
84
+ name: "irm",
85
+ type: "address",
86
+ },
87
+ {
88
+ internalType: "uint256",
89
+ name: "lltv",
90
+ type: "uint256",
91
+ },
92
+ ],
93
+ internalType: "struct MarketParams",
94
+ name: "marketParams",
95
+ type: "tuple",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "assets",
100
+ type: "uint256",
101
+ },
102
+ {
103
+ internalType: "uint256",
104
+ name: "shares",
105
+ type: "uint256",
106
+ },
107
+ {
108
+ internalType: "address",
109
+ name: "onBehalf",
110
+ type: "address",
111
+ },
112
+ {
113
+ internalType: "address",
114
+ name: "receiver",
115
+ type: "address",
116
+ },
117
+ ],
118
+ name: "borrow",
119
+ outputs: [
120
+ {
121
+ internalType: "uint256",
122
+ name: "assetsBorrowed",
123
+ type: "uint256",
124
+ },
125
+ {
126
+ internalType: "uint256",
127
+ name: "sharesBorrowed",
128
+ type: "uint256",
129
+ },
130
+ ],
131
+ stateMutability: "nonpayable",
132
+ type: "function",
133
+ },
134
+ {
135
+ inputs: [
136
+ {
137
+ components: [
138
+ {
139
+ internalType: "address",
140
+ name: "loanToken",
141
+ type: "address",
142
+ },
143
+ {
144
+ internalType: "address",
145
+ name: "collateralToken",
146
+ type: "address",
147
+ },
148
+ {
149
+ internalType: "address",
150
+ name: "oracle",
151
+ type: "address",
152
+ },
153
+ {
154
+ internalType: "address",
155
+ name: "irm",
156
+ type: "address",
157
+ },
158
+ {
159
+ internalType: "uint256",
160
+ name: "lltv",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ internalType: "struct MarketParams",
165
+ name: "marketParams",
166
+ type: "tuple",
167
+ },
168
+ ],
169
+ name: "createMarket",
170
+ outputs: [],
171
+ stateMutability: "nonpayable",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ {
177
+ internalType: "address",
178
+ name: "irm",
179
+ type: "address",
180
+ },
181
+ ],
182
+ name: "enableIrm",
183
+ outputs: [],
184
+ stateMutability: "nonpayable",
185
+ type: "function",
186
+ },
187
+ {
188
+ inputs: [
189
+ {
190
+ internalType: "uint256",
191
+ name: "lltv",
192
+ type: "uint256",
193
+ },
194
+ ],
195
+ name: "enableLltv",
196
+ outputs: [],
197
+ stateMutability: "nonpayable",
198
+ type: "function",
199
+ },
200
+ {
201
+ inputs: [
202
+ {
203
+ internalType: "bytes32[]",
204
+ name: "slots",
205
+ type: "bytes32[]",
206
+ },
207
+ ],
208
+ name: "extSloads",
209
+ outputs: [
210
+ {
211
+ internalType: "bytes32[]",
212
+ name: "",
213
+ type: "bytes32[]",
214
+ },
215
+ ],
216
+ stateMutability: "view",
217
+ type: "function",
218
+ },
219
+ {
220
+ inputs: [],
221
+ name: "feeRecipient",
222
+ outputs: [
223
+ {
224
+ internalType: "address",
225
+ name: "",
226
+ type: "address",
227
+ },
228
+ ],
229
+ stateMutability: "view",
230
+ type: "function",
231
+ },
232
+ {
233
+ inputs: [
234
+ {
235
+ internalType: "address",
236
+ name: "token",
237
+ type: "address",
238
+ },
239
+ {
240
+ internalType: "uint256",
241
+ name: "assets",
242
+ type: "uint256",
243
+ },
244
+ {
245
+ internalType: "bytes",
246
+ name: "data",
247
+ type: "bytes",
248
+ },
249
+ ],
250
+ name: "flashLoan",
251
+ outputs: [],
252
+ stateMutability: "nonpayable",
253
+ type: "function",
254
+ },
255
+ {
256
+ inputs: [
257
+ {
258
+ internalType: "Id",
259
+ name: "id",
260
+ type: "bytes32",
261
+ },
262
+ ],
263
+ name: "idToMarketParams",
264
+ outputs: [
265
+ {
266
+ internalType: "address",
267
+ name: "loanToken",
268
+ type: "address",
269
+ },
270
+ {
271
+ internalType: "address",
272
+ name: "collateralToken",
273
+ type: "address",
274
+ },
275
+ {
276
+ internalType: "address",
277
+ name: "oracle",
278
+ type: "address",
279
+ },
280
+ {
281
+ internalType: "address",
282
+ name: "irm",
283
+ type: "address",
284
+ },
285
+ {
286
+ internalType: "uint256",
287
+ name: "lltv",
288
+ type: "uint256",
289
+ },
290
+ ],
291
+ stateMutability: "view",
292
+ type: "function",
293
+ },
294
+ {
295
+ inputs: [
296
+ {
297
+ internalType: "address",
298
+ name: "authorizer",
299
+ type: "address",
300
+ },
301
+ {
302
+ internalType: "address",
303
+ name: "authorized",
304
+ type: "address",
305
+ },
306
+ ],
307
+ name: "isAuthorized",
308
+ outputs: [
309
+ {
310
+ internalType: "bool",
311
+ name: "",
312
+ type: "bool",
313
+ },
314
+ ],
315
+ stateMutability: "view",
316
+ type: "function",
317
+ },
318
+ {
319
+ inputs: [
320
+ {
321
+ internalType: "address",
322
+ name: "irm",
323
+ type: "address",
324
+ },
325
+ ],
326
+ name: "isIrmEnabled",
327
+ outputs: [
328
+ {
329
+ internalType: "bool",
330
+ name: "",
331
+ type: "bool",
332
+ },
333
+ ],
334
+ stateMutability: "view",
335
+ type: "function",
336
+ },
337
+ {
338
+ inputs: [
339
+ {
340
+ internalType: "uint256",
341
+ name: "lltv",
342
+ type: "uint256",
343
+ },
344
+ ],
345
+ name: "isLltvEnabled",
346
+ outputs: [
347
+ {
348
+ internalType: "bool",
349
+ name: "",
350
+ type: "bool",
351
+ },
352
+ ],
353
+ stateMutability: "view",
354
+ type: "function",
355
+ },
356
+ {
357
+ inputs: [
358
+ {
359
+ components: [
360
+ {
361
+ internalType: "address",
362
+ name: "loanToken",
363
+ type: "address",
364
+ },
365
+ {
366
+ internalType: "address",
367
+ name: "collateralToken",
368
+ type: "address",
369
+ },
370
+ {
371
+ internalType: "address",
372
+ name: "oracle",
373
+ type: "address",
374
+ },
375
+ {
376
+ internalType: "address",
377
+ name: "irm",
378
+ type: "address",
379
+ },
380
+ {
381
+ internalType: "uint256",
382
+ name: "lltv",
383
+ type: "uint256",
384
+ },
385
+ ],
386
+ internalType: "struct MarketParams",
387
+ name: "marketParams",
388
+ type: "tuple",
389
+ },
390
+ {
391
+ internalType: "address",
392
+ name: "borrower",
393
+ type: "address",
394
+ },
395
+ {
396
+ internalType: "uint256",
397
+ name: "seizedAssets",
398
+ type: "uint256",
399
+ },
400
+ {
401
+ internalType: "uint256",
402
+ name: "repaidShares",
403
+ type: "uint256",
404
+ },
405
+ {
406
+ internalType: "bytes",
407
+ name: "data",
408
+ type: "bytes",
409
+ },
410
+ ],
411
+ name: "liquidate",
412
+ outputs: [
413
+ {
414
+ internalType: "uint256",
415
+ name: "",
416
+ type: "uint256",
417
+ },
418
+ {
419
+ internalType: "uint256",
420
+ name: "",
421
+ type: "uint256",
422
+ },
423
+ ],
424
+ stateMutability: "nonpayable",
425
+ type: "function",
426
+ },
427
+ {
428
+ inputs: [
429
+ {
430
+ internalType: "Id",
431
+ name: "id",
432
+ type: "bytes32",
433
+ },
434
+ ],
435
+ name: "market",
436
+ outputs: [
437
+ {
438
+ internalType: "uint128",
439
+ name: "totalSupplyAssets",
440
+ type: "uint128",
441
+ },
442
+ {
443
+ internalType: "uint128",
444
+ name: "totalSupplyShares",
445
+ type: "uint128",
446
+ },
447
+ {
448
+ internalType: "uint128",
449
+ name: "totalBorrowAssets",
450
+ type: "uint128",
451
+ },
452
+ {
453
+ internalType: "uint128",
454
+ name: "totalBorrowShares",
455
+ type: "uint128",
456
+ },
457
+ {
458
+ internalType: "uint128",
459
+ name: "lastUpdate",
460
+ type: "uint128",
461
+ },
462
+ {
463
+ internalType: "uint128",
464
+ name: "fee",
465
+ type: "uint128",
466
+ },
467
+ ],
468
+ stateMutability: "view",
469
+ type: "function",
470
+ },
471
+ {
472
+ inputs: [
473
+ {
474
+ internalType: "address",
475
+ name: "authorizer",
476
+ type: "address",
477
+ },
478
+ ],
479
+ name: "nonce",
480
+ outputs: [
481
+ {
482
+ internalType: "uint256",
483
+ name: "",
484
+ type: "uint256",
485
+ },
486
+ ],
487
+ stateMutability: "view",
488
+ type: "function",
489
+ },
490
+ {
491
+ inputs: [],
492
+ name: "owner",
493
+ outputs: [
494
+ {
495
+ internalType: "address",
496
+ name: "",
497
+ type: "address",
498
+ },
499
+ ],
500
+ stateMutability: "view",
501
+ type: "function",
502
+ },
503
+ {
504
+ inputs: [
505
+ {
506
+ internalType: "Id",
507
+ name: "id",
508
+ type: "bytes32",
509
+ },
510
+ {
511
+ internalType: "address",
512
+ name: "user",
513
+ type: "address",
514
+ },
515
+ ],
516
+ name: "position",
517
+ outputs: [
518
+ {
519
+ internalType: "uint256",
520
+ name: "supplyShares",
521
+ type: "uint256",
522
+ },
523
+ {
524
+ internalType: "uint128",
525
+ name: "borrowShares",
526
+ type: "uint128",
527
+ },
528
+ {
529
+ internalType: "uint128",
530
+ name: "collateral",
531
+ type: "uint128",
532
+ },
533
+ ],
534
+ stateMutability: "view",
535
+ type: "function",
536
+ },
537
+ {
538
+ inputs: [
539
+ {
540
+ components: [
541
+ {
542
+ internalType: "address",
543
+ name: "loanToken",
544
+ type: "address",
545
+ },
546
+ {
547
+ internalType: "address",
548
+ name: "collateralToken",
549
+ type: "address",
550
+ },
551
+ {
552
+ internalType: "address",
553
+ name: "oracle",
554
+ type: "address",
555
+ },
556
+ {
557
+ internalType: "address",
558
+ name: "irm",
559
+ type: "address",
560
+ },
561
+ {
562
+ internalType: "uint256",
563
+ name: "lltv",
564
+ type: "uint256",
565
+ },
566
+ ],
567
+ internalType: "struct MarketParams",
568
+ name: "marketParams",
569
+ type: "tuple",
570
+ },
571
+ {
572
+ internalType: "uint256",
573
+ name: "assets",
574
+ type: "uint256",
575
+ },
576
+ {
577
+ internalType: "uint256",
578
+ name: "shares",
579
+ type: "uint256",
580
+ },
581
+ {
582
+ internalType: "address",
583
+ name: "onBehalf",
584
+ type: "address",
585
+ },
586
+ {
587
+ internalType: "bytes",
588
+ name: "data",
589
+ type: "bytes",
590
+ },
591
+ ],
592
+ name: "repay",
593
+ outputs: [
594
+ {
595
+ internalType: "uint256",
596
+ name: "assetsRepaid",
597
+ type: "uint256",
598
+ },
599
+ {
600
+ internalType: "uint256",
601
+ name: "sharesRepaid",
602
+ type: "uint256",
603
+ },
604
+ ],
605
+ stateMutability: "nonpayable",
606
+ type: "function",
607
+ },
608
+ {
609
+ inputs: [
610
+ {
611
+ internalType: "address",
612
+ name: "authorized",
613
+ type: "address",
614
+ },
615
+ {
616
+ internalType: "bool",
617
+ name: "newIsAuthorized",
618
+ type: "bool",
619
+ },
620
+ ],
621
+ name: "setAuthorization",
622
+ outputs: [],
623
+ stateMutability: "nonpayable",
624
+ type: "function",
625
+ },
626
+ {
627
+ inputs: [
628
+ {
629
+ components: [
630
+ {
631
+ internalType: "address",
632
+ name: "authorizer",
633
+ type: "address",
634
+ },
635
+ {
636
+ internalType: "address",
637
+ name: "authorized",
638
+ type: "address",
639
+ },
640
+ {
641
+ internalType: "bool",
642
+ name: "isAuthorized",
643
+ type: "bool",
644
+ },
645
+ {
646
+ internalType: "uint256",
647
+ name: "nonce",
648
+ type: "uint256",
649
+ },
650
+ {
651
+ internalType: "uint256",
652
+ name: "deadline",
653
+ type: "uint256",
654
+ },
655
+ ],
656
+ internalType: "struct Authorization",
657
+ name: "authorization",
658
+ type: "tuple",
659
+ },
660
+ {
661
+ components: [
662
+ {
663
+ internalType: "uint8",
664
+ name: "v",
665
+ type: "uint8",
666
+ },
667
+ {
668
+ internalType: "bytes32",
669
+ name: "r",
670
+ type: "bytes32",
671
+ },
672
+ {
673
+ internalType: "bytes32",
674
+ name: "s",
675
+ type: "bytes32",
676
+ },
677
+ ],
678
+ internalType: "struct Signature",
679
+ name: "signature",
680
+ type: "tuple",
681
+ },
682
+ ],
683
+ name: "setAuthorizationWithSig",
684
+ outputs: [],
685
+ stateMutability: "nonpayable",
686
+ type: "function",
687
+ },
688
+ {
689
+ inputs: [
690
+ {
691
+ components: [
692
+ {
693
+ internalType: "address",
694
+ name: "loanToken",
695
+ type: "address",
696
+ },
697
+ {
698
+ internalType: "address",
699
+ name: "collateralToken",
700
+ type: "address",
701
+ },
702
+ {
703
+ internalType: "address",
704
+ name: "oracle",
705
+ type: "address",
706
+ },
707
+ {
708
+ internalType: "address",
709
+ name: "irm",
710
+ type: "address",
711
+ },
712
+ {
713
+ internalType: "uint256",
714
+ name: "lltv",
715
+ type: "uint256",
716
+ },
717
+ ],
718
+ internalType: "struct MarketParams",
719
+ name: "marketParams",
720
+ type: "tuple",
721
+ },
722
+ {
723
+ internalType: "uint256",
724
+ name: "newFee",
725
+ type: "uint256",
726
+ },
727
+ ],
728
+ name: "setFee",
729
+ outputs: [],
730
+ stateMutability: "nonpayable",
731
+ type: "function",
732
+ },
733
+ {
734
+ inputs: [
735
+ {
736
+ internalType: "address",
737
+ name: "newFeeRecipient",
738
+ type: "address",
739
+ },
740
+ ],
741
+ name: "setFeeRecipient",
742
+ outputs: [],
743
+ stateMutability: "nonpayable",
744
+ type: "function",
745
+ },
746
+ {
747
+ inputs: [
748
+ {
749
+ internalType: "address",
750
+ name: "newOwner",
751
+ type: "address",
752
+ },
753
+ ],
754
+ name: "setOwner",
755
+ outputs: [],
756
+ stateMutability: "nonpayable",
757
+ type: "function",
758
+ },
759
+ {
760
+ inputs: [
761
+ {
762
+ components: [
763
+ {
764
+ internalType: "address",
765
+ name: "loanToken",
766
+ type: "address",
767
+ },
768
+ {
769
+ internalType: "address",
770
+ name: "collateralToken",
771
+ type: "address",
772
+ },
773
+ {
774
+ internalType: "address",
775
+ name: "oracle",
776
+ type: "address",
777
+ },
778
+ {
779
+ internalType: "address",
780
+ name: "irm",
781
+ type: "address",
782
+ },
783
+ {
784
+ internalType: "uint256",
785
+ name: "lltv",
786
+ type: "uint256",
787
+ },
788
+ ],
789
+ internalType: "struct MarketParams",
790
+ name: "marketParams",
791
+ type: "tuple",
792
+ },
793
+ {
794
+ internalType: "uint256",
795
+ name: "assets",
796
+ type: "uint256",
797
+ },
798
+ {
799
+ internalType: "uint256",
800
+ name: "shares",
801
+ type: "uint256",
802
+ },
803
+ {
804
+ internalType: "address",
805
+ name: "onBehalf",
806
+ type: "address",
807
+ },
808
+ {
809
+ internalType: "bytes",
810
+ name: "data",
811
+ type: "bytes",
812
+ },
813
+ ],
814
+ name: "supply",
815
+ outputs: [
816
+ {
817
+ internalType: "uint256",
818
+ name: "assetsSupplied",
819
+ type: "uint256",
820
+ },
821
+ {
822
+ internalType: "uint256",
823
+ name: "sharesSupplied",
824
+ type: "uint256",
825
+ },
826
+ ],
827
+ stateMutability: "nonpayable",
828
+ type: "function",
829
+ },
830
+ {
831
+ inputs: [
832
+ {
833
+ components: [
834
+ {
835
+ internalType: "address",
836
+ name: "loanToken",
837
+ type: "address",
838
+ },
839
+ {
840
+ internalType: "address",
841
+ name: "collateralToken",
842
+ type: "address",
843
+ },
844
+ {
845
+ internalType: "address",
846
+ name: "oracle",
847
+ type: "address",
848
+ },
849
+ {
850
+ internalType: "address",
851
+ name: "irm",
852
+ type: "address",
853
+ },
854
+ {
855
+ internalType: "uint256",
856
+ name: "lltv",
857
+ type: "uint256",
858
+ },
859
+ ],
860
+ internalType: "struct MarketParams",
861
+ name: "marketParams",
862
+ type: "tuple",
863
+ },
864
+ {
865
+ internalType: "uint256",
866
+ name: "assets",
867
+ type: "uint256",
868
+ },
869
+ {
870
+ internalType: "address",
871
+ name: "onBehalf",
872
+ type: "address",
873
+ },
874
+ {
875
+ internalType: "bytes",
876
+ name: "data",
877
+ type: "bytes",
878
+ },
879
+ ],
880
+ name: "supplyCollateral",
881
+ outputs: [],
882
+ stateMutability: "nonpayable",
883
+ type: "function",
884
+ },
885
+ {
886
+ inputs: [
887
+ {
888
+ components: [
889
+ {
890
+ internalType: "address",
891
+ name: "loanToken",
892
+ type: "address",
893
+ },
894
+ {
895
+ internalType: "address",
896
+ name: "collateralToken",
897
+ type: "address",
898
+ },
899
+ {
900
+ internalType: "address",
901
+ name: "oracle",
902
+ type: "address",
903
+ },
904
+ {
905
+ internalType: "address",
906
+ name: "irm",
907
+ type: "address",
908
+ },
909
+ {
910
+ internalType: "uint256",
911
+ name: "lltv",
912
+ type: "uint256",
913
+ },
914
+ ],
915
+ internalType: "struct MarketParams",
916
+ name: "marketParams",
917
+ type: "tuple",
918
+ },
919
+ {
920
+ internalType: "uint256",
921
+ name: "assets",
922
+ type: "uint256",
923
+ },
924
+ {
925
+ internalType: "uint256",
926
+ name: "shares",
927
+ type: "uint256",
928
+ },
929
+ {
930
+ internalType: "address",
931
+ name: "onBehalf",
932
+ type: "address",
933
+ },
934
+ {
935
+ internalType: "address",
936
+ name: "receiver",
937
+ type: "address",
938
+ },
939
+ ],
940
+ name: "withdraw",
941
+ outputs: [
942
+ {
943
+ internalType: "uint256",
944
+ name: "assetsWithdrawn",
945
+ type: "uint256",
946
+ },
947
+ {
948
+ internalType: "uint256",
949
+ name: "sharesWithdrawn",
950
+ type: "uint256",
951
+ },
952
+ ],
953
+ stateMutability: "nonpayable",
954
+ type: "function",
955
+ },
956
+ {
957
+ inputs: [
958
+ {
959
+ components: [
960
+ {
961
+ internalType: "address",
962
+ name: "loanToken",
963
+ type: "address",
964
+ },
965
+ {
966
+ internalType: "address",
967
+ name: "collateralToken",
968
+ type: "address",
969
+ },
970
+ {
971
+ internalType: "address",
972
+ name: "oracle",
973
+ type: "address",
974
+ },
975
+ {
976
+ internalType: "address",
977
+ name: "irm",
978
+ type: "address",
979
+ },
980
+ {
981
+ internalType: "uint256",
982
+ name: "lltv",
983
+ type: "uint256",
984
+ },
985
+ ],
986
+ internalType: "struct MarketParams",
987
+ name: "marketParams",
988
+ type: "tuple",
989
+ },
990
+ {
991
+ internalType: "uint256",
992
+ name: "assets",
993
+ type: "uint256",
994
+ },
995
+ {
996
+ internalType: "address",
997
+ name: "onBehalf",
998
+ type: "address",
999
+ },
1000
+ {
1001
+ internalType: "address",
1002
+ name: "receiver",
1003
+ type: "address",
1004
+ },
1005
+ ],
1006
+ name: "withdrawCollateral",
1007
+ outputs: [],
1008
+ stateMutability: "nonpayable",
1009
+ type: "function",
1010
+ },
1011
+ ];
1012
+ class IMorphoStaticTyping__factory {
1013
+ static abi = _abi;
1014
+ static createInterface() {
1015
+ return new ethers_1.Interface(_abi);
1016
+ }
1017
+ static connect(address, runner) {
1018
+ return new ethers_1.Contract(address, _abi, runner);
1019
+ }
1020
+ }
1021
+ exports.IMorphoStaticTyping__factory = IMorphoStaticTyping__factory;
1022
+ //# sourceMappingURL=IMorphoStaticTyping__factory.js.map