Skip to content

Commit

Permalink
Update Scroll & zkSync testnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuanx committed Feb 22, 2024
1 parent 1422afd commit cb53e35
Show file tree
Hide file tree
Showing 5 changed files with 552 additions and 684 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ BSCSCAN_KEY=
POLYGONSCAN_KEY=
MANTAPACIFIC_KEY=0
MANTAPACIFIC_TEST_KEY=0
SNOWTRACE_KEY=0
SNOWTRACE_KEY=0
SCROLL_API_KEY=
48 changes: 33 additions & 15 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ export default {
},
zkSyncTestnet: {
chainId: 280,
url: 'https://testnet.era.zksync.dev',
ethNetwork: 'https://ethereum-goerli.publicnode.com',
url: 'https://sepolia.era.zksync.dev/',
ethNetwork: 'https://rpc.ankr.com/eth_sepolia',
accounts: [process.env.PRIVATE_KEY],
saveDeployments: true,
zksync: true,
verifyURL:
'https://zksync2-testnet-explorer.zksync.dev/contract_verification'
'https://explorer.sepolia.era.zksync.dev/contract_verification'
},
zkSyncEra: {
chainId: 324,
Expand Down Expand Up @@ -154,6 +154,13 @@ export default {
accounts: [process.env.PRIVATE_KEY],
saveDeployments: true,
zksync: false
},
scrollSepolia: {
chainId: 534351,
url: 'https://sepolia-rpc.scroll.io/',
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
}
},
solidity: {
Expand All @@ -165,26 +172,28 @@ export default {
enabled: true,
runs: 200
}
}
},
eraVersion: '1.0.0'
}
]
},
zksolc: {
version: 'latest',
version: '1.3.23',
settings: {
optimizer: {
enabled: true,
runs: 200
},
libraries: {
'contracts/libraries/Clones.sol': {
/*
* zkSync Era Mainnet: 0x52cb8d348604aBB1720a713eADf3e4Afef650f93
* zkSync Era Testnet: 0x222C78A7CaDC3D63c72cE39F9A382B6aF075fC74
*/
Clones: '0x52cb8d348604aBB1720a713eADf3e4Afef650f93'
}
}
isSystem: true
// libraries: {
// 'contracts/libraries/Clones.sol': {
// /*
// * zkSync Era Mainnet: 0x52cb8d348604aBB1720a713eADf3e4Afef650f93
// * zkSync Era Testnet: 0x222C78A7CaDC3D63c72cE39F9A382B6aF075fC74
// */
// Clones: '0x52cb8d348604aBB1720a713eADf3e4Afef650f93'
// }
// }
}
},
namedAccounts: {
Expand All @@ -201,7 +210,8 @@ export default {
sepolia: process.env.ETHERSCAN_KEY,
mainnet: process.env.ETHERSCAN_KEY,
zetachainTestnet: process.env.ZETA_KEY,
zetachain: process.env.ZETA_KEY
zetachain: process.env.ZETA_KEY,
scrollSepolia: process.env.SCROLL_API_KEY!
},
customChains: [
{
Expand Down Expand Up @@ -244,6 +254,14 @@ export default {
apiURL: 'https://zetachain.blockscout.com/api',
browserURL: 'https://zetachain.blockscout.com/'
}
},
{
network: 'scrollSepolia',
chainId: 534351,
urls: {
apiURL: 'https://api-sepolia.scrollscan.com/api',
browserURL: 'https://sepolia.scrollscan.com/'
}
}
]
},
Expand Down
Loading

0 comments on commit cb53e35

Please sign in to comment.