@pendle/core-v2 2.3.0-mainnet → 2.3.2-mainnet
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.json +76 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.json +76 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IAggregationExecutor.sol/IAggregationExecutor.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.json +388 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.json +40 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IHashflow.sol/IHashflow.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.json → arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.json} +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → ethereum}/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.json +101 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.json +10 -0
- package/contracts/router/ActionAddRemoveLiq.sol +0 -1
- package/contracts/router/swap-aggregator/PendleSwapArbitrum.sol +45 -0
- package/contracts/router/swap-aggregator/{PendleSwapAggregator.sol → PendleSwapEthereum.sol} +5 -3
- package/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol +195 -0
- package/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol +10 -0
- package/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol +41 -0
- package/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol +200 -0
- package/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol +135 -0
- package/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol +17 -0
- package/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol +30 -0
- package/contracts/router/swap-aggregator/kyberswap/{KyberAggregationRouterHelper.sol → ethereum/KyberHelperEthereum.sol} +16 -28
- package/contracts/router/swap-aggregator/kyberswap/{ScaleDataHelperEthereum1.sol → ethereum/ScaleDataHelperEthereum.sol} +2 -2
- package/deployments/1-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/package.json +1 -1
- package/typechain-types/IExecutorHelper1.ts +643 -0
- package/typechain-types/IExecutorHelper2.ts +115 -0
- package/typechain-types/InputScalingHelper.ts +108 -0
- package/typechain-types/PendleSwapArbitrum.ts +126 -0
- package/typechain-types/PendleSwapEthereum.ts +126 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/IExecutorHelper1__factory.ts +403 -0
- package/typechain-types/factories/IExecutorHelper2__factory.ts +55 -0
- package/typechain-types/factories/InputScalingHelper__factory.ts +88 -0
- package/typechain-types/factories/PendleSwapAggregator__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapArbitrum__factory.ts +129 -0
- package/typechain-types/factories/PendleSwapEthereum__factory.ts +129 -0
- package/typechain-types/hardhat.d.ts +58 -184
- package/typechain-types/index.ts +10 -44
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.json +0 -72
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +0 -10
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
- /package/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IAggregationExecutor.sol +0 -0
- /package/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IHashflow.sol +0 -0
- /package/contracts/router/swap-aggregator/kyberswap/{interfaces → ethereum}/IExecutorHelperEthereum1.sol +0 -0
- /package/contracts/router/swap-aggregator/kyberswap/{interfaces → ethereum}/IMetaAggregationRouterV2.sol +0 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IExecutorHelper1,
|
|
9
|
+
IExecutorHelper1Interface,
|
|
10
|
+
} from "../IExecutorHelper1";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "uint256",
|
|
17
|
+
name: "index",
|
|
18
|
+
type: "uint256",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "bytes",
|
|
22
|
+
name: "data",
|
|
23
|
+
type: "bytes",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "previousAmountOut",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "executeBalV2Swap",
|
|
32
|
+
outputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "uint256",
|
|
35
|
+
name: "",
|
|
36
|
+
type: "uint256",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
stateMutability: "payable",
|
|
40
|
+
type: "function",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
internalType: "uint256",
|
|
46
|
+
name: "index",
|
|
47
|
+
type: "uint256",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
internalType: "bytes",
|
|
51
|
+
name: "data",
|
|
52
|
+
type: "bytes",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "uint256",
|
|
56
|
+
name: "previousAmountOut",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "executeCamelotSwap",
|
|
61
|
+
outputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "payable",
|
|
69
|
+
type: "function",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
inputs: [
|
|
73
|
+
{
|
|
74
|
+
internalType: "uint256",
|
|
75
|
+
name: "index",
|
|
76
|
+
type: "uint256",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
internalType: "bytes",
|
|
80
|
+
name: "data",
|
|
81
|
+
type: "bytes",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
internalType: "uint256",
|
|
85
|
+
name: "previousAmountOut",
|
|
86
|
+
type: "uint256",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: "executeCurveSwap",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "payable",
|
|
98
|
+
type: "function",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "uint256",
|
|
104
|
+
name: "index",
|
|
105
|
+
type: "uint256",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
internalType: "bytes",
|
|
109
|
+
name: "data",
|
|
110
|
+
type: "bytes",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
name: "previousAmountOut",
|
|
115
|
+
type: "uint256",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "executeDODOSwap",
|
|
119
|
+
outputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "uint256",
|
|
122
|
+
name: "",
|
|
123
|
+
type: "uint256",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: "payable",
|
|
127
|
+
type: "function",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "uint256",
|
|
133
|
+
name: "index",
|
|
134
|
+
type: "uint256",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "bytes",
|
|
138
|
+
name: "data",
|
|
139
|
+
type: "bytes",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
internalType: "uint256",
|
|
143
|
+
name: "previousAmountOut",
|
|
144
|
+
type: "uint256",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
name: "executeGMXSwap",
|
|
148
|
+
outputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
name: "",
|
|
152
|
+
type: "uint256",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
stateMutability: "payable",
|
|
156
|
+
type: "function",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
inputs: [
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "index",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
internalType: "bytes",
|
|
167
|
+
name: "data",
|
|
168
|
+
type: "bytes",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
internalType: "uint256",
|
|
172
|
+
name: "previousAmountOut",
|
|
173
|
+
type: "uint256",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
name: "executeHashflowSwap",
|
|
177
|
+
outputs: [
|
|
178
|
+
{
|
|
179
|
+
internalType: "uint256",
|
|
180
|
+
name: "",
|
|
181
|
+
type: "uint256",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
stateMutability: "payable",
|
|
185
|
+
type: "function",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
inputs: [
|
|
189
|
+
{
|
|
190
|
+
internalType: "uint256",
|
|
191
|
+
name: "index",
|
|
192
|
+
type: "uint256",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
internalType: "bytes",
|
|
196
|
+
name: "data",
|
|
197
|
+
type: "bytes",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "previousAmountOut",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "executeKyberDMMSwap",
|
|
206
|
+
outputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "uint256",
|
|
209
|
+
name: "",
|
|
210
|
+
type: "uint256",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
stateMutability: "payable",
|
|
214
|
+
type: "function",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
inputs: [
|
|
218
|
+
{
|
|
219
|
+
internalType: "uint256",
|
|
220
|
+
name: "index",
|
|
221
|
+
type: "uint256",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
internalType: "bytes",
|
|
225
|
+
name: "data",
|
|
226
|
+
type: "bytes",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
internalType: "uint256",
|
|
230
|
+
name: "previousAmountOut",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
name: "executeRfqSwap",
|
|
235
|
+
outputs: [
|
|
236
|
+
{
|
|
237
|
+
internalType: "uint256",
|
|
238
|
+
name: "",
|
|
239
|
+
type: "uint256",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
stateMutability: "payable",
|
|
243
|
+
type: "function",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [
|
|
247
|
+
{
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "index",
|
|
250
|
+
type: "uint256",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
internalType: "bytes",
|
|
254
|
+
name: "data",
|
|
255
|
+
type: "bytes",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
internalType: "uint256",
|
|
259
|
+
name: "previousAmountOut",
|
|
260
|
+
type: "uint256",
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
name: "executeStableSwap",
|
|
264
|
+
outputs: [
|
|
265
|
+
{
|
|
266
|
+
internalType: "uint256",
|
|
267
|
+
name: "",
|
|
268
|
+
type: "uint256",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
stateMutability: "payable",
|
|
272
|
+
type: "function",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
inputs: [
|
|
276
|
+
{
|
|
277
|
+
internalType: "uint256",
|
|
278
|
+
name: "index",
|
|
279
|
+
type: "uint256",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
internalType: "bytes",
|
|
283
|
+
name: "data",
|
|
284
|
+
type: "bytes",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
internalType: "uint256",
|
|
288
|
+
name: "previousAmountOut",
|
|
289
|
+
type: "uint256",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
name: "executeSynthetixSwap",
|
|
293
|
+
outputs: [
|
|
294
|
+
{
|
|
295
|
+
internalType: "uint256",
|
|
296
|
+
name: "",
|
|
297
|
+
type: "uint256",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
stateMutability: "payable",
|
|
301
|
+
type: "function",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
inputs: [
|
|
305
|
+
{
|
|
306
|
+
internalType: "uint256",
|
|
307
|
+
name: "index",
|
|
308
|
+
type: "uint256",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
internalType: "bytes",
|
|
312
|
+
name: "data",
|
|
313
|
+
type: "bytes",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
internalType: "uint256",
|
|
317
|
+
name: "previousAmountOut",
|
|
318
|
+
type: "uint256",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
name: "executeUniSwap",
|
|
322
|
+
outputs: [
|
|
323
|
+
{
|
|
324
|
+
internalType: "uint256",
|
|
325
|
+
name: "",
|
|
326
|
+
type: "uint256",
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
stateMutability: "payable",
|
|
330
|
+
type: "function",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
inputs: [
|
|
334
|
+
{
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "index",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
internalType: "bytes",
|
|
341
|
+
name: "data",
|
|
342
|
+
type: "bytes",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
internalType: "uint256",
|
|
346
|
+
name: "previousAmountOut",
|
|
347
|
+
type: "uint256",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
name: "executeUniV3ProMMSwap",
|
|
351
|
+
outputs: [
|
|
352
|
+
{
|
|
353
|
+
internalType: "uint256",
|
|
354
|
+
name: "",
|
|
355
|
+
type: "uint256",
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
stateMutability: "payable",
|
|
359
|
+
type: "function",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
inputs: [
|
|
363
|
+
{
|
|
364
|
+
internalType: "uint256",
|
|
365
|
+
name: "index",
|
|
366
|
+
type: "uint256",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
internalType: "bytes",
|
|
370
|
+
name: "data",
|
|
371
|
+
type: "bytes",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
internalType: "uint256",
|
|
375
|
+
name: "previousAmountOut",
|
|
376
|
+
type: "uint256",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
name: "executeVelodromeSwap",
|
|
380
|
+
outputs: [
|
|
381
|
+
{
|
|
382
|
+
internalType: "uint256",
|
|
383
|
+
name: "",
|
|
384
|
+
type: "uint256",
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
stateMutability: "payable",
|
|
388
|
+
type: "function",
|
|
389
|
+
},
|
|
390
|
+
];
|
|
391
|
+
|
|
392
|
+
export class IExecutorHelper1__factory {
|
|
393
|
+
static readonly abi = _abi;
|
|
394
|
+
static createInterface(): IExecutorHelper1Interface {
|
|
395
|
+
return new utils.Interface(_abi) as IExecutorHelper1Interface;
|
|
396
|
+
}
|
|
397
|
+
static connect(
|
|
398
|
+
address: string,
|
|
399
|
+
signerOrProvider: Signer | Provider
|
|
400
|
+
): IExecutorHelper1 {
|
|
401
|
+
return new Contract(address, _abi, signerOrProvider) as IExecutorHelper1;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IExecutorHelper2,
|
|
9
|
+
IExecutorHelper2Interface,
|
|
10
|
+
} from "../IExecutorHelper2";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "uint256",
|
|
17
|
+
name: "index",
|
|
18
|
+
type: "uint256",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "bytes",
|
|
22
|
+
name: "data",
|
|
23
|
+
type: "bytes",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "previousAmountOut",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "executeKyberLimitOrder",
|
|
32
|
+
outputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "uint256",
|
|
35
|
+
name: "",
|
|
36
|
+
type: "uint256",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
stateMutability: "payable",
|
|
40
|
+
type: "function",
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export class IExecutorHelper2__factory {
|
|
45
|
+
static readonly abi = _abi;
|
|
46
|
+
static createInterface(): IExecutorHelper2Interface {
|
|
47
|
+
return new utils.Interface(_abi) as IExecutorHelper2Interface;
|
|
48
|
+
}
|
|
49
|
+
static connect(
|
|
50
|
+
address: string,
|
|
51
|
+
signerOrProvider: Signer | Provider
|
|
52
|
+
): IExecutorHelper2 {
|
|
53
|
+
return new Contract(address, _abi, signerOrProvider) as IExecutorHelper2;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
InputScalingHelper,
|
|
8
|
+
InputScalingHelperInterface,
|
|
9
|
+
} from "../InputScalingHelper";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "bytes",
|
|
16
|
+
name: "inputData",
|
|
17
|
+
type: "bytes",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "newAmount",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
name: "getScaledInputData",
|
|
26
|
+
outputs: [
|
|
27
|
+
{
|
|
28
|
+
internalType: "bytes",
|
|
29
|
+
name: "",
|
|
30
|
+
type: "bytes",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
stateMutability: "pure",
|
|
34
|
+
type: "function",
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
const _bytecode =
|
|
39
|
+
"0x608060405234801561001057600080fd5b50612740806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063e4da6f2e14610030575b600080fd5b61004361003e366004610e5d565b610059565b6040516100509190610f24565b60405180910390f35b6060600061006a6004828688610f37565b61007391610f61565b90506000610082600486610fa7565b6001600160401b0381111561009957610099610fba565b6040519080825280601f01601f1916602001820160405280156100c3576020820181803683370190505b50905060005b6100d4600487610fa7565b81101561013a5786866100e8836004610fd0565b8181106100f7576100f7610fe3565b9050013560f81c60f81b82828151811061011357610113610fe3565b60200101906001600160f81b031916908160001a90535061013381610ff9565b90506100c9565b506001600160e01b031982166355e7fe1360e11b148061016a57506001600160e01b031982166329fd704160e21b145b15610225576000806000808480602001905181019061018991906112e1565b929650909450925090506101c783838a6001600160e01b03198a166329fd704160e21b14806101c257506101c28760e0015160206103a0565b6103ac565b604051919450925086906101e59086908690869086906024016114c9565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152965061039995505050505050565b631de02f1760e01b6001600160e01b03198316016102db5760008180602001905181019061025391906116f8565b905061027c81606001518260400151876102778560600151610120015160206103a0565b61041a565b82606001836040018290528290525050828160405160240161029e91906118ae565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152935061039992505050565b63750fcc0560e01b6001600160e01b0319831601610340576000806000808480602001905181019061030d919061192f565b935093509350935061032283838a600161041a565b604051919450925086906101e590869086908690869060240161198f565b60405162461bcd60e51b8152602060048201526024808201527f496e7075745363616c696e6748656c7065723a20496e76616c69642073656c6560448201526331ba37b960e11b60648201526084015b60405180910390fd5b9392505050565b81811615155b92915050565b6103b4610d81565b60a08501516060908481036103cf5786869250925050610411565b83156103f5576103e0878287610459565b6103eb878388610519565b9250925050610411565b610400878287610459565b61040b8783886105d2565b92509250505b94509492505050565b610422610de8565b60e085015160609084810361043d5786869250925050610411565b831561044e576103e087828761090f565b61040087828761090f565b610461610d81565b82828560c0015161047291906119c5565b61047c91906119dc565b60c0850181905260000361049257600160c08501525b60a0840182905260005b846040015151811015610510578383866060015183815181106104c1576104c1610fe3565b60200260200101516104d391906119c5565b6104dd91906119dc565b856060015182815181106104f3576104f3610fe3565b60209081029190910101528061050881610ff9565b91505061049c565b50929392505050565b60606000848060200190518101906105319190611a7d565b905060005b8151518110156105a75784848360200151838151811061055857610558610fe3565b602002602001015161056a91906119c5565b61057491906119dc565b8260200151828151811061058a5761058a610fe3565b60209081029190910101528061059f81610ff9565b915050610536565b50806040516020016105b99190611b44565b6040516020818303038152906040529150509392505050565b60606000848060200190518101906105ea9190611d7d565b9050838382606001516105fd91906119c5565b61060791906119dc565b606082015260005b8151518110156108fd5760008260000151828151811061063157610631610fe3565b602002602001015160008151811061064b5761064b610fe3565b60209081029190910181015190810151909150630be1a7a360e21b6001600160e01b031982160161068a5781516106839088886109c9565b82526108e8565b6301b966ef60e71b6001600160e01b03198216016106af578151610683908888610a14565b633409dd2d60e01b6001600160e01b03198216016106d4578151610683908888610a5f565b63b6bb37eb60e01b6001600160e01b03198216016106f95781516106839088886109c9565b63617556cb60e01b6001600160e01b031982160161071e578151610683908888610aaa565b6308c49cdf60e11b6001600160e01b031982160161074e5760405162461bcd60e51b815260040161039090611e54565b635a2f8d7160e01b6001600160e01b0319821601610773578151610683908888610b5d565b6375a256f160e01b6001600160e01b0319821601610798578151610683908888610bf2565b635f981db560e01b6001600160e01b03198216016107bd5781516106839088886109c9565b6352dd9e0160e01b6001600160e01b03198216016107e2578151610683908888610c3d565b6360fabb9d60e01b6001600160e01b0319821601610807578151610683908888610cd2565b630590bce960e11b6001600160e01b03198216016108375760405162461bcd60e51b815260040161039090611e54565b63c4ab6f1f60e01b6001600160e01b031982160161085c5781516106839088886109c9565b63c5cd525560e01b6001600160e01b031982160161088c5760405162461bcd60e51b815260040161039090611e54565b60405162461bcd60e51b815260206004820152602b60248201527f4167677265676174696f6e4578656375746f723a204465782074797065206e6f60448201526a1d081cdd5c1c1bdc9d195960aa1b6064820152608401610390565b505080806108f590610ff9565b91505061060f565b50806040516020016105b99190611e9e565b610917610de8565b828285610100015161092991906119c5565b61093391906119dc565b610100850181905260000361094b5760016101008501525b60e0840182905260005b8460400151518110156105105783838660600151838151811061097a5761097a610fe3565b602002602001015161098c91906119c5565b61099691906119dc565b856060015182815181106109ac576109ac610fe3565b6020908102919091010152806109c181610ff9565b915050610955565b60606000848060200190518101906109e19190611fec565b9050838382608001516109f491906119c5565b6109fe91906119dc565b60808201526040516105b9908290602001612094565b6060600084806020019051810190610a2c9190612158565b905083838260a00151610a3f91906119c5565b610a4991906119dc565b60a08201526040516105b9908290602001612200565b6060600084806020019051810190610a7791906122bc565b905083838260a00151610a8a91906119c5565b610a9491906119dc565b60a08201526040516105b9908290602001612359565b6060600084806020019051810190610ac291906123f3565b905083838260800151610ad591906119c5565b610adf91906119dc565b60808201526040516105b990829060200160006101008201905060018060a01b038084511683528060208501511660208401528060408501511660408401528060608501511660608401526080840151608084015260a084015160a08401528060c08501511660c08401525060e0830151151560e083015292915050565b6060600084806020019051810190610b75919061248d565b905083838260800151610b8891906119c5565b610b9291906119dc565b60808201526040516105b990829060200181516001600160a01b03908116825260208084015190830152604080840151821690830152606080840151909116908201526080808301519082015260a0918201519181019190915260c00190565b6060600084806020019051810190610c0a9190612501565b905083838260800151610c1d91906119c5565b610c2791906119dc565b60808201526040516105b990829060200161258b565b6060600084806020019051810190610c55919061260d565b905083838260600151610c6891906119c5565b610c7291906119dc565b60608201526040516105b990829060200181516001600160a01b039081168252602080840151821690830152604080840151821690830152606080840151908301526080808401519083015260a092830151169181019190915260c00190565b6060600084806020019051810190610cea919061268a565b905083838260800151610cfd91906119c5565b610d0791906119dc565b60808201526040516105b990829060200160006101008201905060018060a01b0380845116835280602085015116602084015280604085015116604084015250606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e0830151151560e083015292915050565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b03168152602001606081526020016060815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001606081525090565b60405180610160016040528060006001600160a01b0316815260200160006001600160a01b031681526020016060815260200160608152602001606081526020016060815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001606081525090565b600080600060408486031215610e7257600080fd5b83356001600160401b0380821115610e8957600080fd5b818601915086601f830112610e9d57600080fd5b813581811115610eac57600080fd5b876020828501011115610ebe57600080fd5b6020928301989097509590910135949350505050565b60005b83811015610eef578181015183820152602001610ed7565b50506000910152565b60008151808452610f10816020860160208601610ed4565b601f01601f19169290920160200192915050565b6020815260006103996020830184610ef8565b60008085851115610f4757600080fd5b83861115610f5457600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015610f895780818660040360031b1b83161692505b505092915050565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a6576103a6610f91565b634e487b7160e01b600052604160045260246000fd5b808201808211156103a6576103a6610f91565b634e487b7160e01b600052603260045260246000fd5b60006001820161100b5761100b610f91565b5060010190565b6001600160a01b038116811461102757600080fd5b50565b60405161012081016001600160401b038111828210171561104d5761104d610fba565b60405290565b60405161016081016001600160401b038111828210171561104d5761104d610fba565b60405160a081016001600160401b038111828210171561104d5761104d610fba565b604080519081016001600160401b038111828210171561104d5761104d610fba565b60405160e081016001600160401b038111828210171561104d5761104d610fba565b60405161014081016001600160401b038111828210171561104d5761104d610fba565b60405161010081016001600160401b038111828210171561104d5761104d610fba565b60405160c081016001600160401b038111828210171561104d5761104d610fba565b604051601f8201601f191681016001600160401b038111828210171561116c5761116c610fba565b604052919050565b805161117f81611012565b919050565b60006001600160401b0382111561119d5761119d610fba565b5060051b60200190565b600082601f8301126111b857600080fd5b815160206111cd6111c883611184565b611144565b82815260059290921b840181019181810190868411156111ec57600080fd5b8286015b8481101561121057805161120381611012565b83529183019183016111f0565b509695505050505050565b600082601f83011261122c57600080fd5b8151602061123c6111c883611184565b82815260059290921b8401810191818101908684111561125b57600080fd5b8286015b84811015611210578051835291830191830161125f565b600082601f83011261128757600080fd5b81516001600160401b038111156112a0576112a0610fba565b6112b3601f8201601f1916602001611144565b8181528460208386010111156112c857600080fd5b6112d9826020830160208701610ed4565b949350505050565b600080600080608085870312156112f757600080fd5b845161130281611012565b60208601519094506001600160401b038082111561131f57600080fd5b90860190610120828903121561133457600080fd5b61133c61102a565b61134583611174565b815261135360208401611174565b602082015260408301518281111561136a57600080fd5b6113768a8286016111a7565b60408301525060608301518281111561138e57600080fd5b61139a8a82860161121b565b6060830152506113ac60808401611174565b608082015260a083015160a082015260c083015160c082015260e083015160e082015261010080840151838111156113e357600080fd5b6113ef8b828701611276565b82840152505080955050604087015191508082111561140d57600080fd5b61141988838901611276565b9350606087015191508082111561142f57600080fd5b5061143c87828801611276565b91505092959194509250565b6001600160a01b03169052565b600081518084526020808501945080840160005b8381101561148e5781516001600160a01b031687529582019590820190600101611469565b509495945050505050565b600081518084526020808501945080840160005b8381101561148e578151875295820195908201906001016114ad565b6001600160a01b038516815260806020820181905284516114ec91830190611448565b6000602085015161150060a0840182611448565b5060408501516101208060c085015261151d6101a0850183611455565b91506060870151607f19808685030160e087015261153b8483611499565b93506080890151915061010061155381880184611448565b60a08a01518488015260c08a015161014088015260e08a0151610160880152808a0151935050808685030161018087015250506115908282610ef8565b91505082810360408401526115a58186610ef8565b905082810360608401526115b98185610ef8565b979650505050505050565b600061016082840312156115d757600080fd5b6115df611053565b90506115ea82611174565b81526115f860208301611174565b602082015260408201516001600160401b038082111561161757600080fd5b611623858386016111a7565b6040840152606084015191508082111561163c57600080fd5b6116488583860161121b565b6060840152608084015191508082111561166157600080fd5b61166d858386016111a7565b608084015260a084015191508082111561168657600080fd5b6116928583860161121b565b60a08401526116a360c08501611174565b60c084015260e084810151908401526101008085015190840152610120808501519084015261014080850151909250818111156116df57600080fd5b6116eb86828701611276565b8385015250505092915050565b60006020828403121561170a57600080fd5b81516001600160401b038082111561172157600080fd5b9083019060a0828603121561173557600080fd5b61173d611076565b61174683611174565b815261175460208401611174565b602082015260408301518281111561176b57600080fd5b61177787828601611276565b60408301525060608301518281111561178f57600080fd5b61179b878286016115c4565b6060830152506080830151828111156117b357600080fd5b6117bf87828601611276565b60808301525095945050505050565b60006101606117de848451611448565b60208301516117f06020860182611448565b50604083015181604086015261180882860182611455565b915050606083015184820360608601526118228282611499565b9150506080830151848203608086015261183c8282611455565b91505060a083015184820360a08601526118568282611499565b91505060c083015161186b60c0860182611448565b5060e083810151908501526101008084015190850152610120808401519085015261014080840151858303828701526118a48382610ef8565b9695505050505050565b60208152600060018060a01b0380845116602084015280602085015116604084015250604083015160a060608401526118ea60c0840182610ef8565b90506060840151601f198085840301608086015261190883836117ce565b925060808601519150808584030160a0860152506119268282610ef8565b95945050505050565b6000806000806080858703121561194557600080fd5b845161195081611012565b60208601519094506001600160401b038082111561196d57600080fd5b611979888389016115c4565b9450604087015191508082111561140d57600080fd5b6001600160a01b03851681526080602082018190526000906119b3908301866117ce565b82810360408401526115a58186610ef8565b80820281158282048414176103a6576103a6610f91565b6000826119f957634e487b7160e01b600052601260045260246000fd5b500490565b600082601f830112611a0f57600080fd5b81516020611a1f6111c883611184565b82815260059290921b84018101918181019086841115611a3e57600080fd5b8286015b848110156112105780516001600160401b03811115611a615760008081fd5b611a6f8986838b0101611276565b845250918301918301611a42565b600060208284031215611a8f57600080fd5b81516001600160401b0380821115611aa657600080fd5b9083019060a08286031215611aba57600080fd5b611ac2611076565b825182811115611ad157600080fd5b611add878286016111a7565b825250602083015182811115611af257600080fd5b611afe8782860161121b565b602083015250604083015182811115611b1657600080fd5b611b22878286016119fe565b604083015250606083015160608201526080830151828111156117b357600080fd5b60006020808352835160a082850152611b6060c0850182611455565b905081850151601f1980868403016040870152611b7d8383611499565b60408801518782038301606089015280518083529194508501925084840190600581901b8501860160005b82811015611bd45784878303018452611bc2828751610ef8565b95880195938801939150600101611ba8565b5060608a015160808a015260808a01519650838982030160a08a0152611bfa8188610ef8565b9a9950505050505050505050565b600082601f830112611c1957600080fd5b8151611c276111c882611184565b808282526020820191508560208460051b8701011115611c4657600080fd5b602085015b60208460051b870101811015611d735780516001600160401b03811115611c7157600080fd5b8601603f81018813611c8257600080fd5b6020810151611c936111c882611184565b808282526020820191508a60408460051b8601011115611cb257600080fd5b604084015b60408460051b860101811015611d5d5780516001600160401b03811115611cdd57600080fd5b60408682018e03603f19011215611cf357600080fd5b611cfb611098565b868201604001516001600160401b03811115611d1657600080fd5b611d278f604083868c010101611276565b82525090860160600151906001600160e01b031982168214611d4857600080fd5b60208181019290925284529283019201611cb7565b5086525050602093840193919091019050611c4b565b5095945050505050565b600060208284031215611d8f57600080fd5b81516001600160401b0380821115611da657600080fd5b9083019060e08286031215611dba57600080fd5b611dc26110ba565b825182811115611dd157600080fd5b611ddd87828601611c08565b825250611dec60208401611174565b6020820152611dfd60408401611174565b604082015260608301516060820152611e1860808401611174565b608082015260a083015160a082015260c083015182811115611e3957600080fd5b611e4587828601611276565b60c08301525095945050505050565b6020808252602a908201527f496e7075745363616c696e6748656c7065723a2043616e206e6f74207363616c6040820152690652052465120737761760b41b606082015260800190565b6020808252825160e0838301528051610100840181905260009291600582811b860161012090810193928501929087019186805b83811015611f665789870361011f1901855285518051808952908901908989019080861b8a018b01855b82811015611f5057601f198c8303018452845160408151818552611f2282860182610ef8565b91505063ffffffff60e01b8f830151168f85015280935050508c850194508c84019350600181019050611efc565b5099505050958801955093870193600101611ed2565b505050505050818501519150611f7f6040850183611448565b60408501519150611f936060850183611448565b6060850151608085015260808501519150611fb160a0850183611448565b60a085015160c085015260c08501519150601f198482030160e08501526119268183610ef8565b805163ffffffff8116811461117f57600080fd5b60006101208284031215611fff57600080fd5b61200761102a565b61201083611174565b815261201e60208401611174565b602082015261202f60408401611174565b604082015261204060608401611174565b60608201526080830151608082015260a083015160a082015261206560c08401611fd8565b60c082015261207660e08401611fd8565b60e0820152610100612089818501611fd8565b908201529392505050565b81516001600160a01b039081168252602080840151909116908201526040808301516101208301916120c890840182611448565b5060608301516120db6060840182611448565b506080830151608083015260a083015160a083015260c083015161210760c084018263ffffffff169052565b5060e083015161211f60e084018263ffffffff169052565b506101008381015163ffffffff811684830152610f89565b805160ff8116811461117f57600080fd5b8051801515811461117f57600080fd5b6000610140828403121561216b57600080fd5b6121736110dc565b61217c83611174565b815261218a60208401611174565b602082015261219b60408401611174565b60408201526121ac60608401612137565b60608201526121bd60808401612137565b608082015260a083015160a082015260c083015160c082015260e083015160e08201526101006121ee818501611174565b90820152610120612089848201612148565b600061014082019050612214828451611448565b60208301516122266020840182611448565b5060408301516122396040840182611448565b50606083015161224e606084018260ff169052565b506080830151612263608084018260ff169052565b5060a083015160a083015260c083015160c083015260e083015160e08301526101008084015161229582850182611448565b50506101208381015180151584830152610f89565b8051600f81900b811461117f57600080fd5b600061012082840312156122cf57600080fd5b6122d761102a565b6122e083611174565b81526122ee60208401611174565b60208201526122ff60408401611174565b6040820152612310606084016122aa565b6060820152612321608084016122aa565b608082015260a083015160a082015260c083015160c082015261234660e08401612148565b60e0820152610100612089818501612148565b81516001600160a01b0390811682526020808401519091169082015260408083015161012083019161238d90840182611448565b5060608301516123a26060840182600f0b9052565b5060808301516123b76080840182600f0b9052565b5060a083015160a083015260c083015160c083015260e08301516123df60e084018215159052565b506101008381015180151584830152610f89565b6000610100828403121561240657600080fd5b61240e6110ff565b825161241981611012565b8152602083015161242981611012565b602082015261243a60408401611174565b604082015261244b60608401611174565b60608201526080830151608082015260a083015160a082015261247060c08401611174565b60c082015261248160e08401612148565b60e08201529392505050565b600060c0828403121561249f57600080fd5b6124a7611122565b82516124b281611012565b81526020838101519082015260408301516124cc81611012565b604082015260608301516124df81611012565b60608201526080838101519082015260a0928301519281019290925250919050565b6000610120828403121561251457600080fd5b61251c61102a565b61252583611174565b815261253360208401611174565b602082015261254460408401611174565b604082015261255560608401611174565b60608201526080830151608082015260a083015160a082015261257a60c08401611174565b60c082015261234660e08401612148565b81516001600160a01b039081168252602080840151909116908201526040808301516101208301916125bf90840182611448565b5060608301516125d26060840182611448565b506080830151608083015260a083015160a083015260c08301516125f960c0840182611448565b5060e08301516123df60e084018215159052565b600060c0828403121561261f57600080fd5b612627611122565b825161263281611012565b8152602083015161264281611012565b6020820152604083015161265581611012565b80604083015250606083015160608201526080830151608082015260a083015161267e81611012565b60a08201529392505050565b6000610100828403121561269d57600080fd5b6126a56110ff565b82516126b081611012565b815260208301516126c081611012565b60208201526126d160408401611174565b6040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c082015261248160e0840161214856fea2646970667358221220578dd1b5b348b4933b96fd6bf527a291b930a37e7b6ea7c03e9df3fd62b77e4064736f6c63430008110033";
|
|
40
|
+
|
|
41
|
+
type InputScalingHelperConstructorParams =
|
|
42
|
+
| [signer?: Signer]
|
|
43
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
44
|
+
|
|
45
|
+
const isSuperArgs = (
|
|
46
|
+
xs: InputScalingHelperConstructorParams
|
|
47
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
48
|
+
|
|
49
|
+
export class InputScalingHelper__factory extends ContractFactory {
|
|
50
|
+
constructor(...args: InputScalingHelperConstructorParams) {
|
|
51
|
+
if (isSuperArgs(args)) {
|
|
52
|
+
super(...args);
|
|
53
|
+
} else {
|
|
54
|
+
super(_abi, _bytecode, args[0]);
|
|
55
|
+
}
|
|
56
|
+
this.contractName = "InputScalingHelper";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
deploy(
|
|
60
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
61
|
+
): Promise<InputScalingHelper> {
|
|
62
|
+
return super.deploy(overrides || {}) as Promise<InputScalingHelper>;
|
|
63
|
+
}
|
|
64
|
+
getDeployTransaction(
|
|
65
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
66
|
+
): TransactionRequest {
|
|
67
|
+
return super.getDeployTransaction(overrides || {});
|
|
68
|
+
}
|
|
69
|
+
attach(address: string): InputScalingHelper {
|
|
70
|
+
return super.attach(address) as InputScalingHelper;
|
|
71
|
+
}
|
|
72
|
+
connect(signer: Signer): InputScalingHelper__factory {
|
|
73
|
+
return super.connect(signer) as InputScalingHelper__factory;
|
|
74
|
+
}
|
|
75
|
+
static readonly contractName: "InputScalingHelper";
|
|
76
|
+
public readonly contractName: "InputScalingHelper";
|
|
77
|
+
static readonly bytecode = _bytecode;
|
|
78
|
+
static readonly abi = _abi;
|
|
79
|
+
static createInterface(): InputScalingHelperInterface {
|
|
80
|
+
return new utils.Interface(_abi) as InputScalingHelperInterface;
|
|
81
|
+
}
|
|
82
|
+
static connect(
|
|
83
|
+
address: string,
|
|
84
|
+
signerOrProvider: Signer | Provider
|
|
85
|
+
): InputScalingHelper {
|
|
86
|
+
return new Contract(address, _abi, signerOrProvider) as InputScalingHelper;
|
|
87
|
+
}
|
|
88
|
+
}
|