@pendle/core-v2 4.5.1 → 4.5.2
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/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- 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/IPPausingInterface.sol/IPPausingInterface.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +25 -0
- package/build/artifacts/contracts/interfaces/IPPtLpOracle.sol/IPPtLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.dbg.json +1 -1
- 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/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.json +63 -0
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.json +35 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol +0 -1
- package/contracts/interfaces/IPGovernanceProxy.sol +14 -0
- package/contracts/interfaces/IPPausingInterface.sol +8 -0
- package/contracts/offchain-helpers/PendleGovernanceProxy.sol +84 -0
- package/contracts/offchain-helpers/SupplyCapReader.sol +25 -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/SUSDE-MAINNET-SEP2024.json +13 -0
- package/deployments/1-markets/UNIETH-MAINNET-SEP2024.json +13 -0
- package/deployments/1-offchain-helper.json +2 -1
- package/deployments/10-offchain-helper.json +2 -1
- package/deployments/42161-markets/RSETH-ARBITRUM-SEP2024.json +11 -0
- package/deployments/42161-offchain-helper.json +2 -1
- package/deployments/5000-offchain-helper.json +2 -1
- package/deployments/56-offchain-helper.json +2 -1
- package/package.json +1 -1
- package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
- package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
- package/typechain-types/IPGovernanceProxy.ts +142 -0
- package/typechain-types/IPPYLpOracle.ts +379 -0
- package/typechain-types/IPPausingInterface.ts +112 -0
- package/typechain-types/IPossibleSupplyCapInterface.ts +142 -0
- package/typechain-types/PendleGovernanceProxy.ts +603 -0
- package/typechain-types/PendlePYLpOracle.ts +612 -0
- package/typechain-types/SupplyCapReader.ts +105 -0
- package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
- package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
- 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/IPossibleSupplyCapInterface__factory.ts +82 -0
- package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
- package/typechain-types/factories/PendlePYLpOracle__factory.ts +487 -0
- package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1 -1
- package/typechain-types/factories/SupplyCapReader__factory.ts +88 -0
- package/typechain-types/hardhat.d.ts +81 -0
- package/typechain-types/index.ts +18 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.23;
|
|
3
|
+
|
|
4
|
+
import "../interfaces/IPPausingInterface.sol";
|
|
5
|
+
import "../interfaces/IPGovernanceProxy.sol";
|
|
6
|
+
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
|
|
7
|
+
import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
|
|
8
|
+
|
|
9
|
+
// solhint-disable custom-errors
|
|
10
|
+
// solhint-disable no-inline-assembly
|
|
11
|
+
// solhint-disable no-empty-blocks
|
|
12
|
+
|
|
13
|
+
contract PendleGovernanceProxy is AccessControlUpgradeable, UUPSUpgradeable, IPGovernanceProxy {
|
|
14
|
+
bytes32 public constant GUARDIAN = keccak256("GUARDIAN");
|
|
15
|
+
|
|
16
|
+
modifier onlyGuardian() {
|
|
17
|
+
require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender) || hasRole(GUARDIAN, msg.sender), "not authorized");
|
|
18
|
+
_;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
modifier onlyAdmin() {
|
|
22
|
+
require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "not authorized");
|
|
23
|
+
_;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
constructor() {
|
|
27
|
+
_disableInitializers();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/*///////////////////////////////////////////////////////////////
|
|
31
|
+
PAUSING
|
|
32
|
+
//////////////////////////////////////////////////////////////*/
|
|
33
|
+
|
|
34
|
+
function pause(address[] calldata addrs) external onlyGuardian {
|
|
35
|
+
uint256 length = addrs.length;
|
|
36
|
+
for (uint256 i = 0; i < length; ) {
|
|
37
|
+
IPPausingInterface(addrs[i]).pause();
|
|
38
|
+
unchecked {
|
|
39
|
+
++i;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/*///////////////////////////////////////////////////////////////
|
|
45
|
+
ADMIN CALL
|
|
46
|
+
//////////////////////////////////////////////////////////////*/
|
|
47
|
+
|
|
48
|
+
function aggregate(
|
|
49
|
+
IPGovernanceProxy.Call[] calldata calls
|
|
50
|
+
) external payable onlyAdmin returns (bytes[] memory rtnData) {
|
|
51
|
+
uint256 length = calls.length;
|
|
52
|
+
rtnData = new bytes[](length);
|
|
53
|
+
|
|
54
|
+
Call calldata call;
|
|
55
|
+
for (uint256 i = 0; i < length; ) {
|
|
56
|
+
call = calls[i];
|
|
57
|
+
|
|
58
|
+
(bool success, bytes memory resp) = call.target.call{value: call.value}(call.callData);
|
|
59
|
+
if (!success) {
|
|
60
|
+
assembly {
|
|
61
|
+
revert(add(32, resp), mload(resp))
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
rtnData[i] = resp;
|
|
66
|
+
|
|
67
|
+
unchecked {
|
|
68
|
+
++i;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
receive() external payable {}
|
|
74
|
+
|
|
75
|
+
/*///////////////////////////////////////////////////////////////
|
|
76
|
+
UPGRADABLE RELATED
|
|
77
|
+
//////////////////////////////////////////////////////////////*/
|
|
78
|
+
|
|
79
|
+
function initialize(address governance) external initializer {
|
|
80
|
+
_grantRole(DEFAULT_ADMIN_ROLE, governance);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function _authorizeUpgrade(address) internal view override onlyAdmin {}
|
|
84
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.17;
|
|
3
|
+
|
|
4
|
+
interface IPossibleSupplyCapInterface {
|
|
5
|
+
function getAbsoluteSupplyCap() external view returns (uint256);
|
|
6
|
+
|
|
7
|
+
function getAbsoluteTotalSupply() external view returns (uint256);
|
|
8
|
+
|
|
9
|
+
function totalSupply() external view returns (uint256);
|
|
10
|
+
|
|
11
|
+
function supplyCap() external view returns (uint256);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
contract SupplyCapReader {
|
|
15
|
+
function read(address syAddr) external view returns (uint256 currentSupply, uint256 supplyCap) {
|
|
16
|
+
IPossibleSupplyCapInterface sy = IPossibleSupplyCapInterface(syAddr);
|
|
17
|
+
try sy.getAbsoluteSupplyCap() returns (uint256 res) {
|
|
18
|
+
supplyCap = res;
|
|
19
|
+
currentSupply = sy.getAbsoluteTotalSupply();
|
|
20
|
+
} catch {
|
|
21
|
+
supplyCap = sy.supplyCap();
|
|
22
|
+
currentSupply = sy.totalSupply();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY pufETH",
|
|
3
|
+
"SY": "0x253008ba4aE2f3E6488DC998a5321D4EB1a0c905",
|
|
4
|
+
"YT": "0x1a65eB80a2ac3ea6E41D456DdD6E9cC5728BEf7C",
|
|
5
|
+
"PT": "0xd4e75971eAF78a8d93D96df530f1FFf5f9F53288",
|
|
6
|
+
"market": "0xA54FC268101c8b97DE19eF3141d34751a11996B2",
|
|
7
|
+
"expiry": 1727308800,
|
|
8
|
+
"scalarRoot": "7770558179000000000",
|
|
9
|
+
"initAnchor": "1110275954000000000",
|
|
10
|
+
"lnFeeRateRoot": "2995508979000000"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY rsETH",
|
|
3
|
+
"SY": "0x730A5E2AcEbccAA5e9095723B3CB862739DA793c",
|
|
4
|
+
"YT": "0xE653E4048620E546AFff02D3689678896d22e236",
|
|
5
|
+
"PT": "0x7bAf258049cc8B9A78097723dc19a8b103D4098F",
|
|
6
|
+
"market": "0x6b4740722e46048874d84306B2877600ABCea3Ae",
|
|
7
|
+
"expiry": 1727308800,
|
|
8
|
+
"scalarRoot": "7770558179000000000",
|
|
9
|
+
"initAnchor": "1110275954000000000",
|
|
10
|
+
"lnFeeRateRoot": "2995508979000000"
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SUSDE-MAINNET-SEP2024",
|
|
3
|
+
"SY": "0x4139cDC6345aFFbaC0692b43bed4D059Df3e6d65",
|
|
4
|
+
"YT": "0xdc02b77a3986da62C7A78FED73949C9767850809",
|
|
5
|
+
"PT": "0x6c9f097e044506712B58EAC670c9a5fd4BCceF13",
|
|
6
|
+
"market": "0xd1D7D99764f8a52Aff007b7831cc02748b2013b5",
|
|
7
|
+
"expiry": 1727308800,
|
|
8
|
+
"lnFeeRateRoot": "2995508979000000",
|
|
9
|
+
"scalarRoot": "8580934398000000000",
|
|
10
|
+
"initAnchor": "1120006408000000000",
|
|
11
|
+
"doCacheIndexSameBlock": true,
|
|
12
|
+
"deployTxHash": "0x467c0c15148778d0b99a1d9f3bd7406fd0c58d8a6e3284a57a50e55ae0160165"
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "UNIETH-MAINNET-SEP2024",
|
|
3
|
+
"SY": "0xc430dB19339A3051192233B4c49f9aB3DC6D16b7",
|
|
4
|
+
"YT": "0xdF74bA4436478969A54eCB352093312fE97EBAa5",
|
|
5
|
+
"PT": "0x15fA86404BFbA8b46684552F792558128bFB6418",
|
|
6
|
+
"market": "0xBaE2Df4DfCd0c613018D6056A40077F2d1eFf28A",
|
|
7
|
+
"expiry": 1727308800,
|
|
8
|
+
"lnFeeRateRoot": "2995508979000000",
|
|
9
|
+
"scalarRoot": "7770558179000000000",
|
|
10
|
+
"initAnchor": "1110275954000000000",
|
|
11
|
+
"doCacheIndexSameBlock": true,
|
|
12
|
+
"deployTxHash": "0x4e509feb8502bee0c719c1a9eb2c73c9e1b070fc8424e1f4f31618bdc764a560"
|
|
13
|
+
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
"multicall": "0xfd6Df9EFACfEfdF4E610d687A9c9b941D1b1Bf75",
|
|
3
3
|
"pendleMulticallV2": "0x539fd510fE352CC81822a222F821c340133Ed41C",
|
|
4
4
|
"implicitSwapfeeContract": "0x43D03031FAb845065e9CEfE89Dd122d63F72011F",
|
|
5
|
-
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA"
|
|
5
|
+
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
|
|
6
|
+
"supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf"
|
|
6
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"multicall": "0xfd6Df9EFACfEfdF4E610d687A9c9b941D1b1Bf75",
|
|
3
3
|
"pendleMulticallV2": "0x539fd510fE352CC81822a222F821c340133Ed41C",
|
|
4
|
-
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA"
|
|
4
|
+
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
|
|
5
|
+
"supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf"
|
|
5
6
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY rsETH",
|
|
3
|
+
"SY": "0xf176fB51F4eB826136a54FDc71C50fCd2202E272",
|
|
4
|
+
"YT": "0x2FDc424946AA72D42E2F897447d7c335E64845F0",
|
|
5
|
+
"PT": "0x30c98c0139B62290E26aC2a2158AC341Dcaf1333",
|
|
6
|
+
"market": "0x1d38d4204159aA5e767aFbA8f76BE22117De61E5",
|
|
7
|
+
"expiry": 1727308800,
|
|
8
|
+
"scalarRoot": "7770558179000000000",
|
|
9
|
+
"initAnchor": "1110275954000000000",
|
|
10
|
+
"lnFeeRateRoot": "29999550000000"
|
|
11
|
+
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
"multicall": "0xfd6Df9EFACfEfdF4E610d687A9c9b941D1b1Bf75",
|
|
3
3
|
"pendleMulticallV2": "0x539fd510fE352CC81822a222F821c340133Ed41C",
|
|
4
4
|
"implicitSwapfeeContract": "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0",
|
|
5
|
-
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA"
|
|
5
|
+
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
|
|
6
|
+
"supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf"
|
|
6
7
|
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
"multicall": "0xfd6Df9EFACfEfdF4E610d687A9c9b941D1b1Bf75",
|
|
3
3
|
"pendleMulticallV2": "0x539fd510fE352CC81822a222F821c340133Ed41C",
|
|
4
4
|
"implicitSwapfeeContract": "0xa87f7EeDD570943BcFFcE6D00B13D9a95ede8810",
|
|
5
|
-
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA"
|
|
5
|
+
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
|
|
6
|
+
"supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf"
|
|
6
7
|
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
"multicall": "0xfd6Df9EFACfEfdF4E610d687A9c9b941D1b1Bf75",
|
|
3
3
|
"pendleMulticallV2": "0x539fd510fE352CC81822a222F821c340133Ed41C",
|
|
4
4
|
"implicitSwapfeeContract": "0xed18de5442297a4ec1ce59c7c7d9427adc2a012b",
|
|
5
|
-
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA"
|
|
5
|
+
"simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
|
|
6
|
+
"supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf"
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
PopulatedTransaction,
|
|
10
|
+
Signer,
|
|
11
|
+
utils,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedEventFilter,
|
|
17
|
+
TypedEvent,
|
|
18
|
+
TypedListener,
|
|
19
|
+
OnEvent,
|
|
20
|
+
} from "./common";
|
|
21
|
+
|
|
22
|
+
export interface BoringPYUsdChainlinkAssetOracleInterface
|
|
23
|
+
extends utils.Interface {
|
|
24
|
+
contractName: "BoringPYUsdChainlinkAssetOracle";
|
|
25
|
+
functions: {
|
|
26
|
+
"checkOracleState()": FunctionFragment;
|
|
27
|
+
"feed()": FunctionFragment;
|
|
28
|
+
"feedDecimals()": FunctionFragment;
|
|
29
|
+
"getPtPriceSample1()": FunctionFragment;
|
|
30
|
+
"getPtPriceSample2()": FunctionFragment;
|
|
31
|
+
"getYtPriceSample1()": FunctionFragment;
|
|
32
|
+
"getYtPriceSample2()": FunctionFragment;
|
|
33
|
+
"market()": FunctionFragment;
|
|
34
|
+
"pyLpOracle()": FunctionFragment;
|
|
35
|
+
"twapDuration()": FunctionFragment;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
encodeFunctionData(
|
|
39
|
+
functionFragment: "checkOracleState",
|
|
40
|
+
values?: undefined
|
|
41
|
+
): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "feed", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "feedDecimals",
|
|
45
|
+
values?: undefined
|
|
46
|
+
): string;
|
|
47
|
+
encodeFunctionData(
|
|
48
|
+
functionFragment: "getPtPriceSample1",
|
|
49
|
+
values?: undefined
|
|
50
|
+
): string;
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "getPtPriceSample2",
|
|
53
|
+
values?: undefined
|
|
54
|
+
): string;
|
|
55
|
+
encodeFunctionData(
|
|
56
|
+
functionFragment: "getYtPriceSample1",
|
|
57
|
+
values?: undefined
|
|
58
|
+
): string;
|
|
59
|
+
encodeFunctionData(
|
|
60
|
+
functionFragment: "getYtPriceSample2",
|
|
61
|
+
values?: undefined
|
|
62
|
+
): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "market", values?: undefined): string;
|
|
64
|
+
encodeFunctionData(
|
|
65
|
+
functionFragment: "pyLpOracle",
|
|
66
|
+
values?: undefined
|
|
67
|
+
): string;
|
|
68
|
+
encodeFunctionData(
|
|
69
|
+
functionFragment: "twapDuration",
|
|
70
|
+
values?: undefined
|
|
71
|
+
): string;
|
|
72
|
+
|
|
73
|
+
decodeFunctionResult(
|
|
74
|
+
functionFragment: "checkOracleState",
|
|
75
|
+
data: BytesLike
|
|
76
|
+
): Result;
|
|
77
|
+
decodeFunctionResult(functionFragment: "feed", data: BytesLike): Result;
|
|
78
|
+
decodeFunctionResult(
|
|
79
|
+
functionFragment: "feedDecimals",
|
|
80
|
+
data: BytesLike
|
|
81
|
+
): Result;
|
|
82
|
+
decodeFunctionResult(
|
|
83
|
+
functionFragment: "getPtPriceSample1",
|
|
84
|
+
data: BytesLike
|
|
85
|
+
): Result;
|
|
86
|
+
decodeFunctionResult(
|
|
87
|
+
functionFragment: "getPtPriceSample2",
|
|
88
|
+
data: BytesLike
|
|
89
|
+
): Result;
|
|
90
|
+
decodeFunctionResult(
|
|
91
|
+
functionFragment: "getYtPriceSample1",
|
|
92
|
+
data: BytesLike
|
|
93
|
+
): Result;
|
|
94
|
+
decodeFunctionResult(
|
|
95
|
+
functionFragment: "getYtPriceSample2",
|
|
96
|
+
data: BytesLike
|
|
97
|
+
): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "market", data: BytesLike): Result;
|
|
99
|
+
decodeFunctionResult(functionFragment: "pyLpOracle", data: BytesLike): Result;
|
|
100
|
+
decodeFunctionResult(
|
|
101
|
+
functionFragment: "twapDuration",
|
|
102
|
+
data: BytesLike
|
|
103
|
+
): Result;
|
|
104
|
+
|
|
105
|
+
events: {};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface BoringPYUsdChainlinkAssetOracle extends BaseContract {
|
|
109
|
+
contractName: "BoringPYUsdChainlinkAssetOracle";
|
|
110
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
111
|
+
attach(addressOrName: string): this;
|
|
112
|
+
deployed(): Promise<this>;
|
|
113
|
+
|
|
114
|
+
interface: BoringPYUsdChainlinkAssetOracleInterface;
|
|
115
|
+
|
|
116
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
117
|
+
event: TypedEventFilter<TEvent>,
|
|
118
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
119
|
+
toBlock?: string | number | undefined
|
|
120
|
+
): Promise<Array<TEvent>>;
|
|
121
|
+
|
|
122
|
+
listeners<TEvent extends TypedEvent>(
|
|
123
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
124
|
+
): Array<TypedListener<TEvent>>;
|
|
125
|
+
listeners(eventName?: string): Array<Listener>;
|
|
126
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
127
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
128
|
+
): this;
|
|
129
|
+
removeAllListeners(eventName?: string): this;
|
|
130
|
+
off: OnEvent<this>;
|
|
131
|
+
on: OnEvent<this>;
|
|
132
|
+
once: OnEvent<this>;
|
|
133
|
+
removeListener: OnEvent<this>;
|
|
134
|
+
|
|
135
|
+
functions: {
|
|
136
|
+
checkOracleState(overrides?: CallOverrides): Promise<[void]>;
|
|
137
|
+
|
|
138
|
+
feed(overrides?: CallOverrides): Promise<[string]>;
|
|
139
|
+
|
|
140
|
+
feedDecimals(overrides?: CallOverrides): Promise<[number]>;
|
|
141
|
+
|
|
142
|
+
getPtPriceSample1(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
143
|
+
|
|
144
|
+
getPtPriceSample2(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
145
|
+
|
|
146
|
+
getYtPriceSample1(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
147
|
+
|
|
148
|
+
getYtPriceSample2(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
149
|
+
|
|
150
|
+
market(overrides?: CallOverrides): Promise<[string]>;
|
|
151
|
+
|
|
152
|
+
pyLpOracle(overrides?: CallOverrides): Promise<[string]>;
|
|
153
|
+
|
|
154
|
+
twapDuration(overrides?: CallOverrides): Promise<[number]>;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
checkOracleState(overrides?: CallOverrides): Promise<void>;
|
|
158
|
+
|
|
159
|
+
feed(overrides?: CallOverrides): Promise<string>;
|
|
160
|
+
|
|
161
|
+
feedDecimals(overrides?: CallOverrides): Promise<number>;
|
|
162
|
+
|
|
163
|
+
getPtPriceSample1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
164
|
+
|
|
165
|
+
getPtPriceSample2(overrides?: CallOverrides): Promise<BigNumber>;
|
|
166
|
+
|
|
167
|
+
getYtPriceSample1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
168
|
+
|
|
169
|
+
getYtPriceSample2(overrides?: CallOverrides): Promise<BigNumber>;
|
|
170
|
+
|
|
171
|
+
market(overrides?: CallOverrides): Promise<string>;
|
|
172
|
+
|
|
173
|
+
pyLpOracle(overrides?: CallOverrides): Promise<string>;
|
|
174
|
+
|
|
175
|
+
twapDuration(overrides?: CallOverrides): Promise<number>;
|
|
176
|
+
|
|
177
|
+
callStatic: {
|
|
178
|
+
checkOracleState(overrides?: CallOverrides): Promise<void>;
|
|
179
|
+
|
|
180
|
+
feed(overrides?: CallOverrides): Promise<string>;
|
|
181
|
+
|
|
182
|
+
feedDecimals(overrides?: CallOverrides): Promise<number>;
|
|
183
|
+
|
|
184
|
+
getPtPriceSample1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
185
|
+
|
|
186
|
+
getPtPriceSample2(overrides?: CallOverrides): Promise<BigNumber>;
|
|
187
|
+
|
|
188
|
+
getYtPriceSample1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
189
|
+
|
|
190
|
+
getYtPriceSample2(overrides?: CallOverrides): Promise<BigNumber>;
|
|
191
|
+
|
|
192
|
+
market(overrides?: CallOverrides): Promise<string>;
|
|
193
|
+
|
|
194
|
+
pyLpOracle(overrides?: CallOverrides): Promise<string>;
|
|
195
|
+
|
|
196
|
+
twapDuration(overrides?: CallOverrides): Promise<number>;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
filters: {};
|
|
200
|
+
|
|
201
|
+
estimateGas: {
|
|
202
|
+
checkOracleState(overrides?: CallOverrides): Promise<BigNumber>;
|
|
203
|
+
|
|
204
|
+
feed(overrides?: CallOverrides): Promise<BigNumber>;
|
|
205
|
+
|
|
206
|
+
feedDecimals(overrides?: CallOverrides): Promise<BigNumber>;
|
|
207
|
+
|
|
208
|
+
getPtPriceSample1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
209
|
+
|
|
210
|
+
getPtPriceSample2(overrides?: CallOverrides): Promise<BigNumber>;
|
|
211
|
+
|
|
212
|
+
getYtPriceSample1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
213
|
+
|
|
214
|
+
getYtPriceSample2(overrides?: CallOverrides): Promise<BigNumber>;
|
|
215
|
+
|
|
216
|
+
market(overrides?: CallOverrides): Promise<BigNumber>;
|
|
217
|
+
|
|
218
|
+
pyLpOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
|
219
|
+
|
|
220
|
+
twapDuration(overrides?: CallOverrides): Promise<BigNumber>;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
populateTransaction: {
|
|
224
|
+
checkOracleState(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
225
|
+
|
|
226
|
+
feed(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
227
|
+
|
|
228
|
+
feedDecimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
229
|
+
|
|
230
|
+
getPtPriceSample1(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
231
|
+
|
|
232
|
+
getPtPriceSample2(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
233
|
+
|
|
234
|
+
getYtPriceSample1(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
235
|
+
|
|
236
|
+
getYtPriceSample2(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
237
|
+
|
|
238
|
+
market(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
239
|
+
|
|
240
|
+
pyLpOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
241
|
+
|
|
242
|
+
twapDuration(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
243
|
+
};
|
|
244
|
+
}
|