Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/townPublic

▼ LUX Genesis smart contracts and Web3 interface.

NotificationsYou must be signed in to change notification settings

luxfi/town

Repository files navigation

Pre Requisites

  • Docker

Local Setup

Clone Lux Town

git clone https://github.com/luxdefi/luxtown.git

Install and start your 👷‍ Hardhat chain

  • Make sure to add a mnemonic atpackages/contracts/mnemonic.txt
cd luxtownyarnyarn chain

Start Docker and Local Graph Node

  • The Docker container provides PostgreSQL and IPFS
  • Make sure you Docker engine is running
  • The first command spins up the container
  • The second command builds and starts Graph Node separately
  • The Graph Node connects to PostgreSQL and IPFS
  • This will take a lot of time to build the first time
// On a new tabyarn graphnode:docker// On a new tabyarn graphnode:start

Successful Docker output

Successful Graph Node output

Start the Lux Town Subgraph

// On a new tabyarn subgraph:prepare-localyarn configureyarn workspace @luxdefi/contracts add ts-node@10.3 --devyarn subgraph:start

Successful Subgraph output

Build the SDK and Configure

  • Running configure will mint a small number of NFTs for testing
// On a new tabyarn build:sdkyarn configure

Start the App

yarn dev

[8]ページ先頭

©2009-2025 Movatter.jp