Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
begmaroman committed Feb 1, 2024
1 parent cdc4596 commit 7d5a203
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 26 deletions.
68 changes: 44 additions & 24 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const config: HardhatUserConfig = {
enabled: true,
runs: 999999,
},
evmVersion: "paris",
evmVersion: "shanghai",
},
},
{
Expand Down Expand Up @@ -80,30 +80,30 @@ const config: HardhatUserConfig = {
settings: {
optimizer: {
enabled: true,
runs: 99,
runs: 500,
},
evmVersion: "paris",
evmVersion: "shanghai",
}, // try yul optimizer
},
"contracts/v2/PolygonZkEVMBridgeV2.sol": {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 99,
runs: 999,
},
evmVersion: "paris",
evmVersion: "shanghai",
},
},
"contracts/lib/TokenWrapped.sol": {
"contracts/v2/newDeployments/PolygonRollupManagerNotUpgraded.sol": {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 9999, // must be the same as bridge, for testing porpuses
runs: 500,
},
evmVersion: "paris",
},
evmVersion: "shanghai",
}, // try yul optimizer
},
"contracts/v2/mocks/PolygonRollupManagerMock.sol": {
version: "0.8.20",
Expand All @@ -112,7 +112,7 @@ const config: HardhatUserConfig = {
enabled: true,
runs: 10,
},
evmVersion: "paris",
evmVersion: "shanghai",
}, // try yul optimizer
},
// Should have the same optimizations than the RollupManager to verify
Expand All @@ -121,19 +121,9 @@ const config: HardhatUserConfig = {
settings: {
optimizer: {
enabled: true,
runs: 10,
},
evmVersion: "paris",
}, // try yul optimizer
},
"contracts/v2/newDeployments/PolygonRollupManagerNotUpgraded.sol": {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 10,
runs: 500,
},
evmVersion: "paris",
evmVersion: "shanghai",
}, // try yul optimizer
},
},
Expand Down Expand Up @@ -183,6 +173,17 @@ const config: HardhatUserConfig = {
count: 20,
},
},
sepolia: {
url: process.env.SEPOLIA_PROVIDER
? process.env.SEPOLIA_PROVIDER
: `https://sepolia.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
localhost: {
url: "http://127.0.0.1:8545",
accounts: {
Expand All @@ -194,7 +195,7 @@ const config: HardhatUserConfig = {
},
hardhat: {
initialDate: "0",
//allowUnlimitedContractSize: true,
allowUnlimitedContractSize: true,
initialBaseFeePerGas: 0,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
Expand All @@ -221,6 +222,15 @@ const config: HardhatUserConfig = {
count: 20,
},
},
zkevmDevnet: {
url: "http://123:123:123:123:123",
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
},
gasReporter: {
enabled: !!process.env.REPORT_GAS,
Expand All @@ -232,7 +242,9 @@ const config: HardhatUserConfig = {
polygonZKEVMTestnet: `${process.env.ETHERSCAN_ZKEVM_API_KEY}`,
polygonZKEVMMainnet: `${process.env.ETHERSCAN_ZKEVM_API_KEY}`,
goerli: `${process.env.ETHERSCAN_API_KEY}`,
sepolia: `${process.env.ETHERSCAN_API_KEY}`,
mainnet: `${process.env.ETHERSCAN_API_KEY}`,
zkevmDevnet: `${process.env.ETHERSCAN_API_KEY}`,
},
customChains: [
{
Expand All @@ -251,8 +263,16 @@ const config: HardhatUserConfig = {
browserURL: "https://testnet-zkevm.polygonscan.com/",
},
},
{
network: "zkevmDevnet",
chainId: 123,
urls: {
apiURL: "http://123:123:123:123:123/api",
browserURL: "http://123:123:123:123:123",
},
},
],
},
};

export default config;
export default config;
4 changes: 2 additions & 2 deletions package-lock.json

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

0 comments on commit 7d5a203

Please sign in to comment.