Skip to content

Commit

Permalink
update hardhat, add verification arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
malteish committed Sep 9, 2024
1 parent 37fa8a1 commit 303562f
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 208 deletions.
5 changes: 4 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { HardhatUserConfig, task } from 'hardhat/config';

import 'dotenv/config';
import 'hardhat-gas-reporter';
import '@nomiclabs/hardhat-etherscan';
import '@nomicfoundation/hardhat-verify';
import '@nomicfoundation/hardhat-ethers';
import '@nomicfoundation/hardhat-chai-matchers';
import '@typechain/hardhat';
Expand Down Expand Up @@ -75,6 +75,9 @@ const config: HardhatUserConfig = {
enabled: process.env.REPORT_GAS !== undefined,
currency: 'USD',
},
sourcify: {
enabled: true,
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY || '',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
},
"devDependencies": {
"@foundry-rs/hardhat-forge": "^0.1.17",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
"@nomicfoundation/hardhat-ethers": "^3.0.4",
"@nomiclabs/hardhat-etherscan": "^3.1.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.7",
"@nomicfoundation/hardhat-ethers": "^3.0.8",
"@nomicfoundation/hardhat-verify": "^2.0.10",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.10",
Expand All @@ -69,14 +69,14 @@
"eslint-plugin-promise": "^6.1.1",
"ethereum-waffle": "^4.0.10",
"ethers": "^6.1.0",
"hardhat": "^2.19.0",
"hardhat": "^2.22.0",
"hardhat-gas-reporter": "^1.0.8",
"npmignore": "^0.3.0",
"prettier": "^3.0.3",
"prettier-plugin-solidity": "^1.2.0",
"solhint": "^4.0.0",
"solidity-coverage": "^0.8.5",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.2.2"
},
Expand Down
12 changes: 12 additions & 0 deletions script/verificationArguments/hardhat/PrivateOffer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = [
{
currencyPayer: '0xd084260683d0f2ade61c4d71bf38e0d02803e2a9', // currencyPayer
tokenReceiver: '0xd084260683d0f2ade61c4d71bf38e0d02803e2a9', // tokenReceiver
currencyReceiver: '0x81e99b5e64f0bc14b56649575b2347868687ff4d', // currencyReceiver
tokenAmount: '1000000000000000000', // tokenAmount
tokenPrice: '20000000', // tokenPrice
expiration: '1726272000', // expiration
currency: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', // currency
token: '0x82a3f389aa8519ebe78947d4bfd45f4e050a3f2c', // token
},
];
Loading

0 comments on commit 303562f

Please sign in to comment.