Reya-Labs / redstone_oracles

redstone oracles and web3 functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reya RedStone deploymentsb ETH, BTC, wBTC, USDC, USDT, DAI

Relevant Files:

ETH Price Feed Adapter contract

Deployment Script

Test

Known Issues

Please, bear in mind that if the last block produced is older than one minute, the update wil fail with 'TimestampFromTooLongFuture' error

How it works

How to run the W3F

  1. Install project dependencies:
yarn install
  1. Create a .env file with your private config at the root folder:
cp .env.example .env

You will need to input your PROVIDER_URLS, your RPC.

At the W3F folder also:

cp .env.example .env

If you choose Relay as update method, you will need to input your GELATO_API_KEYfor Relay, please visit htts://app.gelato.netwoek

  1. Test the web3 function
npx w3f test web3-functions/redstone-interval/index.ts --logs --chain-id=YOUR CHAIN ID
  1. Deploy the web3 function on IPFS
npx w3f deploy web3-functions/redstone-interval/index.ts

✓ Web3Function deployed to ipfs. ✓ CID: QmQYPZ6VGanbg1PoMmswYGTsQz3CXeBLvbXoXAfcFkFUYz

  1. Create the task following the link provided when deploying the web3 to IPFS in our case:
> https://beta.app.gelato.network/new-task?cid=QmQYPZ6VGanbg1PoMmswYGTsQz3CXeBLvbXoXAfcFkFUYz

About

redstone oracles and web3 functions


Languages

Language:Solidity 51.4%Language:TypeScript 48.5%Language:JavaScript 0.1%