Clone the repo and install dependencies
$ git clone https://github.com/halo3mic/suave-playground
$ cd ./suave-playground
$ yarn install
Create .env
file based on .env.sample
and fill in the following fields:
SUAVE_PK
: Private key for the account interacting with your local Suave chain.TOLIMAN_PK
: Private key for the account interacting with Suave chain on Toliman.HOLESKY_PK
: Private key for the account interacting with Holesky chain.SUAVE_RPC
: RPC endpoint of your Suave execution client. Use the port you specified during Suave setup.TOLIMAN_RPC
: RPC endpoint of fb Toliman Suave execution client.HOLESKY_RPC
: RPC endpoint of your Holesky client. Use the port you specified during Holesky setup.
$ npx hardhat deploy --tags oracle-settlement --network holesky
$ npx hardhat deploy --tags binance-oracle [--network toliman]
Omit the last part to deploy it on your local chain.
$ npx hardhat oracle-updates --ticker <binance_ticker> --nblocks <number_of_blocks> --network <suave/toliman>
or for Toliman continuous run:
$ ./scripts/oracle_updates_toliman.sh <binance_ticker>