Chainlink-keepers repository is a comprehensive codebase that leverages chainlink keepers implementation on polygon. Chainlink keepers automate smart contracts using a secure and hyper-reliable decentralized network that uses the same external network of node operators that secures billions in value.
- Clone this repository
git clone https://github.com/integrations-Polygon/Chainlink-keepers.git
- Navigate to
Chainlink-keepers
cd Chainlink-keepers
- Install dependencies
npm install
or
yarn
To deploy your smart contract, first you would need to freshly compile your smart contract by simply running this command.
npx hardhat clean
and
npx hardhat compile
After that, to actually deploy the smart contract run this command
npx hardhat run --network mumbai ./scripts/keepersdeploy.js
It is always a good practice to verify your smart contract for future debugging sessions by simple running this command. Add polygnscan api key in hardhat.config file
npx hardhat verify --network mumbai <deploy-contract-address> <if-any-arguments-seperated-by-space>
- Check chainlink keepers or autmation UI to automate your contract
- Automaion APP: https://automation.chain.link/
If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request. We welcome community contributions.