@pendle/core-v2 4.5.1-beta-1 → 4.5.1-oracle-beta
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/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.json +1049 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.json +1039 -0
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +0 -431
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -431
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.json +60 -0
- package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPPtLpOracle.sol/IPPtLpOracle.json → IPPYLpOracle.sol/IPPYLpOracle.json} +50 -2
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +25 -0
- package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.json +207 -0
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +401 -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/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.json +422 -0
- package/build/artifacts/contracts/oracles/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/{PendlePtOracleLib.sol/PendlePtOracleLib.json → PendlePYOracleLib.sol/PendlePYOracleLib.json} +4 -4
- package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +183 -0
- package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +183 -0
- 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 +2 -591
- 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/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol +6 -1
- package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol +56 -0
- package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol +111 -0
- package/contracts/interfaces/IPActionMiscV3.sol +0 -38
- package/contracts/interfaces/IPGovernanceProxy.sol +14 -0
- package/contracts/interfaces/{IPPtLpOracle.sol → IPPYLpOracle.sol} +5 -1
- package/contracts/interfaces/IPPausingInterface.sol +8 -0
- package/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol +66 -0
- package/contracts/offchain-helpers/PendleGovernanceProxy.sol +84 -0
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +12 -4
- package/contracts/oracles/PendleLpOracleLib.sol +4 -4
- package/contracts/oracles/{PendlePtLpOracle.sol → PendlePYLpOracle.sol} +44 -16
- package/contracts/oracles/{PendlePtOracleLib.sol → PendlePYOracleLib.sol} +31 -1
- package/contracts/oracles/samples/BoringLpGlpOracle.sol +2 -2
- package/contracts/oracles/samples/{BoringPtUsdChainlinkOracle.sol → BoringPYUsdChainlinkAssetOracle.sol} +36 -12
- package/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol +102 -0
- package/contracts/router/ActionMiscV3.sol +36 -216
- package/contracts/router/ActionSwapYTV3.sol +85 -0
- package/contracts/router/base/ActionBase.sol +1 -106
- package/deployments/1-markets/EZETH-MAINNET-SEP2024.json +11 -0
- package/deployments/1-markets/PUFETH-MAINNET-SEP2024.json +11 -0
- package/deployments/1-markets/RSETH-MAINNET-SEP2024.json +11 -0
- package/deployments/1-markets/RSWETH-SWELL-STAKING-MAINNET-JUL2024.json +11 -0
- package/deployments/1-markets/SUSDE-MAINNET-SEP2024.json +13 -0
- package/deployments/1-markets/WEETH-MAINNET-SEP2024.json +11 -0
- package/deployments/42161-markets/EZETH-ARB-SEP2024.json +11 -0
- package/deployments/42161-markets/RSETH-ARBITRUM-SEP2024.json +11 -0
- package/deployments/42161-markets/SILO-PTEETH-ARBITRUM-JUNE2024.json +11 -0
- package/deployments/42161-markets/SILO-PTEZETH-ARBITRUM-JUNE2024.json +11 -0
- package/deployments/42161-markets/WEETH-ARB-SEP2024.json +11 -0
- package/deployments/56-markets/WEETH-BSC-SEP2024.json +11 -0
- package/package.json +1 -1
- package/typechain-types/ActionMiscV3.ts +16 -379
- package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
- package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
- package/typechain-types/IPActionMiscV3.ts +16 -249
- package/typechain-types/IPAllActionV3.ts +0 -156
- package/typechain-types/IPGovernanceProxy.ts +142 -0
- package/typechain-types/IPPYLpOracle.ts +379 -0
- package/typechain-types/IPPausingInterface.ts +112 -0
- package/typechain-types/PendleGovernanceProxy.ts +603 -0
- package/typechain-types/PendlePYLpOracle.ts +612 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -590
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/BoringLpGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
- package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
- package/typechain-types/factories/IPActionMiscV3__factory.ts +0 -431
- package/typechain-types/factories/IPAllActionV3__factory.ts +0 -431
- package/typechain-types/factories/IPGovernanceProxy__factory.ts +75 -0
- package/typechain-types/factories/IPPYLpOracle__factory.ts +214 -0
- package/typechain-types/factories/IPPausingInterface__factory.ts +40 -0
- package/typechain-types/factories/PendleERC20WithSupplyCapSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
- package/typechain-types/factories/PendlePYLpOracle__factory.ts +487 -0
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +63 -0
- package/typechain-types/index.ts +14 -0
- package/build/artifacts/contracts/interfaces/IPPtLpOracle.sol/IPPtLpOracle.dbg.json +0 -4
- package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +0 -4
- package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.json +0 -367
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +0 -4
- package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +0 -4
- package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.json +0 -157
- /package/deployments/1-markets/{EZETH-JUNE2024.json → EZETH-APR2024.json} +0 -0
- /package/deployments/42161-markets/{RSETH-MAY2024.json → RSETH-JUNE2024.json} +0 -0
- /package/deployments/42161-markets/{WEETH-MAY2024.json → WEETH-JUNE2024.json} +0 -0
|
@@ -2220,437 +2220,6 @@ 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
|
-
},
|
|
2654
2223
|
{
|
|
2655
2224
|
inputs: [
|
|
2656
2225
|
{
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
IPGovernanceProxy,
|
|
9
|
+
IPGovernanceProxyInterface,
|
|
10
|
+
} from "../IPGovernanceProxy";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
components: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "target",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
internalType: "uint256",
|
|
24
|
+
name: "value",
|
|
25
|
+
type: "uint256",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
internalType: "bytes",
|
|
29
|
+
name: "callData",
|
|
30
|
+
type: "bytes",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
internalType: "struct IPGovernanceProxy.Call[]",
|
|
34
|
+
name: "calls",
|
|
35
|
+
type: "tuple[]",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: "aggregate",
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "bytes[]",
|
|
42
|
+
name: "rtnData",
|
|
43
|
+
type: "bytes[]",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
stateMutability: "payable",
|
|
47
|
+
type: "function",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [
|
|
51
|
+
{
|
|
52
|
+
internalType: "address[]",
|
|
53
|
+
name: "addrs",
|
|
54
|
+
type: "address[]",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "pause",
|
|
58
|
+
outputs: [],
|
|
59
|
+
stateMutability: "nonpayable",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
export class IPGovernanceProxy__factory {
|
|
65
|
+
static readonly abi = _abi;
|
|
66
|
+
static createInterface(): IPGovernanceProxyInterface {
|
|
67
|
+
return new utils.Interface(_abi) as IPGovernanceProxyInterface;
|
|
68
|
+
}
|
|
69
|
+
static connect(
|
|
70
|
+
address: string,
|
|
71
|
+
signerOrProvider: Signer | Provider
|
|
72
|
+
): IPGovernanceProxy {
|
|
73
|
+
return new Contract(address, _abi, signerOrProvider) as IPGovernanceProxy;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
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 { IPPYLpOracle, IPPYLpOracleInterface } from "../IPPYLpOracle";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: false,
|
|
15
|
+
internalType: "uint16",
|
|
16
|
+
name: "newBlockCycleNumerator",
|
|
17
|
+
type: "uint16",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
name: "SetBlockCycleNumerator",
|
|
21
|
+
type: "event",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "market",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint32",
|
|
32
|
+
name: "duration",
|
|
33
|
+
type: "uint32",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "getLpToAssetRate",
|
|
37
|
+
outputs: [
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
stateMutability: "view",
|
|
45
|
+
type: "function",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "market",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "uint32",
|
|
56
|
+
name: "duration",
|
|
57
|
+
type: "uint32",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "getLpToSyRate",
|
|
61
|
+
outputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "view",
|
|
69
|
+
type: "function",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
inputs: [
|
|
73
|
+
{
|
|
74
|
+
internalType: "address",
|
|
75
|
+
name: "market",
|
|
76
|
+
type: "address",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
internalType: "uint32",
|
|
80
|
+
name: "duration",
|
|
81
|
+
type: "uint32",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: "getOracleState",
|
|
85
|
+
outputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "bool",
|
|
88
|
+
name: "increaseCardinalityRequired",
|
|
89
|
+
type: "bool",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint16",
|
|
93
|
+
name: "cardinalityRequired",
|
|
94
|
+
type: "uint16",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "bool",
|
|
98
|
+
name: "oldestObservationSatisfied",
|
|
99
|
+
type: "bool",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [
|
|
107
|
+
{
|
|
108
|
+
internalType: "address",
|
|
109
|
+
name: "market",
|
|
110
|
+
type: "address",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint32",
|
|
114
|
+
name: "duration",
|
|
115
|
+
type: "uint32",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "getPtToAssetRate",
|
|
119
|
+
outputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "uint256",
|
|
122
|
+
name: "",
|
|
123
|
+
type: "uint256",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: "view",
|
|
127
|
+
type: "function",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "address",
|
|
133
|
+
name: "market",
|
|
134
|
+
type: "address",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint32",
|
|
138
|
+
name: "duration",
|
|
139
|
+
type: "uint32",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
name: "getPtToSyRate",
|
|
143
|
+
outputs: [
|
|
144
|
+
{
|
|
145
|
+
internalType: "uint256",
|
|
146
|
+
name: "",
|
|
147
|
+
type: "uint256",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
stateMutability: "view",
|
|
151
|
+
type: "function",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
inputs: [
|
|
155
|
+
{
|
|
156
|
+
internalType: "address",
|
|
157
|
+
name: "market",
|
|
158
|
+
type: "address",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint32",
|
|
162
|
+
name: "duration",
|
|
163
|
+
type: "uint32",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "getYtToAssetRate",
|
|
167
|
+
outputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "uint256",
|
|
170
|
+
name: "",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "address",
|
|
181
|
+
name: "market",
|
|
182
|
+
type: "address",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint32",
|
|
186
|
+
name: "duration",
|
|
187
|
+
type: "uint32",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
name: "getYtToSyRate",
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function",
|
|
200
|
+
},
|
|
201
|
+
];
|
|
202
|
+
|
|
203
|
+
export class IPPYLpOracle__factory {
|
|
204
|
+
static readonly abi = _abi;
|
|
205
|
+
static createInterface(): IPPYLpOracleInterface {
|
|
206
|
+
return new utils.Interface(_abi) as IPPYLpOracleInterface;
|
|
207
|
+
}
|
|
208
|
+
static connect(
|
|
209
|
+
address: string,
|
|
210
|
+
signerOrProvider: Signer | Provider
|
|
211
|
+
): IPPYLpOracle {
|
|
212
|
+
return new Contract(address, _abi, signerOrProvider) as IPPYLpOracle;
|
|
213
|
+
}
|
|
214
|
+
}
|