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.sol
Statistics.sol
ProxyAdmin.sol
ProxyStats.sol
ProxyStats.sol
has been set inEthernaut.sol
by callingsetStatistics()
.Ethernaut.sol
by callingregisterLevel()
.Make sure that the following checks are passing.
ethernaut.address
in the console returns a valid address.instance
in the console returns a valid address after creating the instance.And after all the above checks are passed...
Ethernaut.sol
contract 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.
name
of the network. For example: goerli-optimism, mumbai-polygon, sepolia, etc.ALL_CAPS_NAME
for internal code. This is mostly the capitalised form of the above name with hyphens replaced by underscores.chain_id
of the blockchain on which you have deployed the contracts.currencyName
of the chain. For example: Optimism-ETH, Mumbai-Matic, Sepolia-ETH, etc.currencySymbol
of the chain. For example: ETH, MATIC, SEP, etc.rpcUrl
for the network. For example: https://eth-goerli.public.blastapi.io, https://matic-mumbai.chainstacklabs.com, https://rpc.sepolia.org, etc.blockExplorer
URL of the network. For example: https://goerli.etherscan.io, https://mumbai.polygonscan.com, https://sepolia.etherscan.io, etc.Ethernaut.sol
Statistics.sol
ProxyAdmin.sol
ProxyStats.sol
level
in the console. NOTinstance
)File edits
Make sure you have followed the below steps:
NETWORKS
in ./client/src/constants.js like this:NETWORKS_INGAME
in ./client/src/constants.js like this:ADDRESSES
in ./client/src/constants.js like this:export const ACTIVE_NETWORK = NETWORKS.LOCAL;
in ./client/src/constants.js like this:deploy.name.json
.x
with 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
.The text was updated successfully, but these errors were encountered: