Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taiko #295

Merged
merged 2 commits into from
May 30, 2024
Merged

Taiko #295

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "contracts/lib/solmate"]
path = contracts/lib/solmate
url = https://github.com/transmissions11/solmate
[submodule "contracts/lib/@pythnetwork"]
path = contracts/lib/@pythnetwork
url = https://github.com/pyth-network/pyth-crosschain
1 change: 1 addition & 0 deletions contracts/lib/@pythnetwork
Submodule @pythnetwork added at f8ed6d
21 changes: 21 additions & 0 deletions contracts/script/02_Pyth.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {Script, console} from "forge-std/Script.sol";
import { PythAggregatorV3 } from "@pythnetwork/target_chains/ethereum/sdk/solidity/PythAggregatorV3.sol";

contract PythScript is Script {
function setUp() public {}

function run() public {
vm.startBroadcast();
address taiko_pyth = 0x2880aB155794e7179c9eE2e38200202908C17B43;
bytes32 eth_feed = 0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace;

PythAggregatorV3 eth_agg = new PythAggregatorV3(
taiko_pyth,
eth_feed
);
vm.stopBroadcast();
}
}