This repository contains set of smart contracts and test cases of One-Oracle. One-Oracle has wrapper contracts to query the price from third party price providers like Chainlink, Uniswap-V3, UniswapV2Like. Price provider contract wrap third party price provider's oracle methods into common interface. UniswapV2Like price provider will provide outdated price if update() is not called in regular interval.
-
Install
npm i
-
set NODE_URL in env
export NODE_URL=<eth mainnet url>
or by creating a
.env
file (use.env.template
as reference) -
Test
npm t
npm run coverage