You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Issue is raised to add a support for a new network. To raise a PR for this issue, please follow the steps mentioned below.
Before you submit this issue
Make sure you have done the following transactions -
Deployment of the following core contracts:
Ethernaut.sol
Statistics.sol
ProxyAdmin.sol
ProxyStats.sol
ProxyStats.sol has been set in Ethernaut.sol by calling setStatistics().
All the levels' contracts:
Have been deployed.
Are registered in the Ethernaut.sol by calling registerLevel().
Make sure that the following checks are passing.
ethernaut.address in the console returns a valid address.
For all the levels:
You can visit them.
You can create their instances.
instance in the console returns a valid address after creating the instance.
And after all the above checks are passed...
You have transferred the ownership of the Ethernaut.sol contract to the OpenZeppeling account (0x09902A56d04a9446601a0d451E07459dC5aF0820) by running window.transferOwnerShip(0x09902A56d04a9446601a0d451E07459dC5aF0820) in the browser console.
That's it! Now you can submit this issue :D
To raise a Pull Request for this Issue
Take note of the following things before you start. Because you will need them further while preparing the PR.
A short name of the network. For example: goerli-optimism, mumbai-polygon, sepolia, etc.
An ALL_CAPS_NAME for internal code. This is mostly the capitalised form of the above name with hyphens replaced by underscores.
A chain_id of the blockchain on which you have deployed the contracts.
The currencyName of the chain. For example: Optimism-ETH, Mumbai-Matic, Sepolia-ETH, etc.
The currencySymbol of the chain. For example: ETH, MATIC, SEP, etc.
Created a JSON new file in ./client/src/gamedata directory with name deploy.name.json.
Provided the addresses of all the contracts in this file like below, and replaced all the x with their contract addresses in the network(This data can be gotten by running await window.loadContracts() in the browser console).
This Issue is raised to add a support for a new network. To raise a PR for this issue, please follow the steps mentioned below.
Before you submit this issue
Make sure you have done the following transactions -
Ethernaut.solStatistics.solProxyAdmin.solProxyStats.solProxyStats.solhas been set inEthernaut.solby callingsetStatistics().Ethernaut.solby callingregisterLevel().Make sure that the following checks are passing.
ethernaut.addressin the console returns a valid address.instancein the console returns a valid address after creating the instance.And after all the above checks are passed...
Ethernaut.solcontract to the OpenZeppeling account (0x09902A56d04a9446601a0d451E07459dC5aF0820) by runningwindow.transferOwnerShip(0x09902A56d04a9446601a0d451E07459dC5aF0820)in the browser console.That's it! Now you can submit this issue :D
To raise a Pull Request for this Issue
Take note of the following things before you start. Because you will need them further while preparing the PR.
nameof the network. For example: goerli-optimism, mumbai-polygon, sepolia, etc.ALL_CAPS_NAMEfor internal code. This is mostly the capitalised form of the above name with hyphens replaced by underscores.chain_idof the blockchain on which you have deployed the contracts.currencyNameof the chain. For example: Optimism-ETH, Mumbai-Matic, Sepolia-ETH, etc.currencySymbolof the chain. For example: ETH, MATIC, SEP, etc.rpcUrlfor the network. For example: https://eth-goerli.public.blastapi.io, https://matic-mumbai.chainstacklabs.com, https://rpc.sepolia.org, etc.blockExplorerURL of the network. For example: https://goerli.etherscan.io, https://mumbai.polygonscan.com, https://sepolia.etherscan.io, etc.Ethernaut.solStatistics.solProxyAdmin.solProxyStats.sollevelin the console. NOTinstance)File edits
Make sure you have followed the below steps:
NETWORKSin ./client/src/constants.js like this:NETWORKS_INGAMEin ./client/src/constants.js like this:ADDRESSESin ./client/src/constants.js like this:export const ACTIVE_NETWORK = NETWORKS.LOCAL;in ./client/src/constants.js like this:deploy.name.json.xwith their contract addresses in the network(This data can be gotten by runningawait window.loadContracts()in the browser console).All looks good now! Please raise the PR :)
Review checklist to check if the issue is resolved
In the corresponding PR:
true.