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 <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Oct 12, 2024
1 parent 337b7b5 commit 1f6c009
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 86 deletions.
16 changes: 16 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,12 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
unichainTestnet: {
chainId: 1301,
url: vars.get("UNICHAIN_TESTNET_URL", " https://sepolia.unichain.org"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
contract: "CobieEscrow",
Expand Down Expand Up @@ -1076,6 +1082,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 @@ -1740,6 +1748,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 @@ -147,6 +147,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 @@ -176,7 +177,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 @@ -189,7 +190,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 1f6c009

Please sign in to comment.