The Tezos Price Oracle receives price updates from a centralized poster, who pulls the prices from coingecko.
To deploy the Tezos price oracle you can use the Ligo IDE online
You will need yarn or npm installed.
git clone https://github.com/protofire/tezos-price-oracle
cd tezos-price-oracle
yarn
The poster is a simple centralized application created with oclif, that reads from coingecko the prices of Tez and Bitcoin and post them to the blockchain.
The poster command requires some arguments to run:
- ORACLE_ADDRESS: The oracle address where the contract is deployed.
- TEZOS_RPC: a Tezos public rpc.
- Some properties from a wallet: MNEMONIC, SECRET, PKH, PASSWORD, EMAIL, to be used as a signer. This wallet must be whitelisted by the oracle contract. You can download some faucet from here.
MNEMONIC="MNEMONIC" SECRET="SECRET" PKH="PKH" PASSWORD="PASSWORD" EMAIL="EMAIL" TEZOS_RPC="https://api.tez.ie/rpc/carthagenet/" ORACLE_ADDRESS="ORACLE_ADDRESS" ./bin/run assets
For any concerns with the oracle, please open an issue