The scripts in this example folder show how developers can interact with the Nahmii 2.0 L1 and L2. It shows how to get access to the AddressManager, retrieve addresses from some of our L1 deployed contracts and how to deposit Ethereum from L1 into L2. The files for this example can be found here.
A L1 wallet with Ropsten Ether.
How to run the project
Open a command line terminal.
Run yarn to install all the dependencies.
Update the .env file with a private key. The main address should contain Ropsten Ether.
Run yarn demo to execute the scripts to interact with the Nahmii L1 and L2.
These demo tests by default are connecting the live service instances of Nahmii 2.0. To run these tests against a local instance, please refer to the environment variables defined in the ./native-eth/utils.js file.