@pendle/core-v2 4.5.0 → 4.5.1-beta-1
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/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +431 -0
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +431 -0
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +591 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/contracts/interfaces/IPActionMiscV3.sol +38 -0
- package/contracts/router/ActionMiscV3.sol +216 -36
- package/contracts/router/ActionSwapYTV3.sol +0 -85
- package/contracts/router/base/ActionBase.sol +106 -1
- package/deployments/merkle-distribution/2024-04-25.json +14930 -0
- package/package.json +1 -1
- package/typechain-types/ActionMiscV3.ts +379 -16
- package/typechain-types/IPActionMiscV3.ts +249 -16
- package/typechain-types/IPAllActionV3.ts +156 -0
- package/typechain-types/ISwellSimpleStakingERC20.ts +289 -0
- package/typechain-types/PendleSwellRswETHStakingSY.ts +1325 -0
- package/typechain-types/PendleSwellStakingERC20SY.ts +1299 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +590 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/IPActionMiscV3__factory.ts +431 -0
- package/typechain-types/factories/IPAllActionV3__factory.ts +431 -0
- package/typechain-types/factories/ISwellSimpleStakingERC20__factory.ts +226 -0
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1106 -0
- package/typechain-types/factories/PendleSwellStakingERC20SY__factory.ts +1112 -0
- package/typechain-types/hardhat.d.ts +27 -0
- package/typechain-types/index.ts +6 -0
|
@@ -2220,6 +2220,437 @@ const _abi = [
|
|
|
2220
2220
|
stateMutability: "nonpayable",
|
|
2221
2221
|
type: "function",
|
|
2222
2222
|
},
|
|
2223
|
+
{
|
|
2224
|
+
inputs: [
|
|
2225
|
+
{
|
|
2226
|
+
internalType: "address",
|
|
2227
|
+
name: "receiver",
|
|
2228
|
+
type: "address",
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
internalType: "address",
|
|
2232
|
+
name: "market",
|
|
2233
|
+
type: "address",
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
internalType: "uint256",
|
|
2237
|
+
name: "netPtIn",
|
|
2238
|
+
type: "uint256",
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
internalType: "uint256",
|
|
2242
|
+
name: "netLpIn",
|
|
2243
|
+
type: "uint256",
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
components: [
|
|
2247
|
+
{
|
|
2248
|
+
internalType: "address",
|
|
2249
|
+
name: "tokenOut",
|
|
2250
|
+
type: "address",
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
internalType: "uint256",
|
|
2254
|
+
name: "minTokenOut",
|
|
2255
|
+
type: "uint256",
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
internalType: "address",
|
|
2259
|
+
name: "tokenRedeemSy",
|
|
2260
|
+
type: "address",
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
internalType: "address",
|
|
2264
|
+
name: "pendleSwap",
|
|
2265
|
+
type: "address",
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
components: [
|
|
2269
|
+
{
|
|
2270
|
+
internalType: "enum SwapType",
|
|
2271
|
+
name: "swapType",
|
|
2272
|
+
type: "uint8",
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
internalType: "address",
|
|
2276
|
+
name: "extRouter",
|
|
2277
|
+
type: "address",
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
internalType: "bytes",
|
|
2281
|
+
name: "extCalldata",
|
|
2282
|
+
type: "bytes",
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
internalType: "bool",
|
|
2286
|
+
name: "needScale",
|
|
2287
|
+
type: "bool",
|
|
2288
|
+
},
|
|
2289
|
+
],
|
|
2290
|
+
internalType: "struct SwapData",
|
|
2291
|
+
name: "swapData",
|
|
2292
|
+
type: "tuple",
|
|
2293
|
+
},
|
|
2294
|
+
],
|
|
2295
|
+
internalType: "struct TokenOutput",
|
|
2296
|
+
name: "output",
|
|
2297
|
+
type: "tuple",
|
|
2298
|
+
},
|
|
2299
|
+
],
|
|
2300
|
+
name: "exitMultiplePostExpiry",
|
|
2301
|
+
outputs: [
|
|
2302
|
+
{
|
|
2303
|
+
internalType: "uint256",
|
|
2304
|
+
name: "netTokenOut",
|
|
2305
|
+
type: "uint256",
|
|
2306
|
+
},
|
|
2307
|
+
{
|
|
2308
|
+
internalType: "uint256",
|
|
2309
|
+
name: "netPtFromRemove",
|
|
2310
|
+
type: "uint256",
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
internalType: "uint256",
|
|
2314
|
+
name: "netSyFromRemove",
|
|
2315
|
+
type: "uint256",
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
internalType: "uint256",
|
|
2319
|
+
name: "netPtRedeem",
|
|
2320
|
+
type: "uint256",
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
internalType: "uint256",
|
|
2324
|
+
name: "netSyFromRedeem",
|
|
2325
|
+
type: "uint256",
|
|
2326
|
+
},
|
|
2327
|
+
],
|
|
2328
|
+
stateMutability: "nonpayable",
|
|
2329
|
+
type: "function",
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
inputs: [
|
|
2333
|
+
{
|
|
2334
|
+
internalType: "address",
|
|
2335
|
+
name: "receiver",
|
|
2336
|
+
type: "address",
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
internalType: "address",
|
|
2340
|
+
name: "market",
|
|
2341
|
+
type: "address",
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
internalType: "uint256",
|
|
2345
|
+
name: "netPtIn",
|
|
2346
|
+
type: "uint256",
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
internalType: "uint256",
|
|
2350
|
+
name: "netYtIn",
|
|
2351
|
+
type: "uint256",
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
internalType: "uint256",
|
|
2355
|
+
name: "netLpIn",
|
|
2356
|
+
type: "uint256",
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
components: [
|
|
2360
|
+
{
|
|
2361
|
+
internalType: "address",
|
|
2362
|
+
name: "tokenOut",
|
|
2363
|
+
type: "address",
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
internalType: "uint256",
|
|
2367
|
+
name: "minTokenOut",
|
|
2368
|
+
type: "uint256",
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
internalType: "address",
|
|
2372
|
+
name: "tokenRedeemSy",
|
|
2373
|
+
type: "address",
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
internalType: "address",
|
|
2377
|
+
name: "pendleSwap",
|
|
2378
|
+
type: "address",
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
components: [
|
|
2382
|
+
{
|
|
2383
|
+
internalType: "enum SwapType",
|
|
2384
|
+
name: "swapType",
|
|
2385
|
+
type: "uint8",
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
internalType: "address",
|
|
2389
|
+
name: "extRouter",
|
|
2390
|
+
type: "address",
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
internalType: "bytes",
|
|
2394
|
+
name: "extCalldata",
|
|
2395
|
+
type: "bytes",
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
internalType: "bool",
|
|
2399
|
+
name: "needScale",
|
|
2400
|
+
type: "bool",
|
|
2401
|
+
},
|
|
2402
|
+
],
|
|
2403
|
+
internalType: "struct SwapData",
|
|
2404
|
+
name: "swapData",
|
|
2405
|
+
type: "tuple",
|
|
2406
|
+
},
|
|
2407
|
+
],
|
|
2408
|
+
internalType: "struct TokenOutput",
|
|
2409
|
+
name: "output",
|
|
2410
|
+
type: "tuple",
|
|
2411
|
+
},
|
|
2412
|
+
{
|
|
2413
|
+
components: [
|
|
2414
|
+
{
|
|
2415
|
+
internalType: "address",
|
|
2416
|
+
name: "limitRouter",
|
|
2417
|
+
type: "address",
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
internalType: "uint256",
|
|
2421
|
+
name: "epsSkipMarket",
|
|
2422
|
+
type: "uint256",
|
|
2423
|
+
},
|
|
2424
|
+
{
|
|
2425
|
+
components: [
|
|
2426
|
+
{
|
|
2427
|
+
components: [
|
|
2428
|
+
{
|
|
2429
|
+
internalType: "uint256",
|
|
2430
|
+
name: "salt",
|
|
2431
|
+
type: "uint256",
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
internalType: "uint256",
|
|
2435
|
+
name: "expiry",
|
|
2436
|
+
type: "uint256",
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
internalType: "uint256",
|
|
2440
|
+
name: "nonce",
|
|
2441
|
+
type: "uint256",
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
internalType: "enum IPLimitOrderType.OrderType",
|
|
2445
|
+
name: "orderType",
|
|
2446
|
+
type: "uint8",
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
internalType: "address",
|
|
2450
|
+
name: "token",
|
|
2451
|
+
type: "address",
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
internalType: "address",
|
|
2455
|
+
name: "YT",
|
|
2456
|
+
type: "address",
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
internalType: "address",
|
|
2460
|
+
name: "maker",
|
|
2461
|
+
type: "address",
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
internalType: "address",
|
|
2465
|
+
name: "receiver",
|
|
2466
|
+
type: "address",
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
internalType: "uint256",
|
|
2470
|
+
name: "makingAmount",
|
|
2471
|
+
type: "uint256",
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
internalType: "uint256",
|
|
2475
|
+
name: "lnImpliedRate",
|
|
2476
|
+
type: "uint256",
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
internalType: "uint256",
|
|
2480
|
+
name: "failSafeRate",
|
|
2481
|
+
type: "uint256",
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
internalType: "bytes",
|
|
2485
|
+
name: "permit",
|
|
2486
|
+
type: "bytes",
|
|
2487
|
+
},
|
|
2488
|
+
],
|
|
2489
|
+
internalType: "struct Order",
|
|
2490
|
+
name: "order",
|
|
2491
|
+
type: "tuple",
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
internalType: "bytes",
|
|
2495
|
+
name: "signature",
|
|
2496
|
+
type: "bytes",
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
internalType: "uint256",
|
|
2500
|
+
name: "makingAmount",
|
|
2501
|
+
type: "uint256",
|
|
2502
|
+
},
|
|
2503
|
+
],
|
|
2504
|
+
internalType: "struct FillOrderParams[]",
|
|
2505
|
+
name: "normalFills",
|
|
2506
|
+
type: "tuple[]",
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
components: [
|
|
2510
|
+
{
|
|
2511
|
+
components: [
|
|
2512
|
+
{
|
|
2513
|
+
internalType: "uint256",
|
|
2514
|
+
name: "salt",
|
|
2515
|
+
type: "uint256",
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
internalType: "uint256",
|
|
2519
|
+
name: "expiry",
|
|
2520
|
+
type: "uint256",
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
internalType: "uint256",
|
|
2524
|
+
name: "nonce",
|
|
2525
|
+
type: "uint256",
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
internalType: "enum IPLimitOrderType.OrderType",
|
|
2529
|
+
name: "orderType",
|
|
2530
|
+
type: "uint8",
|
|
2531
|
+
},
|
|
2532
|
+
{
|
|
2533
|
+
internalType: "address",
|
|
2534
|
+
name: "token",
|
|
2535
|
+
type: "address",
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
internalType: "address",
|
|
2539
|
+
name: "YT",
|
|
2540
|
+
type: "address",
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
internalType: "address",
|
|
2544
|
+
name: "maker",
|
|
2545
|
+
type: "address",
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
internalType: "address",
|
|
2549
|
+
name: "receiver",
|
|
2550
|
+
type: "address",
|
|
2551
|
+
},
|
|
2552
|
+
{
|
|
2553
|
+
internalType: "uint256",
|
|
2554
|
+
name: "makingAmount",
|
|
2555
|
+
type: "uint256",
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
internalType: "uint256",
|
|
2559
|
+
name: "lnImpliedRate",
|
|
2560
|
+
type: "uint256",
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
internalType: "uint256",
|
|
2564
|
+
name: "failSafeRate",
|
|
2565
|
+
type: "uint256",
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
internalType: "bytes",
|
|
2569
|
+
name: "permit",
|
|
2570
|
+
type: "bytes",
|
|
2571
|
+
},
|
|
2572
|
+
],
|
|
2573
|
+
internalType: "struct Order",
|
|
2574
|
+
name: "order",
|
|
2575
|
+
type: "tuple",
|
|
2576
|
+
},
|
|
2577
|
+
{
|
|
2578
|
+
internalType: "bytes",
|
|
2579
|
+
name: "signature",
|
|
2580
|
+
type: "bytes",
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
internalType: "uint256",
|
|
2584
|
+
name: "makingAmount",
|
|
2585
|
+
type: "uint256",
|
|
2586
|
+
},
|
|
2587
|
+
],
|
|
2588
|
+
internalType: "struct FillOrderParams[]",
|
|
2589
|
+
name: "flashFills",
|
|
2590
|
+
type: "tuple[]",
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
internalType: "bytes",
|
|
2594
|
+
name: "optData",
|
|
2595
|
+
type: "bytes",
|
|
2596
|
+
},
|
|
2597
|
+
],
|
|
2598
|
+
internalType: "struct LimitOrderData",
|
|
2599
|
+
name: "limit",
|
|
2600
|
+
type: "tuple",
|
|
2601
|
+
},
|
|
2602
|
+
],
|
|
2603
|
+
name: "exitMultiplePreExpiry",
|
|
2604
|
+
outputs: [
|
|
2605
|
+
{
|
|
2606
|
+
internalType: "uint256",
|
|
2607
|
+
name: "netTokenOut",
|
|
2608
|
+
type: "uint256",
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
internalType: "uint256",
|
|
2612
|
+
name: "netPtFromRemove",
|
|
2613
|
+
type: "uint256",
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
internalType: "uint256",
|
|
2617
|
+
name: "netSyFromRemove",
|
|
2618
|
+
type: "uint256",
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
internalType: "uint256",
|
|
2622
|
+
name: "netPyRedeem",
|
|
2623
|
+
type: "uint256",
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
internalType: "uint256",
|
|
2627
|
+
name: "netSyFromRedeem",
|
|
2628
|
+
type: "uint256",
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
internalType: "uint256",
|
|
2632
|
+
name: "netPtSwap",
|
|
2633
|
+
type: "uint256",
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
internalType: "uint256",
|
|
2637
|
+
name: "netYtSwap",
|
|
2638
|
+
type: "uint256",
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
internalType: "uint256",
|
|
2642
|
+
name: "netSyFromSwap",
|
|
2643
|
+
type: "uint256",
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
internalType: "uint256",
|
|
2647
|
+
name: "netSyFee",
|
|
2648
|
+
type: "uint256",
|
|
2649
|
+
},
|
|
2650
|
+
],
|
|
2651
|
+
stateMutability: "nonpayable",
|
|
2652
|
+
type: "function",
|
|
2653
|
+
},
|
|
2223
2654
|
{
|
|
2224
2655
|
inputs: [
|
|
2225
2656
|
{
|
|
@@ -0,0 +1,226 @@
|
|
|
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
|
+
ISwellSimpleStakingERC20,
|
|
9
|
+
ISwellSimpleStakingERC20Interface,
|
|
10
|
+
} from "../ISwellSimpleStakingERC20";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "ADDRESS_NULL",
|
|
16
|
+
type: "error",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: "AMOUNT_NULL",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "INSUFFICIENT_BALANCE",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "token",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "TOKEN_NOT_ALLOWED",
|
|
37
|
+
type: "error",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
indexed: true,
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "token",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "staker",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "amount",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
name: "Deposit",
|
|
62
|
+
type: "event",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
anonymous: false,
|
|
66
|
+
inputs: [
|
|
67
|
+
{
|
|
68
|
+
indexed: true,
|
|
69
|
+
internalType: "address",
|
|
70
|
+
name: "token",
|
|
71
|
+
type: "address",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
components: [
|
|
75
|
+
{
|
|
76
|
+
internalType: "bool",
|
|
77
|
+
name: "deposit",
|
|
78
|
+
type: "bool",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
internalType: "bool",
|
|
82
|
+
name: "withdraw",
|
|
83
|
+
type: "bool",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
indexed: false,
|
|
87
|
+
internalType: "struct ISwellSimpleStakingERC20.Supported",
|
|
88
|
+
name: "supported",
|
|
89
|
+
type: "tuple",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
name: "SupportedToken",
|
|
93
|
+
type: "event",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
anonymous: false,
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
indexed: true,
|
|
100
|
+
internalType: "address",
|
|
101
|
+
name: "token",
|
|
102
|
+
type: "address",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
indexed: true,
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "staker",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
indexed: false,
|
|
112
|
+
internalType: "uint256",
|
|
113
|
+
name: "amount",
|
|
114
|
+
type: "uint256",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
name: "Withdraw",
|
|
118
|
+
type: "event",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
inputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "_token",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
internalType: "uint256",
|
|
129
|
+
name: "_amount",
|
|
130
|
+
type: "uint256",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
internalType: "address",
|
|
134
|
+
name: "_receiver",
|
|
135
|
+
type: "address",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
name: "deposit",
|
|
139
|
+
outputs: [],
|
|
140
|
+
stateMutability: "nonpayable",
|
|
141
|
+
type: "function",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
inputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "_token",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
name: "rescueERC20",
|
|
152
|
+
outputs: [],
|
|
153
|
+
stateMutability: "nonpayable",
|
|
154
|
+
type: "function",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "address",
|
|
160
|
+
name: "_token",
|
|
161
|
+
type: "address",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
components: [
|
|
165
|
+
{
|
|
166
|
+
internalType: "bool",
|
|
167
|
+
name: "deposit",
|
|
168
|
+
type: "bool",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
internalType: "bool",
|
|
172
|
+
name: "withdraw",
|
|
173
|
+
type: "bool",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
internalType: "struct ISwellSimpleStakingERC20.Supported",
|
|
177
|
+
name: "_supported",
|
|
178
|
+
type: "tuple",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
name: "supportToken",
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: "nonpayable",
|
|
184
|
+
type: "function",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "address",
|
|
190
|
+
name: "_token",
|
|
191
|
+
type: "address",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
name: "_amount",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
internalType: "address",
|
|
200
|
+
name: "_receiver",
|
|
201
|
+
type: "address",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
name: "withdraw",
|
|
205
|
+
outputs: [],
|
|
206
|
+
stateMutability: "nonpayable",
|
|
207
|
+
type: "function",
|
|
208
|
+
},
|
|
209
|
+
];
|
|
210
|
+
|
|
211
|
+
export class ISwellSimpleStakingERC20__factory {
|
|
212
|
+
static readonly abi = _abi;
|
|
213
|
+
static createInterface(): ISwellSimpleStakingERC20Interface {
|
|
214
|
+
return new utils.Interface(_abi) as ISwellSimpleStakingERC20Interface;
|
|
215
|
+
}
|
|
216
|
+
static connect(
|
|
217
|
+
address: string,
|
|
218
|
+
signerOrProvider: Signer | Provider
|
|
219
|
+
): ISwellSimpleStakingERC20 {
|
|
220
|
+
return new Contract(
|
|
221
|
+
address,
|
|
222
|
+
_abi,
|
|
223
|
+
signerOrProvider
|
|
224
|
+
) as ISwellSimpleStakingERC20;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -211,7 +211,7 @@ const _abi = [
|
|
|
211
211
|
];
|
|
212
212
|
|
|
213
213
|
const _bytecode =
|
|
214
|
-
"
|
|
214
|
+
"0x60e060405234801561001057600080fd5b5060405161123538038061123583398101604081905261002f91610068565b6001600160a01b0392831660805290821660a0521660c0526100ab565b80516001600160a01b038116811461006357600080fd5b919050565b60008060006060848603121561007d57600080fd5b6100868461004c565b92506100946020850161004c565b91506100a26040850161004c565b90509250925092565b60805160a05160c051611125610110600039600081816061015261024d01526000818160ef01526101b5015260008181610123015281816103a3015281816103e6015281816104100152818161046d0152818161059f015261065c01526111256000f3fe6080604052600436106100435760003560e01c806306ae70951461004f5780634ff780e1146100a057806387a409a2146100dd578063f887ea401461011157600080fd5b3661004a57005b600080fd5b34801561005b57600080fd5b506100837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100b36100ae366004610d9a565b610145565b604080516001600160a01b0394851681529284166020840152921691810191909152606001610097565b3480156100e957600080fd5b506100837f000000000000000000000000000000000000000000000000000000000000000081565b34801561011d57600080fd5b506100837f000000000000000000000000000000000000000000000000000000000000000081565b60008060006101548787610173565b91945092509050610169818885858989610392565b9450945094915050565b80516080820151604051637145345b60e11b81526001600160a01b03858116600483015263ffffffff90931660248201529015156044820152600091829182917f0000000000000000000000000000000000000000000000000000000000000000169063e28a68b69060640160408051808303816000875af11580156101fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102219190610e67565b60408087015160608801516020890151925163f661cf6b60e01b81529497509295506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169363f661cf6b936102ad938993926004016001600160a01b03949094168452602084019290925260408301526001600160501b0316606082015260800190565b6020604051808303816000875af11580156102cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f09190610ea1565b604080516001600160a01b03888116825286811660208084019190915286821683850152885163ffffffff16606080850191909152908901516001600160501b03166080808501919091529389015160a084015288015160c083015291870151151560e08201529192508216907f64548e98bf851c530285483e1870abe9e41d3a7060292802eb888542488f1839906101000160405180910390a29250925092565b61039d82338361072c565b6103c7827f000000000000000000000000000000000000000000000000000000000000000061079d565b846001600160a01b0316826001600160a01b03161461040a5761040a857f000000000000000000000000000000000000000000000000000000000000000061079d565b610434847f000000000000000000000000000000000000000000000000000000000000000061079d565b6000856001600160a01b0316836001600160a01b0316146105905760006001600160a01b03841615610467576000610469565b825b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e071dc682308a60006040518060a001604052808b6001600160a01b031681526020018a81526020018b6001600160a01b0316815260200160006001600160a01b031681526020016040518060800160405280600060038111156104fc576104fc610ec5565b815260006020808301829052604080518381529182018152808401919091526060909201529152516001600160e01b031960e088901b1681526105459493929190600401610f2b565b60206040518083038185885af1158015610563573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105889190610ff3565b915050610593565b50805b60006001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016631a8631b230876105d1600287611022565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152600060648201526084016020604051808303816000875af115801561062c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106509190610ff3565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166397ee279e338a61068e600287611022565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606481018490526000608482015260a4016060604051808303816000875af11580156106f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107149190611036565b505050610722853383610861565b5050505050505050565b6001600160a01b0383166107825780341461077d5760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064015b60405180910390fd5b505050565b801561077d5761077d6001600160a01b03841683308461092b565b6001600160a01b0382166107af575050565b6107c160026001600160601b03611064565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa15801561081a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083e9190610ff3565b101561085d5761085082826000610996565b61085d8282600019610996565b5050565b8060000361086e57505050565b6001600160a01b038316610917576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146108c9576040519150601f19603f3d011682016040523d82523d6000602084013e6108ce565b606091505b50509050806109115760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610774565b50505050565b61077d6001600160a01b0384168383610aaa565b6040516001600160a01b03808516602483015283166044820152606481018290526109119085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610ac9565b600080846001600160a01b031663095ea7b360e01b85856040516024016109be92919061108a565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516109fc91906110a3565b6000604051808303816000865af19150503d8060008114610a39576040519150601f19603f3d011682016040523d82523d6000602084013e610a3e565b606091505b5091509150818015610a68575080511580610a68575080806020019051810190610a6891906110bf565b610aa35760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b6044820152606401610774565b5050505050565b61077d8363a9059cbb60e01b848460405160240161095f92919061108a565b6000610b1e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b9050805160001480610b3f575080806020019051810190610b3f91906110bf565b61077d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610774565b6060610bad8484600085610bb5565b949350505050565b606082471015610c165760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610774565b600080866001600160a01b03168587604051610c3291906110a3565b60006040518083038185875af1925050503d8060008114610c6f576040519150601f19603f3d011682016040523d82523d6000602084013e610c74565b606091505b5091509150610c8587838387610c90565b979650505050505050565b60608315610cff578251600003610cf8576001600160a01b0385163b610cf85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610774565b5081610bad565b610bad8383815115610d145781518083602001fd5b8060405162461bcd60e51b815260040161077491906110dc565b6001600160a01b0381168114610d4357600080fd5b50565b8035610d5181610d2e565b919050565b803563ffffffff81168114610d5157600080fd5b80356001600160501b0381168114610d5157600080fd5b8015158114610d4357600080fd5b8035610d5181610d81565b600080600080848603610100811215610db257600080fd5b8535610dbd81610d2e565b945060a0601f1982011215610dd157600080fd5b5060405160a081016001600160401b0381118282101715610e0257634e487b7160e01b600052604160045260246000fd5b604052610e1160208701610d56565b8152610e1f60408701610d6a565b60208201526060860135604082015260808601356060820152610e4460a08701610d8f565b60808201529250610e5760c08601610d46565b9396929550929360e00135925050565b60008060408385031215610e7a57600080fd5b8251610e8581610d2e565b6020840151909250610e9681610d2e565b809150509250929050565b600060208284031215610eb357600080fd5b8151610ebe81610d2e565b9392505050565b634e487b7160e01b600052602160045260246000fd5b60005b83811015610ef6578181015183820152602001610ede565b50506000910152565b60008151808452610f17816020860160208601610edb565b601f01601f19169290920160200192915050565b600060018060a01b038087168352808616602084015284604084015260806060840152808451166080840152602084015160a08401528060408501511660c08401528060608501511660e0840152608084015160a0610100850152805160048110610fa657634e487b7160e01b600052602160045260246000fd5b61012085015260208101519091166101408401526040810151608061016085015290610fd66101a0850183610eff565b915060608101511515610180850152508091505095945050505050565b60006020828403121561100557600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b6000826110315761103161100c565b500490565b60008060006060848603121561104b57600080fd5b8351925060208401519150604084015190509250925092565b60006001600160601b038381168061107e5761107e61100c565b92169190910492915050565b6001600160a01b03929092168252602082015260400190565b600082516110b5818460208701610edb565b9190910192915050565b6000602082840312156110d157600080fd5b8151610ebe81610d81565b602081526000610ebe6020830184610eff56fea264697066735822122052da9b82a3dc2536557b47c1957396165dc29bffaa6a29d6a17184179259829964736f6c63430008170033";
|
|
215
215
|
|
|
216
216
|
type PendlePoolDeployHelperConstructorParams =
|
|
217
217
|
| [signer?: Signer]
|