Skip to content

protofire/tezos-price-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tezos price oracle

The Tezos Price Oracle receives price updates from a centralized poster, who pulls the prices from coingecko.

Contracts

Oracle:

Inspector:

Architecture

Installation

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

Poster Script

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.

Running

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

Discussion

For any concerns with the oracle, please open an issue

Licensing

MIT

About

Tezos price oracle for a liquidity pool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published