https://github.com/panukettu/pkxp-forge-pyth
Use pyth with forge
https://github.com/panukettu/pkxp-forge-pyth
forge oracles pyth solidity
Last synced: about 2 months ago
JSON representation
Use pyth with forge
- Host: GitHub
- URL: https://github.com/panukettu/pkxp-forge-pyth
- Owner: panukettu
- Created: 2024-05-28T23:27:05.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-09-12T02:31:22.000Z (8 months ago)
- Last Synced: 2025-02-24T02:06:07.495Z (2 months ago)
- Topics: forge, oracles, pyth, solidity
- Language: Solidity
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pyth-ffi
[](https://github.com/panukettu/forge-pyth-ffi/actions/workflows/test.yml)
Gets and/or updates pyth prices within forge scripts using ffi.
## Requirements
**foundry**
```shell
curl -L https://foundry.paradigm.xyz | bash
```**bun**
```shell
curl -fsSL https://bun.sh/install | bash
```## Usage
1. `bun install`
2. Set your hermes endpoint(s) in: ts/config.ts. If the request fails it will iterate to the next one.
3. See `scripts/ExampleScript.s.sol` or `test/Pyth.t.sol` for examples.