Skip to content

abg4/dev-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardhat Testing Repo

Intention

This repo is intended to have scripts available to allow for testing UMA contracts with hardhat.

Get started

To start, install packages with:

$ yarn

Next, open another terminal in this repo and run the following command to start the hardhat blockchain instance:

yarn hardhat node --port 9545

Run the fixture script to set up the contracts:

HARDHAT_NETWORK=localhost ./scripts/deploy.js

Scripts

Once the hardhat instance is running, run any script you want with the following format. The existing OptimisticDepositBox.js script would be run with the following command:

HARDHAT_NETWORK=localhost node ./scripts/optimisticDepositBox.js

This will create the transactions on your local instance. If you run it without HARDHAT_NETWORK=localhost, the script will run but not be posted to your local server.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published