├── .env.example ├── .gitattributes ├── .github └── CODEOWNERS ├── .gitignore ├── .gitpod.yml ├── .husky └── pre-commit ├── .npmignore ├── .prettierignore ├── .prettierrc ├── .solcover.js ├── .solhint.json ├── .solhintignore ├── LICENSE ├── README.md ├── box-img-lg.png ├── contracts ├── AutomationCounter.sol ├── PriceConsumerV3.sol ├── RandomNumberConsumerV2Plus.sol ├── RandomNumberDirectFundingConsumerV2Plus.sol ├── VRFV2PlusWrapper.sol └── test │ ├── MockLinkToken.sol │ ├── MockV3Aggregator.sol │ ├── VRFCoordinatorV2_5Mock.sol │ └── fuzzing │ ├── AutomationCounterEchidnaTest.sol │ └── config.yaml ├── hardhat.config.js ├── helper-functions.js ├── helper-hardhat-config.js ├── package.json ├── remappings-helper.js ├── remappings.txt ├── scripts ├── deployment │ ├── deployAutomationCounter.js │ ├── deployPriceConsumerV3.js │ ├── deployRandomNumberConsumer.js │ ├── deployRandomNumberDirectFundingConsumer.js │ └── main.js └── readPrice.js ├── tasks ├── accounts.js ├── api-consumer │ ├── index.js │ ├── read-data.js │ └── request-data.js ├── automation │ ├── index.js │ └── read-automation-counter.js ├── balance.js ├── block-number.js ├── index.js ├── price-consumer │ ├── index.js │ ├── read-price-feed-ens.js │ └── read-price-feed.js ├── random-number-consumer │ ├── index.js │ ├── read-random-number-direct-funding.js │ ├── read-random-number.js │ ├── request-random-number-direct-funding.js │ └── request-random-number.js ├── transfer-link.js └── withdraw-link.js ├── test ├── staging │ ├── RandomNumberConsumer.spec.js │ └── RandomNumberDirectFundingConsumer.spec.js └── unit │ ├── AutomationCounter.spec.js │ ├── PriceConsumerV3.spec.js │ ├── RandomNumberConsumer.spec.js │ └── RandomNumberDirectFundingConsumer.spec.js └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.gitpod.yml -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | hardhat.config.js 2 | scripts 3 | test 4 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.prettierrc -------------------------------------------------------------------------------- /.solcover.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.solcover.js -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/.solhint.json -------------------------------------------------------------------------------- /.solhintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | contracts/test -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/README.md -------------------------------------------------------------------------------- /box-img-lg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/box-img-lg.png -------------------------------------------------------------------------------- /contracts/AutomationCounter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/AutomationCounter.sol -------------------------------------------------------------------------------- /contracts/PriceConsumerV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/PriceConsumerV3.sol -------------------------------------------------------------------------------- /contracts/RandomNumberConsumerV2Plus.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/RandomNumberConsumerV2Plus.sol -------------------------------------------------------------------------------- /contracts/RandomNumberDirectFundingConsumerV2Plus.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/RandomNumberDirectFundingConsumerV2Plus.sol -------------------------------------------------------------------------------- /contracts/VRFV2PlusWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/VRFV2PlusWrapper.sol -------------------------------------------------------------------------------- /contracts/test/MockLinkToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/test/MockLinkToken.sol -------------------------------------------------------------------------------- /contracts/test/MockV3Aggregator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/test/MockV3Aggregator.sol -------------------------------------------------------------------------------- /contracts/test/VRFCoordinatorV2_5Mock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/test/VRFCoordinatorV2_5Mock.sol -------------------------------------------------------------------------------- /contracts/test/fuzzing/AutomationCounterEchidnaTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/test/fuzzing/AutomationCounterEchidnaTest.sol -------------------------------------------------------------------------------- /contracts/test/fuzzing/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/contracts/test/fuzzing/config.yaml -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/hardhat.config.js -------------------------------------------------------------------------------- /helper-functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/helper-functions.js -------------------------------------------------------------------------------- /helper-hardhat-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/helper-hardhat-config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/package.json -------------------------------------------------------------------------------- /remappings-helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/remappings-helper.js -------------------------------------------------------------------------------- /remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/remappings.txt -------------------------------------------------------------------------------- /scripts/deployment/deployAutomationCounter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/scripts/deployment/deployAutomationCounter.js -------------------------------------------------------------------------------- /scripts/deployment/deployPriceConsumerV3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/scripts/deployment/deployPriceConsumerV3.js -------------------------------------------------------------------------------- /scripts/deployment/deployRandomNumberConsumer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/scripts/deployment/deployRandomNumberConsumer.js -------------------------------------------------------------------------------- /scripts/deployment/deployRandomNumberDirectFundingConsumer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/scripts/deployment/deployRandomNumberDirectFundingConsumer.js -------------------------------------------------------------------------------- /scripts/deployment/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/scripts/deployment/main.js -------------------------------------------------------------------------------- /scripts/readPrice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/scripts/readPrice.js -------------------------------------------------------------------------------- /tasks/accounts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/accounts.js -------------------------------------------------------------------------------- /tasks/api-consumer/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/api-consumer/index.js -------------------------------------------------------------------------------- /tasks/api-consumer/read-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/api-consumer/read-data.js -------------------------------------------------------------------------------- /tasks/api-consumer/request-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/api-consumer/request-data.js -------------------------------------------------------------------------------- /tasks/automation/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/automation/index.js -------------------------------------------------------------------------------- /tasks/automation/read-automation-counter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/automation/read-automation-counter.js -------------------------------------------------------------------------------- /tasks/balance.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/balance.js -------------------------------------------------------------------------------- /tasks/block-number.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/block-number.js -------------------------------------------------------------------------------- /tasks/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/index.js -------------------------------------------------------------------------------- /tasks/price-consumer/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/price-consumer/index.js -------------------------------------------------------------------------------- /tasks/price-consumer/read-price-feed-ens.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/price-consumer/read-price-feed-ens.js -------------------------------------------------------------------------------- /tasks/price-consumer/read-price-feed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/price-consumer/read-price-feed.js -------------------------------------------------------------------------------- /tasks/random-number-consumer/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/random-number-consumer/index.js -------------------------------------------------------------------------------- /tasks/random-number-consumer/read-random-number-direct-funding.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/random-number-consumer/read-random-number-direct-funding.js -------------------------------------------------------------------------------- /tasks/random-number-consumer/read-random-number.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/random-number-consumer/read-random-number.js -------------------------------------------------------------------------------- /tasks/random-number-consumer/request-random-number-direct-funding.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/random-number-consumer/request-random-number-direct-funding.js -------------------------------------------------------------------------------- /tasks/random-number-consumer/request-random-number.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/random-number-consumer/request-random-number.js -------------------------------------------------------------------------------- /tasks/transfer-link.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/transfer-link.js -------------------------------------------------------------------------------- /tasks/withdraw-link.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/tasks/withdraw-link.js -------------------------------------------------------------------------------- /test/staging/RandomNumberConsumer.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/test/staging/RandomNumberConsumer.spec.js -------------------------------------------------------------------------------- /test/staging/RandomNumberDirectFundingConsumer.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/test/staging/RandomNumberDirectFundingConsumer.spec.js -------------------------------------------------------------------------------- /test/unit/AutomationCounter.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/test/unit/AutomationCounter.spec.js -------------------------------------------------------------------------------- /test/unit/PriceConsumerV3.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/test/unit/PriceConsumerV3.spec.js -------------------------------------------------------------------------------- /test/unit/RandomNumberConsumer.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/test/unit/RandomNumberConsumer.spec.js -------------------------------------------------------------------------------- /test/unit/RandomNumberDirectFundingConsumer.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/test/unit/RandomNumberDirectFundingConsumer.spec.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartcontractkit/hardhat-starter-kit/HEAD/yarn.lock --------------------------------------------------------------------------------