Oracle that using RedStone and Gelato Web3 functions to:
- Push on-chain price if the price difference between stored and live price is gerater than 20%
- Mumbai:
yarn run deploy
- Install project dependencies:
yarn install
- Create a
.env
file with your private config:
cp .env.example .env
You will need to input your PROVIDER_URLS
, your RPC.
- Test the web3 function
npx w3f test web3-functions/redstone/index.ts --logs --chain-id=80001
- Deploy the web3 function on IPFS
npx w3f deploy web3-functions/redstone/index.ts
✓ Web3Function deployed to ipfs. ✓ CID: QmbZTooFHkFY1Td1SFd1Mfp8RTzuUN3QKbw1csioBFEcFx
- Create the task following the link provided when deploying the web3 to IPFS in our case:
Go to https://app.gelato.network and input cid=QmbZTooFHkFY1Td1SFd1Mfp8RTzuUN3QKbw1csioBFEcFx