Synthetic TSLA on-ramp. Trades on Synthetix by day, and Balancer by night.
Contract deployed to 0x3df4539a20F11D8D737f17290DA726ff4B049aD5.
Install dependencies via Yarn:
yarn installCompile contracts via Hardhat:
yarn run hardhat compileBy default, Hardhat uses the Hardhat Network in-process.
To use an external network via URL, set the URL environment variable and append commands with --network generic:
URL="[NODE_URL]" yarn run hardhat test --network genericTo test the contracts via Hardhat, specify a URL from which to fork the mainnet by setting the FORK_URL environment variable:
FORK_URL="[NODE_URL]" yarn run hardhat testActivate gas usage reporting by setting the REPORT_GAS environment variable to "true":
REPORT_GAS=true yarn run hardhat testGenerate a code coverage report using solidity-coverage:
yarn run hardhat coverageA documentation site is output on contract compilation to the docgen directory. It can also be generated manually:
yarn run hardhat docgenThe contract can be deployed using the deploy task:
yarn run hardhat deploy