@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,632 @@
|
|
|
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 { ActionCore, ActionCoreInterface } from "../ActionCore";
|
|
7
|
+
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "_joeRouter",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "_joeFactory",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_marketFactory",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
stateMutability: "nonpayable",
|
|
28
|
+
type: "constructor",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
internalType: "address",
|
|
34
|
+
name: "receiver",
|
|
35
|
+
type: "address",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "address",
|
|
39
|
+
name: "market",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
internalType: "uint256",
|
|
44
|
+
name: "scyDesired",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint256",
|
|
49
|
+
name: "otDesired",
|
|
50
|
+
type: "uint256",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint256",
|
|
54
|
+
name: "minLpOut",
|
|
55
|
+
type: "uint256",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
name: "addLiquidity",
|
|
59
|
+
outputs: [
|
|
60
|
+
{
|
|
61
|
+
internalType: "uint256",
|
|
62
|
+
name: "",
|
|
63
|
+
type: "uint256",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint256",
|
|
67
|
+
name: "",
|
|
68
|
+
type: "uint256",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
internalType: "uint256",
|
|
72
|
+
name: "",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "nonpayable",
|
|
77
|
+
type: "function",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [],
|
|
81
|
+
name: "joeFactory",
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "view",
|
|
90
|
+
type: "function",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "joeRouter",
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "address",
|
|
98
|
+
name: "",
|
|
99
|
+
type: "address",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [
|
|
107
|
+
{
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "netRawTokenIn",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "SCY",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
internalType: "uint256",
|
|
119
|
+
name: "minScyOut",
|
|
120
|
+
type: "uint256",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "receiver",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
internalType: "address[]",
|
|
129
|
+
name: "path",
|
|
130
|
+
type: "address[]",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
name: "mintScyFromRawToken",
|
|
134
|
+
outputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "uint256",
|
|
137
|
+
name: "",
|
|
138
|
+
type: "uint256",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
stateMutability: "nonpayable",
|
|
142
|
+
type: "function",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
inputs: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "uint256",
|
|
148
|
+
name: "netRawTokenIn",
|
|
149
|
+
type: "uint256",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
internalType: "address",
|
|
153
|
+
name: "YT",
|
|
154
|
+
type: "address",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
internalType: "uint256",
|
|
158
|
+
name: "minYoOut",
|
|
159
|
+
type: "uint256",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
internalType: "address",
|
|
163
|
+
name: "receiver",
|
|
164
|
+
type: "address",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
internalType: "address[]",
|
|
168
|
+
name: "path",
|
|
169
|
+
type: "address[]",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
name: "mintYoFromRawToken",
|
|
173
|
+
outputs: [
|
|
174
|
+
{
|
|
175
|
+
internalType: "uint256",
|
|
176
|
+
name: "",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
stateMutability: "nonpayable",
|
|
181
|
+
type: "function",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
inputs: [
|
|
185
|
+
{
|
|
186
|
+
internalType: "address",
|
|
187
|
+
name: "SCY",
|
|
188
|
+
type: "address",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
internalType: "uint256",
|
|
192
|
+
name: "netScyIn",
|
|
193
|
+
type: "uint256",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
internalType: "uint256",
|
|
197
|
+
name: "minRawTokenOut",
|
|
198
|
+
type: "uint256",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
internalType: "address",
|
|
202
|
+
name: "receiver",
|
|
203
|
+
type: "address",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
internalType: "address[]",
|
|
207
|
+
name: "path",
|
|
208
|
+
type: "address[]",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
name: "redeemScyToRawToken",
|
|
212
|
+
outputs: [
|
|
213
|
+
{
|
|
214
|
+
internalType: "uint256",
|
|
215
|
+
name: "",
|
|
216
|
+
type: "uint256",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
stateMutability: "nonpayable",
|
|
220
|
+
type: "function",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
inputs: [
|
|
224
|
+
{
|
|
225
|
+
internalType: "address",
|
|
226
|
+
name: "YT",
|
|
227
|
+
type: "address",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
internalType: "uint256",
|
|
231
|
+
name: "netYoIn",
|
|
232
|
+
type: "uint256",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
internalType: "uint256",
|
|
236
|
+
name: "minRawTokenOut",
|
|
237
|
+
type: "uint256",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
internalType: "address",
|
|
241
|
+
name: "receiver",
|
|
242
|
+
type: "address",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
internalType: "address[]",
|
|
246
|
+
name: "path",
|
|
247
|
+
type: "address[]",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
name: "redeemYoToRawToken",
|
|
251
|
+
outputs: [
|
|
252
|
+
{
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
stateMutability: "nonpayable",
|
|
259
|
+
type: "function",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
inputs: [
|
|
263
|
+
{
|
|
264
|
+
internalType: "address",
|
|
265
|
+
name: "receiver",
|
|
266
|
+
type: "address",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
internalType: "address",
|
|
270
|
+
name: "market",
|
|
271
|
+
type: "address",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "lpToRemove",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
internalType: "uint256",
|
|
280
|
+
name: "scyOutMin",
|
|
281
|
+
type: "uint256",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
internalType: "uint256",
|
|
285
|
+
name: "otOutMin",
|
|
286
|
+
type: "uint256",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
name: "removeLiquidity",
|
|
290
|
+
outputs: [
|
|
291
|
+
{
|
|
292
|
+
internalType: "uint256",
|
|
293
|
+
name: "",
|
|
294
|
+
type: "uint256",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
internalType: "uint256",
|
|
298
|
+
name: "",
|
|
299
|
+
type: "uint256",
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
stateMutability: "nonpayable",
|
|
303
|
+
type: "function",
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
inputs: [
|
|
307
|
+
{
|
|
308
|
+
internalType: "uint256",
|
|
309
|
+
name: "exactOtIn",
|
|
310
|
+
type: "uint256",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
internalType: "address",
|
|
314
|
+
name: "receiver",
|
|
315
|
+
type: "address",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
internalType: "address[]",
|
|
319
|
+
name: "path",
|
|
320
|
+
type: "address[]",
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
internalType: "address",
|
|
324
|
+
name: "market",
|
|
325
|
+
type: "address",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
internalType: "uint256",
|
|
329
|
+
name: "minRawTokenOut",
|
|
330
|
+
type: "uint256",
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
name: "swapExactOtForRawToken",
|
|
334
|
+
outputs: [
|
|
335
|
+
{
|
|
336
|
+
internalType: "uint256",
|
|
337
|
+
name: "netRawTokenOut",
|
|
338
|
+
type: "uint256",
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
stateMutability: "nonpayable",
|
|
342
|
+
type: "function",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
inputs: [
|
|
346
|
+
{
|
|
347
|
+
internalType: "address",
|
|
348
|
+
name: "receiver",
|
|
349
|
+
type: "address",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
internalType: "address",
|
|
353
|
+
name: "market",
|
|
354
|
+
type: "address",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
internalType: "uint256",
|
|
358
|
+
name: "exactOtIn",
|
|
359
|
+
type: "uint256",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
internalType: "uint256",
|
|
363
|
+
name: "minScyOut",
|
|
364
|
+
type: "uint256",
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
name: "swapExactOtForScy",
|
|
368
|
+
outputs: [
|
|
369
|
+
{
|
|
370
|
+
internalType: "uint256",
|
|
371
|
+
name: "",
|
|
372
|
+
type: "uint256",
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
stateMutability: "nonpayable",
|
|
376
|
+
type: "function",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
inputs: [
|
|
380
|
+
{
|
|
381
|
+
internalType: "uint256",
|
|
382
|
+
name: "exactRawTokenIn",
|
|
383
|
+
type: "uint256",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
internalType: "address",
|
|
387
|
+
name: "receiver",
|
|
388
|
+
type: "address",
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
internalType: "address[]",
|
|
392
|
+
name: "path",
|
|
393
|
+
type: "address[]",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
internalType: "address",
|
|
397
|
+
name: "market",
|
|
398
|
+
type: "address",
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
internalType: "uint256",
|
|
402
|
+
name: "otOutguessMin",
|
|
403
|
+
type: "uint256",
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
internalType: "uint256",
|
|
407
|
+
name: "otOutguessMax",
|
|
408
|
+
type: "uint256",
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
internalType: "uint256",
|
|
412
|
+
name: "maxIteration",
|
|
413
|
+
type: "uint256",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
internalType: "uint256",
|
|
417
|
+
name: "eps",
|
|
418
|
+
type: "uint256",
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
name: "swapExactRawTokenForOt",
|
|
422
|
+
outputs: [
|
|
423
|
+
{
|
|
424
|
+
internalType: "uint256",
|
|
425
|
+
name: "netOtOut",
|
|
426
|
+
type: "uint256",
|
|
427
|
+
},
|
|
428
|
+
],
|
|
429
|
+
stateMutability: "nonpayable",
|
|
430
|
+
type: "function",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
inputs: [
|
|
434
|
+
{
|
|
435
|
+
internalType: "address",
|
|
436
|
+
name: "receiver",
|
|
437
|
+
type: "address",
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
internalType: "address",
|
|
441
|
+
name: "market",
|
|
442
|
+
type: "address",
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
internalType: "uint256",
|
|
446
|
+
name: "exactScyIn",
|
|
447
|
+
type: "uint256",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
internalType: "uint256",
|
|
451
|
+
name: "otOutguessMin",
|
|
452
|
+
type: "uint256",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
internalType: "uint256",
|
|
456
|
+
name: "otOutguessMax",
|
|
457
|
+
type: "uint256",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
internalType: "uint256",
|
|
461
|
+
name: "maxIteration",
|
|
462
|
+
type: "uint256",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
internalType: "uint256",
|
|
466
|
+
name: "eps",
|
|
467
|
+
type: "uint256",
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
name: "swapExactScyForOt",
|
|
471
|
+
outputs: [
|
|
472
|
+
{
|
|
473
|
+
internalType: "uint256",
|
|
474
|
+
name: "",
|
|
475
|
+
type: "uint256",
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
stateMutability: "nonpayable",
|
|
479
|
+
type: "function",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
inputs: [
|
|
483
|
+
{
|
|
484
|
+
internalType: "address",
|
|
485
|
+
name: "receiver",
|
|
486
|
+
type: "address",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
internalType: "address",
|
|
490
|
+
name: "market",
|
|
491
|
+
type: "address",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
internalType: "uint256",
|
|
495
|
+
name: "exactScyOut",
|
|
496
|
+
type: "uint256",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
internalType: "uint256",
|
|
500
|
+
name: "otInGuessMin",
|
|
501
|
+
type: "uint256",
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
internalType: "uint256",
|
|
505
|
+
name: "otInGuessMax",
|
|
506
|
+
type: "uint256",
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
internalType: "uint256",
|
|
510
|
+
name: "maxIteration",
|
|
511
|
+
type: "uint256",
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
internalType: "uint256",
|
|
515
|
+
name: "eps",
|
|
516
|
+
type: "uint256",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
name: "swapOtForExactScy",
|
|
520
|
+
outputs: [
|
|
521
|
+
{
|
|
522
|
+
internalType: "uint256",
|
|
523
|
+
name: "",
|
|
524
|
+
type: "uint256",
|
|
525
|
+
},
|
|
526
|
+
],
|
|
527
|
+
stateMutability: "nonpayable",
|
|
528
|
+
type: "function",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
inputs: [
|
|
532
|
+
{
|
|
533
|
+
internalType: "address",
|
|
534
|
+
name: "receiver",
|
|
535
|
+
type: "address",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
internalType: "address",
|
|
539
|
+
name: "market",
|
|
540
|
+
type: "address",
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
internalType: "uint256",
|
|
544
|
+
name: "exactOtOut",
|
|
545
|
+
type: "uint256",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
internalType: "uint256",
|
|
549
|
+
name: "maxScyIn",
|
|
550
|
+
type: "uint256",
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
name: "swapScyForExactOt",
|
|
554
|
+
outputs: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "uint256",
|
|
557
|
+
name: "",
|
|
558
|
+
type: "uint256",
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
stateMutability: "nonpayable",
|
|
562
|
+
type: "function",
|
|
563
|
+
},
|
|
564
|
+
];
|
|
565
|
+
|
|
566
|
+
const _bytecode =
|
|
567
|
+
"0x60c06040523480156200001157600080fd5b50604051620048013803806200480183398101604081905262000034916200006a565b506001600160a01b039182166080521660a052620000b4565b80516001600160a01b03811681146200006557600080fd5b919050565b6000806000606084860312156200008057600080fd5b6200008b846200004d565b92506200009b602085016200004d565b9150620000ab604085016200004d565b90509250925092565b60805160a05161470b620000f66000396000818161018f015281816116c40152818161172c01528181612039015261207c0152600061010f015261470b6000f3fe608060405234801561001057600080fd5b50600436106100b95760003560e01c80623905e7146100be5780631e2bee2a146100e45780633543190a146100f757806359f571e81461010a57806361d67b9f1461013e5780637a6d749b146101515780637be7abe2146101645780637fbd7fc7146101775780638a38466e1461018a57806391c98a2a146101b1578063ab308f79146101df578063e2dc85dc146101f2578063ea5972281461021a578063f6fb26e31461022d575b600080fd5b6100d16100cc366004613d02565b610240565b6040519081526020015b60405180910390f35b6100d16100f2366004613e32565b61025d565b6100d1610105366004613ead565b61027a565b6101317f000000000000000000000000000000000000000000000000000000000000000081565b6040516100db9190613ef3565b6100d161014c366004613d02565b61028a565b6100d161015f366004613ead565b61029b565b6100d1610172366004613f07565b6102ab565b6100d1610185366004613f9c565b610374565b6101317f000000000000000000000000000000000000000000000000000000000000000081565b6101c46101bf366004613ffe565b6103b0565b604080519384526020840192909252908201526060016100db565b6100d16101ed366004613e32565b6103d5565b610205610200366004613ffe565b6103e7565b604080519283526020830191909152016100db565b6100d1610228366004613f9c565b610408565b6100d161023b36600461404f565b610438565b6000610251868686868660016104fe565b90505b95945050505050565b600061026f8787878787876001610733565b979650505050505050565b6000610254858585856001610895565b6000610251868686868660016109dc565b6000610254858585856001610b97565b600080866001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b1580156102e757600080fd5b505afa1580156102fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031f91906140d5565b905060006103348c8360018b8e8e6001610da4565b90506103648b898360405180608001604052808c81526020018b81526020018a8152602001898152506000610f47565b9c9b505050505050505050505050565b60006103a488888860405180608001604052808a8152602001898152602001888152602001878152506001610f47565b98975050505050505050565b60008060006103c4888888888860016110af565b925092509250955095509592505050565b600061026f8787878787876001610da4565b6000806103f9878787878760016112e4565b915091505b9550959350505050565b60006103a488888860405180608001604052808a8152602001898152602001888152602001878152506001611494565b600080836001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b15801561047457600080fd5b505afa158015610488573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ac91906140d5565b90506104bc81858a600180610895565b506103a4816000858a8a8a80806020026020016040519081016040528093929190818152602001838360200280828437600092018290525092506109dc915050565b600080876001600160a01b031663c836545a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053a57600080fd5b505afa15801561054e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057291906140d5565b90506000886001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b1580156105af57600080fd5b505afa1580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e791906140d5565b90508315610697576000896001600160a01b0316632f13b60c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561062a57600080fd5b505afa15801561063e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066291906140f2565b15905061067a6001600160a01b038416338c8c61165f565b8015610695576106956001600160a01b038b16338c8c61165f565b505b604051632029f26b60e21b81526001600160a01b038a16906380a7c9ac906106c3908490600401613ef3565b602060405180830381600087803b1580156106dd57600080fd5b505af11580156106f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107159190614114565b5061072681600089898960006109dc565b9998505050505050505050565b600080876001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b15801561076f57600080fd5b505afa158015610783573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a791906140d5565b90506107b9898260018b898989610da4565b50604051630aa1fb9760e41b81526001600160a01b0387811660048301819052602483015289169063aa1fb97090604401602060405180830381600087803b15801561080457600080fd5b505af1158015610818573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083c9190614114565b9150868210156108895760405162461bcd60e51b81526020600482015260136024820152721a5b9cdd59999a58da595b9d081653c81bdd5d606a1b60448201526064015b60405180910390fd5b50979650505050505050565b60008115610929576000856001600160a01b031663c836545a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108d857600080fd5b505afa1580156108ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091091906140d5565b90506109276001600160a01b03821633888861165f565b505b60408051600081526020810191829052631337933360e31b9091526001600160a01b038616906399bc9998906109689089908890889060248101614185565b6040805180830381600087803b15801561098157600080fd5b505af1158015610995573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b991906141b2565b509050828110156102545760405162461bcd60e51b8152600401610880906141d6565b600081156109f9576109f96001600160a01b03881633898961165f565b600083600081518110610a0e57610a0e614204565b60200260200101519050835160011415610aab5760405163c1129b1b60e01b81526001600160a01b0389169063c1129b1b90610a5290889085908b9060040161421a565b602060405180830381600087803b158015610a6c57600080fd5b505af1158015610a80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa49190614114565b9150610b8c565b6000886001600160a01b031663c1129b1b610ac5876116bd565b8460016040518463ffffffff1660e01b8152600401610ae69392919061421a565b602060405180830381600087803b158015610b0057600080fd5b505af1158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b389190614114565b9050610b45858288611724565b925086831015610b8a5760405162461bcd60e51b815260206004820152601060248201526f1a5b9cdd59999a58da595b9d081bdd5d60821b6044820152606401610880565b505b509695505050505050565b604051631cf38c7b60e11b81526000600482018190529081906001600160a01b038716906339e718f6906024016101806040518083038186803b158015610bdd57600080fd5b505afa158015610bf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c15919061423e565b90506000866001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5257600080fd5b505afa158015610c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8a91906140d5565b9050610ca3610c9882611790565b839088426000611805565b50925084831115610cec5760405162461bcd60e51b815260206004820152601360248201527232bc31b2b2b2103634b6b4ba1039b1bc9034b760691b6044820152606401610880565b8315610d0757610d076001600160a01b03821633898661165f565b60408051600081526020810191829052634f7b3d2f60e01b9091526001600160a01b03881690634f7b3d2f90610d46908b908a908a9060248101614185565b6040805180830381600087803b158015610d5f57600080fd5b505af1158015610d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9791906141b2565b5050505095945050505050565b60008115610e8f576001831415610df957610df433888a87876000818110610dce57610dce614204565b9050602002016020810190610de391906142df565b6001600160a01b031692919061165f565b610e8f565b610e4d33610e398686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506116bd92505050565b8a87876000818110610dce57610dce614204565b610e8d8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c92508b91506117249050565b505b60008484610e9e600182614312565b818110610ead57610ead614204565b9050602002016020810190610ec291906142df565b6040516334c44e9d60e11b81529091506001600160a01b038916906369889d3a90610ef590899085908c9060040161421a565b602060405180830381600087803b158015610f0f57600080fd5b505af1158015610f23573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107269190614114565b604051631cf38c7b60e11b81526000600482018190529081906001600160a01b038716906339e718f6906024016101806040518083038186803b158015610f8d57600080fd5b505afa158015610fa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc5919061423e565b90506000866001600160a01b03166347bfac626040518163ffffffff1660e01b815260040160206040518083038186803b15801561100257600080fd5b505afa158015611016573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103a91906140d5565b905061105261104882611790565b839088428961184e565b5092508315611070576110706001600160a01b03821633898961165f565b60408051600081526020810191829052634f7b3d2f60e01b9091526001600160a01b03881690634f7b3d2f90610d46908b9087908b9060248101614185565b6000806000806000896001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b815260040160606040518083038186803b1580156110f057600080fd5b505afa158015611104573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111289190614329565b50604051631cf38c7b60e11b81526000600482018190529294509092506001600160a01b038c16906339e718f6906024016101806040518083038186803b15801561117257600080fd5b505afa158015611186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111aa919061423e565b90506111c36111b884611790565b82908c8c60006119f2565b9198509650945050878610156112115760405162461bcd60e51b81526020600482015260136024820152721a5b9cdd59999a58da595b9d081b1c081bdd5d606a1b6044820152606401610880565b86156112415761122c6001600160a01b038416338d8861165f565b6112416001600160a01b038316338d8761165f565b60408051600081526020810191829052635308fcb160e01b9091526001600160a01b038c1690635308fcb190611280908f908d908f9060248101614185565b606060405180830381600087803b15801561129a57600080fd5b505af11580156112ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d29190614376565b50505050505096509650969350505050565b604051631cf38c7b60e11b815260006004820181905290819081906001600160a01b038916906339e718f6906024016101806040518083038186803b15801561132c57600080fd5b505afa158015611340573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611364919061423e565b905061137281886000611a5f565b9093509150858310156113975760405162461bcd60e51b8152600401610880906141d6565b848210156113dd5760405162461bcd60e51b81526020600482015260136024820152721a5b9cdd59999a58da595b9d081bdd081bdd5d606a1b6044820152606401610880565b83156113f8576113f86001600160a01b038916338a8a61165f565b6040805160008152602081019182905263431e5ca760e11b9091526001600160a01b0389169063863cb94e90611435908c908b90602481016143a4565b6040805180830381600087803b15801561144e57600080fd5b505af1158015611462573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148691906141b2565b505050965096945050505050565b604051631cf38c7b60e11b81526000600482018190529081906001600160a01b038716906339e718f6906024016101806040518083038186803b1580156114da57600080fd5b505afa1580156114ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611512919061423e565b9050600080876001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b815260040160606040518083038186803b15801561155057600080fd5b505afa158015611564573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115889190614329565b50915091506115a361159983611790565b849089428a611a9c565b50935084156115c1576115c16001600160a01b038216338a8761165f565b60408051600081526020810191829052631337933360e31b9091526001600160a01b038916906399bc999890611600908c9088908c9060248101614185565b6040805180830381600087803b15801561161957600080fd5b505af115801561162d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165191906141b2565b505050505095945050505050565b6116b7846323b872dd60e01b8585856040516024016116809392919061421a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c2b565b50505050565b600061171e7f0000000000000000000000000000000000000000000000000000000000000000836000815181106116f6576116f6614204565b60200260200101518460018151811061171157611711614204565b6020026020010151611d02565b92915050565b6000806117527f00000000000000000000000000000000000000000000000000000000000000008587611dd1565b905061175f818685611f56565b806001825161176e9190614312565b8151811061177e5761177e614204565b60200260200101519150509392505050565b6000816001600160a01b031663f65d6fc86040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156117cd57600080fd5b505af11580156117e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171e9190614114565b60008060008061182089896118198a61214b565b8989612161565b915091506118356118308361222c565b612237565b935061184081612237565b925050509550959350505050565b600080600085116118945760405162461bcd60e51b815260206004820152601060248201526f34b73b30b634b21036b0bc29b1bca4b760811b6044820152606401610880565b61189d83612246565b6118b95760405162461bcd60e51b8152600401610880906143cb565b60006118c58787612280565b905060006118d4898988612293565b9050600019856020015114156118f65788516118f090826123ad565b60208601525b6040850151156119bc576040850180516000190190526020850151855160009160029161192391906143fa565b61192e9060016143fa565b6119389190614428565b90506000611951836119498461214b565b8d9190612464565b50905060006119626118308361222c565b90508481116119a35782885260608801516119809082908790612571565b1561199e57826119908c836125a5565b9650965050505050506103fe565b6119b4565b6119ae600184614312565b60208901525b5050506118f6565b60405162461bcd60e51b815260206004820152600b60248201526a185c1c1c9bde0819985a5b60aa1b6044820152606401610880565b600080600080600080600080611a1b8d8d611a0c8e61214b565b611a158e61214b565b8d6125b1565b9350935093509350611a2c84612237565b9750611a3783612237565b9650611a4282612237565b9550611a4d81612237565b94505050505095509550955095915050565b600080600080611a7887611a728861214b565b87612780565b91509150611a8582612237565b9350611a9081612237565b92505050935093915050565b60008060008511611ae35760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081b5a5b94d8de53dd5d607a1b6044820152606401610880565b611aec83612246565b611b085760405162461bcd60e51b8152600401610880906143cb565b6000611b148787612280565b905060008080611b258b8b8a612293565b905060001987602001511415611b4d57611b478b60000151826020015161284b565b60208801525b6040870151156119bc5760408701805160001901905260208701518751600091600291611b7a91906143fa565b611b849190614428565b9050611b968c60000151828487612866565b9450925082611ba9576020880152611b4d565b6000611bc083611bb8846128b9565b8f9190612464565b5090506000611bce82612237565b9050868110611c1557828a6020018181525050611bf081888c606001516128cd565b15611c105782611c008e836125a5565b98509850505050505050506103fe565b611c23565b611c208360016143fa565b8a525b505050611b4d565b6000611c80826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128fb9092919063ffffffff16565b805190915015611cfd5780806020019051810190611c9e91906140f2565b611cfd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610880565b505050565b6000806000611d11858561290a565b6040516001600160601b0319606084811b8216602084015283901b1660348201529193509150869060480160405160208183030381529060405280519060200120604051602001611daf9291906001600160f81b0319815260609290921b6001600160601b031916600183015260158201527f0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b6060600282511015611e205760405162461bcd60e51b8152602060048201526018602482015277094deca98d2c4e4c2e4f27440929cac82989288bea082a8960431b6044820152606401610880565b81516001600160401b03811115611e3957611e39613c93565b604051908082528060200260200182016040528015611e62578160200160208202803683370190505b5090508281600081518110611e7957611e79614204565b60200260200101818152505060005b60018351611e969190614312565b811015611f4e57600080611ee987868581518110611eb657611eb6614204565b602002602001015187866001611ecc91906143fa565b81518110611edc57611edc614204565b60200260200101516129ef565b91509150611f11848481518110611f0257611f02614204565b60200260200101518383612ac8565b84611f1d8560016143fa565b81518110611f2d57611f2d614204565b60200260200101818152505050508080611f469061443c565b915050611e88565b509392505050565b60005b60018351611f679190614312565b8110156116b757600080848381518110611f8357611f83614204565b602002602001015185846001611f9991906143fa565b81518110611fa957611fa9614204565b6020026020010151915091506000611fc1838361290a565b509050600087611fd28660016143fa565b81518110611fe257611fe2614204565b60200260200101519050600080836001600160a01b0316866001600160a01b03161461201057826000612014565b6000835b91509150600060028a516120289190614312565b88106120345788612075565b6120757f0000000000000000000000000000000000000000000000000000000000000000878c6120658c60026143fa565b8151811061171157611711614204565b90506120a27f00000000000000000000000000000000000000000000000000000000000000008888611d02565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f1916602001820160405280156120df576020820181803683370190505b506040518563ffffffff1660e01b81526004016120ff9493929190614457565b600060405180830381600087803b15801561211957600080fd5b505af115801561212d573d6000803e3d6000fd5b505050505050505050505080806121439061443c565b915050611f59565b6000600160ff1b821061215d57600080fd5b5090565b60008086610100015184106121885760405162461bcd60e51b815260040161088090614484565b865185126121d15760405162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e74206c697175696469747960501b6044820152606401610880565b60006121de888887612293565b90506000806121ee8a848a612464565b90925090506121fd8983612bd1565b94506122098982612bd1565b9350851561221f5761221f8a848b8b898c612c0d565b5050509550959350505050565b600061171e826144ac565b60008082121561215d57600080fd5b600081602001518260000151111580156122665750610100826040015111155b801561171e57505060600151670de0b6b3a7640000101590565b600061228c8383612cbd565b9392505050565b6122be6040518060800160405280600081526020016000815260200160008152602001600081525090565b83610100015182106122e25760405162461bcd60e51b815260040161088090614484565b6000828561010001516122f59190614312565b90506123018582612cdc565b82526020850151612313908590612d5b565b602083015284511580159061232b5750602082015115155b61236e5760405162461bcd60e51b8152602060048201526014602482015273696e76616c6964206d61726b657420737461746560601b6044820152606401610880565b61238c85600001518661014001518460200151856000015185612d88565b604083015260c08501516123a09082612df8565b6060830152509392505050565b6000806123f46123ef846000015185604001516123df8760600151670de0b6b3a7640000612e2c90919063ffffffff16565b6123e991906144c9565b90612e2c565b612e4f565b9050600061241461240d670de0b6b3a764000084614508565b8390613264565b9050600061243285602001518761242b9190614508565b8390612e2c565b9050600061244082886144c9565b90506103e861244e82612237565b61245a906103e7614549565b61026f9190614428565b600080600061248686600001518660200151876000015188604001518861328a565b9050600061249c6124978684613264565b61222c565b606087015190915060008613156125075760006124b98483613264565b9050670de0b6b3a76400008112156124e35760405162461bcd60e51b815260040161088090614568565b6124ff6124f883670de0b6b3a76400006144c9565b8490612e2c565b915050612534565b6125318161251d81670de0b6b3a76400006144c9565b6125279085614597565b612497919061461c565b90505b606461254489610120015161214b565b61254e9083614597565b612558919061461c565b935061256481836144c9565b9450505050935093915050565b600082841115801561259d57506125998361259484670de0b6b3a7640000614312565b613354565b8410155b949350505050565b600061228c8383613374565b6000806000806000871380156125c75750600086135b6126025760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f414d4f554e545360a01b6044820152606401610880565b6040890151612633576126216103e861261b8a8a612d5b565b90613389565b92506103e893508691508590506126d6565b885160408a0151600091906126489089614597565b612652919061461c565b905060008a602001518b604001518a61266b9190614597565b612675919061461c565b9050808212156126ab578194508792508a60400151858c6020015161269a9190614597565b6126a4919061461c565b93506126d3565b8094508893508a60400151858c600001516126c69190614597565b6126d0919061461c565b92505b50505b600083136127265760405162461bcd60e51b815260206004820152601d60248201527f494e53554646494349454e545f4c49515549444954595f4d494e5445440000006044820152606401610880565b841561277457818960200181815161273e9190614508565b905250885181908a90612752908390614508565b90525061275f8484614508565b896040018181516127709190614508565b9052505b95509550955095915050565b600080600084136127c75760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081b1c08185b5bdd5b9d607a1b6044820152606401610880565b604085015160208601516127db9086614597565b6127e5919061461c565b60408601518651919350906127fa9086614597565b612804919061461c565b9050821561284357604085015161281b9085613389565b6040860152845161282c9082613389565b8552602085015161283d9083613389565b60208601525b935093915050565b6000600161285c61183085856133cc565b61228c9190614312565b60008082851161287b575060019050816128b0565b60006128908761288a886128b9565b876133e2565b9050600081126128a75760018692509250506128b0565b60008492509250505b94509492505050565b60006128c48261214b565b61171e906144ac565b600082841015801561259d57506128f08361259484670de0b6b3a76400006143fa565b909311159392505050565b606061259d84846000856134ef565b600080826001600160a01b0316846001600160a01b0316141561296f5760405162461bcd60e51b815260206004820152601f60248201527f4a6f654c6962726172793a204944454e544943414c5f414444524553534553006044820152606401610880565b826001600160a01b0316846001600160a01b03161061298f578284612992565b83835b90925090506001600160a01b0382166129e85760405162461bcd60e51b81526020600482015260186024820152774a6f654c6962726172793a205a45524f5f4144445245535360401b6044820152606401610880565b9250929050565b60008060006129fe858561290a565b509050600080612a0f888888611d02565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015612a4757600080fd5b505afa158015612a5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a7f9190614661565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b031614612ab6578082612ab9565b81815b90999098509650505050505050565b6000808411612b275760405162461bcd60e51b815260206004820152602560248201527f4a6f654c6962726172793a20494e53554646494349454e545f494e5055545f416044820152641353d5539560da1b6064820152608401610880565b600083118015612b375750600082115b612b8e5760405162461bcd60e51b815260206004820152602260248201527f4a6f654c6962726172793a20494e53554646494349454e545f4c495155494449604482015261545960f01b6064820152608401610880565b6000612b9c856103e5614549565b90506000612baa8483614549565b9050600082612bbb876103e8614549565b612bc591906143fa565b905061026f8183614428565b60008060008312612be3576001612be7565b6000195b9050612c03612bfe85612bf986613615565b613374565b61214b565b61259d9082614597565b600081876101000151612c209190614312565b61016088018390528751909150612c379085613389565b87526020870151612c489084613389565b602088018190528751612c6d91612c60908890612d5b565b885160408a01518561362c565b6101408801819052612cb45760405162461bcd60e51b815260206004820152601060248201526f7a65726f20696d706c6965645261746560801b6044820152606401610880565b50505050505050565b6000670de0b6b3a7640000612cd28484614549565b61228c9190614428565b6000612ce78261214b565b612cf9612bfe62015180610168614549565b8460a00151612d089190614597565b612d12919061461c565b90506000811361171e5760405162461bcd60e51b8152602060048201526014602482015273726174655363616c617220756e646572666c6f7760601b6044820152606401610880565b60008060008312612d6d576001612d71565b6000195b9050612c03612bfe85612d8386613615565b612cbd565b600080612d958684612df8565b9050670de0b6b3a7640000811215612dbf5760405162461bcd60e51b815260040161088090614568565b6000612dd5612dce878a614508565b8990613264565b90506000612de282613673565b9050612dee8187613264565b61072690846144c9565b600080612e0a62015180610168614549565b612e148486614549565b612e1e9190614428565b905061259d6123ef8261214b565b600080612e398385614597565b9050670de0b6b3a7640000815b05949350505050565b6000680238fd42c5cf03ffff198212158015612e74575068070c1cc73b00c800008213155b612eb35760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b6044820152606401610880565b6000821215612eeb57612ec882600003612e4f565b6a0c097ce7bc90715b34b9f160241b81612ee457612ee4614412565b0592915050565b60006806f05b59d3b20000008312612f2957506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b612f5f565b6803782dace9d90000008312612f5b57506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380612f5f565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac620000008412612faf5768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412612feb576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261302557682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c400000841261305f576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261309857680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126130d15768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b1880000841261310a576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126131435768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b600080613279670de0b6b3a764000085614597565b9050828181612e4657612e46614412565b6000806132978784613389565b905060006132a861240d888a614508565b9050670d529ae9e86000008113156132fc5760405162461bcd60e51b81526020600482015260176024820152761b585e081c1c9bdc1bdc9d1a5bdb88195e18d959591959604a1b6044820152606401610880565b600061330782613673565b9050856133148289613264565b61331e9190614508565b9350670de0b6b3a76400008412156133485760405162461bcd60e51b815260040161088090614568565b50505095945050505050565b6000806133618385614549565b670de0b6b3a76400009004949350505050565b600082612cd2670de0b6b3a764000084614549565b6000818312156133c65760405162461bcd60e51b81526020600482015260086024820152674e4547415449564560c01b6044820152606401610880565b50900390565b60008183126133db578161228c565b5090919050565b6000806133ee846144ac565b9050600081846020015161340291906144c9565b905060006134108784614508565b90506000821380156134225750600081135b6134635760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081bdd151bd3585c9ad95d60721b6044820152606401610880565b60006134916134728484614597565b6020880151613481908b614508565b61348b9087614597565b90613264565b905060006134a76134a28486613264565b6136ef565b87519091506000906134c290670de0b6b3a764000090613264565b90506134d2816123e984866144c9565b88604001516134e191906144c9565b9a9950505050505050505050565b6060824710156135505760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610880565b6001600160a01b0385163b6135a75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610880565b600080866001600160a01b031685876040516135c391906146a6565b60006040518083038185875af1925050503d8060008114613600576040519150601f19603f3d011682016040523d82523d6000602084013e613605565b606091505b509150915061026f828286613780565b600080821361215d57613627826144ac565b61171e565b60008061363d87878787600061328a565b9050600061364d611830836136ef565b90508361365f62015180610168614549565b6136699083614549565b6103a49190614428565b6000670de0b6b3a76400008214156136ca5760405162461bcd60e51b815260206004820152601a60248201527970726f706f7274696f6e206d757374206e6f74206265206f6e6560301b6044820152606401610880565b60006136e86136e184670de0b6b3a76400006144c9565b8490613264565b905061228c815b60008082136137305760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610880565b670c7d713b49da00008213801561374e5750670f43fc2c04ee000082125b1561377257670de0b6b3a7640000613765836137b9565b81612ee457612ee4614412565b61171e826138d8565b919050565b6060831561378f57508161228c565b82511561379f5782518084602001fd5b8160405162461bcd60e51b815260040161088091906146c2565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff19850102816137fa576137fa614412565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a764000082121561391957613910826a0c097ce7bc90715b34b9f160241b8161390a5761390a614412565b056138d8565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b83126139645772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b831261399b576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff008400083126139e3576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312613a1e576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf8508312613a5557693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e28312613a8c57690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d038312613ac15768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb417461211108312613aec57680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312613b21576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f17757889379378312613b56576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b2866038312613b8a576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312613bbe576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d631000008086030281613be757613be7614412565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b6001600160a01b0381168114613c9057600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60405161018081016001600160401b0381118282101715613ccc57613ccc613c93565b60405290565b604051601f8201601f191681016001600160401b0381118282101715613cfa57613cfa613c93565b604052919050565b600080600080600060a08688031215613d1a57600080fd5b8535613d2581613c7b565b94506020868101359450604087013593506060870135613d4481613c7b565b925060808701356001600160401b0380821115613d6057600080fd5b818901915089601f830112613d7457600080fd5b813581811115613d8657613d86613c93565b8060051b9150613d97848301613cd2565b818152918301840191848101908c841115613db157600080fd5b938501935b83851015613ddb5784359250613dcb83613c7b565b8282529385019390850190613db6565b8096505050505050509295509295909350565b60008083601f840112613e0057600080fd5b5081356001600160401b03811115613e1757600080fd5b6020830191508360208260051b85010111156129e857600080fd5b60008060008060008060a08789031215613e4b57600080fd5b863595506020870135613e5d81613c7b565b9450604087013593506060870135613e7481613c7b565b925060808701356001600160401b03811115613e8f57600080fd5b613e9b89828a01613dee565b979a9699509497509295939492505050565b60008060008060808587031215613ec357600080fd5b8435613ece81613c7b565b93506020850135613ede81613c7b565b93969395505050506040820135916060013590565b6001600160a01b0391909116815260200190565b60008060008060008060008060006101008a8c031215613f2657600080fd5b8935985060208a0135613f3881613c7b565b975060408a01356001600160401b03811115613f5357600080fd5b613f5f8c828d01613dee565b90985096505060608a0135613f7381613c7b565b989b979a5095989497966080860135965060a08601359560c0810135955060e001359350915050565b600080600080600080600060e0888a031215613fb757600080fd5b8735613fc281613c7b565b96506020880135613fd281613c7b565b96999698505050506040850135946060810135946080820135945060a0820135935060c0909101359150565b600080600080600060a0868803121561401657600080fd5b853561402181613c7b565b9450602086013561403181613c7b565b94979496505050506040830135926060810135926080909101359150565b60008060008060008060a0878903121561406857600080fd5b86359550602087013561407a81613c7b565b945060408701356001600160401b0381111561409557600080fd5b6140a189828a01613dee565b90955093505060608701356140b581613c7b565b80925050608087013590509295509295509295565b805161377b81613c7b565b6000602082840312156140e757600080fd5b815161228c81613c7b565b60006020828403121561410457600080fd5b8151801515811461228c57600080fd5b60006020828403121561412657600080fd5b5051919050565b60005b83811015614148578181015183820152602001614130565b838111156116b75750506000910152565b6000815180845261417181602086016020860161412d565b601f01601f19169290920160200192915050565b60018060a01b03851681528360208201528260408201526080606082015260006102516080830184614159565b600080604083850312156141c557600080fd5b505080516020909101519092909150565b6020808252601490820152731a5b9cdd59999a58da595b9d081cd8de481bdd5d60621b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000610180828403121561425157600080fd5b614259613ca9565b82518152602083015160208201526040830151604082015260608301516060820152614287608084016140ca565b608082015260a0838101519082015260c0808401519082015260e08084015190820152610100808401519082015261012080840151908201526101408084015190820152610160928301519281019290925250919050565b6000602082840312156142f157600080fd5b813561228c81613c7b565b634e487b7160e01b600052601160045260246000fd5b600082821015614324576143246142fc565b500390565b60008060006060848603121561433e57600080fd5b835161434981613c7b565b602085015190935061435a81613c7b565b604085015190925061436b81613c7b565b809150509250925092565b60008060006060848603121561438b57600080fd5b8351925060208401519150604084015190509250925092565b60018060a01b03841681528260208201526060604082015260006102546060830184614159565b6020808252601590820152740d2dcecc2d8d2c840c2e0e0e4def040c2e0e0e4def605b1b604082015260600190565b6000821982111561440d5761440d6142fc565b500190565b634e487b7160e01b600052601260045260246000fd5b60008261443757614437614412565b500490565b6000600019821415614450576144506142fc565b5060010190565b84815283602082015260018060a01b03831660408201526080606082015260006102516080830184614159565b6020808252600e908201526d1b585c9ad95d08195e1c1a5c995960921b604082015260600190565b6000600160ff1b8214156144c2576144c26142fc565b5060000390565b60008083128015600160ff1b8501841216156144e7576144e76142fc565b6001600160ff1b0384018313811615614502576145026142fc565b50500390565b600080821280156001600160ff1b038490038513161561452a5761452a6142fc565b600160ff1b8390038412811615614543576145436142fc565b50500190565b6000816000190483118215151615614563576145636142fc565b500290565b60208082526015908201527465786368616e676520726174652062656c6f77203160581b604082015260600190565b60006001600160ff1b03818413828413808216868404861116156145bd576145bd6142fc565b600160ff1b60008712828116878305891216156145dc576145dc6142fc565b600087129250878205871284841616156145f8576145f86142fc565b8785058712818416161561460e5761460e6142fc565b505050929093029392505050565b60008261462b5761462b614412565b600160ff1b821460001984141615614645576146456142fc565b500590565b80516001600160701b038116811461377b57600080fd5b60008060006060848603121561467657600080fd5b61467f8461464a565b925061468d6020850161464a565b9150604084015163ffffffff8116811461436b57600080fd5b600082516146b881846020870161412d565b9190910192915050565b60208152600061228c602083018461415956fea26469706673582212205514d474b936dd03b010fd1ac1db39732e09cbfb14a9d5b2b6ce885883bc213e64736f6c63430008090033";
|
|
568
|
+
|
|
569
|
+
type ActionCoreConstructorParams =
|
|
570
|
+
| [signer?: Signer]
|
|
571
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
572
|
+
|
|
573
|
+
const isSuperArgs = (
|
|
574
|
+
xs: ActionCoreConstructorParams
|
|
575
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
576
|
+
|
|
577
|
+
export class ActionCore__factory extends ContractFactory {
|
|
578
|
+
constructor(...args: ActionCoreConstructorParams) {
|
|
579
|
+
if (isSuperArgs(args)) {
|
|
580
|
+
super(...args);
|
|
581
|
+
} else {
|
|
582
|
+
super(_abi, _bytecode, args[0]);
|
|
583
|
+
}
|
|
584
|
+
this.contractName = "ActionCore";
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
deploy(
|
|
588
|
+
_joeRouter: string,
|
|
589
|
+
_joeFactory: string,
|
|
590
|
+
_marketFactory: string,
|
|
591
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
592
|
+
): Promise<ActionCore> {
|
|
593
|
+
return super.deploy(
|
|
594
|
+
_joeRouter,
|
|
595
|
+
_joeFactory,
|
|
596
|
+
_marketFactory,
|
|
597
|
+
overrides || {}
|
|
598
|
+
) as Promise<ActionCore>;
|
|
599
|
+
}
|
|
600
|
+
getDeployTransaction(
|
|
601
|
+
_joeRouter: string,
|
|
602
|
+
_joeFactory: string,
|
|
603
|
+
_marketFactory: string,
|
|
604
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
605
|
+
): TransactionRequest {
|
|
606
|
+
return super.getDeployTransaction(
|
|
607
|
+
_joeRouter,
|
|
608
|
+
_joeFactory,
|
|
609
|
+
_marketFactory,
|
|
610
|
+
overrides || {}
|
|
611
|
+
);
|
|
612
|
+
}
|
|
613
|
+
attach(address: string): ActionCore {
|
|
614
|
+
return super.attach(address) as ActionCore;
|
|
615
|
+
}
|
|
616
|
+
connect(signer: Signer): ActionCore__factory {
|
|
617
|
+
return super.connect(signer) as ActionCore__factory;
|
|
618
|
+
}
|
|
619
|
+
static readonly contractName: "ActionCore";
|
|
620
|
+
public readonly contractName: "ActionCore";
|
|
621
|
+
static readonly bytecode = _bytecode;
|
|
622
|
+
static readonly abi = _abi;
|
|
623
|
+
static createInterface(): ActionCoreInterface {
|
|
624
|
+
return new utils.Interface(_abi) as ActionCoreInterface;
|
|
625
|
+
}
|
|
626
|
+
static connect(
|
|
627
|
+
address: string,
|
|
628
|
+
signerOrProvider: Signer | Provider
|
|
629
|
+
): ActionCore {
|
|
630
|
+
return new Contract(address, _abi, signerOrProvider) as ActionCore;
|
|
631
|
+
}
|
|
632
|
+
}
|