Nahmii 2.0 L2 deposit example
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.
How to run the project
Open a command line terminal.
Clone the repository.
cd
to the cloned project folder.Fetch and switch to the 'example' branch.
cd
to the example folder of your choice eg.cd l2-deposit-example
.Run
yarn
oryarn install
to install the dependencies.Update the .env file with a private key and verify the address of the address manager contract. The account whose address is provided should contain Ropsten Ether.
Run
yarn demo
to execute the scripts to interact with the Nahmii L1 and L2.
Configuration
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.
Last updated