Skip to content

Latest commit

 

History

History

mojos-webapp

@mojos/webapp

This package contains the source for the mojos webapp at mojos.wtf.

Quickstart

From the base of the mojos-monorepo

In the first shell:

# Install all dependencies and build contract artifacts
yarn
# Switch to mojos-contracts
cd packages/mojos-contracts
# Start local simnet
yarn task:run-local

In the second shell:

# Switch to mojos-webapp
cd packages/mojos-webapp
# Copy local example environment file
cp .env.example.local .env
# Start local development
yarn start

MetaMask

Interact with the local simnet by importing the following private key into MetaMask. Do not use this private key anywhere else

Private Key:
0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

Then add an RPC provider to MetaMask to point to your local simnet.

  1. Navigate to settings

  2. Select Networks

  3. Click Add Network

  4. Enter the following:

     Network Name: Hardhat
     New RPC URL: http://localhost:8545
     Chain ID: 31337
    

Select the network and connect to your local mojos webapp to interact with simnet