@gearbox-protocol/sdk 0.0.109 → 0.0.110

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.
Files changed (112) hide show
  1. package/lib/apy/convexAPY copy.d.ts +6 -0
  2. package/lib/apy/convexAPY copy.js +201 -0
  3. package/lib/apy/convexAPY.d.ts +9 -5
  4. package/lib/apy/convexAPY.js +29 -69
  5. package/lib/apy/curveAPY.d.ts +4 -0
  6. package/lib/apy/curveAPY.js +94 -0
  7. package/lib/apy/index.d.ts +6 -0
  8. package/lib/apy/index.js +20 -0
  9. package/lib/apy/lidoAPY.d.ts +1 -1
  10. package/lib/apy/lidoAPY.js +3 -3
  11. package/lib/apy/yearnAPY.d.ts +4 -0
  12. package/lib/apy/yearnAPY.js +90 -0
  13. package/lib/contracts/contractsRegister.js +2 -1
  14. package/lib/core/creditAccount.d.ts +2 -1
  15. package/lib/core/creditAccount.js +19 -12
  16. package/lib/core/creditManager.d.ts +3 -1
  17. package/lib/core/creditManager.js +22 -8
  18. package/lib/core/errors.d.ts +1 -1
  19. package/lib/core/pool.js +4 -4
  20. package/lib/core/strategy.d.ts +5 -3
  21. package/lib/core/strategy.js +6 -4
  22. package/lib/index.d.ts +4 -4
  23. package/lib/index.js +7 -6
  24. package/lib/tokens/convex.d.ts +3 -0
  25. package/lib/tokens/convex.js +44 -18
  26. package/lib/tokens/curveLP.d.ts +1 -0
  27. package/lib/tokens/curveLP.js +11 -7
  28. package/lib/tokens/normal.d.ts +1 -0
  29. package/lib/tokens/normal.js +5 -1
  30. package/lib/tokens/token.d.ts +7 -2
  31. package/lib/tokens/token.js +10 -1
  32. package/lib/tokens/tokenData.js +2 -3
  33. package/lib/tokens/yearn.d.ts +1 -0
  34. package/lib/tokens/yearn.js +11 -7
  35. package/lib/utils/extracter.d.ts +11 -0
  36. package/lib/utils/extracter.js +19 -0
  37. package/lib/utils/mappers.d.ts +2 -2
  38. package/lib/utils/price.d.ts +8 -0
  39. package/lib/utils/price.js +26 -0
  40. package/package.json +1 -1
  41. package/src/apy/convexAPY.ts +47 -96
  42. package/src/apy/curveAPY.ts +68 -0
  43. package/src/apy/index.ts +8 -0
  44. package/src/apy/lidoAPY.ts +1 -1
  45. package/src/apy/yearnAPY.ts +66 -0
  46. package/src/contracts/contractsRegister.ts +2 -1
  47. package/src/core/creditAccount.ts +20 -12
  48. package/src/core/creditManager.ts +35 -10
  49. package/src/core/errors.ts +1 -0
  50. package/src/core/pool.ts +4 -4
  51. package/src/core/strategy.ts +16 -10
  52. package/src/index.ts +4 -4
  53. package/src/tokens/convex.ts +43 -20
  54. package/src/tokens/curveLP.ts +9 -6
  55. package/src/tokens/normal.ts +3 -0
  56. package/src/tokens/token.ts +24 -6
  57. package/src/tokens/tokenData.ts +2 -4
  58. package/src/tokens/yearn.ts +9 -6
  59. package/src/utils/extracter.ts +30 -0
  60. package/src/utils/mappers.ts +2 -2
  61. package/src/utils/price.ts +33 -0
  62. package/lib/core/price.d.ts +0 -2
  63. package/lib/core/price.js +0 -14
  64. package/lib/types/@chainlink/contracts/src/v0.6/index.d.ts +0 -2
  65. package/lib/types/@chainlink/contracts/src/v0.6/index.js +0 -2
  66. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.d.ts +0 -146
  67. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.js +0 -2
  68. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/index.d.ts +0 -1
  69. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/index.js +0 -2
  70. package/lib/types/contracts/integrations/lido/IstETH.d.ts +0 -154
  71. package/lib/types/contracts/integrations/lido/IstETH.js +0 -2
  72. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker.d.ts +0 -50
  73. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker.js +0 -2
  74. package/lib/types/contracts/pathfinder/Balances.sol/BalanceOps.d.ts +0 -27
  75. package/lib/types/contracts/pathfinder/Balances.sol/BalanceOps.js +0 -2
  76. package/lib/types/contracts/pathfinder/Balances.sol/index.d.ts +0 -1
  77. package/lib/types/contracts/pathfinder/Balances.sol/index.js +0 -2
  78. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder.d.ts +0 -269
  79. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder.js +0 -2
  80. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/index.d.ts +0 -1
  81. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/index.js +0 -2
  82. package/lib/types/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper.d.ts +0 -58
  83. package/lib/types/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper.js +0 -2
  84. package/lib/types/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest.d.ts +0 -528
  85. package/lib/types/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest.js +0 -2
  86. package/lib/types/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest.d.ts +0 -528
  87. package/lib/types/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest.js +0 -2
  88. package/lib/types/factories/@chainlink/contracts/src/v0.6/index.d.ts +0 -1
  89. package/lib/types/factories/@chainlink/contracts/src/v0.6/index.js +0 -30
  90. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface__factory.d.ts +0 -22
  91. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface__factory.js +0 -133
  92. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/index.d.ts +0 -1
  93. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/index.js +0 -8
  94. package/lib/types/factories/contracts/integrations/lido/IstETH__factory.d.ts +0 -35
  95. package/lib/types/factories/contracts/integrations/lido/IstETH__factory.js +0 -224
  96. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker__factory.d.ts +0 -18
  97. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker__factory.js +0 -40
  98. package/lib/types/factories/contracts/pathfinder/Balances.sol/BalanceOps__factory.d.ts +0 -28
  99. package/lib/types/factories/contracts/pathfinder/Balances.sol/BalanceOps__factory.js +0 -76
  100. package/lib/types/factories/contracts/pathfinder/Balances.sol/index.d.ts +0 -1
  101. package/lib/types/factories/contracts/pathfinder/Balances.sol/index.js +0 -8
  102. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder__factory.d.ts +0 -144
  103. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder__factory.js +0 -522
  104. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/index.d.ts +0 -1
  105. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/index.js +0 -8
  106. package/lib/types/factories/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper__factory.d.ts +0 -34
  107. package/lib/types/factories/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper__factory.js +0 -110
  108. package/lib/types/factories/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest__factory.d.ts +0 -65
  109. package/lib/types/factories/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest__factory.js +0 -775
  110. package/lib/types/factories/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest__factory.d.ts +0 -65
  111. package/lib/types/factories/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest__factory.js +0 -775
  112. package/src/core/price.ts +0 -13
