Skip to content

Commit

Permalink
➕ Add DOS Chain, Polygon zkEVM Cardona, and Fraxtal Network Deploymen…
Browse files Browse the repository at this point in the history
…ts (#93)

Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio authored Mar 15, 2024
1 parent ef6b0d2 commit 98692ef
Show file tree
Hide file tree
Showing 9 changed files with 327 additions and 698 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [LUKSO](https://explorer.execution.mainnet.lukso.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Manta Pacific](https://pacific-explorer.manta.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Blast](https://blastscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [DOS Chain](https://doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand All @@ -2215,7 +2216,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Optimism Sepolia Testnet](https://sepolia-optimism.etherscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Arbitrum Sepolia Testnet](https://sepolia.arbiscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Polygon Testnet (Mumbai)](https://mumbai.polygonscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Polygon Testnet (zkEVM)](https://testnet-zkevm.polygonscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Polygon Testnet (zkEVM)](https://cardona-zkevm.polygonscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Fantom Testnet](https://testnet.ftmscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Avalanche Testnet (Fuji)](https://testnet.snowtrace.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Gnosis Chain Testnet (Chiado)](https://gnosis-chiado.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
Expand All @@ -2239,6 +2240,8 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Frame Testnet](https://explorer.testnet.frame.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [OP-Endurance Testnet](https://explorer-l2-testnet.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Blast Testnet](https://sepolia.blastscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [DOS Chain Testnet](https://test.doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Fraxtal Testnet](https://holesky.fraxscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

## Integration With External Tooling

Expand Down
23 changes: 22 additions & 1 deletion deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@
"https://blastscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "DOS Chain",
"chainId": 7979,
"urls": [
"https://doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -276,7 +283,7 @@
"name": "Polygon Testnet (zkEVM)",
"chainId": 1442,
"urls": [
"https://testnet-zkevm.polygonscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
"https://cardona-zkevm.polygonscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
Expand Down Expand Up @@ -448,5 +455,19 @@
"urls": [
"https://sepolia.blastscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "DOS Chain Testnet",
"chainId": 3939,
"urls": [
"https://test.doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Fraxtal Testnet",
"chainId": 2522,
"urls": [
"https://holesky.fraxscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
56 changes: 50 additions & 6 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const config: HardhatUserConfig = {
hardhat: {
initialBaseFeePerGas: 0,
chainId: 31337,
hardfork: "merge",
hardfork: "cancun",
forking: {
url: vars.get("ETH_MAINNET_URL", ethMainnetUrl),
// The Hardhat network will by default fork from the latest mainnet block
Expand Down Expand Up @@ -150,10 +150,10 @@ const config: HardhatUserConfig = {
accounts,
},
polygonZkEVMTestnet: {
chainId: 1442,
chainId: 2442,
url: vars.get(
"POLYGON_ZKEVM_TESTNET_URL",
"https://rpc.public.zkevm-test.net",
"https://rpc.cardona.zkevm-rpc.com",
),
accounts,
},
Expand Down Expand Up @@ -460,6 +460,21 @@ const config: HardhatUserConfig = {
url: vars.get("KROMA_MAINNET_URL", "https://api.kroma.network"),
accounts,
},
dosTestnet: {
chainId: 3939,
url: vars.get("DOS_TESTNET_URL", "https://test.doschain.com"),
accounts,
},
dosMain: {
chainId: 7979,
url: vars.get("DOS_MAINNET_URL", "https://main.doschain.com"),
accounts,
},
fraxtalTestnet: {
chainId: 2522,
url: vars.get("FRAXTAL_TESTNET_URL", "https://rpc.testnet.frax.com"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -587,6 +602,11 @@ const config: HardhatUserConfig = {
// For Kroma testnet & mainnet
kroma: vars.get("KROMA_API_KEY", ""),
kromaTestnet: vars.get("KROMA_API_KEY", ""),
// For DOS Chain testnet & mainnet
dos: vars.get("DOS_API_KEY", ""),
dosTestnet: vars.get("DOS_API_KEY", ""),
// For Fraxtal testnet
fraxtalTestnet: vars.get("FRAXTAL_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -809,10 +829,10 @@ const config: HardhatUserConfig = {
},
{
network: "polygonZkEVMTestnet",
chainId: 1442,
chainId: 2442,
urls: {
apiURL: "https://api-testnet-zkevm.polygonscan.com/api",
browserURL: "https://testnet-zkevm.polygonscan.com",
apiURL: "https://api-cardona-zkevm.polygonscan.com/api",
browserURL: "https://cardona-zkevm.polygonscan.com",
},
},
{
Expand Down Expand Up @@ -935,6 +955,30 @@ const config: HardhatUserConfig = {
browserURL: "https://sepolia.kromascan.com",
},
},
{
network: "dos",
chainId: 7979,
urls: {
apiURL: "https://doscan.io/api",
browserURL: "https://doscan.io",
},
},
{
network: "dosTestnet",
chainId: 3939,
urls: {
apiURL: "https://test.doscan.io/api",
browserURL: "https://test.doscan.io",
},
},
{
network: "fraxtalTestnet",
chainId: 2522,
urls: {
apiURL: "https://api-holesky.fraxscan.com/api",
browserURL: "https://holesky.fraxscan.com",
},
},
],
},
};
Expand Down
2 changes: 1 addition & 1 deletion interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@next/eslint-plugin-next": "^14.1.3",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.11.27",
"@types/react": "^18.2.65",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"autoprefixer": "^10.4.18",
"eslint": "^8.57.0",
Expand Down
2 changes: 1 addition & 1 deletion interface/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Home = () => {
id: 1,
href: "/deployments",
title: "Deployments",
subtitle: "Deployed on 50+ chains",
subtitle: "Deployed on 60+ chains",
},
{ id: 2, href: "/abi", title: "ABI", subtitle: "In any format" },
{
Expand Down
2 changes: 1 addition & 1 deletion lib/solady
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@
"deploy:blastmain": "npx hardhat run --no-compile --network blastMain scripts/deploy.ts",
"deploy:kromatestnet": "npx hardhat run --no-compile --network kromaTestnet scripts/deploy.ts",
"deploy:kromamain": "npx hardhat run --no-compile --network kromaMain scripts/deploy.ts",
"deploy:dostestnet": "npx hardhat run --no-compile --network dosTestnet scripts/deploy.ts",
"deploy:dosmain": "npx hardhat run --no-compile --network dosMain scripts/deploy.ts",
"deploy:fraxtaltestnet": "npx hardhat run --no-compile --network fraxtalTestnet scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "cd interface && pnpm prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand All @@ -124,16 +127,16 @@
"devDependencies": {
"@eslint/js": "^8.57.0",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-verify": "^2.0.4",
"@nomicfoundation/hardhat-verify": "^2.0.5",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.11.1",
"hardhat": "^2.21.0",
"hardhat": "^2.22.1",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.10",
"hardhat-gas-reporter": "^2.0.2",
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.1.1",
Expand Down
Loading

0 comments on commit 98692ef

Please sign in to comment.