Repo for Buildspace Nights & Weekends Challenge
- Start Ganache with chain id
1337
on port8545
(Parameters are set inchainlink/node/.env
) - Start node with
sh run_config_node.sh
- Node should be available at
localhost:6688
. credstest@test.de:linklink
- Goto
hardhat
folder. - Deploy
LinkToken
andOracle
withexport HARDHAT_NETWORK=localhost && node scripts/deploy_oracle.js
. Note the adresses. This only has to be done once per ganache setup. As long as you do not reset your chain or fork anew this should be fine. - Provide addresses in
hardhat/scripts/test_chainlink.js
- Run
npx hardhat test --network localhost
to start automated tests.