Skip to content

Commit

Permalink
Update examples with the newest contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGrandpa925 committed Dec 22, 2024
1 parent 9b0407b commit 642b1ab
Show file tree
Hide file tree
Showing 5 changed files with 245 additions and 215 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"forge-std": "github:foundry-rs/forge-std#v1.7.5",
"prettier": "^3.0.0",
"solhint": "^3.6.2",
"@pendle/core-v2": "^5.2.1"
"@pendle/core-v2": "^5.4.0"
},
"keywords": [
"blockchain",
Expand Down
6 changes: 4 additions & 2 deletions test/ChainlinkOracleSample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import "@pendle/core-v2/contracts/interfaces/IPAllActionV3.sol";
import "@pendle/core-v2/contracts/interfaces/IPMarket.sol";
import "../src/StructGen.sol";
import { AggregatorV2V3Interface as IChainlinkAggregator } from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol";
import "@pendle/core-v2/contracts/oracles/factory/PendleChainlinkOracleFactory.sol";
import "@pendle/core-v2/contracts/oracles/factory/PendleChainlinkOracle.sol";

import "@pendle/core-v2/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol";
import "@pendle/core-v2/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol";
import "@pendle/core-v2/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol";

contract ChainlinkOracleSample2 is PRBTest, StdCheats, StructGen {
IStandardizedYield public SY;
Expand Down
3 changes: 2 additions & 1 deletion test/OracleSample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { console2 as console } from "forge-std/src/console2.sol";
import { StdCheats } from "forge-std/src/StdCheats.sol";
import "@pendle/core-v2/contracts/interfaces/IPAllActionV3.sol";
import "@pendle/core-v2/contracts/interfaces/IPMarket.sol";
import "@pendle/core-v2/contracts/oracles/PendlePYLpOracle.sol";

import "@pendle/core-v2/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol";
import "../src/StructGen.sol";
import { AggregatorV2V3Interface as IChainlinkAggregator } from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol";

Expand Down
Loading

0 comments on commit 642b1ab

Please sign in to comment.