Skip to content

Commit

Permalink
update deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zkbenny committed Feb 3, 2024
1 parent 005a806 commit 53832ca
Show file tree
Hide file tree
Showing 9 changed files with 398 additions and 969 deletions.
2 changes: 2 additions & 0 deletions hardhat.base.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require("./script/deploy_zklink");
require("./script/deploy_arbitrator");
require("./script/deploy_l1_gateway");
require("./script/deploy_l2_gateway");
require("./script/deploy_eth_gateway");

/**
* @type import('hardhat/config').HardhatUserConfig
Expand Down
322 changes: 20 additions & 302 deletions script/ChainConfig.json
Original file line number Diff line number Diff line change
@@ -1,328 +1,46 @@
{
"POLYGON": {
"mainnet": true,
"zkLinkChainId": 1,
"layerZero": {
"chainId": 109,
"address": "0x3c2269811836af69497E5F486A85D7316753cf62"
}
},
"AVAX": {
"mainnet": true,
"zkLinkChainId": 2,
"layerZero": {
"chainId": 106,
"address": "0x3c2269811836af69497E5F486A85D7316753cf62"
}
},
"BSC": {
"mainnet": true,
"zkLinkChainId": 3,
"layerZero": {
"chainId": 102,
"address": "0x3c2269811836af69497E5F486A85D7316753cf62"
}
},
"ETH": {
"mainnet": true,
"zkLinkChainId": 4,
"layerZero": {
"chainId": 101,
"address": "0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675"
},
"l1Gateway": {
"LINEA": {
"contractName": "LineaL1Gateway",
"initializeParams": [
"0xd19d4B5d358258f05D7B411E21A1460D11B0876F",
"0x051F1D88f0aF5763fB888eC4378b4D8B29ea3319",
"0x504A330327A089d8364C4ab3811Ee26976d388ce"
]
},
"ZKSYNC": {
"contractName": "ZkSyncL1Gateway",
"initializeParams": [
"0x32400084c286cf3e17e7b677ea9583e60a000324",
"0x57891966931Eb4Bb6FB81430E6cE0A03AAbDe063"
]
}
}
},
"ZKSYNC": {
"mainnet": true,
"zkLinkChainId": 5,
"layerZero": {
"chainId": 165,
"address": "0x9b896c0e23220469C7AE69cb4BbAE391eAa4C8da"
},
"l2Gateway": {
"contractName": "ZkSyncL2Gateway",
"initializeParams": [
"0x11f943b2c77b743AB90f4A0Ae7d5A4e7FCA3E102"
]
}
},
"SCROLL": {
"mainnet": true,
"zkLinkChainId": 6,
"layerZero": {
"chainId": 214,
"address": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7"
}
"mainnet": true
},
"LINEA": {
"mainnet": true,
"zkLinkChainId": 7,
"layerZero": {
"chainId": 183,
"address": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7"
},
"l2Gateway": {
"contractName": "LineaL2Gateway",
"initializeParams": [
"0x508Ca82Df566dCD1B0DE8296e70a96332cD644ec",
"0x353012dc4a9A6cF55c941bADC267f82004A8ceB9",
"0xA2Ee6Fce4ACB62D95448729cDb781e3BEb62504A"
]
}
"mainnet": true
},
"ZKPOLYGON": {
"mainnet": true,
"zkLinkChainId": 8,
"layerZero": {
"chainId": 158,
"address": "0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4"
}
"mainnet": true
},
"ARBITRUM": {
"mainnet": true,
"zkLinkChainId": 9,
"layerZero": {
"chainId": 110,
"address": "0x3c2269811836af69497E5F486A85D7316753cf62"
}
},
"OPTIMISM": {
"mainnet": true,
"zkLinkChainId": 10,
"layerZero": {
"chainId": 111,
"address": "0x3c2269811836af69497E5F486A85D7316753cf62"
}
},
"BASE": {
"mainnet": true,
"zkLinkChainId": 11,
"layerZero": {
"chainId": 184,
"address": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7"
}
},
"MANTLE": {
"mainnet": true,
"zkLinkChainId": 12,
"layerZero": {
"chainId": 181,
"address": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7"
}
},
"MANTA": {
"mainnet": true,
"zkLinkChainId": 13,
"layerZero": {
"chainId": 217,
"address": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7"
}
},
"TAIKO": {
"mainnet": true,
"zkLinkChainId": 14
},
"OPBNB": {
"mainnet": true,
"zkLinkChainId": 15,
"layerZero": {
"chainId": 202,
"address": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7"
}
},
"STARKNET": {
"mainnet": true,
"zkLinkChainId": 16
},
"X1": {
"mainnet": true,
"zkLinkChainId": 17
},
"LIGHTLINK": {
"mainnet": true,
"zkLinkChainId": 18
},
"POLYGONTEST": {
"mainnet": false,
"zkLinkChainId": 1,
"layerZero": {
"chainId": 10109,
"address": "0xf69186dfBa60DdB133E91E9A4B5673624293d8F8"
}
},
"AVAXTEST": {
"mainnet": false,
"zkLinkChainId": 2,
"layerZero": {
"chainId": 10106,
"address": "0x93f54D755A063cE7bB9e6Ac47Eccc8e33411d706"
}
},
"BSCTEST": {
"mainnet": false,
"zkLinkChainId": 3,
"layerZero": {
"chainId": 10102,
"address": "0x6Fcb97553D41516Cb228ac03FdC8B9a0a9df04A1"
}
},
"GOERLI": {
"mainnet": false,
"zkLinkChainId": 4,
"layerZero": {
"chainId": 10121,
"address": "0xbfD2135BFfbb0B5378b56643c2Df8a87552Bfa23"
},
"l1Gateway": {
"LINEATEST": {
"contractName": "LineaL1Gateway",
"initializeParams": [
"0x70BaD09280FD342D02fe64119779BC1f0791BAC2",
"0x2D8b29213cCE9DeF01A01718078950C429F9A806",
"0x32d123756d32d3ed6580935f8edf416e57b940f4"
]
},
"ZKSYNCTEST": {
"contractName": "ZkSyncL1Gateway",
"initializeParams": [
"0x1908e2BF4a88F91E4eF0DC72f02b8Ea36BEa2319",
"0x927DdFcc55164a59E0F33918D13a2D559bC10ce7"
]
}
}
},
"SEPOLIA": {
"mainnet": false,
"zkLinkChainId": 4,
"layerZero": {
"chainId": 10161,
"address": "0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1"
}
"mainnet": true
},
"ZKSYNCTEST": {
"mainnet": false,
"zkLinkChainId": 5,
"layerZero": {
"chainId": 10165,
"address": "0x093D2CF57f764f09C3c2Ac58a42A2601B8C79281"
},
"l2Gateway": {
"contractName": "ZkSyncL2Gateway",
"initializeParams": []
},
"l1Gateway": {
"contractName": "ZkSyncL1Gateway",
"initializeParams": [
"0x00ff932A6d70E2B8f1Eb4919e1e09C1923E7e57b"
"0x9A6DE0f62Aa270A8bCB1e2610078650D539B1Ef9"
]
}
},
"SCROLLTEST": {
"mainnet": false,
"zkLinkChainId": 6,
"layerZero": {
"chainId": 10214,
"address": "0x6098e96a28E02f27B1e6BD381f870F1C8Bd169d3"
}
},
"LINEATEST": {
"mainnet": false,
"zkLinkChainId": 7,
"layerZero": {
"chainId": 10157,
"address": "0x6aB5Ae6822647046626e83ee6dB8187151E1d5ab"
},
"l2Gateway": {
"contractName": "LineaL2Gateway",
"initializeParams": [
"0xC499a572640B64eA1C8c194c43Bc3E19940719dC",
"0x7D9009F96dc1fF94401af63703De43b7cCf98D5D",
"0xdfa112375c9be9d124932b1d104b73f888655329"
]
}
"mainnet": false
},
"ZKPOLYGONTEST": {
"mainnet": false,
"zkLinkChainId": 8,
"layerZero": {
"chainId": 10158,
"address": "0x6aB5Ae6822647046626e83ee6dB8187151E1d5ab"
}
"mainnet": false
},
"ARBITRUMTEST": {
"mainnet": false,
"zkLinkChainId": 9,
"layerZero": {
"chainId": 10231,
"address": "0x6098e96a28E02f27B1e6BD381f870F1C8Bd169d3"
}
},
"OPTIMISMTEST": {
"mainnet": false,
"zkLinkChainId": 10,
"layerZero": {
"chainId": 10232,
"address": "0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8"
}
},
"BASETEST": {
"mainnet": false,
"zkLinkChainId": 11,
"layerZero": {
"chainId": 10160,
"address": "0x6aB5Ae6822647046626e83ee6dB8187151E1d5ab"
}
},
"MANTLETEST": {
"mainnet": false,
"zkLinkChainId": 12,
"layerZero": {
"chainId": 10181,
"address": "0x2cA20802fd1Fd9649bA8Aa7E50F0C82b479f35fe"
}
},
"MANTATEST": {
"mainnet": false,
"zkLinkChainId": 13,
"layerZero": {
"chainId": 10221,
"address": "0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8"
}
},
"TAIKOTEST": {
"mainnet": false,
"zkLinkChainId": 14
},
"OPBNBTEST": {
"mainnet": false,
"zkLinkChainId": 15,
"layerZero": {
"chainId": 10202,
"address": "0x83c73Da98cf733B03315aFa8758834b36a195b87"
"l2Gateway": {
"contractName": "ArbitrumL2Gateway",
"initializeParams": []
},
"l1Gateway": {
"contractName": "ArbitrumL1Gateway",
"initializeParams": [
"0xaAe29B0366299461418F5324a79Afc425BE5ae21"
]
}
},
"STARKNETTEST": {
"mainnet": false,
"zkLinkChainId": 16
},
"X1TEST": {
"mainnet": false,
"zkLinkChainId": 17
},
"LIGHTLINKTEST": {
"mainnet": false,
"zkLinkChainId": 18
}
}
Loading

0 comments on commit 53832ca

Please sign in to comment.