Price oracle for NEO smart contracts
- Create a private key with any NEO wallet (eg: ansy)
- Compute the address associated with the private key you just created, you can use neon-js
- Update the variable
Owner
inOracle.cs
to use the address you just computed instead of the one that is hardcoded - Publish the contract
Oracle.cs
(or a contract that implements the same interface) on testnet/mainnet/privnet - Install the dependencies with
npm install
PRIVATE_KEY="9ab7e154840daca3a2efadaf0df93cd3a5b51768c632f5433f86909d9b994a69" # Replace with the private key you generated during setup
CONTRACT_SCRIPTHASH="5b7074e873973a6ed3708862f219a6fbf4d1c411" # Replace with the scripthash of the contract you deployed
BNC_TICKER="BNB_BTCB-1DE" # Replace with the Binance Chain ticker of the BEP2 token that the oracle needs to serve
export PRIVATE_KEY CONTRACT_SCRIPTHASH BNC_TICKER
node clock.js
npm run lint # Lint code
npm test # Run tests