The Circuit Breaker contract is a highly configurable proof of concept that can be used with any OCR price feed. It is capable of emitting events or calling custom functions based on predefined conditions, and it comes with an interactive UI that allows users to easily configure and manage the contract.
- Install any wallet to your browser (Metamask, etc.)
- Install ganache client locally
- Run ganache
- Confirm test eth on ganache account
- Set metamask to ganache network
$ git clone [email protected]:linkpoolio/circuit-breaker-chainlink-automation.git
# from /root
$ echo "NETWORK=hardhat" >> .env
$ echo "LOCAL_RPC_URL=\"http://127.0.0.1:7545\"" >> .env
$ echo "MAINNET_RPC_URL=\"https://eth.llamarpc.com\"" >> .env
# from /root
$ make deploy
# from /root/ui
$ npm i
# from /root/ui
$ npm storybook
- Open browser at localhost:9009
# from root
$ make test-contracts
# from root
$ make coverage