|
|
1 year ago | |
|---|---|---|
| .. | ||
| pyth-contract | 8bec01505f chore(target_chains/fuel): update abi (#1800) | 1 year ago |
| pyth-interface | 1bad16e87b fix(target_chains/fuel): address audit (#1799) | 1 year ago |
| scripts | cf7987f4c5 feat(target_chains/fuel): add governance contract (#1518) | 1 year ago |
| src | f41782f005 fix: resolve issue with abi paths (#1806) | 1 year ago |
| tests | 2c4bc07bef feat(target_chains/fuel): bump fuel-toolchain and refactor (#1794) | 1 year ago |
| .gitignore | 18e8b8d809 feat(contract_manager): add support for fuel (#1656) | 1 year ago |
| Cargo.lock | 2c4bc07bef feat(target_chains/fuel): bump fuel-toolchain and refactor (#1794) | 1 year ago |
| Cargo.toml | 2c4bc07bef feat(target_chains/fuel): bump fuel-toolchain and refactor (#1794) | 1 year ago |
| Forc.lock | 2c4bc07bef feat(target_chains/fuel): bump fuel-toolchain and refactor (#1794) | 1 year ago |
| Forc.toml | c2da454637 add fuel contract by Fuel Labs (#1513) | 1 year ago |
| LICENSE | c2da454637 add fuel contract by Fuel Labs (#1513) | 1 year ago |
| README.md | 2c4bc07bef feat(target_chains/fuel): bump fuel-toolchain and refactor (#1794) | 1 year ago |
| fuel-toolchain.toml | 2c4bc07bef feat(target_chains/fuel): bump fuel-toolchain and refactor (#1794) | 1 year ago |
An implementation of a Pyth Network oracle contract in Sway. Utilising minimal, internal Wormhole functionality and state.
The project provides four interfaces for interaction with the oracle contract:
Run the following commands from the root of the repository.
forc build
Before running the tests the programs must be compiled with the command above.
cargo test
Before deploying the oracle contract; the deployer must be set to the address of the deploying wallet in the storage block, so that the deployer can setup the contract with the constructor() method.
Parameters for the constructor() method can be seen in the tests of the method, which at the time of writing uses the real up-to-date values as per Pyth's documentation and EVM integrations. Care should be taken to ensure that the most up-to-date values are used for the constructor() method's parameters.
The Pyth oracle contract has been deployed to Beta-5 at the ContractId: 0xe69daeb9fcf4c536c0fe402403b4b9e9822cc8b1f296e5d754be12cc384554c5.