Hardhat Tasks
#
Hardhat TasksAugur 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.
#
UtilitiesThere are a variety of utility tasks available, for instance:
To get a complete list run:
#
Selecting a networkDefault network settings are registered to allow you to select a network. These
are defined in
packages/smart/hardhat.config.ts.
The --network
argument can be used with hardhat tasks to direct the task to
connect to a specific network.
#
Specifying a private keyTo 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:
#
Canned MarketsA variety of test markets can be created by using the cannedMarkets
task. This is useful for both local and testnet deploys, allowing you to
start with a list of markets that is consistent.
#
The RundownWe 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.
#
Fund linkThis task funds an address with 1 LINK. Call this task with a private key and network. Make sure that private key account has LINK.
#
Request scoreThis 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.