Binance Oracle lets smart contracts query the price of assets on BSC. For detailed documentation, please visit docs.
If you like to import the Binance-Oracle contracts into your project, you can do so by running the following command:
npm install --save-dev @binance-oracle/binance-oracle-starter
After installation, for instance if you like to import the 'FeedRegistryInterface' contract, you can do so as follows:
import "@binance-oracle/binance-oracle-starter/contracts/interfaces/FeedRegistryInterface.sol";
git clone https://github.com/binance-cloud/binance-oracle.git
cd binance-oracle
cp .env.example .env
npm install
npm run test
First make sure, you copy .env.example to .env in the root directory of the project. The .env file should be populated with the private keys and few other credentials of the environment you like to deploy to. Then run either of the scripts below to deploy to Testnet or Mainnet
npm run deploy:testnet
npm run deploy:mainnet