@pendle/core-v2 0.3.0 → 0.5.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/contracts/SuperComposableYield/ISuperComposableYield.sol +14 -0
- package/contracts/SuperComposableYield/implementations/IRewardManager.sol +16 -0
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +24 -5
- package/contracts/SuperComposableYield/implementations/SCYBase.sol +21 -1
- package/contracts/core/PendleMarket.sol +10 -18
- package/contracts/core/PendleMarketFactory.sol +49 -22
- package/contracts/core/PendleRouter.sol +74 -0
- package/contracts/core/PendleYieldToken.sol +20 -12
- package/contracts/core/{router/PendleRouterStaticUpg.sol → RouterStatic.sol} +6 -6
- package/contracts/core/actions/ActionCallback.sol +101 -0
- package/contracts/core/{router/PendleRouterCoreUpg.sol → actions/ActionCore.sol} +6 -10
- package/contracts/core/{router/PendleRouterYTUpg.sol → actions/ActionYT.sol} +6 -11
- package/contracts/core/{router/base/PendleRouterOTBaseUpg.sol → actions/base/ActionSCYAndOTBase.sol} +1 -5
- package/contracts/core/{router/base/PendleRouterSCYAndForgeBaseUpg.sol → actions/base/ActionSCYAndYOBase.sol} +6 -8
- package/contracts/core/{router/base/PendleRouterYTBaseUpg.sol → actions/base/ActionSCYAndYTBase.sol} +7 -99
- package/contracts/core/actions/base/ActionType.sol +11 -0
- package/contracts/interfaces/{IPRouterCore.sol → IPActionCore.sol} +1 -1
- package/contracts/interfaces/{IPRouterYT.sol → IPActionYT.sol} +1 -3
- package/contracts/interfaces/IPAllAction.sol +9 -0
- package/contracts/interfaces/IPMarketFactory.sol +11 -0
- package/contracts/interfaces/IPYieldToken.sol +21 -3
- package/contracts/libraries/math/MarketMathCore.sol +3 -2
- package/package.json +1 -1
- package/typechain-types/{PendleRouterYTBaseUpg.ts → ActionCallback.ts} +5 -5
- package/typechain-types/{PendleRouterCoreUpg.ts → ActionCore.ts} +5 -5
- package/typechain-types/{PendleRouterSCYAndForgeBaseUpg.ts → ActionSCYAndYOBase.ts} +5 -6
- package/typechain-types/{BoringOwnableData.ts → ActionSCYAndYTBase.ts} +21 -24
- package/typechain-types/{PendleRouterStaticUpg.ts → ActionStatic.ts} +5 -5
- package/typechain-types/{IPRouterYT.ts → ActionYT.ts} +27 -42
- package/typechain-types/IPActionAll.ts +1431 -0
- package/typechain-types/{IPRouterCore.ts → IPActionCore.ts} +5 -5
- package/typechain-types/{IPRouterView.ts → IPActionStatic.ts} +57 -5
- package/typechain-types/{PendleRouterYTUpg.ts → IPActionYT.ts} +5 -97
- package/typechain-types/IPAllAction.ts +1431 -0
- package/typechain-types/IPMarket.ts +3 -0
- package/typechain-types/IPMarketFactory.ts +46 -0
- package/typechain-types/IPYieldToken.ts +342 -14
- package/typechain-types/IRewardManager.ts +178 -0
- package/typechain-types/ISuperComposableYield.ts +97 -2
- package/typechain-types/PendleAaveV3SCY.ts +167 -66
- package/typechain-types/PendleBenQiErc20SCY.ts +167 -66
- package/typechain-types/PendleBtrflyScy.ts +97 -2
- package/typechain-types/PendleMarket.ts +3 -59
- package/typechain-types/PendleMarketFactory.ts +150 -24
- package/typechain-types/{PendleRouterProxy.ts → PendleRouter.ts} +29 -39
- package/typechain-types/PendleYearnVaultScy.ts +97 -2
- package/typechain-types/PendleYieldToken.ts +116 -101
- package/typechain-types/RewardManager.ts +48 -42
- package/typechain-types/RouterStatic.ts +828 -0
- package/typechain-types/SCYBase.ts +97 -2
- package/typechain-types/SCYBaseWithRewards.ts +167 -66
- package/typechain-types/factories/ActionCallback__factory.ts +116 -0
- package/typechain-types/factories/ActionCore__factory.ts +632 -0
- package/typechain-types/factories/{PendleRouterSCYAndForgeBaseUpg__factory.ts → ActionSCYAndYOBase__factory.ts} +8 -12
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +52 -0
- package/typechain-types/factories/ActionStatic__factory.ts +308 -0
- package/typechain-types/factories/ActionYT__factory.ts +370 -0
- package/typechain-types/factories/IPActionAll__factory.ts +983 -0
- package/typechain-types/factories/{IPRouterCore__factory.ts → IPActionCore__factory.ts} +6 -6
- package/typechain-types/factories/{IPRouterView__factory.ts → IPActionStatic__factory.ts} +38 -6
- package/typechain-types/factories/{IPRouterYT__factory.ts → IPActionYT__factory.ts} +6 -29
- package/typechain-types/factories/IPAllAction__factory.ts +983 -0
- package/typechain-types/factories/IPMarketFactory__factory.ts +28 -0
- package/typechain-types/factories/IPMarket__factory.ts +7 -2
- package/typechain-types/factories/IPYieldToken__factory.ts +158 -1
- package/typechain-types/factories/IRewardManager__factory.ts +92 -0
- package/typechain-types/factories/ISuperComposableYield__factory.ts +68 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +102 -34
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +102 -34
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +69 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +112 -17
- package/typechain-types/factories/PendleMarket__factory.ts +8 -69
- package/typechain-types/factories/PendleRouter__factory.ts +282 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +69 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +58 -58
- package/typechain-types/factories/RewardManager__factory.ts +18 -18
- package/typechain-types/factories/RouterStatic__factory.ts +883 -0
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +101 -33
- package/typechain-types/factories/SCYBase__factory.ts +68 -0
- package/typechain-types/hardhat.d.ts +93 -75
- package/typechain-types/index.ts +22 -18
- package/contracts/core/router/PendleRouterProxy.sol +0 -84
- package/contracts/interfaces/IPFlashCallBack.sol +0 -10
- package/typechain-types/BoringOwnable.ts +0 -194
- package/typechain-types/BoringOwnableUpg.ts +0 -194
- package/typechain-types/BoringOwnableUpgData.ts +0 -100
- package/typechain-types/IPFlashCallback.ts +0 -115
- package/typechain-types/IPermissionsV2.ts +0 -87
- package/typechain-types/PendleRouterViewUpg.ts +0 -307
- package/typechain-types/PermissionsV2.ts +0 -87
- package/typechain-types/factories/BoringOwnableData__factory.ts +0 -90
- package/typechain-types/factories/BoringOwnableUpgData__factory.ts +0 -94
- package/typechain-types/factories/BoringOwnableUpg__factory.ts +0 -139
- package/typechain-types/factories/BoringOwnable__factory.ts +0 -149
- package/typechain-types/factories/IPFlashCallback__factory.ts +0 -49
- package/typechain-types/factories/IPermissionsV2__factory.ts +0 -39
- package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +0 -635
- package/typechain-types/factories/PendleRouterProxy__factory.ts +0 -285
- package/typechain-types/factories/PendleRouterStaticUpg__factory.ts +0 -315
- package/typechain-types/factories/PendleRouterViewUpg__factory.ts +0 -265
- package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +0 -66
- package/typechain-types/factories/PendleRouterYTUpg__factory.ts +0 -422
- package/typechain-types/factories/PermissionsV2__factory.ts +0 -36
|
@@ -0,0 +1,883 @@
|
|
|
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 { RouterStatic, RouterStaticInterface } from "../RouterStatic";
|
|
7
|
+
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "contract IPYieldContractFactory",
|
|
13
|
+
name: "_yieldContractFactory",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "contract IPMarketFactory",
|
|
18
|
+
name: "_marketFactory",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
stateMutability: "nonpayable",
|
|
23
|
+
type: "constructor",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
inputs: [
|
|
27
|
+
{
|
|
28
|
+
internalType: "address",
|
|
29
|
+
name: "market",
|
|
30
|
+
type: "address",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "scyDesired",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "uint256",
|
|
39
|
+
name: "otDesired",
|
|
40
|
+
type: "uint256",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
name: "addLiquidityStatic",
|
|
44
|
+
outputs: [
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "netLpOut",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "scyUsed",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "otUsed",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
stateMutability: "nonpayable",
|
|
62
|
+
type: "function",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
inputs: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "address",
|
|
68
|
+
name: "market",
|
|
69
|
+
type: "address",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
name: "getMarketInfo",
|
|
73
|
+
outputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "ot",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
internalType: "address",
|
|
81
|
+
name: "scy",
|
|
82
|
+
type: "address",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
components: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "int256",
|
|
88
|
+
name: "totalOt",
|
|
89
|
+
type: "int256",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "int256",
|
|
93
|
+
name: "totalScy",
|
|
94
|
+
type: "int256",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "int256",
|
|
98
|
+
name: "totalLp",
|
|
99
|
+
type: "int256",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint256",
|
|
103
|
+
name: "oracleRate",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
internalType: "address",
|
|
108
|
+
name: "treasury",
|
|
109
|
+
type: "address",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
internalType: "int256",
|
|
113
|
+
name: "scalarRoot",
|
|
114
|
+
type: "int256",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
internalType: "uint256",
|
|
118
|
+
name: "feeRateRoot",
|
|
119
|
+
type: "uint256",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
internalType: "uint256",
|
|
123
|
+
name: "rateOracleTimeWindow",
|
|
124
|
+
type: "uint256",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
internalType: "uint256",
|
|
128
|
+
name: "expiry",
|
|
129
|
+
type: "uint256",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
internalType: "uint256",
|
|
133
|
+
name: "reserveFeePercent",
|
|
134
|
+
type: "uint256",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint256",
|
|
138
|
+
name: "lastImpliedRate",
|
|
139
|
+
type: "uint256",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
internalType: "uint256",
|
|
143
|
+
name: "lastTradeTime",
|
|
144
|
+
type: "uint256",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
internalType: "struct MarketState",
|
|
148
|
+
name: "state",
|
|
149
|
+
type: "tuple",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
internalType: "int256",
|
|
153
|
+
name: "impliedYield",
|
|
154
|
+
type: "int256",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
internalType: "uint256",
|
|
158
|
+
name: "exchangeRate",
|
|
159
|
+
type: "uint256",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
stateMutability: "view",
|
|
163
|
+
type: "function",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
inputs: [
|
|
167
|
+
{
|
|
168
|
+
internalType: "address",
|
|
169
|
+
name: "market",
|
|
170
|
+
type: "address",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
name: "getOtImpliedYield",
|
|
174
|
+
outputs: [
|
|
175
|
+
{
|
|
176
|
+
internalType: "int256",
|
|
177
|
+
name: "",
|
|
178
|
+
type: "int256",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
stateMutability: "view",
|
|
182
|
+
type: "function",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
inputs: [
|
|
186
|
+
{
|
|
187
|
+
internalType: "address",
|
|
188
|
+
name: "token",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
name: "getPendleTokenType",
|
|
193
|
+
outputs: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "bool",
|
|
196
|
+
name: "isOT",
|
|
197
|
+
type: "bool",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "bool",
|
|
201
|
+
name: "isYT",
|
|
202
|
+
type: "bool",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
internalType: "bool",
|
|
206
|
+
name: "isMarket",
|
|
207
|
+
type: "bool",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
stateMutability: "view",
|
|
211
|
+
type: "function",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
inputs: [
|
|
215
|
+
{
|
|
216
|
+
internalType: "address",
|
|
217
|
+
name: "market",
|
|
218
|
+
type: "address",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
internalType: "address",
|
|
222
|
+
name: "user",
|
|
223
|
+
type: "address",
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
name: "getUserMarketInfo",
|
|
227
|
+
outputs: [
|
|
228
|
+
{
|
|
229
|
+
components: [
|
|
230
|
+
{
|
|
231
|
+
internalType: "address",
|
|
232
|
+
name: "market",
|
|
233
|
+
type: "address",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
internalType: "uint256",
|
|
237
|
+
name: "lpBalance",
|
|
238
|
+
type: "uint256",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
components: [
|
|
242
|
+
{
|
|
243
|
+
internalType: "address",
|
|
244
|
+
name: "token",
|
|
245
|
+
type: "address",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "amount",
|
|
250
|
+
type: "uint256",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
254
|
+
name: "otBalance",
|
|
255
|
+
type: "tuple",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
components: [
|
|
259
|
+
{
|
|
260
|
+
internalType: "address",
|
|
261
|
+
name: "token",
|
|
262
|
+
type: "address",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
internalType: "uint256",
|
|
266
|
+
name: "amount",
|
|
267
|
+
type: "uint256",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
271
|
+
name: "scyBalance",
|
|
272
|
+
type: "tuple",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
components: [
|
|
276
|
+
{
|
|
277
|
+
internalType: "address",
|
|
278
|
+
name: "token",
|
|
279
|
+
type: "address",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
internalType: "uint256",
|
|
283
|
+
name: "amount",
|
|
284
|
+
type: "uint256",
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
288
|
+
name: "assetBalance",
|
|
289
|
+
type: "tuple",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
internalType: "struct IPRouterStatic.UserMarketInfo",
|
|
293
|
+
name: "userMarketInfo",
|
|
294
|
+
type: "tuple",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
stateMutability: "view",
|
|
298
|
+
type: "function",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
inputs: [
|
|
302
|
+
{
|
|
303
|
+
internalType: "address",
|
|
304
|
+
name: "user",
|
|
305
|
+
type: "address",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
internalType: "address[]",
|
|
309
|
+
name: "markets",
|
|
310
|
+
type: "address[]",
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
name: "getUserMarketPositions",
|
|
314
|
+
outputs: [
|
|
315
|
+
{
|
|
316
|
+
components: [
|
|
317
|
+
{
|
|
318
|
+
internalType: "address",
|
|
319
|
+
name: "market",
|
|
320
|
+
type: "address",
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
internalType: "uint256",
|
|
324
|
+
name: "lpBalance",
|
|
325
|
+
type: "uint256",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
components: [
|
|
329
|
+
{
|
|
330
|
+
internalType: "address",
|
|
331
|
+
name: "token",
|
|
332
|
+
type: "address",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "amount",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
341
|
+
name: "otBalance",
|
|
342
|
+
type: "tuple",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
components: [
|
|
346
|
+
{
|
|
347
|
+
internalType: "address",
|
|
348
|
+
name: "token",
|
|
349
|
+
type: "address",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
internalType: "uint256",
|
|
353
|
+
name: "amount",
|
|
354
|
+
type: "uint256",
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
358
|
+
name: "scyBalance",
|
|
359
|
+
type: "tuple",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
components: [
|
|
363
|
+
{
|
|
364
|
+
internalType: "address",
|
|
365
|
+
name: "token",
|
|
366
|
+
type: "address",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
internalType: "uint256",
|
|
370
|
+
name: "amount",
|
|
371
|
+
type: "uint256",
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
375
|
+
name: "assetBalance",
|
|
376
|
+
type: "tuple",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
internalType: "struct IPRouterStatic.UserMarketInfo[]",
|
|
380
|
+
name: "userMarketPositions",
|
|
381
|
+
type: "tuple[]",
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
stateMutability: "view",
|
|
385
|
+
type: "function",
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
inputs: [
|
|
389
|
+
{
|
|
390
|
+
internalType: "address",
|
|
391
|
+
name: "token",
|
|
392
|
+
type: "address",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
internalType: "address",
|
|
396
|
+
name: "user",
|
|
397
|
+
type: "address",
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
name: "getUserYOInfo",
|
|
401
|
+
outputs: [
|
|
402
|
+
{
|
|
403
|
+
components: [
|
|
404
|
+
{
|
|
405
|
+
internalType: "address",
|
|
406
|
+
name: "yt",
|
|
407
|
+
type: "address",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
internalType: "address",
|
|
411
|
+
name: "ot",
|
|
412
|
+
type: "address",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
internalType: "uint256",
|
|
416
|
+
name: "ytBalance",
|
|
417
|
+
type: "uint256",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
internalType: "uint256",
|
|
421
|
+
name: "otBalance",
|
|
422
|
+
type: "uint256",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
components: [
|
|
426
|
+
{
|
|
427
|
+
internalType: "address",
|
|
428
|
+
name: "token",
|
|
429
|
+
type: "address",
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
internalType: "uint256",
|
|
433
|
+
name: "amount",
|
|
434
|
+
type: "uint256",
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
438
|
+
name: "unclaimedInterest",
|
|
439
|
+
type: "tuple",
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
components: [
|
|
443
|
+
{
|
|
444
|
+
internalType: "address",
|
|
445
|
+
name: "token",
|
|
446
|
+
type: "address",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
internalType: "uint256",
|
|
450
|
+
name: "amount",
|
|
451
|
+
type: "uint256",
|
|
452
|
+
},
|
|
453
|
+
],
|
|
454
|
+
internalType: "struct IPRouterStatic.TokenAmount[]",
|
|
455
|
+
name: "unclaimedRewards",
|
|
456
|
+
type: "tuple[]",
|
|
457
|
+
},
|
|
458
|
+
],
|
|
459
|
+
internalType: "struct IPRouterStatic.UserYOInfo",
|
|
460
|
+
name: "userYOInfo",
|
|
461
|
+
type: "tuple",
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
stateMutability: "view",
|
|
465
|
+
type: "function",
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
inputs: [
|
|
469
|
+
{
|
|
470
|
+
internalType: "address",
|
|
471
|
+
name: "user",
|
|
472
|
+
type: "address",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
internalType: "address[]",
|
|
476
|
+
name: "tokens",
|
|
477
|
+
type: "address[]",
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
name: "getUserYOPositionsByTokens",
|
|
481
|
+
outputs: [
|
|
482
|
+
{
|
|
483
|
+
components: [
|
|
484
|
+
{
|
|
485
|
+
internalType: "address",
|
|
486
|
+
name: "yt",
|
|
487
|
+
type: "address",
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
internalType: "address",
|
|
491
|
+
name: "ot",
|
|
492
|
+
type: "address",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
internalType: "uint256",
|
|
496
|
+
name: "ytBalance",
|
|
497
|
+
type: "uint256",
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
internalType: "uint256",
|
|
501
|
+
name: "otBalance",
|
|
502
|
+
type: "uint256",
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
components: [
|
|
506
|
+
{
|
|
507
|
+
internalType: "address",
|
|
508
|
+
name: "token",
|
|
509
|
+
type: "address",
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
internalType: "uint256",
|
|
513
|
+
name: "amount",
|
|
514
|
+
type: "uint256",
|
|
515
|
+
},
|
|
516
|
+
],
|
|
517
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
518
|
+
name: "unclaimedInterest",
|
|
519
|
+
type: "tuple",
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
components: [
|
|
523
|
+
{
|
|
524
|
+
internalType: "address",
|
|
525
|
+
name: "token",
|
|
526
|
+
type: "address",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
internalType: "uint256",
|
|
530
|
+
name: "amount",
|
|
531
|
+
type: "uint256",
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
internalType: "struct IPRouterStatic.TokenAmount[]",
|
|
535
|
+
name: "unclaimedRewards",
|
|
536
|
+
type: "tuple[]",
|
|
537
|
+
},
|
|
538
|
+
],
|
|
539
|
+
internalType: "struct IPRouterStatic.UserYOInfo[]",
|
|
540
|
+
name: "userYOPositions",
|
|
541
|
+
type: "tuple[]",
|
|
542
|
+
},
|
|
543
|
+
],
|
|
544
|
+
stateMutability: "view",
|
|
545
|
+
type: "function",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
inputs: [
|
|
549
|
+
{
|
|
550
|
+
internalType: "address",
|
|
551
|
+
name: "token",
|
|
552
|
+
type: "address",
|
|
553
|
+
},
|
|
554
|
+
],
|
|
555
|
+
name: "getYO",
|
|
556
|
+
outputs: [
|
|
557
|
+
{
|
|
558
|
+
internalType: "address",
|
|
559
|
+
name: "ot",
|
|
560
|
+
type: "address",
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
internalType: "address",
|
|
564
|
+
name: "yt",
|
|
565
|
+
type: "address",
|
|
566
|
+
},
|
|
567
|
+
],
|
|
568
|
+
stateMutability: "view",
|
|
569
|
+
type: "function",
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
inputs: [
|
|
573
|
+
{
|
|
574
|
+
internalType: "address",
|
|
575
|
+
name: "token",
|
|
576
|
+
type: "address",
|
|
577
|
+
},
|
|
578
|
+
],
|
|
579
|
+
name: "getYOInfo",
|
|
580
|
+
outputs: [
|
|
581
|
+
{
|
|
582
|
+
internalType: "uint256",
|
|
583
|
+
name: "exchangeRate",
|
|
584
|
+
type: "uint256",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
internalType: "uint256",
|
|
588
|
+
name: "totalSupply",
|
|
589
|
+
type: "uint256",
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
components: [
|
|
593
|
+
{
|
|
594
|
+
internalType: "address",
|
|
595
|
+
name: "rewardToken",
|
|
596
|
+
type: "address",
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
internalType: "uint256",
|
|
600
|
+
name: "index",
|
|
601
|
+
type: "uint256",
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
internalType: "struct IPRouterStatic.RewardIndex[]",
|
|
605
|
+
name: "rewardIndexes",
|
|
606
|
+
type: "tuple[]",
|
|
607
|
+
},
|
|
608
|
+
],
|
|
609
|
+
stateMutability: "nonpayable",
|
|
610
|
+
type: "function",
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
inputs: [
|
|
614
|
+
{
|
|
615
|
+
components: [
|
|
616
|
+
{
|
|
617
|
+
internalType: "address",
|
|
618
|
+
name: "yt",
|
|
619
|
+
type: "address",
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
internalType: "address",
|
|
623
|
+
name: "ot",
|
|
624
|
+
type: "address",
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
internalType: "uint256",
|
|
628
|
+
name: "ytBalance",
|
|
629
|
+
type: "uint256",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
internalType: "uint256",
|
|
633
|
+
name: "otBalance",
|
|
634
|
+
type: "uint256",
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
components: [
|
|
638
|
+
{
|
|
639
|
+
internalType: "address",
|
|
640
|
+
name: "token",
|
|
641
|
+
type: "address",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
internalType: "uint256",
|
|
645
|
+
name: "amount",
|
|
646
|
+
type: "uint256",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
650
|
+
name: "unclaimedInterest",
|
|
651
|
+
type: "tuple",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
components: [
|
|
655
|
+
{
|
|
656
|
+
internalType: "address",
|
|
657
|
+
name: "token",
|
|
658
|
+
type: "address",
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
internalType: "uint256",
|
|
662
|
+
name: "amount",
|
|
663
|
+
type: "uint256",
|
|
664
|
+
},
|
|
665
|
+
],
|
|
666
|
+
internalType: "struct IPRouterStatic.TokenAmount[]",
|
|
667
|
+
name: "unclaimedRewards",
|
|
668
|
+
type: "tuple[]",
|
|
669
|
+
},
|
|
670
|
+
],
|
|
671
|
+
internalType: "struct IPRouterStatic.UserYOInfo",
|
|
672
|
+
name: "userYOInfo",
|
|
673
|
+
type: "tuple",
|
|
674
|
+
},
|
|
675
|
+
],
|
|
676
|
+
name: "hasYOPosition",
|
|
677
|
+
outputs: [
|
|
678
|
+
{
|
|
679
|
+
internalType: "bool",
|
|
680
|
+
name: "hasPosition",
|
|
681
|
+
type: "bool",
|
|
682
|
+
},
|
|
683
|
+
],
|
|
684
|
+
stateMutability: "pure",
|
|
685
|
+
type: "function",
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
inputs: [],
|
|
689
|
+
name: "marketFactory",
|
|
690
|
+
outputs: [
|
|
691
|
+
{
|
|
692
|
+
internalType: "contract IPMarketFactory",
|
|
693
|
+
name: "",
|
|
694
|
+
type: "address",
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
stateMutability: "view",
|
|
698
|
+
type: "function",
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
inputs: [
|
|
702
|
+
{
|
|
703
|
+
internalType: "address",
|
|
704
|
+
name: "market",
|
|
705
|
+
type: "address",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
internalType: "uint256",
|
|
709
|
+
name: "lpToRemove",
|
|
710
|
+
type: "uint256",
|
|
711
|
+
},
|
|
712
|
+
],
|
|
713
|
+
name: "removeLiquidityStatic",
|
|
714
|
+
outputs: [
|
|
715
|
+
{
|
|
716
|
+
internalType: "uint256",
|
|
717
|
+
name: "netScyOut",
|
|
718
|
+
type: "uint256",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
internalType: "uint256",
|
|
722
|
+
name: "netOtOut",
|
|
723
|
+
type: "uint256",
|
|
724
|
+
},
|
|
725
|
+
],
|
|
726
|
+
stateMutability: "view",
|
|
727
|
+
type: "function",
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
inputs: [
|
|
731
|
+
{
|
|
732
|
+
internalType: "address",
|
|
733
|
+
name: "market",
|
|
734
|
+
type: "address",
|
|
735
|
+
},
|
|
736
|
+
],
|
|
737
|
+
name: "scyIndex",
|
|
738
|
+
outputs: [
|
|
739
|
+
{
|
|
740
|
+
internalType: "SCYIndex",
|
|
741
|
+
name: "index",
|
|
742
|
+
type: "uint256",
|
|
743
|
+
},
|
|
744
|
+
],
|
|
745
|
+
stateMutability: "nonpayable",
|
|
746
|
+
type: "function",
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
inputs: [
|
|
750
|
+
{
|
|
751
|
+
internalType: "address",
|
|
752
|
+
name: "market",
|
|
753
|
+
type: "address",
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
internalType: "uint256",
|
|
757
|
+
name: "exactOtIn",
|
|
758
|
+
type: "uint256",
|
|
759
|
+
},
|
|
760
|
+
],
|
|
761
|
+
name: "swapOtForScyStatic",
|
|
762
|
+
outputs: [
|
|
763
|
+
{
|
|
764
|
+
internalType: "uint256",
|
|
765
|
+
name: "netScyOut",
|
|
766
|
+
type: "uint256",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
internalType: "uint256",
|
|
770
|
+
name: "netScyFee",
|
|
771
|
+
type: "uint256",
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
stateMutability: "nonpayable",
|
|
775
|
+
type: "function",
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
inputs: [
|
|
779
|
+
{
|
|
780
|
+
internalType: "address",
|
|
781
|
+
name: "market",
|
|
782
|
+
type: "address",
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
internalType: "uint256",
|
|
786
|
+
name: "exactOtOut",
|
|
787
|
+
type: "uint256",
|
|
788
|
+
},
|
|
789
|
+
],
|
|
790
|
+
name: "swapScyForOtStatic",
|
|
791
|
+
outputs: [
|
|
792
|
+
{
|
|
793
|
+
internalType: "uint256",
|
|
794
|
+
name: "netScyIn",
|
|
795
|
+
type: "uint256",
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
internalType: "uint256",
|
|
799
|
+
name: "netScyFee",
|
|
800
|
+
type: "uint256",
|
|
801
|
+
},
|
|
802
|
+
],
|
|
803
|
+
stateMutability: "nonpayable",
|
|
804
|
+
type: "function",
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
inputs: [],
|
|
808
|
+
name: "yieldContractFactory",
|
|
809
|
+
outputs: [
|
|
810
|
+
{
|
|
811
|
+
internalType: "contract IPYieldContractFactory",
|
|
812
|
+
name: "",
|
|
813
|
+
type: "address",
|
|
814
|
+
},
|
|
815
|
+
],
|
|
816
|
+
stateMutability: "view",
|
|
817
|
+
type: "function",
|
|
818
|
+
},
|
|
819
|
+
];
|
|
820
|
+
|
|
821
|
+
const _bytecode =
|
|
822
|
+
"0x60c06040523480156200001157600080fd5b5060405162003bed38038062003bed833981016040819052620000349162000065565b6001600160a01b039182166080521660a052620000a4565b6001600160a01b03811681146200006257600080fd5b50565b600080604083850312156200007957600080fd5b825162000086816200004c565b602084015190925062000099816200004c565b809150509250929050565b60805160a051613afa620000f36000396000818160e50152818161077201526114c501526000818161021001528181610528015281816106560152818161135c015261141b0152613afa6000f3fe608060405234801561001057600080fd5b50600436106100db5760003560e01c806306ae7095146100e05780630cf85bcc1461011d5780631dee0f731461014157806332e12d7914610162578063372cfb93146101905780634d2037e5146101b057806355a7bae2146101d857806355b4fff5146101eb57806387a409a21461020b578063911509a914610232578063a845420314610253578063b35ed84214610273578063d52eacb214610286578063e061a358146102b8578063e4a44426146102da578063e995de7f146102ed578063f4dd8f7b1461030d575b600080fd5b6101077f000000000000000000000000000000000000000000000000000000000000000081565b6040516101149190612ff0565b60405180910390f35b61013061012b36600461301c565b610330565b604051610114959493929190613039565b61015461014f36600461301c565b610523565b604051610114929190613108565b610175610170366004613122565b6108ad565b60408051938452602084019290925290820152606001610114565b6101a361019e366004613157565b610959565b60405161011491906131fd565b6101c36101be36600461320c565b610b3b565b60408051928352602083019190915201610114565b6101c36101e636600461320c565b610be0565b6101fe6101f9366004613238565b610c6e565b60405161011491906132bf565b6101077f000000000000000000000000000000000000000000000000000000000000000081565b61024561024036600461301c565b610d35565b604051908152602001610114565b610266610261366004613157565b610dd8565b60405161011491906133a8565b6101c361028136600461320c565b6112bc565b61029961029436600461301c565b611355565b6040805193151584529115156020840152151590820152606001610114565b6102cb6102c636600461301c565b61155a565b604051610114939291906133bb565b6102456102e836600461301c565b61183b565b6103006102fb366004613238565b6118bc565b6040516101149190613419565b61032061031b3660046135fb565b61197b565b6040519015158152602001610114565b6000806103a06040518061018001604052806000815260200160008152602001600081526020016000815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000806000869050806001600160a01b031663c836545a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103e157600080fd5b505afa1580156103f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041991906136c0565b9550806001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b15801561045457600080fd5b505afa158015610468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048c91906136c0565b604051631cf38c7b60e11b8152600160048201529095506001600160a01b038216906339e718f6906024016101806040518083038186803b1580156104d057600080fd5b505afa1580156104e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050891906136dd565b935061051387610d35565b9250600091505091939590929450565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166335e46e9a846040518263ffffffff1660e01b81526004016105729190612ff0565b60206040518083038186803b15801561058a57600080fd5b505afa15801561059e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c2919061377e565b1561063f57826001600160a01b031663781c18db6040518163ffffffff1660e01b815260040160206040518083038186803b15801561060057600080fd5b505afa158015610614573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063891906136c0565b9293915050565b604051630e308d5560e31b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906371846aa89061068b908690600401612ff0565b60206040518083038186803b1580156106a357600080fd5b505afa1580156106b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106db919061377e565b1561075b57829050826001600160a01b031663c836545a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561071c57600080fd5b505afa158015610730573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075491906136c0565b9150915091565b6040516358e6309f60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906358e6309f906107a7908690600401612ff0565b60206040518083038186803b1580156107bf57600080fd5b505afa1580156107d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f7919061377e565b156108a857826001600160a01b031663781c18db6040518163ffffffff1660e01b815260040160206040518083038186803b15801561083557600080fd5b505afa158015610849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086d91906136c0565b9050826001600160a01b031663c836545a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561071c57600080fd5b915091565b604051631cf38c7b60e11b8152600060048201819052908190819081906001600160a01b038816906339e718f6906024016101806040518083038186803b1580156108f757600080fd5b505afa15801561090b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092f91906136dd565b905061094861093d8861183b565b8290888860006119b7565b919a90995090975095505050505050565b610961612f4d565b6001600160a01b0383168082526040516370a0823160e01b81528491906370a0823190610992908690600401612ff0565b60206040518083038186803b1580156109aa57600080fd5b505afa1580156109be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e291906137a0565b8260200181815250506040518060400160405280826001600160a01b031663c836545a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a2f57600080fd5b505afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6791906136c0565b6001600160a01b03168152602001600081525082604001819052506040518060400160405280826001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b158015610ac657600080fd5b505afa158015610ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afe91906136c0565b6001600160a01b03168152600060209182018190526060850192909252604080518082019091528281529081019190915260808301525092915050565b604051631cf38c7b60e11b815260006004820181905290819081906001600160a01b038616906339e718f6906024016101806040518083038186803b158015610b8357600080fd5b505afa158015610b97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbb91906136dd565b9050610bd4610bc98661183b565b829086426000611a24565b90969095509350505050565b604051631cf38c7b60e11b815260006004820181905290819081906001600160a01b038616906339e718f6906024016101806040518083038186803b158015610c2857600080fd5b505afa158015610c3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6091906136dd565b9050610bd481856000611a6d565b6060816001600160401b03811115610c8857610c8861347b565b604051908082528060200260200182016040528015610cc157816020015b610cae612f4d565b815260200190600190039081610ca65790505b50905060005b82811015610d2d57610cff848483818110610ce457610ce46137b9565b9050602002016020810190610cf9919061301c565b86610959565b828281518110610d1157610d116137b9565b602002602001018190525080610d26906137e5565b9050610cc7565b509392505050565b604051631cf38c7b60e11b81526000600482018190529081906001600160a01b038416906339e718f6906024016101806040518083038186803b158015610d7b57600080fd5b505afa158015610d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db391906136dd565b90506000610dc5826101400151611aaa565b9050610dd081611ac0565b949350505050565b610de0612f8b565b610de983610523565b6001600160a01b039081166020840152168082526040516370a0823160e01b815281906370a0823190610e20908690600401612ff0565b60206040518083038186803b158015610e3857600080fd5b505afa158015610e4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7091906137a0565b82604001818152505081602001516001600160a01b03166370a08231846040518263ffffffff1660e01b8152600401610ea99190612ff0565b60206040518083038186803b158015610ec157600080fd5b505afa158015610ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef991906137a0565b826060018181525050806001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b158015610f3b57600080fd5b505afa158015610f4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7391906136c0565b60808301516001600160a01b0391821690526040516371fd241f60e01b8152908216906371fd241f90610faa908690600401612ff0565b604080518083038186803b158015610fc157600080fd5b505afa158015610fd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff99190613800565b9050826080015160200181815250506000816001600160a01b031663c4f59f9b6040518163ffffffff1660e01b815260040160006040518083038186803b15801561104357600080fd5b505afa158015611057573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261107f9190810190613824565b9050600081516001600160401b0381111561109c5761109c61347b565b6040519080825280602002602001820160405280156110d557816020015b6110c2612fd9565b8152602001906001900390816110ba5790505b5090506000805b83518110156112025760008482815181106110f9576110f96137b9565b602002602001015190506000866001600160a01b0316635ab764ed8a846040518363ffffffff1660e01b8152600401611133929190613108565b604080518083038186803b15801561114a57600080fd5b505afa15801561115e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111829190613800565b91505080156111ef578185858151811061119e5761119e6137b9565b6020026020010151600001906001600160a01b031690816001600160a01b031681525050808585815181106111d5576111d56137b9565b60209081029190910181015101526111ec846137e5565b93505b5050806111fb906137e5565b90506110dc565b50806001600160401b0381111561121b5761121b61347b565b60405190808252806020026020018201604052801561125457816020015b611241612fd9565b8152602001906001900390816112395790505b5060a086015260005b818110156112b157828181518110611277576112776137b9565b60200260200101518660a001518281518110611295576112956137b9565b6020026020010181905250806112aa906137e5565b905061125d565b505050505092915050565b604051631cf38c7b60e11b815260006004820181905290819081906001600160a01b038616906339e718f6906024016101806040518083038186803b15801561130457600080fd5b505afa158015611318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133c91906136dd565b9050610bd461134a8661183b565b829086426000611eda565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166335e46e9a856040518263ffffffff1660e01b81526004016113a69190612ff0565b60206040518083038186803b1580156113be57600080fd5b505afa1580156113d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f6919061377e565b156114045760019250611553565b604051630e308d5560e31b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906371846aa890611450908790600401612ff0565b60206040518083038186803b15801561146857600080fd5b505afa15801561147c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a0919061377e565b156114ae5760019150611553565b6040516358e6309f60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906358e6309f906114fa908790600401612ff0565b60206040518083038186803b15801561151257600080fd5b505afa158015611526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154a919061377e565b15611553575060015b9193909250565b6000806060600061156a85610523565b5090506000819050806001600160a01b0316639b1e03f06040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156115ad57600080fd5b505af11580156115c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e591906137a0565b9450806001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561162057600080fd5b505afa158015611634573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165891906137a0565b93506000816001600160a01b031663c4f59f9b6040518163ffffffff1660e01b815260040160006040518083038186803b15801561169557600080fd5b505afa1580156116a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116d19190810190613824565b905080516001600160401b038111156116ec576116ec61347b565b60405190808252806020026020018201604052801561173157816020015b604080518082019091526000808252602082015281526020019060019003908161170a5790505b50935060005b8151811015611830576000828281518110611754576117546137b9565b6020026020010151905080868381518110611771576117716137b9565b60209081029190910101516001600160a01b039182169052604051633c12060560e21b81529085169063f0481814906117ae908490600401612ff0565b604080518083038186803b1580156117c557600080fd5b505afa1580156117d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117fd9190613800565b9050868381518110611811576118116137b9565b602090810291909101810151015250611829816137e5565b9050611737565b505050509193909250565b60006118b6826001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b15801561187957600080fd5b505afa15801561188d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b191906136c0565b611efb565b92915050565b6060816001600160401b038111156118d6576118d661347b565b60405190808252806020026020018201604052801561190f57816020015b6118fc612f8b565b8152602001906001900390816118f45790505b50905060005b82811015610d2d5761194d848483818110611932576119326137b9565b9050602002016020810190611947919061301c565b86610dd8565b82828151811061195f5761195f6137b9565b602002602001018190525080611974906137e5565b9050611915565b60008082604001511180611993575060008260600151115b806119a657506000826080015160200151115b806118b657505060a0015151151590565b6000806000806000806000806119e08d8d6119d18e611aaa565b6119da8e611aaa565b8d611f70565b93509350935093506119f18461213f565b97506119fc8361213f565b9650611a078261213f565b9550611a128161213f565b94505050505095509550955095915050565b600080600080611a3f8989611a388a611aaa565b898961214e565b91509150611a54611a4f83612219565b61213f565b9350611a5f8161213f565b925050509550959350505050565b600080600080611a8687611a8088611aaa565b87612224565b91509150611a938261213f565b9350611a9e8161213f565b92505050935093915050565b6000600160ff1b8210611abc57600080fd5b5090565b6000680238fd42c5cf03ffff198212158015611ae5575068070c1cc73b00c800008213155b611b295760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b60448201526064015b60405180910390fd5b6000821215611b6157611b3e82600003611ac0565b6a0c097ce7bc90715b34b9f160241b81611b5a57611b5a6138bd565b0592915050565b60006806f05b59d3b20000008312611b9f57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b611bd5565b6803782dace9d90000008312611bd157506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380611bd5565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac620000008412611c255768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412611c61576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b188000008412611c9b57682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412611cd5576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac62000008412611d0e57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d631000008412611d475768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412611d80576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c400008412611db95768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b600080600080611eee8989611a388a6122ef565b91509150611a548261213f565b6000816001600160a01b031663f65d6fc86040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611f3857600080fd5b505af1158015611f4c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b691906137a0565b600080600080600087138015611f865750600086135b611fc15760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f414d4f554e545360a01b6044820152606401611b20565b6040890151611ff257611fe06103e8611fda8a8a612303565b9061233f565b92506103e89350869150859050612095565b885160408a01516000919061200790896138d3565b6120119190613958565b905060008a602001518b604001518a61202a91906138d3565b6120349190613958565b90508082121561206a578194508792508a60400151858c6020015161205991906138d3565b6120639190613958565b9350612092565b8094508893508a60400151858c6000015161208591906138d3565b61208f9190613958565b92505b50505b600083136120e55760405162461bcd60e51b815260206004820152601d60248201527f494e53554646494349454e545f4c49515549444954595f4d494e5445440000006044820152606401611b20565b84156121335781896020018181516120fd9190613986565b905250885181908a90612111908390613986565b90525061211e8484613986565b8960400181815161212f9190613986565b9052505b95509550955095915050565b600080821215611abc57600080fd5b60008086610100015184106121755760405162461bcd60e51b8152600401611b20906139c7565b865185126121be5760405162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e74206c697175696469747960501b6044820152606401611b20565b60006121cb888887612382565b90506000806121db8a848a61249c565b90925090506121ea89836125a9565b94506121f689826125a9565b9350851561220c5761220c8a848b8b898c6125d6565b5050509550959350505050565b60006118b6826139ef565b6000806000841361226b5760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081b1c08185b5bdd5b9d607a1b6044820152606401611b20565b6040850151602086015161227f90866138d3565b6122899190613958565b604086015186519193509061229e90866138d3565b6122a89190613958565b905082156122e75760408501516122bf908561233f565b604086015284516122d0908261233f565b855260208501516122e1908361233f565b60208601525b935093915050565b60006122fa82611aaa565b6118b6906139ef565b60008060008312612315576001612319565b6000195b90506123356123308561232b86612686565b61269d565b611aaa565b610dd090826138d3565b60008183121561237c5760405162461bcd60e51b81526020600482015260086024820152674e4547415449564560c01b6044820152606401611b20565b50900390565b6123ad6040518060800160405280600081526020016000815260200160008152602001600081525090565b83610100015182106123d15760405162461bcd60e51b8152600401611b20906139c7565b6000828561010001516123e49190613a0c565b90506123f085826126c3565b82526020850151612402908590612303565b602083015284511580159061241a5750602082015115155b61245d5760405162461bcd60e51b8152602060048201526014602482015273696e76616c6964206d61726b657420737461746560601b6044820152606401611b20565b61247b85600001518661014001518460200151856000015185612742565b604083015260c085015161248f90826127bf565b6060830152509392505050565b60008060006124be8660000151866020015187600001518860400151886127f8565b905060006124d46124cf86846128c9565b612219565b6060870151909150600086131561253f5760006124f184836128c9565b9050670de0b6b3a764000081121561251b5760405162461bcd60e51b8152600401611b2090613a23565b61253761253083670de0b6b3a7640000613a52565b84906128f8565b91505061256c565b6125698161255581670de0b6b3a7640000613a52565b61255f90856138d3565b6124cf9190613958565b90505b606461257c896101200151611aaa565b61258690836138d3565b6125909190613958565b935061259c8183613a52565b9450505050935093915050565b600080600083126125bb5760016125bf565b6000195b9050612335612330856125d186612686565b612916565b6000818761010001516125e99190613a0c565b61016088018390528751909150612600908561233f565b87526020870151612611908461233f565b60208801819052875161263691612629908890612303565b885160408a01518561292b565b610140880181905261267d5760405162461bcd60e51b815260206004820152601060248201526f7a65726f20696d706c6965645261746560801b6044820152606401611b20565b50505050505050565b6000808213611abc57612698826139ef565b6118b6565b6000670de0b6b3a76400006126b28484613a91565b6126bc9190613ab0565b9392505050565b60006126ce82611aaa565b6126e061233062015180610168613a91565b8460a001516126ef91906138d3565b6126f99190613958565b9050600081136118b65760405162461bcd60e51b8152602060048201526014602482015273726174655363616c617220756e646572666c6f7760601b6044820152606401611b20565b60008061274f86846127bf565b9050670de0b6b3a76400008112156127795760405162461bcd60e51b8152600401611b2090613a23565b600061278f612788878a613986565b89906128c9565b9050600061279c8261297e565b90506127a881876128c9565b6127b29084613a52565b9998505050505050505050565b6000806127d162015180610168613a91565b6127db8486613a91565b6127e59190613ab0565b9050610dd06127f382611aaa565b611ac0565b600080612805878461233f565b9050600061281d612816888a613986565b83906128c9565b9050670d529ae9e86000008113156128715760405162461bcd60e51b81526020600482015260176024820152761b585e081c1c9bdc1bdc9d1a5bdb88195e18d959591959604a1b6044820152606401611b20565b600061287c8261297e565b90508561288982896128c9565b6128939190613986565b9350670de0b6b3a76400008412156128bd5760405162461bcd60e51b8152600401611b2090613a23565b50505095945050505050565b6000806128de670de0b6b3a7640000856138d3565b90508281816128ef576128ef6138bd565b05949350505050565b60008061290583856138d3565b9050670de0b6b3a7640000816128ef565b6000826126b2670de0b6b3a764000084613a91565b60008061293c8787878760006127f8565b9050600061294c611a4f836129fa565b90508361295e62015180610168613a91565b6129689083613a91565b6129729190613ab0565b98975050505050505050565b6000670de0b6b3a76400008214156129d55760405162461bcd60e51b815260206004820152601a60248201527970726f706f7274696f6e206d757374206e6f74206265206f6e6560301b6044820152606401611b20565b60006129f36129ec84670de0b6b3a7640000613a52565b84906128c9565b90506126bc815b6000808213612a3b5760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401611b20565b670c7d713b49da000082138015612a595750670f43fc2c04ee000082125b15612a7d57670de0b6b3a7640000612a7083612a8b565b81611b5a57611b5a6138bd565b6118b682612baa565b919050565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff1985010281612acc57612acc6138bd565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a7640000821215612beb57612be2826a0c097ce7bc90715b34b9f160241b81612bdc57612bdc6138bd565b05612baa565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b8312612c365772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b8312612c6d576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312612cb5576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312612cf0576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf8508312612d2757693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e28312612d5e57690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d038312612d935768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb417461211108312612dbe57680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312612df3576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f17757889379378312612e28576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b2866038312612e5c576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312612e90576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d631000008086030281612eb957612eb96138bd565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b6040805160a08101825260008082526020820152908101612f6c612fd9565b8152602001612f79612fd9565b8152602001612f86612fd9565b905290565b6040518060c0016040528060006001600160a01b0316815260200160006001600160a01b031681526020016000815260200160008152602001612fcc612fd9565b8152602001606081525090565b604080518082019091526000808252602082015290565b6001600160a01b0391909116815260200190565b6001600160a01b038116811461301957600080fd5b50565b60006020828403121561302e57600080fd5b81356126bc81613004565b60006102008201905060018060a01b038088168352808716602084015250845160408301526020850151606083015260408501516080830152606085015160a0830152608085015161309660c08401826001600160a01b03169052565b5060a085015160e08381019190915260c08601516101008085019190915290860151610120808501919091529086015161014080850191909152908601516101608085019190915290860151610180840152909401516101a08201526101c08101929092526101e09091015292915050565b6001600160a01b0392831681529116602082015260400190565b60008060006060848603121561313757600080fd5b833561314281613004565b95602085013595506040909401359392505050565b6000806040838503121561316a57600080fd5b823561317581613004565b9150602083013561318581613004565b809150509250929050565b80516001600160a01b03168252602090810151910152565b80516001600160a01b0316825260208082015190830152604080820151906131d290840182613190565b5060608101516131e56080840182613190565b5060808101516131f860c0840182613190565b505050565b61010081016118b682846131a8565b6000806040838503121561321f57600080fd5b823561322a81613004565b946020939093013593505050565b60008060006040848603121561324d57600080fd5b833561325881613004565b925060208401356001600160401b038082111561327457600080fd5b818601915086601f83011261328857600080fd5b81358181111561329757600080fd5b8760208260051b85010111156132ac57600080fd5b6020830194508093505050509250925092565b6020808252825182820181905260009190848201906040850190845b81811015613302576132ee8385516131a8565b9284019261010092909201916001016132db565b50909695505050505050565b600060e0830160018060a01b038084511685526020818186015116818701526040915081850151828701526060850151606087015260808501516133556080880182613190565b5060a085015160e060c08801528051938490528101926000906101008801905b8083101561339c57613388828751613190565b948301946001929092019190840190613375565b50979650505050505050565b6020815260006126bc602083018461330e565b600060608201858352602085818501526040606081860152828651808552608087019150838801945060005b8181101561340a576133fa838751613190565b94840194918301916001016133e7565b50909998505050505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561346e57603f1988860301845261345c85835161330e565b94509285019290850190600101613440565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156134b3576134b361347b565b60405290565b60405161018081016001600160401b03811182821017156134b3576134b361347b565b604051601f8201601f191681016001600160401b03811182821017156135045761350461347b565b604052919050565b60006040828403121561351e57600080fd5b604080519081016001600160401b03811182821017156135405761354061347b565b604052905080823561355181613004565b8152602092830135920191909152919050565b60006001600160401b0382111561357d5761357d61347b565b5060051b60200190565b600082601f83011261359857600080fd5b813560206135ad6135a883613564565b6134dc565b82815260069290921b840181019181810190868411156135cc57600080fd5b8286015b848110156135f0576135e2888261350c565b8352918301916040016135d0565b509695505050505050565b60006020828403121561360d57600080fd5b81356001600160401b038082111561362457600080fd5b9083019060e0828603121561363857600080fd5b613640613491565b823561364b81613004565b8152602083013561365b81613004565b806020830152506040830135604082015260608301356060820152613683866080850161350c565b608082015260c08301358281111561369a57600080fd5b6136a687828601613587565b60a08301525095945050505050565b8051612a8681613004565b6000602082840312156136d257600080fd5b81516126bc81613004565b600061018082840312156136f057600080fd5b6136f86134b9565b82518152602083015160208201526040830151604082015260608301516060820152613726608084016136b5565b608082015260a0838101519082015260c0808401519082015260e08084015190820152610100808401519082015261012080840151908201526101408084015190820152610160928301519281019290925250919050565b60006020828403121561379057600080fd5b815180151581146126bc57600080fd5b6000602082840312156137b257600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156137f9576137f96137cf565b5060010190565b6000806040838503121561381357600080fd5b505080516020909101519092909150565b6000602080838503121561383757600080fd5b82516001600160401b0381111561384d57600080fd5b8301601f8101851361385e57600080fd5b805161386c6135a882613564565b81815260059190911b8201830190838101908783111561388b57600080fd5b928401925b828410156138b25783516138a381613004565b82529284019290840190613890565b979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60006001600160ff1b03818413828413808216868404861116156138f9576138f96137cf565b600160ff1b6000871282811687830589121615613918576139186137cf565b60008712925087820587128484161615613934576139346137cf565b8785058712818416161561394a5761394a6137cf565b505050929093029392505050565b600082613967576139676138bd565b600160ff1b821460001984141615613981576139816137cf565b500590565b600080821280156001600160ff1b03849003851316156139a8576139a86137cf565b600160ff1b83900384128116156139c1576139c16137cf565b50500190565b6020808252600e908201526d1b585c9ad95d08195e1c1a5c995960921b604082015260600190565b6000600160ff1b821415613a0557613a056137cf565b5060000390565b600082821015613a1e57613a1e6137cf565b500390565b60208082526015908201527465786368616e676520726174652062656c6f77203160581b604082015260600190565b60008083128015600160ff1b850184121615613a7057613a706137cf565b6001600160ff1b0384018313811615613a8b57613a8b6137cf565b50500390565b6000816000190483118215151615613aab57613aab6137cf565b500290565b600082613abf57613abf6138bd565b50049056fea264697066735822122035323d95ffcec82c575eca633da21ee0adeeadacb7d823e213941bc31034469764736f6c63430008090033";
|
|
823
|
+
|
|
824
|
+
type RouterStaticConstructorParams =
|
|
825
|
+
| [signer?: Signer]
|
|
826
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
827
|
+
|
|
828
|
+
const isSuperArgs = (
|
|
829
|
+
xs: RouterStaticConstructorParams
|
|
830
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
831
|
+
|
|
832
|
+
export class RouterStatic__factory extends ContractFactory {
|
|
833
|
+
constructor(...args: RouterStaticConstructorParams) {
|
|
834
|
+
if (isSuperArgs(args)) {
|
|
835
|
+
super(...args);
|
|
836
|
+
} else {
|
|
837
|
+
super(_abi, _bytecode, args[0]);
|
|
838
|
+
}
|
|
839
|
+
this.contractName = "RouterStatic";
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
deploy(
|
|
843
|
+
_yieldContractFactory: string,
|
|
844
|
+
_marketFactory: string,
|
|
845
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
846
|
+
): Promise<RouterStatic> {
|
|
847
|
+
return super.deploy(
|
|
848
|
+
_yieldContractFactory,
|
|
849
|
+
_marketFactory,
|
|
850
|
+
overrides || {}
|
|
851
|
+
) as Promise<RouterStatic>;
|
|
852
|
+
}
|
|
853
|
+
getDeployTransaction(
|
|
854
|
+
_yieldContractFactory: string,
|
|
855
|
+
_marketFactory: string,
|
|
856
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
857
|
+
): TransactionRequest {
|
|
858
|
+
return super.getDeployTransaction(
|
|
859
|
+
_yieldContractFactory,
|
|
860
|
+
_marketFactory,
|
|
861
|
+
overrides || {}
|
|
862
|
+
);
|
|
863
|
+
}
|
|
864
|
+
attach(address: string): RouterStatic {
|
|
865
|
+
return super.attach(address) as RouterStatic;
|
|
866
|
+
}
|
|
867
|
+
connect(signer: Signer): RouterStatic__factory {
|
|
868
|
+
return super.connect(signer) as RouterStatic__factory;
|
|
869
|
+
}
|
|
870
|
+
static readonly contractName: "RouterStatic";
|
|
871
|
+
public readonly contractName: "RouterStatic";
|
|
872
|
+
static readonly bytecode = _bytecode;
|
|
873
|
+
static readonly abi = _abi;
|
|
874
|
+
static createInterface(): RouterStaticInterface {
|
|
875
|
+
return new utils.Interface(_abi) as RouterStaticInterface;
|
|
876
|
+
}
|
|
877
|
+
static connect(
|
|
878
|
+
address: string,
|
|
879
|
+
signerOrProvider: Signer | Provider
|
|
880
|
+
): RouterStatic {
|
|
881
|
+
return new Contract(address, _abi, signerOrProvider) as RouterStatic;
|
|
882
|
+
}
|
|
883
|
+
}
|