Files
merkle-distributor/hardhat.config.ts
AzFlin 097193e502 Genie USDC Airdrop (#26)
* Upgrade solidity to 0.8.15. Add hardhat. Add script to deploy MerkleDistributor.sol

* add cache/ to gitignore

* start test file

* start a test

* continue tests

* continue

* continue

* continue

* tentative complete refactor of tests

* tentatively complete UniswapUSDCAirdrop

* add tests for uniswap airdrop

* Fix code style issues with Prettier

* Edit scripts to use hardhat

* update yml

* Rename to MerkleDistributorWithDeadline.sol

* add test 'only owner can withdraw even after end time'

* start refactor to run all tests for MerkleDistributorWithDeadline

* continue

* continue

* continue

* continue

* continue

* Remove branches from lint.yml

* Increase optimization runs. Use SafeERC20

* Fix code style issues with Prettier

* try reverting lint.yml to see if tests will run..

* add end time condition to constructor

* update deploy script

* use custom errors in MerkleDistributor. Use newer version of ethers to accomodate these custom errors

* Remove unneeded space in constructor

* custom errors for MerkleDistributorWithDeadline

* pin node 16

* Fix code style issues with Prettier

* fix compiler warnings

* use 0.8.17

Co-authored-by: AzFlin <azflin@users.noreply.github.com>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2022-11-21 10:49:49 -08:00

41 lines
931 B
TypeScript

/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('dotenv').config()
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-waffle'
module.exports = {
solidity: {
compilers: [
{
version: '0.8.17',
settings: {
optimizer: {
enabled: true,
runs: 5000,
},
},
},
],
},
networks: {
hardhat: {
settings: {
debug: {
revertStrings: 'debug',
},
},
},
tenderly: {
chainId: 1,
url: `https://rpc.tenderly.co/fork/${process.env.TENDERLY_FORK_ID}`,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`, // or any other JSON-RPC provider
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
}