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.
- package/contracts/MorphoMarketDataFetcher.sol +129 -0
- package/contracts/external/morpho/interfaces/IAdapter.sol +19 -0
- package/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.sol +66 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.d.ts +48 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.d.ts.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.js +3 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.js.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.d.ts +84 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.d.ts.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.js +3 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.js.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.d.ts +62 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.d.ts.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.js +3 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.js.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.d.ts +135 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.d.ts.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.js +3 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.js.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.d.ts +5 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.d.ts +74 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.d.ts +427 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.d.ts → IMorphoMarketV1AdapterV2Factory.d.ts} +1 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts +3 -2
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
- package/dist/typechain-types/contracts/index.d.ts +2 -0
- package/dist/typechain-types/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.d.ts +56 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.js +84 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.d.ts +108 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.js +151 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.d.ts +69 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.js +101 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.d.ts +293 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.js +389 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.d.ts +5 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.js +16 -0
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.d.ts +78 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js +112 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.d.ts → IMorphoMarketV1AdapterV2Factory__factory.d.ts} +1 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.d.ts +619 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.js +812 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts +3 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js +7 -2
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js.map +1 -1
- package/dist/typechain-types/factories/contracts/index.d.ts +1 -0
- package/dist/typechain-types/factories/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/index.js +2 -1
- package/dist/typechain-types/factories/contracts/index.js.map +1 -1
- package/dist/typechain-types/index.d.ts +8 -2
- package/dist/typechain-types/index.d.ts.map +1 -1
- package/dist/typechain-types/index.js +9 -2
- package/dist/typechain-types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.d.ts.map +0 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.js.map +0 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts +0 -2
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts.map +0 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.js.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts +0 -2
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js +0 -10
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js.map +0 -1
- /package/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol → IMorphoMarketV1AdapterV2Factory.sol} +0 -0
- /package/dist/typechain-types/contracts/{external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol → MorphoMarketDataFetcher.sol}/index.js +0 -0
- /package/dist/typechain-types/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.js → IMorphoMarketV1AdapterV2Factory.js} +0 -0
- /package/dist/typechain-types/factories/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.js → IMorphoMarketV1AdapterV2Factory__factory.js} +0 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MorphoMarketDataFetcher__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const ethers_1 = require("ethers");
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "address",
|
|
14
|
+
name: "_morphoAddress",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
stateMutability: "nonpayable",
|
|
19
|
+
type: "constructor",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
inputs: [
|
|
23
|
+
{
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "loanToken",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
internalType: "address",
|
|
30
|
+
name: "collateralToken",
|
|
31
|
+
type: "address",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
internalType: "address",
|
|
35
|
+
name: "oracle",
|
|
36
|
+
type: "address",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
internalType: "bytes32",
|
|
40
|
+
name: "marketId",
|
|
41
|
+
type: "bytes32",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "connectedAddress",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
name: "getMarketDetails",
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
components: [
|
|
53
|
+
{
|
|
54
|
+
components: [
|
|
55
|
+
{
|
|
56
|
+
internalType: "address",
|
|
57
|
+
name: "tokenAddress",
|
|
58
|
+
type: "address",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "string",
|
|
62
|
+
name: "name",
|
|
63
|
+
type: "string",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "string",
|
|
67
|
+
name: "symbol",
|
|
68
|
+
type: "string",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
internalType: "uint8",
|
|
72
|
+
name: "decimals",
|
|
73
|
+
type: "uint8",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "userAllowance",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
internalType: "struct MorphoMarketDataFetcher.TokenInfo",
|
|
82
|
+
name: "loanToken",
|
|
83
|
+
type: "tuple",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
components: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "address",
|
|
89
|
+
name: "tokenAddress",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "string",
|
|
94
|
+
name: "name",
|
|
95
|
+
type: "string",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
internalType: "string",
|
|
99
|
+
name: "symbol",
|
|
100
|
+
type: "string",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "uint8",
|
|
104
|
+
name: "decimals",
|
|
105
|
+
type: "uint8",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "userAllowance",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
internalType: "struct MorphoMarketDataFetcher.TokenInfo",
|
|
114
|
+
name: "collateralToken",
|
|
115
|
+
type: "tuple",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
components: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "oracleAddress",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "address",
|
|
126
|
+
name: "baseFeed1",
|
|
127
|
+
type: "address",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
internalType: "address",
|
|
131
|
+
name: "baseFeed2",
|
|
132
|
+
type: "address",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
internalType: "address",
|
|
136
|
+
name: "baseVault",
|
|
137
|
+
type: "address",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
internalType: "address",
|
|
141
|
+
name: "baseVaultConversionSample",
|
|
142
|
+
type: "address",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
internalType: "address",
|
|
146
|
+
name: "quoteFeed1",
|
|
147
|
+
type: "address",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
internalType: "address",
|
|
151
|
+
name: "quoteFeed2",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
internalType: "address",
|
|
156
|
+
name: "quoteVault",
|
|
157
|
+
type: "address",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
internalType: "address",
|
|
161
|
+
name: "quoteVaultConversionSample",
|
|
162
|
+
type: "address",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
internalType: "uint256",
|
|
166
|
+
name: "scaleFactor",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
internalType: "uint256",
|
|
171
|
+
name: "currentPrice",
|
|
172
|
+
type: "uint256",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
internalType: "struct MorphoMarketDataFetcher.OracleInfo",
|
|
176
|
+
name: "oracle",
|
|
177
|
+
type: "tuple",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "deadAddressSupply",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
internalType: "struct MorphoMarketDataFetcher.MarketData",
|
|
186
|
+
name: "data",
|
|
187
|
+
type: "tuple",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
stateMutability: "view",
|
|
191
|
+
type: "function",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
inputs: [
|
|
195
|
+
{
|
|
196
|
+
internalType: "bytes32",
|
|
197
|
+
name: "marketId",
|
|
198
|
+
type: "bytes32",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
name: "getMarketDetailsById",
|
|
202
|
+
outputs: [
|
|
203
|
+
{
|
|
204
|
+
components: [
|
|
205
|
+
{
|
|
206
|
+
components: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "address",
|
|
209
|
+
name: "tokenAddress",
|
|
210
|
+
type: "address",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "string",
|
|
214
|
+
name: "name",
|
|
215
|
+
type: "string",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "string",
|
|
219
|
+
name: "symbol",
|
|
220
|
+
type: "string",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
internalType: "uint8",
|
|
224
|
+
name: "decimals",
|
|
225
|
+
type: "uint8",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
internalType: "uint256",
|
|
229
|
+
name: "userAllowance",
|
|
230
|
+
type: "uint256",
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
internalType: "struct MorphoMarketDataFetcher.TokenInfo",
|
|
234
|
+
name: "loanToken",
|
|
235
|
+
type: "tuple",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
components: [
|
|
239
|
+
{
|
|
240
|
+
internalType: "address",
|
|
241
|
+
name: "tokenAddress",
|
|
242
|
+
type: "address",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
internalType: "string",
|
|
246
|
+
name: "name",
|
|
247
|
+
type: "string",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
internalType: "string",
|
|
251
|
+
name: "symbol",
|
|
252
|
+
type: "string",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
internalType: "uint8",
|
|
256
|
+
name: "decimals",
|
|
257
|
+
type: "uint8",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
internalType: "uint256",
|
|
261
|
+
name: "userAllowance",
|
|
262
|
+
type: "uint256",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
internalType: "struct MorphoMarketDataFetcher.TokenInfo",
|
|
266
|
+
name: "collateralToken",
|
|
267
|
+
type: "tuple",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
components: [
|
|
271
|
+
{
|
|
272
|
+
internalType: "address",
|
|
273
|
+
name: "oracleAddress",
|
|
274
|
+
type: "address",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
internalType: "address",
|
|
278
|
+
name: "baseFeed1",
|
|
279
|
+
type: "address",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
internalType: "address",
|
|
283
|
+
name: "baseFeed2",
|
|
284
|
+
type: "address",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
internalType: "address",
|
|
288
|
+
name: "baseVault",
|
|
289
|
+
type: "address",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
internalType: "address",
|
|
293
|
+
name: "baseVaultConversionSample",
|
|
294
|
+
type: "address",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
internalType: "address",
|
|
298
|
+
name: "quoteFeed1",
|
|
299
|
+
type: "address",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
internalType: "address",
|
|
303
|
+
name: "quoteFeed2",
|
|
304
|
+
type: "address",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
internalType: "address",
|
|
308
|
+
name: "quoteVault",
|
|
309
|
+
type: "address",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
internalType: "address",
|
|
313
|
+
name: "quoteVaultConversionSample",
|
|
314
|
+
type: "address",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
internalType: "uint256",
|
|
318
|
+
name: "scaleFactor",
|
|
319
|
+
type: "uint256",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
internalType: "uint256",
|
|
323
|
+
name: "currentPrice",
|
|
324
|
+
type: "uint256",
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
internalType: "struct MorphoMarketDataFetcher.OracleInfo",
|
|
328
|
+
name: "oracle",
|
|
329
|
+
type: "tuple",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
internalType: "uint256",
|
|
333
|
+
name: "deadAddressSupply",
|
|
334
|
+
type: "uint256",
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
internalType: "struct MorphoMarketDataFetcher.MarketData",
|
|
338
|
+
name: "",
|
|
339
|
+
type: "tuple",
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
stateMutability: "view",
|
|
343
|
+
type: "function",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
inputs: [],
|
|
347
|
+
name: "morphoAddress",
|
|
348
|
+
outputs: [
|
|
349
|
+
{
|
|
350
|
+
internalType: "address",
|
|
351
|
+
name: "",
|
|
352
|
+
type: "address",
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
stateMutability: "view",
|
|
356
|
+
type: "function",
|
|
357
|
+
},
|
|
358
|
+
];
|
|
359
|
+
const _bytecode = "0x60a060405234801561001057600080fd5b506040516113e03803806113e083398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516113346100ac6000396000818160870152818160e201528181610363015281816103b201528181610a280152610a8301526113346000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806358bbfb5e14610046578063668a920f1461006f578063e183129814610082575b600080fd5b610059610054366004610bd3565b6100c1565b6040516100669190610ca0565b60405180910390f35b61005961007d366004610dea565b6101f6565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610066565b6100c9610b0f565b604051632c3c915760e01b8152600481018390526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632c3c91579060240160a060405180830381865afa158015610131573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101559190610ee8565b80516020820151604080840151905163668a920f60e01b81526001600160a01b039384166004820152918316602483015291909116604482015260648101859052336084820152909150309063668a920f9060a401600060405180830381865afa1580156101c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101ef919081019061109d565b9392505050565b6101fe610b0f565b80516001600160a01b03871690819052604080516306fdde0360e01b815290516306fdde03916004808201926000929091908290030181865afa92505050801561026a57506040513d6000823e601f3d908101601f19168201604052610267919081019061121e565b60015b15610276578151602001525b856001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa9250505080156102d557506040513d6000823e601f3d908101601f191682016040526102d2919081019061121e565b60015b156102e1578151604001525b856001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561033b575060408051601f3d908101601f1916820190925261033891810190611253565b60015b1561034e57815160ff9091166060909101525b6001600160a01b0382161580159061038e57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615155b1561042957604051636eb1769f60e11b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000008116602483015287169063dd62ed3e90604401602060405180830381865afa92505050801561041d575060408051601f3d908101601f1916820190925261041a9181019061126e565b60015b15610429578151608001525b60208101516001600160a01b03861690819052604080516306fdde0360e01b815290516306fdde03916004808201926000929091908290030181865afa92505050801561049857506040513d6000823e601f3d908101601f19168201604052610495919081019061121e565b60015b156104a65760208083015101525b846001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa92505050801561050557506040513d6000823e601f3d908101601f19168201604052610502919081019061121e565b60015b15610514576020820151604001525b846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561056e575060408051601f3d908101601f1916820190925261056b91810190611253565b60015b1561058457602082015160ff9091166060909101525b6001600160a01b03841615610a26576040808201516001600160a01b038616908190528151631ea148e360e31b81529151909163f50a47189160048083019260209291908290030181865afa9250505080156105fd575060408051601f3d908101601f191682019092526105fa91810190611287565b60015b156106195760408201516001600160a01b039091166020909101525b836001600160a01b031663dc53858c6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610673575060408051601f3d908101601f1916820190925261067091810190611287565b60015b1561068d576040808301516001600160a01b039092169101525b836001600160a01b031663eaa2d7b46040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106e7575060408051601f3d908101601f191682019092526106e491810190611287565b60015b156107035760408201516001600160a01b039091166060909101525b836001600160a01b031663054f7ac06040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561075d575060408051601f3d908101601f1916820190925261075a91810190611287565b60015b156107795760408201516001600160a01b039091166080909101525b836001600160a01b03166356095e116040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156107d3575060408051601f3d908101601f191682019092526107d091810190611287565b60015b156107ef5760408201516001600160a01b0390911660a0909101525b836001600160a01b031663acfbd39e6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610849575060408051601f3d908101601f1916820190925261084691810190611287565b60015b156108655760408201516001600160a01b0390911660c0909101525b836001600160a01b0316632e6f20a66040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156108bf575060408051601f3d908101601f191682019092526108bc91810190611287565b60015b156108db5760408201516001600160a01b0390911660e0909101525b836001600160a01b031663461739d26040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610935575060408051601f3d908101601f1916820190925261093291810190611287565b60015b156109525760408201516001600160a01b03909116610100909101525b836001600160a01b031663ce4b5bbe6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156109ac575060408051601f3d908101601f191682019092526109a99181019061126e565b60015b156109bc57604082015161012001525b836001600160a01b031663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610a16575060408051601f3d908101601f19168201909252610a139181019061126e565b60015b15610a2657604082015161014001525b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615801590610a5d57508215155b15610b06576040516349e2903160e11b81526004810184905261dead60248201819052907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906393c5206290604401606060405180830381865afa925050508015610aee575060408051601f3d908101601f19168201909252610aeb918101906112bb565b60015b15610b045750506001600160801b031660608301525b505b95945050505050565b6040518060800160405280610b22610b98565b8152602001610b2f610b98565b8152604080516101608101825260008082526020828101829052928201819052606082018190526080820181905260a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201529101908152602001600081525090565b6040518060a0016040528060006001600160a01b031681526020016060815260200160608152602001600060ff168152602001600081525090565b600060208284031215610be557600080fd5b5035919050565b60005b83811015610c07578181015183820152602001610bef565b50506000910152565b60008151808452610c28816020860160208601610bec565b601f01601f19169290920160200192915050565b60018060a01b0381511682526000602082015160a06020850152610c6360a0850182610c10565b905060408301518482036040860152610c7c8282610c10565b91505060ff6060840151166060850152608083015160808501528091505092915050565b60208152600082516101c06020840152610cbe6101e0840182610c3c565b90506020840151601f19848303016040850152610cdb8282610c3c565b9150506040840151610cf96060850182516001600160a01b03169052565b60208101516001600160a01b03811660808601525060408101516001600160a01b03811660a08601525060608101516001600160a01b03811660c08601525060808101516001600160a01b03811660e08601525060a08101516001600160a01b0381166101008601525060c08101516001600160a01b0381166101208601525060e08101516001600160a01b038116610140860152506101008101516001600160a01b0381166101608601525061012081015161018085015261014001516101a0840152606093909301516101c0909201919091525090565b6001600160a01b0381168114610de757600080fd5b50565b600080600080600060a08688031215610e0257600080fd5b8535610e0d81610dd2565b94506020860135610e1d81610dd2565b93506040860135610e2d81610dd2565b9250606086013591506080860135610e4481610dd2565b809150509295509295909350565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715610e8b57610e8b610e52565b60405290565b6040516080810167ffffffffffffffff81118282101715610e8b57610e8b610e52565b604051610160810167ffffffffffffffff81118282101715610e8b57610e8b610e52565b8051610ee381610dd2565b919050565b600060a0828403128015610efb57600080fd5b50610f04610e68565b8251610f0f81610dd2565b81526020830151610f1f81610dd2565b60208201526040830151610f3281610dd2565b60408201526060830151610f4581610dd2565b60608201526080928301519281019290925250919050565b600082601f830112610f6e57600080fd5b815167ffffffffffffffff811115610f8857610f88610e52565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610fb757610fb7610e52565b604052818152838201602001851015610fcf57600080fd5b610fe0826020830160208701610bec565b949350505050565b805160ff81168114610ee357600080fd5b600060a0828403121561100b57600080fd5b611013610e68565b9050815161102081610dd2565b8152602082015167ffffffffffffffff81111561103c57600080fd5b61104884828501610f5d565b602083015250604082015167ffffffffffffffff81111561106857600080fd5b61107484828501610f5d565b60408301525061108660608301610fe8565b606082015260809182015191810191909152919050565b6000602082840312156110af57600080fd5b815167ffffffffffffffff8111156110c657600080fd5b82018084036101c08112156110da57600080fd5b6110e2610e91565b825167ffffffffffffffff8111156110f957600080fd5b61110587828601610ff9565b825250602083015167ffffffffffffffff81111561112257600080fd5b61112e87828601610ff9565b602083015250610160603f198301121561114757600080fd5b61114f610eb4565b915061115d60408401610ed8565b825261116b60608401610ed8565b602083015261117c60808401610ed8565b604083015261118d60a08401610ed8565b606083015261119e60c08401610ed8565b60808301526111af60e08401610ed8565b60a08301526111c16101008401610ed8565b60c08301526111d36101208401610ed8565b60e08301526111e56101408401610ed8565b61010083015261016083015161012083015261018083015161014083015260408101919091526101a09091015160608201529392505050565b60006020828403121561123057600080fd5b815167ffffffffffffffff81111561124757600080fd5b610fe084828501610f5d565b60006020828403121561126557600080fd5b6101ef82610fe8565b60006020828403121561128057600080fd5b5051919050565b60006020828403121561129957600080fd5b81516101ef81610dd2565b80516001600160801b0381168114610ee357600080fd5b6000806000606084860312156112d057600080fd5b6112d9846112a4565b92506112e7602085016112a4565b91506112f5604085016112a4565b9050925092509256fea2646970667358221220c9cc5228127b14058a936657f4cd32490c1cae7e04c197ffbb62a7ccf4510e0964736f6c634300081b0033";
|
|
360
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
361
|
+
class MorphoMarketDataFetcher__factory extends ethers_1.ContractFactory {
|
|
362
|
+
constructor(...args) {
|
|
363
|
+
if (isSuperArgs(args)) {
|
|
364
|
+
super(...args);
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
super(_abi, _bytecode, args[0]);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
getDeployTransaction(_morphoAddress, overrides) {
|
|
371
|
+
return super.getDeployTransaction(_morphoAddress, overrides || {});
|
|
372
|
+
}
|
|
373
|
+
deploy(_morphoAddress, overrides) {
|
|
374
|
+
return super.deploy(_morphoAddress, overrides || {});
|
|
375
|
+
}
|
|
376
|
+
connect(runner) {
|
|
377
|
+
return super.connect(runner);
|
|
378
|
+
}
|
|
379
|
+
static bytecode = _bytecode;
|
|
380
|
+
static abi = _abi;
|
|
381
|
+
static createInterface() {
|
|
382
|
+
return new ethers_1.Interface(_abi);
|
|
383
|
+
}
|
|
384
|
+
static connect(address, runner) {
|
|
385
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
exports.MorphoMarketDataFetcher__factory = MorphoMarketDataFetcher__factory;
|
|
389
|
+
//# sourceMappingURL=MorphoMarketDataFetcher__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MorphoMarketDataFetcher__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/MorphoMar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AAG,CAClB,EAA4C,EACS,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,gCAAiC,SAAQ,wBAAe;IACnE,YAAY,GAAG,IAA8C;QAC3D,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEQ,oBAAoB,CAC3B,cAA2B,EAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,oBAAoB,CAAC,cAAc,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;IACQ,MAAM,CACb,cAA2B,EAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,MAAM,CAAC,cAAc,EAAE,SAAS,IAAI,EAAE,CAIlD,CAAC;IACJ,CAAC;IACQ,OAAO,CACd,MAA6B;QAE7B,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAqC,CAAC;IACnE,CAAC;IAED,MAAM,CAAU,QAAQ,GAAG,SAAS,CAAC;IACrC,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAqC,CAAC;IACjE,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,MAAM,CAC+B,CAAC;IAC1C,CAAC;;AA7CH,4EA8CC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { IERC20Metadata__factory } from "./IERC20Metadata__factory";
|
|
2
|
+
export { IMorpho__factory } from "./IMorpho__factory";
|
|
3
|
+
export { IMorphoChainlinkOracleV2__factory } from "./IMorphoChainlinkOracleV2__factory";
|
|
4
|
+
export { MorphoMarketDataFetcher__factory } from "./MorphoMarketDataFetcher__factory";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MorphoMarketDataFetcher__factory = exports.IMorphoChainlinkOracleV2__factory = exports.IMorpho__factory = exports.IERC20Metadata__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var IERC20Metadata__factory_1 = require("./IERC20Metadata__factory");
|
|
9
|
+
Object.defineProperty(exports, "IERC20Metadata__factory", { enumerable: true, get: function () { return IERC20Metadata__factory_1.IERC20Metadata__factory; } });
|
|
10
|
+
var IMorpho__factory_1 = require("./IMorpho__factory");
|
|
11
|
+
Object.defineProperty(exports, "IMorpho__factory", { enumerable: true, get: function () { return IMorpho__factory_1.IMorpho__factory; } });
|
|
12
|
+
var IMorphoChainlinkOracleV2__factory_1 = require("./IMorphoChainlinkOracleV2__factory");
|
|
13
|
+
Object.defineProperty(exports, "IMorphoChainlinkOracleV2__factory", { enumerable: true, get: function () { return IMorphoChainlinkOracleV2__factory_1.IMorphoChainlinkOracleV2__factory; } });
|
|
14
|
+
var MorphoMarketDataFetcher__factory_1 = require("./MorphoMarketDataFetcher__factory");
|
|
15
|
+
Object.defineProperty(exports, "MorphoMarketDataFetcher__factory", { enumerable: true, get: function () { return MorphoMarketDataFetcher__factory_1.MorphoMarketDataFetcher__factory; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,yFAAwF;AAA/E,sJAAA,iCAAiC,OAAA;AAC1C,uFAAsF;AAA7E,oJAAA,gCAAgC,OAAA"}
|
package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type ContractRunner } from "ethers";
|
|
2
|
+
import type { IAdapter, IAdapterInterface } from "../../../../../contracts/external/morpho/interfaces/IAdapter";
|
|
3
|
+
export declare class IAdapter__factory {
|
|
4
|
+
static readonly abi: readonly [{
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly internalType: "bytes";
|
|
7
|
+
readonly name: "data";
|
|
8
|
+
readonly type: "bytes";
|
|
9
|
+
}, {
|
|
10
|
+
readonly internalType: "uint256";
|
|
11
|
+
readonly name: "assets";
|
|
12
|
+
readonly type: "uint256";
|
|
13
|
+
}, {
|
|
14
|
+
readonly internalType: "bytes4";
|
|
15
|
+
readonly name: "selector";
|
|
16
|
+
readonly type: "bytes4";
|
|
17
|
+
}, {
|
|
18
|
+
readonly internalType: "address";
|
|
19
|
+
readonly name: "sender";
|
|
20
|
+
readonly type: "address";
|
|
21
|
+
}];
|
|
22
|
+
readonly name: "allocate";
|
|
23
|
+
readonly outputs: readonly [{
|
|
24
|
+
readonly internalType: "bytes32[]";
|
|
25
|
+
readonly name: "ids";
|
|
26
|
+
readonly type: "bytes32[]";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "int256";
|
|
29
|
+
readonly name: "change";
|
|
30
|
+
readonly type: "int256";
|
|
31
|
+
}];
|
|
32
|
+
readonly stateMutability: "nonpayable";
|
|
33
|
+
readonly type: "function";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly internalType: "bytes";
|
|
37
|
+
readonly name: "data";
|
|
38
|
+
readonly type: "bytes";
|
|
39
|
+
}, {
|
|
40
|
+
readonly internalType: "uint256";
|
|
41
|
+
readonly name: "assets";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}, {
|
|
44
|
+
readonly internalType: "bytes4";
|
|
45
|
+
readonly name: "selector";
|
|
46
|
+
readonly type: "bytes4";
|
|
47
|
+
}, {
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "sender";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}];
|
|
52
|
+
readonly name: "deallocate";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly internalType: "bytes32[]";
|
|
55
|
+
readonly name: "ids";
|
|
56
|
+
readonly type: "bytes32[]";
|
|
57
|
+
}, {
|
|
58
|
+
readonly internalType: "int256";
|
|
59
|
+
readonly name: "change";
|
|
60
|
+
readonly type: "int256";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "nonpayable";
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
}, {
|
|
65
|
+
readonly inputs: readonly [];
|
|
66
|
+
readonly name: "realAssets";
|
|
67
|
+
readonly outputs: readonly [{
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
readonly name: "assets";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}];
|
|
72
|
+
readonly stateMutability: "view";
|
|
73
|
+
readonly type: "function";
|
|
74
|
+
}];
|
|
75
|
+
static createInterface(): IAdapterInterface;
|
|
76
|
+
static connect(address: string, runner?: ContractRunner | null): IAdapter;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=IAdapter__factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdapter__factory.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EAClB,MAAM,8DAA8D,CAAC;AAgGtE,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,iBAAiB;IAG3C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,QAAQ;CAG1E"}
|
package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
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.IAdapter__factory = void 0;
|
|
8
|
+
const ethers_1 = require("ethers");
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "bytes",
|
|
14
|
+
name: "data",
|
|
15
|
+
type: "bytes",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
internalType: "uint256",
|
|
19
|
+
name: "assets",
|
|
20
|
+
type: "uint256",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
internalType: "bytes4",
|
|
24
|
+
name: "selector",
|
|
25
|
+
type: "bytes4",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
internalType: "address",
|
|
29
|
+
name: "sender",
|
|
30
|
+
type: "address",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
name: "allocate",
|
|
34
|
+
outputs: [
|
|
35
|
+
{
|
|
36
|
+
internalType: "bytes32[]",
|
|
37
|
+
name: "ids",
|
|
38
|
+
type: "bytes32[]",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
internalType: "int256",
|
|
42
|
+
name: "change",
|
|
43
|
+
type: "int256",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
stateMutability: "nonpayable",
|
|
47
|
+
type: "function",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [
|
|
51
|
+
{
|
|
52
|
+
internalType: "bytes",
|
|
53
|
+
name: "data",
|
|
54
|
+
type: "bytes",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "assets",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "bytes4",
|
|
63
|
+
name: "selector",
|
|
64
|
+
type: "bytes4",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
internalType: "address",
|
|
68
|
+
name: "sender",
|
|
69
|
+
type: "address",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
name: "deallocate",
|
|
73
|
+
outputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "bytes32[]",
|
|
76
|
+
name: "ids",
|
|
77
|
+
type: "bytes32[]",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
internalType: "int256",
|
|
81
|
+
name: "change",
|
|
82
|
+
type: "int256",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
stateMutability: "nonpayable",
|
|
86
|
+
type: "function",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [],
|
|
90
|
+
name: "realAssets",
|
|
91
|
+
outputs: [
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "assets",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
stateMutability: "view",
|
|
99
|
+
type: "function",
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
class IAdapter__factory {
|
|
103
|
+
static abi = _abi;
|
|
104
|
+
static createInterface() {
|
|
105
|
+
return new ethers_1.Interface(_abi);
|
|
106
|
+
}
|
|
107
|
+
static connect(address, runner) {
|
|
108
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.IAdapter__factory = IAdapter__factory;
|
|
112
|
+
//# sourceMappingURL=IAdapter__factory.js.map
|
package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdapter__factory.js","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;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QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAsB,CAAC;IAClD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAwB,CAAC;IACpE,CAAC;;AAPH,8CAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ContractRunner } from "ethers";
|
|
2
|
-
import type { IMorphoMarketV1AdapterV2Factory, IMorphoMarketV1AdapterV2FactoryInterface } from "
|
|
2
|
+
import type { IMorphoMarketV1AdapterV2Factory, IMorphoMarketV1AdapterV2FactoryInterface } from "../../../../../contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory";
|
|
3
3
|
export declare class IMorphoMarketV1AdapterV2Factory__factory {
|
|
4
4
|
static readonly abi: readonly [{
|
|
5
5
|
readonly anonymous: false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMorphoMarketV1AdapterV2Factory__factory.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory__factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,+BAA+B,EAC/B,wCAAwC,EACzC,MAAM,qFAAqF,CAAC;AA8H7F,qBAAa,wCAAwC;IACnD,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,wCAAwC;IAGlE,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,+BAA+B;CAOnC"}
|