|
|
1 жил өмнө | |
|---|---|---|
| .. | ||
| pyth-contract | 4ab64d2539 feat(target_chains/fuel): use saturating sub (#2031) | 1 жил өмнө |
| pyth-interface | 4ab64d2539 feat(target_chains/fuel): use saturating sub (#2031) | 1 жил өмнө |
| scripts | cf7987f4c5 feat(target_chains/fuel): add governance contract (#1518) | 1 жил өмнө |
| src | 955a805e85 chore: apply rustfmt | 1 жил өмнө |
| tests | 955a805e85 chore: apply rustfmt | 1 жил өмнө |
| .gitignore | 18e8b8d809 feat(contract_manager): add support for fuel (#1656) | 1 жил өмнө |
| Cargo.lock | f04cae050f feat(target_chains/fuel): update fuel toolchains to the latest version (#1911) | 1 жил өмнө |
| Cargo.toml | f04cae050f feat(target_chains/fuel): update fuel toolchains to the latest version (#1911) | 1 жил өмнө |
| Forc.lock | 4ab64d2539 feat(target_chains/fuel): use saturating sub (#2031) | 1 жил өмнө |
| Forc.toml | c2da454637 add fuel contract by Fuel Labs (#1513) | 1 жил өмнө |
| LICENSE | c2da454637 add fuel contract by Fuel Labs (#1513) | 1 жил өмнө |
| README.md | 7de4ce3ec8 update fuel readme (#2052) | 1 жил өмнө |
| fuel-toolchain.toml | 4ab64d2539 feat(target_chains/fuel): use saturating sub (#2031) | 1 жил өмнө |
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 Mainnet at 0x1c86fdd9e0e7bc0d2ae1bf6817ef4834ffa7247655701ee1b031b52a24c523da and Testnet at 0x25146735b29d4216639f7f8b1d7b921ff87a1d3051de62d6cceaacabeb33b8e7.