@pendle/core-v2 6.9.0 → 6.10.0
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/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +244 -249
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +244 -249
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +2 -2
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +246 -251
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.json +615 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.json +280 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.json +30 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.json +322 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.json +398 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.json +651 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.json +298 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.json +959 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.json +30 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.json +53 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.json +933 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/interfaces/IPPTLooper.sol +2 -4
- package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +6 -6
- package/contracts/pt-looping/PendlePTLooper.sol +4 -2
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol +20 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol +85 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol +180 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol +12 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol +72 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol +88 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol +25 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol +104 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol +105 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol +432 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol +10 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol +26 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol +149 -0
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +3 -0
- package/deployments/143-core.json +4 -1
- package/deployments/42161-core.json +4 -1
- package/deployments/4663-core.json +48 -0
- package/deployments/4663-offchain-helper.json +12 -0
- package/package.json +1 -1
- package/typechain-types/AaveV4MoneyMarket.ts +573 -0
- package/typechain-types/AaveV4MoneyMarketView.ts +362 -0
- package/typechain-types/EulerMoneyMarket.ts +599 -0
- package/typechain-types/EulerMoneyMarketView.ts +375 -0
- package/typechain-types/IAaveOracle.ts +17 -149
- package/typechain-types/IEVC.ts +1647 -0
- package/typechain-types/IEulerFactory.ts +94 -0
- package/typechain-types/IEulerPriceOracle.ts +123 -0
- package/typechain-types/IEulerVault.ts +1298 -0
- package/typechain-types/IHubBase.ts +452 -0
- package/typechain-types/IPPTLooper.ts +68 -68
- package/typechain-types/ISpoke.ts +577 -0
- package/typechain-types/PTLooperBase.ts +68 -68
- package/typechain-types/PendlePTLooper.ts +68 -68
- package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/AaveMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/AaveV4MoneyMarketView__factory.ts +349 -0
- package/typechain-types/factories/AaveV4MoneyMarket__factory.ts +673 -0
- package/typechain-types/factories/EulerMoneyMarketView__factory.ts +371 -0
- package/typechain-types/factories/EulerMoneyMarket__factory.ts +720 -0
- package/typechain-types/factories/IAaveOracle__factory.ts +3 -93
- package/typechain-types/factories/IEVC__factory.ts +968 -0
- package/typechain-types/factories/IEulerFactory__factory.ts +42 -0
- package/typechain-types/factories/IEulerPriceOracle__factory.ts +68 -0
- package/typechain-types/factories/IEulerVault__factory.ts +945 -0
- package/typechain-types/factories/IHubBase__factory.ts +334 -0
- package/typechain-types/factories/IPPTLooper__factory.ts +243 -248
- package/typechain-types/factories/ISpoke__factory.ts +407 -0
- package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/PTLooperBase__factory.ts +243 -248
- package/typechain-types/factories/PendlePTLooper__factory.ts +244 -249
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +99 -0
- package/typechain-types/index.ts +22 -2
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
EulerMoneyMarketView,
|
|
8
|
+
EulerMoneyMarketViewInterface,
|
|
9
|
+
} from "../EulerMoneyMarketView";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "string",
|
|
16
|
+
name: "_moneyMarketName",
|
|
17
|
+
type: "string",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "_ptLooper",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "_factory",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "nonpayable",
|
|
31
|
+
type: "constructor",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [],
|
|
35
|
+
name: "FACTORY",
|
|
36
|
+
outputs: [
|
|
37
|
+
{
|
|
38
|
+
internalType: "contract IEulerFactory",
|
|
39
|
+
name: "",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
stateMutability: "view",
|
|
44
|
+
type: "function",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [],
|
|
48
|
+
name: "POSITION_BOX_FACTORY",
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
internalType: "contract IPLoopPositionBoxFactory",
|
|
52
|
+
name: "",
|
|
53
|
+
type: "address",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
stateMutability: "view",
|
|
57
|
+
type: "function",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "PT_LOOPER",
|
|
62
|
+
outputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "contract IPPTLooper",
|
|
65
|
+
name: "",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "contract IPLoopPositionBox",
|
|
76
|
+
name: "box",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "limits",
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
components: [
|
|
84
|
+
{
|
|
85
|
+
internalType: "uint256",
|
|
86
|
+
name: "minBorrowing",
|
|
87
|
+
type: "uint256",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
internalType: "uint256",
|
|
91
|
+
name: "maxBorrowing",
|
|
92
|
+
type: "uint256",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
name: "minBorrowingForRewards",
|
|
97
|
+
type: "uint256",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
internalType: "uint256",
|
|
101
|
+
name: "minLending",
|
|
102
|
+
type: "uint256",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint256",
|
|
106
|
+
name: "maxLending",
|
|
107
|
+
type: "uint256",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "minLendingForRewards",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
internalType: "struct Limits",
|
|
116
|
+
name: "limits_",
|
|
117
|
+
type: "tuple",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
stateMutability: "view",
|
|
121
|
+
type: "function",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
inputs: [
|
|
125
|
+
{
|
|
126
|
+
internalType: "contract IPLoopPositionBox",
|
|
127
|
+
name: "box",
|
|
128
|
+
type: "address",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
name: "liquidity",
|
|
132
|
+
outputs: [
|
|
133
|
+
{
|
|
134
|
+
internalType: "uint256",
|
|
135
|
+
name: "borrowing",
|
|
136
|
+
type: "uint256",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
internalType: "uint256",
|
|
140
|
+
name: "lending",
|
|
141
|
+
type: "uint256",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
stateMutability: "view",
|
|
145
|
+
type: "function",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
inputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "contract IPLoopPositionBox",
|
|
151
|
+
name: "box",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
name: "moneyMarketBalances",
|
|
156
|
+
outputs: [
|
|
157
|
+
{
|
|
158
|
+
internalType: "uint256",
|
|
159
|
+
name: "mmPtBalance",
|
|
160
|
+
type: "uint256",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
internalType: "uint256",
|
|
164
|
+
name: "mmDebtBalance",
|
|
165
|
+
type: "uint256",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
stateMutability: "nonpayable",
|
|
169
|
+
type: "function",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [],
|
|
173
|
+
name: "moneyMarketName",
|
|
174
|
+
outputs: [
|
|
175
|
+
{
|
|
176
|
+
internalType: "string",
|
|
177
|
+
name: "",
|
|
178
|
+
type: "string",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
stateMutability: "view",
|
|
182
|
+
type: "function",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
inputs: [
|
|
186
|
+
{
|
|
187
|
+
internalType: "contract IPLoopPositionBox",
|
|
188
|
+
name: "box",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
name: "ptDebtRate",
|
|
193
|
+
outputs: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "uint256",
|
|
196
|
+
name: "",
|
|
197
|
+
type: "uint256",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
stateMutability: "view",
|
|
201
|
+
type: "function",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
inputs: [
|
|
205
|
+
{
|
|
206
|
+
internalType: "contract IPLoopPositionBox",
|
|
207
|
+
name: "box",
|
|
208
|
+
type: "address",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
name: "rates",
|
|
212
|
+
outputs: [
|
|
213
|
+
{
|
|
214
|
+
internalType: "uint256",
|
|
215
|
+
name: "borrowing",
|
|
216
|
+
type: "uint256",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
internalType: "uint256",
|
|
220
|
+
name: "lending",
|
|
221
|
+
type: "uint256",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
stateMutability: "view",
|
|
225
|
+
type: "function",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
inputs: [
|
|
229
|
+
{
|
|
230
|
+
internalType: "contract IPLoopPositionBox",
|
|
231
|
+
name: "box",
|
|
232
|
+
type: "address",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
name: "rewards",
|
|
236
|
+
outputs: [
|
|
237
|
+
{
|
|
238
|
+
components: [
|
|
239
|
+
{
|
|
240
|
+
internalType: "address",
|
|
241
|
+
name: "token",
|
|
242
|
+
type: "address",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
internalType: "uint256",
|
|
246
|
+
name: "claimable",
|
|
247
|
+
type: "uint256",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
internalType: "struct Reward[]",
|
|
251
|
+
name: "borrowing",
|
|
252
|
+
type: "tuple[]",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
components: [
|
|
256
|
+
{
|
|
257
|
+
internalType: "address",
|
|
258
|
+
name: "token",
|
|
259
|
+
type: "address",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
internalType: "uint256",
|
|
263
|
+
name: "claimable",
|
|
264
|
+
type: "uint256",
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
internalType: "struct Reward[]",
|
|
268
|
+
name: "lending",
|
|
269
|
+
type: "tuple[]",
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
stateMutability: "nonpayable",
|
|
273
|
+
type: "function",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
inputs: [
|
|
277
|
+
{
|
|
278
|
+
internalType: "contract IPLoopPositionBox",
|
|
279
|
+
name: "box",
|
|
280
|
+
type: "address",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
name: "thresholds",
|
|
284
|
+
outputs: [
|
|
285
|
+
{
|
|
286
|
+
internalType: "uint256",
|
|
287
|
+
name: "ltv",
|
|
288
|
+
type: "uint256",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
internalType: "uint256",
|
|
292
|
+
name: "liquidationThreshold",
|
|
293
|
+
type: "uint256",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
stateMutability: "view",
|
|
297
|
+
type: "function",
|
|
298
|
+
},
|
|
299
|
+
];
|
|
300
|
+
|
|
301
|
+
const _bytecode =
|
|
302
|
+
"0x60e060405234801561000f575f5ffd5b5060405161218a38038061218a83398101604081905261002e91610102565b82825f61003b8382610256565b506001600160a01b03811660808190526040805163ca6f50fd60e01b8152905163ca6f50fd916004808201926020929091908290030181865afa158015610084573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100a89190610310565b6001600160a01b0390811660a0529290921660c0525061033292505050565b634e487b7160e01b5f52604160045260245ffd5b6001600160a01b03811681146100ef575f5ffd5b50565b80516100fd816100db565b919050565b5f5f5f60608486031215610114575f5ffd5b83516001600160401b03811115610129575f5ffd5b8401601f81018613610139575f5ffd5b80516001600160401b03811115610152576101526100c7565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610180576101806100c7565b604052818152828201602001881015610197575f5ffd5b8160208401602083015e5f602083830101528095505050506101bb602085016100f2565b91506101c9604085016100f2565b90509250925092565b600181811c908216806101e657607f821691505b60208210810361020457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561025157805f5260205f20601f840160051c8101602085101561022f5750805b601f840160051c820191505b8181101561024e575f815560010161023b565b50505b505050565b81516001600160401b0381111561026f5761026f6100c7565b6102838161027d84546101d2565b8461020a565b6020601f8211600181146102b5575f831561029e5750848201515b5f19600385901b1c1916600184901b17845561024e565b5f84815260208120601f198516915b828110156102e457878501518255602094850194600190920191016102c4565b508482101561030157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f60208284031215610320575f5ffd5b815161032b816100db565b9392505050565b60805160a05160c051611dfe61038c5f395f8181610170015281816105b4015281816105f7015281816106e30152818161072d0152818161077e01526107c101525f818161020601526103ad01525f60de0152611dfe5ff3fe608060405234801561000f575f5ffd5b5060043610610096575f3560e01c8062ca69971461009a5780630700037d146100b85780631a174fc4146100d957806320d7bec11461010d5780632dd310001461016b57806374eadf76146101925780639df5f6bd146101b3578063a8734f0b146101db578063b8c876b1146101ee578063ca6f50fd14610201578063f59bbd5f14610228575b5f5ffd5b6100a261023b565b6040516100af9190611a0c565b60405180910390f35b6100cb6100c6366004611a58565b6102c6565b6040516100af929190611ac2565b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6040516100af9190611aef565b61012061011b366004611a58565b6102e8565b6040516100af91905f60c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6101a56101a0366004611a58565b610308565b6040519081526020016100af565b6101c66101c1366004611a58565b61031b565b604080519283526020830191909152016100af565b6101c66101e9366004611a58565b61032f565b6101c66101fc366004611a58565b610343565b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6101c6610236366004611a58565b610357565b5f805461024790611b03565b80601f016020809104026020016040519081016040528092919081815260200182805461027390611b03565b80156102be5780601f10610295576101008083540402835291602001916102be565b820191905f5260205f20905b8154815290600101906020018083116102a157829003601f168201915b505050505081565b6060806102df836102d68561036b565b50606091829150565b91509150915091565b6102f06119dc565b610302826102fd8461036b565b610498565b92915050565b5f610302826103168461036b565b6104cc565b5f5f6102df8361032a8561036b565b6105a7565b5f5f6102df8361033e8561036b565b6106d4565b5f5f6102df836103528561036b565b610771565b5f5f6102df836103668561036b565b610a3f565b60408051610100810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166327409695836001600160a01b031663a817c1136040518163ffffffff1660e01b8152600401602060405180830381865afa158015610416573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061043a9190611b3b565b6040518263ffffffff1660e01b815260040161045891815260200190565b61010060405180830381865afa158015610474573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103029190611b75565b6104a06119dc565b5f60a08201819052604082018190526060820181905281525f1960808201819052602082015292915050565b5f826001600160a01b031663746381a36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610509573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061052d9190611c3e565b6001600160a01b0316639025036a6105458585610b98565b6040518263ffffffff1660e01b81526004016105619190611c59565b602060405180830381865afa15801561057c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105a09190611b3b565b9392505050565b5f5f5f6105ea8460e001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c0b90919063ffffffff16565b90505f61062d8560e001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c8690919063ffffffff16565b90505f5f826001600160a01b03166333708d0c856040518263ffffffff1660e01b815260040161065d9190611aef565b60a060405180830381865afa158015610678573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061069c9190611c92565b5050509150915081655af3107a40006106b59190611ce2565b95506106c781655af3107a4000611ce2565b9450505050509250929050565b5f5f61071e6107198460e001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c8690919063ffffffff16565b610cb6565b91506107686107638460e001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c0b90919063ffffffff16565b610d30565b90509250929050565b5f5f5f6107b48460e001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c0b90919063ffffffff16565b90505f6107f78560e001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c8690919063ffffffff16565b90506108d0826001600160a01b031663402d267d5f6040518263ffffffff1660e01b81526004016108289190611aef565b602060405180830381865afa158015610843573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108679190611b3b565b86608001516001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108a7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108cb9190611b3b565b610ec5565b92505f816001600160a01b03166318e22d986040518163ffffffff1660e01b81526004016040805180830381865afa15801561090e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109329190611d08565b9150505f6109438261ffff16610eda565b90505f836001600160a01b031663961be3916040518163ffffffff1660e01b8152600401602060405180830381865afa158015610982573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109a69190611b3b565b90505f1982036109b857809650610a33565b5f610a23856001600160a01b03166347bd37186040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109f8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a1c9190611b3b565b8490610f07565b9050610a2f8282610ec5565b9750505b50505050509250929050565b5f5f5f846001600160a01b031663746381a36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a7e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610aa29190611c3e565b90505f610aaf8686610b98565b60405163180cad9960e01b81529091506001600160a01b0383169063180cad9990610ade908490600401611c59565b6020604051808303815f875af1158015610afa573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b1e9190611b3b565b6040516313c9e73960e31b81529094506001600160a01b03831690639e4f39c890610b4d908490600401611c59565b6020604051808303815f875af1158015610b69573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b8d9190611b3b565b925050509250929050565b604080516080810182525f8082526020820181905291810182905260608101919091526040518060800160405280846001600160a01b031681526020018360e00151815260200183608001516001600160a01b031681526020018360a001516001600160a01b0316815250905092915050565b604051631bc66db160e11b81525f90608083901c906001600160a01b0385169063378cdb6290610c3f908490600401611d40565b602060405180830381865afa158015610c5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c7e9190611c3e565b949350505050565b604051631bc66db160e11b81525f9082906001600160a01b0385169063378cdb6290610c3f908490600401611d40565b5f610302633b9aca00836001600160a01b0316637c3a00fd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cfb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d1f9190611b3b565b610d299190611d68565b6001610f1c565b5f5f826001600160a01b03166347bd37186040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d6e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d929190611b3b565b90505f81846001600160a01b031663961be3916040518163ffffffff1660e01b8152600401602060405180830381865afa158015610dd2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610df69190611b3b565b610e009190611d87565b9050805f03610e1257505f9392505050565b5f610e1c85610cb6565b90505f856001600160a01b031663a75df4986040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e5b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e7f9190611d9a565b61ffff16905061271083610e938383611db5565b610e9d8786611ce2565b610ea79190611ce2565b610eb19190611d68565b610ebb9190611d68565b9695505050505050565b5f818310610ed357816105a0565b5090919050565b5f61ffff8216808203610ef057505f1992915050565b6064603f8216600a0a600683901c02049392505050565b5f81831015610f16575f6105a0565b50900390565b5f8082610f2c8562015180611ce2565b610f369190611d68565b9050670de0b6b3a7640000610f5e6813c9647e25a9940000610f588385611d87565b90610f68565b610c7e9190611db5565b5f815f03610f7f5750670de0b6b3a7640000610302565b825f03610f8d57505f610302565b600160ff1b8310610fd75760405162461bcd60e51b815260206004820152600f60248201526e78206f7574206f6620626f756e647360881b60448201526064015b60405180910390fd5b82770bce5086492111aea88f4bb1ca6bcf584181ea8059f7653283106110315760405162461bcd60e51b815260206004820152600f60248201526e79206f7574206f6620626f756e647360881b6044820152606401610fce565b825f670c7d713b49da0000831380156110515750670f43fc2c04ee000083125b15611087575f61106084611110565b9050670de0b6b3a764000080820784020583670de0b6b3a764000083050201915050611095565b816110918461122d565b0290505b670de0b6b3a76400009005680238fd42c5cf03ffff1981128015906110c3575068070c1cc73b00c800008113155b6111075760405162461bcd60e51b815260206004820152601560248201527470726f64756374206f7574206f6620626f756e647360581b6044820152606401610fce565b610ebb816115cb565b670de0b6b3a7640000025f806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff198501028161115057611150611d54565b0590505f6a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b5f670de0b6b3a764000082121561126c57611264826a0c097ce7bc90715b34b9f160241b8161125e5761125e611d54565b0561122d565b5f0392915050565b5f775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b83126112b65772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b83126112ed576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312611335576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312611370576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf85083126113a757693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e283126113de57690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d0383126114135768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb41746121110831261143e57680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312611473576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f177578893793783126114a8576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b28660383126114dc576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312611510576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b5f68056bc75e2d63100000840168056bc75e2d63100000808603028161153857611538611d54565b0590505f68056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b5f680238fd42c5cf03ffff1982121580156115ef575068070c1cc73b00c800008213155b61162e5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b6044820152606401610fce565b5f82121561166457611641825f036115cb565b6a0c097ce7bc90715b34b9f160241b8161165d5761165d611d54565b0592915050565b5f6806f05b59d3b200000083126116a157506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b6116d7565b6803782dace9d900000083126116d357506803782dace9d8ffffff19909101906b1425982cf597cd205cef73806116d7565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126117275768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412611763576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261179d57682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c40000084126117d7576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261181057680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126118495768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412611882576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126118bb5768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b6040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114611a55575f5ffd5b50565b5f60208284031215611a68575f5ffd5b81356105a081611a41565b5f8151808452602084019350602083015f5b82811015611ab857815180516001600160a01b031687526020908101518188015260409096019590910190600101611a85565b5093949350505050565b604081525f611ad46040830185611a73565b8281036020840152611ae68185611a73565b95945050505050565b6001600160a01b0391909116815260200190565b600181811c90821680611b1757607f821691505b602082108103611b3557634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215611b4b575f5ffd5b5051919050565b805163ffffffff81168114611b65575f5ffd5b919050565b8051611b6581611a41565b5f610100828403128015611b87575f5ffd5b5060405161010081016001600160401b0381118282101715611bb757634e487b7160e01b5f52604160045260245ffd5b604052611bc383611b52565b8152611bd160208401611b52565b6020820152611be260408401611b6a565b6040820152611bf360608401611b6a565b6060820152611c0460808401611b6a565b6080820152611c1560a08401611b6a565b60a0820152611c2660c08401611b6a565b60c082015260e0928301519281019290925250919050565b5f60208284031215611c4e575f5ffd5b81516105a081611a41565b81516001600160a01b03908116825260208084015190830152604080840151821690830152606092830151169181019190915260800190565b5f5f5f5f5f60a08688031215611ca6575f5ffd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761030257610302611cce565b61ffff81168114611a55575f5ffd5b5f5f60408385031215611d19575f5ffd5b8251611d2481611cf9565b6020840151909250611d3581611cf9565b809150509250929050565b6001600160801b0391909116815260200190565b634e487b7160e01b5f52601260045260245ffd5b5f82611d8257634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561030257610302611cce565b5f60208284031215611daa575f5ffd5b81516105a081611cf9565b8181038181111561030257610302611cce56fea2646970667358221220f34152aebcc95ddc7268136a920fadf023c1eea1f2dfe6c2a9c635248585bf3964736f6c634300081e0033";
|
|
303
|
+
|
|
304
|
+
type EulerMoneyMarketViewConstructorParams =
|
|
305
|
+
| [signer?: Signer]
|
|
306
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
307
|
+
|
|
308
|
+
const isSuperArgs = (
|
|
309
|
+
xs: EulerMoneyMarketViewConstructorParams
|
|
310
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
311
|
+
|
|
312
|
+
export class EulerMoneyMarketView__factory extends ContractFactory {
|
|
313
|
+
constructor(...args: EulerMoneyMarketViewConstructorParams) {
|
|
314
|
+
if (isSuperArgs(args)) {
|
|
315
|
+
super(...args);
|
|
316
|
+
} else {
|
|
317
|
+
super(_abi, _bytecode, args[0]);
|
|
318
|
+
}
|
|
319
|
+
this.contractName = "EulerMoneyMarketView";
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
deploy(
|
|
323
|
+
_moneyMarketName: string,
|
|
324
|
+
_ptLooper: string,
|
|
325
|
+
_factory: string,
|
|
326
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
327
|
+
): Promise<EulerMoneyMarketView> {
|
|
328
|
+
return super.deploy(
|
|
329
|
+
_moneyMarketName,
|
|
330
|
+
_ptLooper,
|
|
331
|
+
_factory,
|
|
332
|
+
overrides || {}
|
|
333
|
+
) as Promise<EulerMoneyMarketView>;
|
|
334
|
+
}
|
|
335
|
+
getDeployTransaction(
|
|
336
|
+
_moneyMarketName: string,
|
|
337
|
+
_ptLooper: string,
|
|
338
|
+
_factory: string,
|
|
339
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
340
|
+
): TransactionRequest {
|
|
341
|
+
return super.getDeployTransaction(
|
|
342
|
+
_moneyMarketName,
|
|
343
|
+
_ptLooper,
|
|
344
|
+
_factory,
|
|
345
|
+
overrides || {}
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
attach(address: string): EulerMoneyMarketView {
|
|
349
|
+
return super.attach(address) as EulerMoneyMarketView;
|
|
350
|
+
}
|
|
351
|
+
connect(signer: Signer): EulerMoneyMarketView__factory {
|
|
352
|
+
return super.connect(signer) as EulerMoneyMarketView__factory;
|
|
353
|
+
}
|
|
354
|
+
static readonly contractName: "EulerMoneyMarketView";
|
|
355
|
+
public readonly contractName: "EulerMoneyMarketView";
|
|
356
|
+
static readonly bytecode = _bytecode;
|
|
357
|
+
static readonly abi = _abi;
|
|
358
|
+
static createInterface(): EulerMoneyMarketViewInterface {
|
|
359
|
+
return new utils.Interface(_abi) as EulerMoneyMarketViewInterface;
|
|
360
|
+
}
|
|
361
|
+
static connect(
|
|
362
|
+
address: string,
|
|
363
|
+
signerOrProvider: Signer | Provider
|
|
364
|
+
): EulerMoneyMarketView {
|
|
365
|
+
return new Contract(
|
|
366
|
+
address,
|
|
367
|
+
_abi,
|
|
368
|
+
signerOrProvider
|
|
369
|
+
) as EulerMoneyMarketView;
|
|
370
|
+
}
|
|
371
|
+
}
|