@@ -1,522 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.PathFinder__factory = void 0;
19
- /* Autogenerated file. Do not edit manually. */
20
- /* tslint:disable */
21
- /* eslint-disable */
22
- var ethers_1 = require("ethers");
23
- var _abi = [
24
- {
25
- inputs: [
26
- {
27
- internalType: "address",
28
- name: "_addressProvider",
29
- type: "address",
30
- },
31
- {
32
- internalType: "address",
33
- name: "_curvePathFinder",
34
- type: "address",
35
- },
36
- {
37
- internalType: "address",
38
- name: "_uniV2PathFinder",
39
- type: "address",
40
- },
41
- {
42
- internalType: "address",
43
- name: "_uniV3PathFinder",
44
- type: "address",
45
- },
46
- ],
47
- stateMutability: "nonpayable",
48
- type: "constructor",
49
- },
50
- {
51
- inputs: [
52
- {
53
- internalType: "address",
54
- name: "from",
55
- type: "address",
56
- },
57
- {
58
- internalType: "address",
59
- name: "to",
60
- type: "address",
61
- },
62
- ],
63
- name: "PathDoesNotExists",
64
- type: "error",
65
- },
66
- {
67
- inputs: [
68
- {
69
- internalType: "address",
70
- name: "",
71
- type: "address",
72
- },
73
- ],
74
- name: "UnknownToken",
75
- type: "error",
76
- },
77
- {
78
- inputs: [],
79
- name: "UnsupportedAdapterType",
80
- type: "error",
81
- },
82
- {
83
- anonymous: false,
84
- inputs: [
85
- {
86
- indexed: true,
87
- internalType: "address",
88
- name: "previousOwner",
89
- type: "address",
90
- },
91
- {
92
- indexed: true,
93
- internalType: "address",
94
- name: "newOwner",
95
- type: "address",
96
- },
97
- ],
98
- name: "OwnershipTransferred",
99
- type: "event",
100
- },
101
- {
102
- inputs: [],
103
- name: "curvePathFinder",
104
- outputs: [
105
- {
106
- internalType: "address",
107
- name: "",
108
- type: "address",
109
- },
110
- ],
111
- stateMutability: "view",
112
- type: "function",
113
- },
114
- {
115
- inputs: [
116
- {
117
- components: [
118
- {
119
- components: [
120
- {
121
- internalType: "address",
122
- name: "token",
123
- type: "address",
124
- },
125
- {
126
- internalType: "uint256",
127
- name: "balance",
128
- type: "uint256",
129
- },
130
- ],
131
- internalType: "struct Balance[]",
132
- name: "balances",
133
- type: "tuple[]",
134
- },
135
- {
136
- internalType: "address",
137
- name: "underlying",
138
- type: "address",
139
- },
140
- {
141
- internalType: "address[]",
142
- name: "connectors",
143
- type: "address[]",
144
- },
145
- {
146
- internalType: "address[]",
147
- name: "adapters",
148
- type: "address[]",
149
- },
150
- {
151
- internalType: "uint256",
152
- name: "gasPriceUnderlyingRAY",
153
- type: "uint256",
154
- },
155
- {
156
- internalType: "uint256",
157
- name: "slippageFactor",
158
- type: "uint256",
159
- },
160
- ],
161
- internalType: "struct ClosePathTask",
162
- name: "task",
163
- type: "tuple",
164
- },
165
- ],
166
- name: "findBestPath",
167
- outputs: [
168
- {
169
- components: [
170
- {
171
- components: [
172
- {
173
- internalType: "address",
174
- name: "target",
175
- type: "address",
176
- },
177
- {
178
- internalType: "bytes",
179
- name: "callData",
180
- type: "bytes",
181
- },
182
- ],
183
- internalType: "struct MultiCall[]",
184
- name: "calls",
185
- type: "tuple[]",
186
- },
187
- {
188
- internalType: "uint256",
189
- name: "underlyingBalance",
190
- type: "uint256",
191
- },
192
- {
193
- internalType: "uint256",
194
- name: "gasUsage",
195
- type: "uint256",
196
- },
197
- ],
198
- internalType: "struct ClosePathResult",
199
- name: "result",
200
- type: "tuple",
201
- },
202
- ],
203
- stateMutability: "nonpayable",
204
- type: "function",
205
- },
206
- {
207
- inputs: [
208
- {
209
- components: [
210
- {
211
- internalType: "address",
212
- name: "token",
213
- type: "address",
214
- },
215
- {
216
- internalType: "uint256",
217
- name: "balance",
218
- type: "uint256",
219
- },
220
- ],
221
- internalType: "struct Balance[][]",
222
- name: "balances",
223
- type: "tuple[][]",
224
- },
225
- {
226
- internalType: "address",
227
- name: "underlying",
228
- type: "address",
229
- },
230
- {
231
- internalType: "address[]",
232
- name: "connectors",
233
- type: "address[]",
234
- },
235
- {
236
- internalType: "address[]",
237
- name: "adapters",
238
- type: "address[]",
239
- },
240
- {
241
- internalType: "uint256",
242
- name: "slippageFactor",
243
- type: "uint256",
244
- },
245
- ],
246
- name: "findBestPathIndex",
247
- outputs: [
248
- {
249
- components: [
250
- {
251
- components: [
252
- {
253
- internalType: "address",
254
- name: "target",
255
- type: "address",
256
- },
257
- {
258
- internalType: "bytes",
259
- name: "callData",
260
- type: "bytes",
261
- },
262
- ],
263
- internalType: "struct MultiCall[]",
264
- name: "calls",
265
- type: "tuple[]",
266
- },
267
- {
268
- internalType: "uint256",
269
- name: "underlyingBalance",
270
- type: "uint256",
271
- },
272
- {
273
- internalType: "uint256",
274
- name: "gasUsage",
275
- type: "uint256",
276
- },
277
- ],
278
- internalType: "struct ClosePathResult",
279
- name: "result",
280
- type: "tuple",
281
- },
282
- {
283
- internalType: "uint256",
284
- name: "bestIndex",
285
- type: "uint256",
286
- },
287
- ],
288
- stateMutability: "nonpayable",
289
- type: "function",
290
- },
291
- {
292
- inputs: [
293
- {
294
- internalType: "address",
295
- name: "tokenIn",
296
- type: "address",
297
- },
298
- {
299
- internalType: "address",
300
- name: "tokenOut",
301
- type: "address",
302
- },
303
- {
304
- internalType: "uint256",
305
- name: "amount",
306
- type: "uint256",
307
- },
308
- {
309
- internalType: "uint256",
310
- name: "slippageFactor",
311
- type: "uint256",
312
- },
313
- {
314
- internalType: "address[]",
315
- name: "adapters",
316
- type: "address[]",
317
- },
318
- ],
319
- name: "getBestPairSwap",
320
- outputs: [
321
- {
322
- components: [
323
- {
324
- components: [
325
- {
326
- internalType: "address",
327
- name: "target",
328
- type: "address",
329
- },
330
- {
331
- internalType: "bytes",
332
- name: "callData",
333
- type: "bytes",
334
- },
335
- ],
336
- internalType: "struct MultiCall",
337
- name: "multiCall",
338
- type: "tuple",
339
- },
340
- {
341
- internalType: "uint256",
342
- name: "amount",
343
- type: "uint256",
344
- },
345
- {
346
- internalType: "bool",
347
- name: "found",
348
- type: "bool",
349
- },
350
- {
351
- internalType: "uint256",
352
- name: "gasUsage",
353
- type: "uint256",
354
- },
355
- ],
356
- internalType: "struct SwapQuote",
357
- name: "quote",
358
- type: "tuple",
359
- },
360
- ],
361
- stateMutability: "nonpayable",
362
- type: "function",
363
- },
364
- {
365
- inputs: [
366
- {
367
- internalType: "address",
368
- name: "underlying",
369
- type: "address",
370
- },
371
- ],
372
- name: "getGasPriceUnderlyingRAY",
373
- outputs: [
374
- {
375
- internalType: "uint256",
376
- name: "",
377
- type: "uint256",
378
- },
379
- ],
380
- stateMutability: "view",
381
- type: "function",
382
- },
383
- {
384
- inputs: [],
385
- name: "owner",
386
- outputs: [
387
- {
388
- internalType: "address",
389
- name: "",
390
- type: "address",
391
- },
392
- ],
393
- stateMutability: "view",
394
- type: "function",
395
- },
396
- {
397
- inputs: [],
398
- name: "priceOracle",
399
- outputs: [
400
- {
401
- internalType: "contract IPriceOracleV2",
402
- name: "",
403
- type: "address",
404
- },
405
- ],
406
- stateMutability: "view",
407
- type: "function",
408
- },
409
- {
410
- inputs: [],
411
- name: "renounceOwnership",
412
- outputs: [],
413
- stateMutability: "nonpayable",
414
- type: "function",
415
- },
416
- {
417
- inputs: [
418
- {
419
- internalType: "address",
420
- name: "newOwner",
421
- type: "address",
422
- },
423
- ],
424
- name: "transferOwnership",
425
- outputs: [],
426
- stateMutability: "nonpayable",
427
- type: "function",
428
- },
429
- {
430
- inputs: [],
431
- name: "uniV2PathFinder",
432
- outputs: [
433
- {
434
- internalType: "address",
435
- name: "",
436
- type: "address",
437
- },
438
- ],
439
- stateMutability: "view",
440
- type: "function",
441
- },
442
- {
443
- inputs: [],
444
- name: "uniV3PathFinder",
445
- outputs: [
446
- {
447
- internalType: "address",
448
- name: "",
449
- type: "address",
450
- },
451
- ],
452
- stateMutability: "view",
453
- type: "function",
454
- },
455
- {
456
- inputs: [],
457
- name: "version",
458
- outputs: [
459
- {
460
- internalType: "uint256",
461
- name: "",
462
- type: "uint256",
463
- },
464
- ],
465
- stateMutability: "view",
466
- type: "function",
467
- },
468
- {
469
- inputs: [],
470
- name: "wethToken",
471
- outputs: [
472
- {
473
- internalType: "address",
474
- name: "",
475
- type: "address",
476
- },
477
- ],
478
- stateMutability: "view",
479
- type: "function",
480
- },
481
- ];
482
- var _bytecode = "0x60a06040523480156200001157600080fd5b506040516200206d3803806200206d8339810160408190526200003491620001e7565b6200003f336200017a565b6000849050806001600160a01b0316634c252f916040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000083573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000a9919062000244565b6001600160a01b03166080816001600160a01b031681525050806001600160a01b031663fca513a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000101573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000127919062000244565b600480546001600160a01b03199081166001600160a01b03938416179091556001805482169683169690961790955560028054861694821694909417909355506003805490931691161790555062000269565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001e257600080fd5b919050565b60008060008060808587031215620001fe57600080fd5b6200020985620001ca565b93506200021960208601620001ca565b92506200022960408601620001ca565b91506200023960608601620001ca565b905092959194509250565b6000602082840312156200025757600080fd5b6200026282620001ca565b9392505050565b608051611de16200028c600039600081816101730152610bfc0152611de16000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c8063715018a61161008c5780639907bf28116100665780639907bf2814610213578063d4755a9714610234578063ee298b3e14610254578063f2fde38b1461026757600080fd5b8063715018a6146101cb5780638c9cc8da146101d55780638da5cb5b146101f557600080fd5b80634b57b0be116100bd5780634b57b0be1461016e57806354fd4d501461019557806355f3003d146101ab57600080fd5b80632630c12f146100e4578063287b94d71461012e5780632b6219b01461014e575b600080fd5b6004546101049073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6001546101049073ffffffffffffffffffffffffffffffffffffffff1681565b61016161015c36600461166d565b61027a565b6040516101259190611885565b6101047f000000000000000000000000000000000000000000000000000000000000000081565b61019d600281565b604051908152602001610125565b6002546101049073ffffffffffffffffffffffffffffffffffffffff1681565b6101d3610692565b005b6101e86101e336600461189f565b61071f565b6040516101259190611915565b60005473ffffffffffffffffffffffffffffffffffffffff16610104565b61022661022136600461195d565b610a5c565b604051610125929190611a71565b6003546101049073ffffffffffffffffffffffffffffffffffffffff1681565b61019d610262366004611a93565b610b6d565b6101d3610275366004611a93565b610c74565b61029e60405180606001604052806060815260200160008152602001600081525090565b602082015182515160008167ffffffffffffffff8111156102c1576102c161142e565b60405190808252806020026020018201604052801561030757816020015b6040805180820190915260008152606060208201528152602001906001900390816102df5790505b509050600085604001515167ffffffffffffffff81111561032a5761032a61142e565b604051908082528060200260200182016040528015610353578160200160208202803683370190505b50905060008060005b8581101561050d5760008960000151828151811061037c5761037c611ab0565b60200260200101516000015190508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610504576103cb818b60400151610da4565b156103fa57818585815181106103e3576103e3611ab0565b602002602001018181525050836001019350610504565b60008a60000151838151811061041257610412611ab0565b6020026020010151602001511115610504576000806104338c856000610e1b565b915091508160400151610497576040517f201e176300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80851660048301528b1660248201526044015b60405180910390fd5b60008c6000015185815181106104af576104af611ab0565b6020908102919091018101518101919091528201518c516104d19183906111ec565b81600001518886815181106104e8576104e8611ab0565b602002602001018190525084806104fe90611b0e565b95505050505b5060010161035c565b50876040015151945060005b8581101561067157600084828151811061053557610535611ab0565b6020026020010151905060008a60000151828151811061055757610557611ab0565b602002602001015160000151905060008b60000151848151811061057d5761057d611ab0565b602002602001015160200151111561066757600061059d8c846001610e1b565b50905080604001516105fb576040517f201e176300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80841660048301528b16602482015260440161048e565b60008c60000151848151811061061357610613611ab0565b6020908102919091018101518101919091528101518c51610635918c906111ec565b806000015188868151811061064c5761064c611ab0565b6020026020010181905250848061066290611b0e565b955050505b5050600101610519565b50838752875161068190876112cd565b602088015250949695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048e565b61071d6000611356565b565b61075c6040805160c08101909152600060808201908152606060a08301528190815260200160008152602001600015158152602001600081525090565b815160005b81811015610a5157600084828151811061077d5761077d611ab0565b6020026020010151905060008173ffffffffffffffffffffffffffffffffffffffff1663ce30bbdb6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f89190611b47565b90506000600182600f81111561081057610810611b68565b1415610835575060025473ffffffffffffffffffffffffffffffffffffffff16610949565b600282600f81111561084957610849611b68565b141561086e575060035473ffffffffffffffffffffffffffffffffffffffff16610949565b600382600f81111561088257610882611b68565b148061089f5750600582600f81111561089d5761089d611b68565b145b806108bb5750600682600f8111156108b9576108b9611b68565b145b806108d75750600782600f8111156108d5576108d5611b68565b145b806108f35750600882600f8111156108f1576108f1611b68565b145b15610917575060015473ffffffffffffffffffffffffffffffffffffffff16610949565b6040517f9fe8c8a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f0ab1a57400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301528c811660248301528b81166044830152606482018b9052608482018a905260009190831690630ab1a5749060a4016000604051808303816000875af11580156109d9573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a1f9190810190611ba7565b905080604001518015610a39575086602001518160200151115b15610a42578096505b84600101945050505050610761565b505095945050505050565b610a8060405180606001604052806060815260200160008152602001600081525090565b6000808751905060006040518060c001604052808a600081518110610aa757610aa7611ab0565b602002602001015181526020018973ffffffffffffffffffffffffffffffffffffffff168152602001888152602001878152602001610ae58a610b6d565b8152602001869052905060005b82811015610b60578015610b2057898181518110610b1257610b12611ab0565b602090810291909101015182525b6000610b2b8361027a565b9050610b4e816020015182604001518860200151896040015187608001516113cb565b15610b5a578095508194505b50610af2565b5050509550959350505050565b60045460009073ffffffffffffffffffffffffffffffffffffffff1663d6d19b2782610ba96b033b2e3c9fd0803ce8000000633b9aca00611ceb565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff928316600482015260248101919091527f0000000000000000000000000000000000000000000000000000000000000000821660448201529085166064820152608401602060405180830381865afa158015610c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6e9190611d28565b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048e565b73ffffffffffffffffffffffffffffffffffffffff8116610d98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161048e565b610da181611356565b50565b8051600090815b81811015610e10578473ffffffffffffffffffffffffffffffffffffffff16848281518110610ddc57610ddc611ab0565b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610e0b57600192505050610c6e565b610dab565b506000949350505050565b610e586040805160c08101909152600060808201908152606060a08301528190815260200160008152602001600015158152602001600081525090565b6000610eb585600001518581518110610e7357610e73611ab0565b602002602001015160000151866020015187600001518781518110610e9a57610e9a611ab0565b6020026020010151602001518860a00151896060015161071f565b60608101516020870151919350909150836111e35760408601515160008167ffffffffffffffff811115610eeb57610eeb61142e565b604051908082528060200260200182016040528015610f5957816020015b610f466040805160c08101909152600060808201908152606060a08301528190815260200160008152602001600015158152602001600081525090565b815260200190600190039081610f095790505b509050600088600001518881518110610f7457610f74611ab0565b6020026020010151600001519050600089600001518981518110610f9a57610f9a611ab0565b602002602001015160200151905060005b8481101561100a57610fe5838c604001518381518110610fcd57610fcd611ab0565b6020026020010151848e60a001518f6060015161071f565b848281518110610ff757610ff7611ab0565b6020908102919091010152600101610fab565b50505060005b828110156111df5781818151811061102a5761102a611ab0565b602002602001015160400151156111da5760006110718a60400151838151811061105657611056611ab0565b60200260200101518b600001516112cd90919063ffffffff16565b83838151811061108357611083611ab0565b6020026020010151602001516110999190611d41565b905060006110d38b6040015184815181106110b6576110b6611ab0565b60200260200101518c60200151848e60a001518f6060015161071f565b9050806040015180156111665750611166828585815181106110f7576110f7611ab0565b60200260200101516020015183602001516111129190611ceb565b61111c9190611d59565b61138886868151811061113157611131611ab0565b602002602001015160600151846060015161114c9190611d41565b6111569190611d94565b8a60200151898f608001516113cb565b156111d75783838151811061117d5761117d611ab0565b602002602001015197508a60400151838151811061119d5761119d611ab0565b602002602001015196508383815181106111b9576111b9611ab0565b60200260200101516060015181606001516111d49190611d41565b95505b50505b611010565b5050505b50935093915050565b60005b8351811015611282578273ffffffffffffffffffffffffffffffffffffffff1684828151811061122157611221611ab0565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16141561127d578184828151811061125c5761125c611ab0565b60200260200101516020018181516112749190611d41565b90525050505050565b6111ef565b506040517f81a3b1be00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316600482015260240161048e565b6000805b8351811015611282578273ffffffffffffffffffffffffffffffffffffffff1684828151811061130357611303611ab0565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1614156113515783818151811061133d5761133d611ab0565b602002602001015160200151915050610c6e565b6112d1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006b033b2e3c9fd0803ce80000006113e48385611ceb565b6113ee9190611d59565b6113f89085611d94565b6b033b2e3c9fd0803ce800000061140f8488611ceb565b6114199190611d59565b6114239088611d94565b119695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156114805761148061142e565b60405290565b60405160c0810167ffffffffffffffff811182821017156114805761148061142e565b6040516080810167ffffffffffffffff811182821017156114805761148061142e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156115135761151361142e565b604052919050565b600067ffffffffffffffff8211156115355761153561142e565b5060051b60200190565b73ffffffffffffffffffffffffffffffffffffffff81168114610da157600080fd5b803561156c8161153f565b919050565b600082601f83011261158257600080fd5b813560206115976115928361151b565b6114cc565b82815260069290921b840181019181810190868411156115b657600080fd5b8286015b848110156115fe57604081890312156115d35760008081fd5b6115db61145d565b81356115e68161153f565b815281850135858201528352918301916040016115ba565b509695505050505050565b600082601f83011261161a57600080fd5b8135602061162a6115928361151b565b82815260059290921b8401810191818101908684111561164957600080fd5b8286015b848110156115fe5780356116608161153f565b835291830191830161164d565b60006020828403121561167f57600080fd5b813567ffffffffffffffff8082111561169757600080fd5b9083019060c082860312156116ab57600080fd5b6116b3611486565b8235828111156116c257600080fd5b6116ce87828601611571565b8252506116dd60208401611561565b60208201526040830135828111156116f457600080fd5b61170087828601611609565b60408301525060608301358281111561171857600080fd5b61172487828601611609565b6060830152506080830135608082015260a083013560a082015280935050505092915050565b60005b8381101561176557818101518382015260200161174d565b83811115611774576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff8151168252600060208201516040602085015280518060408601526117bb81606087016020850161174a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016939093016060019392505050565b60006060830182516060855281815180845260808701915060808160051b88010193506020808401935060005b82811015611867577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8089870301845261185586865161177a565b9550938101939281019260010161181b565b50868101519088015250505060409283015192909301919091525090565b60208152600061189860208301846117ee565b9392505050565b600080600080600060a086880312156118b757600080fd5b85356118c28161153f565b945060208601356118d28161153f565b93506040860135925060608601359150608086013567ffffffffffffffff8111156118fc57600080fd5b61190888828901611609565b9150509295509295909350565b60208152600082516080602084015261193160a084018261177a565b905060208401516040840152604084015115156060840152606084015160808401528091505092915050565b600080600080600060a0868803121561197557600080fd5b853567ffffffffffffffff8082111561198d57600080fd5b818801915088601f8301126119a157600080fd5b813560206119b16115928361151b565b82815260059290921b8401810191818101908c8411156119d057600080fd5b8286015b84811015611a08578035868111156119ec5760008081fd5b6119fa8f86838b0101611571565b8452509183019183016119d4565b509950611a1890508a8201611561565b975050506040880135915080821115611a3057600080fd5b611a3c89838a01611609565b94506060880135915080821115611a5257600080fd5b50611a5f88828901611609565b95989497509295608001359392505050565b604081526000611a8460408301856117ee565b90508260208301529392505050565b600060208284031215611aa557600080fd5b81356118988161153f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611b4057611b40611adf565b5060010190565b600060208284031215611b5957600080fd5b81516010811061189857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8051801515811461156c57600080fd5b60006020808385031215611bba57600080fd5b825167ffffffffffffffff80821115611bd257600080fd5b9084019060808287031215611be657600080fd5b611bee6114a9565b825182811115611bfd57600080fd5b830160408189031215611c0f57600080fd5b611c1761145d565b8151611c228161153f565b81528186015184811115611c3557600080fd5b80830192505088601f830112611c4a57600080fd5b815184811115611c5c57611c5c61142e565b611c8c877fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016114cc565b94508085528987828501011115611ca257600080fd5b611cb18188870189860161174a565b508086018490528252508284015181850152611ccf60408401611b97565b6040820152606083015160608201528094505050505092915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d2357611d23611adf565b500290565b600060208284031215611d3a57600080fd5b5051919050565b60008219821115611d5457611d54611adf565b500190565b600082611d8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015611da657611da6611adf565b50039056fea264697066735822122063d3fcd108ad0711ad81592c8af68318edee4bb948f024c32514b4d0554688ec64736f6c634300080a0033";
483
- var isSuperArgs = function (xs) { return xs.length > 1; };
484
- var PathFinder__factory = /** @class */ (function (_super) {
485
- __extends(PathFinder__factory, _super);
486
- function PathFinder__factory() {
487
- var args = [];
488
- for (var _i = 0; _i < arguments.length; _i++) {
489
- args[_i] = arguments[_i];
490
- }
491
- var _this = this;
492
- if (isSuperArgs(args)) {
493
- _this = _super.apply(this, args) || this;
494
- }
495
- else {
496
- _this = _super.call(this, _abi, _bytecode, args[0]) || this;
497
- }
498
- return _this;
499
- }
500
- PathFinder__factory.prototype.deploy = function (_addressProvider, _curvePathFinder, _uniV2PathFinder, _uniV3PathFinder, overrides) {
501
- return _super.prototype.deploy.call(this, _addressProvider, _curvePathFinder, _uniV2PathFinder, _uniV3PathFinder, overrides || {});
502
- };
503
- PathFinder__factory.prototype.getDeployTransaction = function (_addressProvider, _curvePathFinder, _uniV2PathFinder, _uniV3PathFinder, overrides) {
504
- return _super.prototype.getDeployTransaction.call(this, _addressProvider, _curvePathFinder, _uniV2PathFinder, _uniV3PathFinder, overrides || {});
505
- };
506
- PathFinder__factory.prototype.attach = function (address) {
507
- return _super.prototype.attach.call(this, address);
508
- };
509
- PathFinder__factory.prototype.connect = function (signer) {
510
- return _super.prototype.connect.call(this, signer);
511
- };
512
- PathFinder__factory.createInterface = function () {
513
- return new ethers_1.utils.Interface(_abi);
514
- };
515
- PathFinder__factory.connect = function (address, signerOrProvider) {
516
- return new ethers_1.Contract(address, _abi, signerOrProvider);
517
- };
518
- PathFinder__factory.bytecode = _bytecode;
519
- PathFinder__factory.abi = _abi;
520
- return PathFinder__factory;
521
- }(ethers_1.ContractFactory));
522
- exports.PathFinder__factory = PathFinder__factory;
@@ -1 +0,0 @@
1
- export { PathFinder__factory } from "./PathFinder__factory";
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathFinder__factory = void 0;
4
- /* Autogenerated file. Do not edit manually. */
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- var PathFinder__factory_1 = require("./PathFinder__factory");
8
- Object.defineProperty(exports, "PathFinder__factory", { enumerable: true, get: function () { return PathFinder__factory_1.PathFinder__factory; } });
@@ -1,34 +0,0 @@
1
- import { Signer, ContractFactory, Overrides } from "ethers";
2
- import type { Provider, TransactionRequest } from "@ethersproject/providers";
3
- import type { VirtualBalanceWrapper, VirtualBalanceWrapperInterface } from "../../../../../../contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper";
4
- declare type VirtualBalanceWrapperConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
5
- export declare class VirtualBalanceWrapper__factory extends ContractFactory {
6
- constructor(...args: VirtualBalanceWrapperConstructorParams);
7
- deploy(overrides?: Overrides & {
8
- from?: string | Promise<string>;
9
- }): Promise<VirtualBalanceWrapper>;
10
- getDeployTransaction(overrides?: Overrides & {
11
- from?: string | Promise<string>;
12
- }): TransactionRequest;
13
- attach(address: string): VirtualBalanceWrapper;
14
- connect(signer: Signer): VirtualBalanceWrapper__factory;
15
- static readonly bytecode = "0x608060405234801561001057600080fd5b50610277806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806318160ddd14610046578063323a5e0b1461006157806370a08231146100a6575b600080fd5b61004e6100b9565b6040519081526020015b60405180910390f35b6000546100819073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610058565b61004e6100b43660046101eb565b610150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014b9190610228565b905090565b600080546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152909116906370a0823190602401602060405180830381865afa1580156101c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e59190610228565b92915050565b6000602082840312156101fd57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461022157600080fd5b9392505050565b60006020828403121561023a57600080fd5b505191905056fea2646970667358221220f5f52fc9e3ccf406497b2e745b7fc9608acb9ef259066f7f231d7a242d7a7d8864736f6c634300080a0033";
16
- static readonly abi: {
17
- inputs: {
18
- internalType: string;
19
- name: string;
20
- type: string;
21
- }[];
22
- name: string;
23
- outputs: {
24
- internalType: string;
25
- name: string;
26
- type: string;
27
- }[];
28
- stateMutability: string;
29
- type: string;
30
- }[];
31
- static createInterface(): VirtualBalanceWrapperInterface;
32
- static connect(address: string, signerOrProvider: Signer | Provider): VirtualBalanceWrapper;
33
- }
34
- export {};