Gets and/or updates pyth prices within forge scripts using ffi.
foundry
curl -L https://foundry.paradigm.xyz | bash
bun
curl -fsSL https://bun.sh/install | bash
-
bun install
-
Set your hermes endpoint(s) in: ts/config.ts. If the request fails it will iterate to the next one.
-
See
scripts/ExampleScript.s.sol
ortest/Pyth.t.sol
for examples.