Skip to content

Chainlink migration example#4

Merged
jayantk merged 3 commits into
mainfrom
chainlink
Apr 22, 2024
Merged

Chainlink migration example#4
jayantk merged 3 commits into
mainfrom
chainlink

Conversation

@jayantk
Copy link
Copy Markdown
Contributor

@jayantk jayantk commented Apr 19, 2024

See the readme for more details of how to run etc. We can link this from the chainlink migration guide page in the docs.

.env

lib/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the lib folder for forge-std

lib/*
!lib/README.md


This example demonstrates how to deploy a Chainlink-compatible application to Pyth Network price feeds.
The application `src/ChainlinkApp.sol` is designed to use Chainlink price feeds.
The script `script/PythAggregatorV3Deployment.sol` deploys this application with the `PythAggregatorV3` adapter contract, such that it uses Pyth price feeds.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then, deploy the contracts by running:

```bash copy
forge script script/PythAggregatorV3Deployment.s.sol --rpc-url $RPC_URL --broadcast
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To run the forge script we need to have
forge install foundry-rs/forge-std@v1.8.0 --no-git --no-commit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added to the installation instructions

solOracle = AggregatorV3Interface(solAggregator);
}

function getEthSolPrice() external returns (int256 price) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method can be set as view

@jayantk jayantk merged commit f8d269e into main Apr 22, 2024
@jayantk jayantk deleted the chainlink branch April 22, 2024 20:12
AgustinBadi added a commit to rodrigoioyz/Cardano-Pyth-Hackathon that referenced this pull request Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants