Yet Another Price Feed for Yupana
Yupana's price feed implementation, allows to use multiple oracles with one contract.
-
Installed NodeJS (tested with NodeJS v14+)
-
Installed Yarn
-
Docker
-
Installed node modules:
yarn installyarn compile -c routerWARNING: before compiling parsers make sure that .env file has all needed variables, especially correct oracle addresses
Compile parser contract
yarn compile-parser ${parserName}ex.
yarn compile-parser harbingerCompile and prepare parser bytes
yarn parser-to-bytes ${parserName}ex.
yarn parser-to-bytes harbingeryarn compile-allFlextesa sandbox run in Docker container, but you can change the config file properties to connect to another RPC nodes if you want to.
yarn start-sandboxRepository has some tests with Taquito and Jest located inside tests folder.
yarn testIf you had started the local chain before the running tests, recomended to stop the chain right after the tests.
yarn stop-sandboxyarn migrate