Skip to content

Commit

Permalink
➕ Add Unichain Test Network Configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Oct 12, 2024
1 parent 1f055f9 commit 377d5c3
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 91 deletions.
2 changes: 1 addition & 1 deletion contracts/lib/forge-std
Submodule forge-std updated 4 files
+193 −0 CONTRIBUTING.md
+16 −0 README.md
+53 −8 src/Vm.sol
+2 −2 test/Vm.t.sol
16 changes: 16 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,12 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
unichainTestnet: {
chainId: 1301,
url: vars.get("UNICHAIN_TESTNET_URL", " https://sepolia.unichain.org"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -1107,6 +1113,8 @@ const config: HardhatUserConfig = {
worldChainTestnet: vars.get("WORLD_CHAIN_API_KEY", ""),
// For Plume testnet
plumeTestnet: vars.get("PLUME_API_KEY", ""),
// For Unichain testnet
unichainTestnet: vars.get("UNICHAIN_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1771,6 +1779,14 @@ const config: HardhatUserConfig = {
browserURL: "https://test-explorer.plumenetwork.xyz",
},
},
{
network: "unichainTestnet",
chainId: 1301,
urls: {
apiURL: "https://api-sepolia.uniscan.xyz/api",
browserURL: "https://sepolia.uniscan.xyz",
},
},
],
},
// tenderly: {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"deploy:worldchaintestnet": "npx hardhat run --network worldChainTestnet scripts/deploy.ts",
"deploy:worldchainmain": "npx hardhat run --network worldChainMain scripts/deploy.ts",
"deploy:plumetestnet": "npx hardhat run --network plumeTestnet scripts/deploy.ts",
"deploy:unichaintestnet": "npx hardhat run --network unichainTestnet scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"solhint:check": "npx solhint \"contracts/**/*.sol\"",
Expand Down Expand Up @@ -186,7 +187,7 @@
"chai": "^4.5.0",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.13.3",
"ethers": "^6.13.4",
"hardhat": "^2.22.13",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
Expand All @@ -199,7 +200,7 @@
"typechain": "^8.3.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.8.1",
"xdeployer": "^3.1.2",
"zksync-ethers": "^6.13.1"
"xdeployer": "^3.1.3",
"zksync-ethers": "^6.14.0"
}
}
Loading

0 comments on commit 377d5c3

Please sign in to comment.