Augur Turbo takes advantage of Hardhat to handle smart contract development, and comes pre-packaged with a variety of useful tasks for interacting with the Augur contracts.
The source for these tasks are all available in the packages/smart/tasks directory.
There are a variety of utility tasks available, for instance:
To get a complete list run:
Default network settings are registered to allow you to select a network. These
are defined in
--network argument can be used with hardhat tasks to direct the task to
connect to a specific network.
To deploy to anywhere but hardhat or localhost, you must provide a private key using an environment variable like so:
Or you may export the environment variable into your shell's ENV list:
A variety of test markets can be created by using the
task. This is useful for both local and testnet deploys, allowing you to
start with a list of markets that is consistent.
We are adding tasks to make it easy to fetch data from TheRunDown. In order to use these you will need a rundown api key from rapidapi.
This task funds an address with 1 LINK. Call this task with a private key and network. Make sure that private key account has LINK.
This request the score for a match. Call this task with a private key and network. Fund TheRundownChainlink contract with LINK first. You can use the fundLink task for this.