├── .gitignore ├── README.md ├── custom-solc ├── README.md ├── contracts │ └── Foo.sol ├── hardhat.config.js ├── package.json ├── soljson-v0.8.5-nightly.2021.5.12+commit.98e2b4e5.js └── yarn.lock ├── customize-artifacts ├── README.md ├── contracts │ └── Example.sol ├── hardhat.config.js ├── package.json └── yarn.lock ├── fail-on-warnings ├── README.md ├── contracts │ └── Foo.sol ├── hardhat.config.js ├── package.json └── yarn.lock ├── getting-tx-return-value ├── .gitignore ├── README.md ├── contracts │ └── Foo.sol ├── hardhat.config.js ├── package.json ├── scripts │ └── get-return-value.js └── yarn.lock ├── hooks ├── .gitignore ├── README.md ├── contracts │ └── Greeter.sol ├── hardhat.config.js ├── package.json ├── scripts │ └── sample-script.js ├── test │ └── sample-test.js └── yarn.lock ├── ignore-solidity-files ├── README.md ├── contracts │ ├── Bar.sol │ └── Foo.sol ├── hardhat.config.js ├── package-lock.json └── package.json ├── parallel-tests ├── .mocharc.json ├── README.md ├── contracts │ └── Greeter.sol ├── hardhat.config.js ├── package.json ├── test │ ├── test-1.js │ └── test-2.js └── yarn.lock ├── reading-events ├── .gitignore ├── README.md ├── contracts │ └── EventEmitter.sol ├── hardhat.config.js ├── package.json ├── scripts │ └── getEventsFromTx.js ├── test │ └── test.js └── yarn.lock └── wait-until-node-ready ├── README.md ├── contracts └── Greeter.sol ├── hardhat.config.js ├── package.json ├── scripts └── sample-script.js ├── test └── sample-test.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/README.md -------------------------------------------------------------------------------- /custom-solc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/custom-solc/README.md -------------------------------------------------------------------------------- /custom-solc/contracts/Foo.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.8.0; 2 | 3 | contract Foo { 4 | } 5 | -------------------------------------------------------------------------------- /custom-solc/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/custom-solc/hardhat.config.js -------------------------------------------------------------------------------- /custom-solc/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/custom-solc/package.json -------------------------------------------------------------------------------- /custom-solc/soljson-v0.8.5-nightly.2021.5.12+commit.98e2b4e5.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/custom-solc/soljson-v0.8.5-nightly.2021.5.12+commit.98e2b4e5.js -------------------------------------------------------------------------------- /custom-solc/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/custom-solc/yarn.lock -------------------------------------------------------------------------------- /customize-artifacts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/customize-artifacts/README.md -------------------------------------------------------------------------------- /customize-artifacts/contracts/Example.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/customize-artifacts/contracts/Example.sol -------------------------------------------------------------------------------- /customize-artifacts/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/customize-artifacts/hardhat.config.js -------------------------------------------------------------------------------- /customize-artifacts/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/customize-artifacts/package.json -------------------------------------------------------------------------------- /customize-artifacts/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/customize-artifacts/yarn.lock -------------------------------------------------------------------------------- /fail-on-warnings/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/fail-on-warnings/README.md -------------------------------------------------------------------------------- /fail-on-warnings/contracts/Foo.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/fail-on-warnings/contracts/Foo.sol -------------------------------------------------------------------------------- /fail-on-warnings/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/fail-on-warnings/hardhat.config.js -------------------------------------------------------------------------------- /fail-on-warnings/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/fail-on-warnings/package.json -------------------------------------------------------------------------------- /fail-on-warnings/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/fail-on-warnings/yarn.lock -------------------------------------------------------------------------------- /getting-tx-return-value/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | 4 | #Hardhat files 5 | cache 6 | artifacts 7 | -------------------------------------------------------------------------------- /getting-tx-return-value/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/getting-tx-return-value/README.md -------------------------------------------------------------------------------- /getting-tx-return-value/contracts/Foo.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/getting-tx-return-value/contracts/Foo.sol -------------------------------------------------------------------------------- /getting-tx-return-value/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/getting-tx-return-value/hardhat.config.js -------------------------------------------------------------------------------- /getting-tx-return-value/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/getting-tx-return-value/package.json -------------------------------------------------------------------------------- /getting-tx-return-value/scripts/get-return-value.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/getting-tx-return-value/scripts/get-return-value.js -------------------------------------------------------------------------------- /getting-tx-return-value/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/getting-tx-return-value/yarn.lock -------------------------------------------------------------------------------- /hooks/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | 4 | #Hardhat files 5 | cache 6 | artifacts 7 | -------------------------------------------------------------------------------- /hooks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/hooks/README.md -------------------------------------------------------------------------------- /hooks/contracts/Greeter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/hooks/contracts/Greeter.sol -------------------------------------------------------------------------------- /hooks/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/hooks/hardhat.config.js -------------------------------------------------------------------------------- /hooks/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/hooks/package.json -------------------------------------------------------------------------------- /hooks/scripts/sample-script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/hooks/scripts/sample-script.js -------------------------------------------------------------------------------- /hooks/test/sample-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/hooks/test/sample-test.js -------------------------------------------------------------------------------- /hooks/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/hooks/yarn.lock -------------------------------------------------------------------------------- /ignore-solidity-files/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/ignore-solidity-files/README.md -------------------------------------------------------------------------------- /ignore-solidity-files/contracts/Bar.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | pragma solidity ^0.8.0; 3 | 4 | contract Bar { 5 | 6 | -------------------------------------------------------------------------------- /ignore-solidity-files/contracts/Foo.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | pragma solidity ^0.8.0; 3 | 4 | contract Foo { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /ignore-solidity-files/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/ignore-solidity-files/hardhat.config.js -------------------------------------------------------------------------------- /ignore-solidity-files/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/ignore-solidity-files/package-lock.json -------------------------------------------------------------------------------- /ignore-solidity-files/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/ignore-solidity-files/package.json -------------------------------------------------------------------------------- /parallel-tests/.mocharc.json: -------------------------------------------------------------------------------- 1 | { 2 | "timeout": 20000 3 | } 4 | -------------------------------------------------------------------------------- /parallel-tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/parallel-tests/README.md -------------------------------------------------------------------------------- /parallel-tests/contracts/Greeter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/parallel-tests/contracts/Greeter.sol -------------------------------------------------------------------------------- /parallel-tests/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/parallel-tests/hardhat.config.js -------------------------------------------------------------------------------- /parallel-tests/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/parallel-tests/package.json -------------------------------------------------------------------------------- /parallel-tests/test/test-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/parallel-tests/test/test-1.js -------------------------------------------------------------------------------- /parallel-tests/test/test-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/parallel-tests/test/test-2.js -------------------------------------------------------------------------------- /parallel-tests/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/parallel-tests/yarn.lock -------------------------------------------------------------------------------- /reading-events/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/.gitignore -------------------------------------------------------------------------------- /reading-events/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/README.md -------------------------------------------------------------------------------- /reading-events/contracts/EventEmitter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/contracts/EventEmitter.sol -------------------------------------------------------------------------------- /reading-events/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/hardhat.config.js -------------------------------------------------------------------------------- /reading-events/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/package.json -------------------------------------------------------------------------------- /reading-events/scripts/getEventsFromTx.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/scripts/getEventsFromTx.js -------------------------------------------------------------------------------- /reading-events/test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/test/test.js -------------------------------------------------------------------------------- /reading-events/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/reading-events/yarn.lock -------------------------------------------------------------------------------- /wait-until-node-ready/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/wait-until-node-ready/README.md -------------------------------------------------------------------------------- /wait-until-node-ready/contracts/Greeter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/wait-until-node-ready/contracts/Greeter.sol -------------------------------------------------------------------------------- /wait-until-node-ready/hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/wait-until-node-ready/hardhat.config.js -------------------------------------------------------------------------------- /wait-until-node-ready/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/wait-until-node-ready/package.json -------------------------------------------------------------------------------- /wait-until-node-ready/scripts/sample-script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/wait-until-node-ready/scripts/sample-script.js -------------------------------------------------------------------------------- /wait-until-node-ready/test/sample-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/wait-until-node-ready/test/sample-test.js -------------------------------------------------------------------------------- /wait-until-node-ready/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fvictorio/hardhat-examples/HEAD/wait-until-node-ready/yarn.lock --------------------------------------------------------------------------------