Please update these tables when you deploy a new version!
| Contract | Network | Contract addres |
|---|---|---|
| SimpleHubV1 | Kovan | 0x5B580Ec564FAF6FE2B95C6A316EF286D707e323d |
| CollateralFundV1 | Kovan | 0xdE4E6EFcaaEaa997A77b812eCE98739948391c51 |
| PriceTrackerV1 | Kovan | 0x243AfF679C667ddFCa073498b9EF804320C84bEB |
| Contract | Network | Contract addres |
|---|---|---|
| SyntheticAAPL | Kovan | 0x0e57567140BA8171e243c8E62edf938582135Ab3 |
| SyntheticTSLA | Kovan | 0xe7d15029e5Fde6E4f61C571DF98213f34fE5D08e |
| SyntheticMSFT | Kovan | 0x814216048E3b619C6d75908aF7F7a1Db14628F2c |
| SyntheticABNB | Kovan | 0x62E7cAC55C9B8D4419F79446137b673d1E94444B |
| SyntheticGOOG | Kovan | 0xC10Daf71FC948285a9F0FBEF301F21A4ca2de0Bb |
You need node.js, npm and npx installed.
Install the project's dependencies with: $ npm i
Copy the sample environement file: $ cp .env.sample .env && vi .env
Then populate it with:
- your developer wallet private keys (
MAINNET_PRIVATE_KEY,FUJI_PRIVATE_KEYandKOVAN_PRIVATE_KEY). - your coinmarketcap api key (
COINMARKETCAP_API_KEY). - your snowtrace.io api key (
SNOWTRACE_API_KEY). - your alpha vantage api key (
ALPHA_VANTAGE_API_KEY).
Your .env file should never be committed (it is specified in the .gitignore)!
- Compile:
$ npm run compile - Test:
$ npm run test - Deploy:
- On localhost:
$ npm run <deploy-collateral-fund|deploy-price-tracker> - On any other network:
$ npm run <deploy-collateral-fund|deploy-price-tracker> -- --network <network>
- On localhost:
- Audit:
- Slither:
$ npm run slither - Mythril:
$ npm run mythril
- Slither:
Here's a simple workflow to compile, test, audit and deploy the PriceTrackercontract on the Kovan testnet:
$ npm run compile
$ npm run test
$ npm run slither
$ npm run mythril
$ npm run deploy-price-tracker -- --network kovan| Tokens | Link |
|---|---|
| AVAX | https://faucet.avax-test.network/ |
| LINK | https://faucets.chain.link/fuji |