Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added network support for holesky #695

Merged
merged 4 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ REACT_APP_SEPOLIA_EXPLORER_API_KEY=
GOERLI_HOST=
REACT_APP_GOERLI_EXPLORER_API_KEY=

HOLESKY_HOST=
REACT_APP_HOLESKY_EXPLORER_API_KEY=

MUMBAI_HOST=
REACT_APP_MUMBAI_EXPLORER_API_KEY=

Expand Down
20 changes: 20 additions & 0 deletions client/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ export const NETWORKS = {
url: `${process.env.ARBITRUM_GOERLI_HOST}`,
privKey: `${process.env.PRIV_KEY}`,
},
HOLESKY: {
name: "holesky",
id: "17000",
url: `${process.env.HOLESKY_HOST}`,
privKey: `${process.env.PRIV_KEY}`
},
};

// Networks for operations
Expand Down Expand Up @@ -117,6 +123,18 @@ export const NETWORKS_INGAME = {
apiHost: `https://api-goerli.arbiscan.io`,
},
},
HOLESKY: {
name: "holesky",
id: "17000",
currencyName: "Holesky-ETH",
currencySymbol: "ETH",
rpcUrl: "https://ethereum-holesky.publicnode.com",
blockExplorer: "https://holesky.etherscan.io",
explorer: {
apiKey: `${process.env.REACT_APP_HOLESKY_EXPLORER_API_KEY}`,
apiHost: `https://api-holesky.etherscan.io`,
},
},
};

// Deprectated networks
Expand Down Expand Up @@ -154,6 +172,7 @@ export const ADDRESSES = {
[NETWORKS.SEPOLIA.name]: "0x09902A56d04a9446601a0d451E07459dC5aF0820",
[NETWORKS.OPTIMISM_GOERLI.name]: "0x09902A56d04a9446601a0d451E07459dC5aF0820",
[NETWORKS.ARBITRUM_GOERLI.name]: "0x09902A56d04a9446601a0d451E07459dC5aF0820",
[NETWORKS.HOLESKY.name]: "0x09902A56d04a9446601a0d451E07459dC5aF0820",
};

// Support EIP-1559
Expand Down Expand Up @@ -197,6 +216,7 @@ export const SHOW_VERSION = true;
// export const ACTIVE_NETWORK = NETWORKS.MUMBAI
// export const ACTIVE_NETWORK = NETWORKS.OPTIMISM_GOERLI
// export const ACTIVE_NETWORK = NETWORKS.ARBITRUM_GOERLI
// export const ACTIVE_NETWORK = NETWORKS.HOLESKY
// export const ACTIVE_NETWORK = NETWORKS.LOCAL;

let id_to_network = {};
Expand Down
36 changes: 36 additions & 0 deletions client/src/gamedata/deploy.holesky.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"0": "0x02293680D707f86D988D98a38810db19119D3C18",
"1": "0x3c99F231E92c4F0009aC726dd310Bd76d1c755bB",
"2": "0x9188cB1fBd5A9Bb9830174162FB787498A011f6a",
"3": "0x6765a87878A413E0dEDEaAD34fbD8342a4300c56",
"4": "0x9D8e38b52F08FD7b0fc5C04460CdFC3AC30ce7bf",
"5": "0x7AE87cf24Fb5096182a969a1Ad45D0c54410d1Ca",
"6": "0xF695A9661A3b909ffb15F97556bAb286b19520E7",
"7": "0x4e8Da8e21d27A10BA7d2510cB90338374828bE86",
"8": "0xEBA383290b314d1Dcf5957f48141655cFbA45342",
"9": "0xDed9f3474fe5f075Ed7953f36a493928b1BD9f31",
"10": "0x1AC5109C77287542B215C3Db6a93d8AA1B5A9465",
"11": "0xEf996437EB2DC6C7a721B1743daEdfCB311AE2b6",
"12": "0x45Ce20214BE68DE910cB1b8995a8f35C07147D61",
"13": "0x403fd9c5c69D3A6E8c02fD813Fc33af060B642E3",
"14": "0xC0aB043d0585e15a9357304125CB674CF7623B6c",
"15": "0xe56c9FE4D628B4E67aBDf7fF549D15C43E77FaFd",
"16": "0x378C0ec21FC234e8Dc7059EC2664651257Da14D6",
"17": "0xB0117353e1c5B0E4A7CC2F6590077c6073Fc0a4c",
"18": "0x4d68Bf3268F19D3753b158B28A8Bb3c9bc35C7C5",
"19": "0xF2531fF8b7eC8886CE5B48B05ab7894d25ff4Bf8",
"20": "0x047cd536863CB01e29Cd1d094B5377984577773c",
"21": "0xA1f4831cBcB0A2C321c4656EE85fD87b2de12035",
"22": "0xE6a6Fd0db343c61Fd0a60456947F19276364afD4",
"23": "0x0F507c0047C4699bfD7890bb3CBcb2353de7F60B",
"24": "0x5ef1FFD3b864FEe330EB6f28A55f333D68C4cc16",
"25": "0xC0327531E3Be9A60566509d790aC89e99bd302C8",
"26": "0xAd703241B7118b688E3a8D389036f8495224BE68",
"27": "0xC5e91F614a5D8b2bcBB062Dca27857EF32288ad5",
"28": "0x199E2090f6751B542861df7fCA58cB9144aF01eD",
"29": "0x1bFb120Ac1361ece092FC64BD8ECdb3244463071",
"ethernaut": "0xB877915d8Ba049e7cAFc1525F85CEc322A362767",
"implementation": "0x86C8eC9b2bE1600571183eE157C7eb3B96a5c3FF",
"proxyAdmin": "0x8f3189256cb686D0aCD642bAa3982Fda156fB01D",
"proxyStats": "0xe0E376F3a06B2DE6f58CD514F2dC9eb587F8a6f4"
}