Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandora holder snapshot script #42

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
15 changes: 15 additions & 0 deletions contracts/mocks/MockERC20.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract MockERC20 is ERC20 {
constructor(
string memory name_,
string memory symbol_,
uint8 decimals_,
uint256 initialSupply_
) ERC20(name_, symbol_) {
_mint(msg.sender, initialSupply_ * (10 ** decimals_));
}
}
14 changes: 14 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import "dotenv/config"

import { HardhatUserConfig } from "hardhat/config"
import "@nomicfoundation/hardhat-toolbox"
import "hardhat-gas-reporter"

// eslint-disable-next-line @typescript-eslint/no-redeclare
interface BigInt {
/** Convert to BigInt to string form in JSON.stringify */
toJSON: () => string
}
BigInt.prototype.toJSON = function () {
return this.toString()
}

const config: HardhatUserConfig = {
solidity: { compilers: [{ version: "0.8.20" }, { version: "0.4.18" }] },
gasReporter: {
Expand All @@ -15,6 +25,10 @@ const config: HardhatUserConfig = {
url: `https://eth-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [process.env.SEPOLIA_PRIVATE_KEY_1],
},
mainnet: {
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [process.env.SEPOLIA_PRIVATE_KEY_1],
},
},
}

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ERC404",
"name": "ERC-404",
"version": "0.0.1",
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.4",
Expand All @@ -13,12 +13,15 @@
"dependencies": {
"@nomicfoundation/hardhat-verify": "^2.0.4",
"@openzeppelin/contracts": "^5.0.1",
"@openzeppelin/merkle-tree": "^1.0.6",
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-periphery": "1.1.0-beta.0",
"@uniswap/v3-core": "^1.0.1",
"@uniswap/v3-periphery": "^1.4.4",
"csv-stringify": "^6.4.5",
"currency.js": "^2.0.4",
"dotenv": "^16.4.3",
"simple-statistics": "^7.8.3",
"solhint": "^4.1.1"
},
"scripts": {
Expand Down
Loading