Skip to content

Commit

Permalink
🇿 zkSync Testnet Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
oemerfurkan authored Apr 4, 2024
1 parent d485af2 commit e496632
Show file tree
Hide file tree
Showing 7 changed files with 9,050 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WALLET_PRIVATE_KEY=
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
*.info
artifacts
cache
cache_hardhat
node_modules
out
zkout
.env
deployments-zk
artifacts-zk
cache_hardhat-zk
12 changes: 11 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@ sort_imports = true

[profile.default]
src = 'contracts'
solc_version = "0.8.25"
solc_version = "0.8.24"
optimizer = true
optimizer_runs = 100_000
remappings = [
"forge-std/=lib/forge-std/src/",
"interfaces/=lib/interfaces/contracts/",
]

[profile.zksync]
src = 'contracts'
solc_version = "0.8.24"
optimizer = true
optimizer_runs = 100_000
remappings = [
"forge-std/=lib/forge-std/src/",
"interfaces/=lib/interfaces/contracts/",
]
34 changes: 34 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
require("@matterlabs/hardhat-zksync-deploy");
require("@matterlabs/hardhat-zksync-verify");
require("@matterlabs/hardhat-zksync-solc");
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-foundry");

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
zksolc: {
version: "1.4.0", // Uses latest available in https://github.com/matter-labs/zksolc-bin/
settings: {},
},
solidity: {
version: "0.8.24",
eraVersion: "1.0.0", //optional. Compile contracts with EraVM compiler
},
defaultNetwork: "zkSyncTestnet",
networks: {
sepolia: {
url: "https://sepolia.infura.io/v3/<API_KEY>", // The Ethereum Web3 RPC URL (optional).
zksync: false, // disables zksolc compiler
},
zkSyncTestnet: {
url: "https://sepolia.era.zksync.dev", // The testnet RPC URL of zkSync Era network.
ethNetwork: "sepolia", // The Ethereum Web3 RPC URL, or the identifier of the network (e.g. `mainnet` or `sepolia`)
zksync: true, // enables zksolc compiler
verifyURL:
"https://explorer.sepolia.era.zksync.dev/contract_verification",
},
},
sourcify: {
enabled: true,
},
};
Loading

0 comments on commit e496632

Please sign in to comment.