Skip to content

Commit

Permalink
Add support of BASE (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
channing-magiceden authored Apr 16, 2024
1 parent c23f7fb commit 7dd31f6
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 14 deletions.
10 changes: 9 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dotenv/config';

import '@nomiclabs/hardhat-etherscan';
import "@nomicfoundation/hardhat-verify";
import '@nomiclabs/hardhat-waffle';
import '@typechain/hardhat';
import 'hardhat-contract-sizer';
Expand Down Expand Up @@ -64,6 +64,11 @@ const config: HardhatUserConfig = {
tests: './test',
},
networks: {
base: {
url: process.env.BASE_URL || '',
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
ropsten: {
url: process.env.ROPSTEN_URL || '',
accounts:
Expand Down Expand Up @@ -108,6 +113,9 @@ const config: HardhatUserConfig = {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
sourcify: {
enabled: true
}
};

task('setStages', 'Set stages for ERC721M')
Expand Down
153 changes: 141 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"devDependencies": {
"@ethersproject/abstract-provider": "^5.7.0",
"@nomicfoundation/hardhat-network-helpers": "^1.0.6",
"@nomicfoundation/hardhat-verify": "^2.0.5",
"@nomiclabs/hardhat-ethers": "^2.1.1",
"@nomiclabs/hardhat-etherscan": "^3.1.0",
"@nomiclabs/hardhat-waffle": "^2.0.3",
"@rollup/plugin-json": "^5.0.1",
"@rollup/plugin-typescript": "^9.0.2",
Expand Down

0 comments on commit 7dd31f6

Please sign in to comment.