Skip to content

Instantly share code, notes, and snippets.

@ZakAyesh
ZakAyesh / KeepersMultiplePaths.sol
Last active December 15, 2022 06:23
An example showing how to perform multiple Keeper upkeeps on one contract by using checkdata and execution paths
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
// KeeperCompatible.sol imports the functions from both ./KeeperBase.sol and
// ./interfaces/KeeperCompatibleInterface.sol
import "@chainlink/contracts/src/v0.7/KeeperCompatible.sol";
contract MultipleCounter is KeeperCompatibleInterface {
/**
* Public counter variable
@ZakAyesh
ZakAyesh / APIConsumer.sol
Last active August 17, 2021 02:37
Make a Get Request - Kovan Testnet
// SPDX-License-Identifier: MIT
// This example code is designed to quickly deploy an example contract using Remix.
pragma solidity ^0.6.7;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
contract APIConsumer is ChainlinkClient {
using Chainlink for Chainlink.Request;
uint256 public volume;