Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Local Setup

This Directory contains a Docker-based setup to run your own Wasp development setup.

Usage

Starting

Run docker-compose pull to fetch the dependencies.

Create dedicated volumes:

docker volume create --name hornet-nest-db
docker volume create --name wasp-db

Run docker-compose up -d to start the setup.

After startup, you should be able to see the wasp dashboard on: http://localhost/wasp/dashboard/

Stopping/Resuming

You can stop execution with docker-compose down.

Removing data

After docker compose down:

 docker volume rm wasp-db hornet-nest-db

You'll need to re-create the volumes to spin the setup up again.

Ports

The nodes will then be reachable under these ports:

Wasp-cli setup

Download the wasp cli from the releases page

To configure a new wasp-cli you can use the following commands:

wasp-cli init
wasp-cli set l1.apiaddress http://localhost:14265
wasp-cli set l1.faucetaddress http://localhost:8091
wasp-cli wasp add 0 http://localhost:9090

To create a chain:

wasp-cli request-funds
wasp-cli chain deploy --chain=testchain

After a chain has been created, the EVM JSON-RPC can be accessed via:

http://localhost:9090/chain/<CHAIN ID (tst1...)>/evm/jsonrpc
ChainID: 1074

Re-build (wasp-devs only)

If you made changes to the Wasp code and want to use it inside the setup, you can re-build the Wasp image using build_container.sh or build_container.cmd.