Regen network UI for Cosmos groups module
yarn install
cp .env.local.example .env.local
and set any missing variablesyarn dev
to run the repoyarn storybook
to see component examplesmake install-local-ledger
- this will install the regen ledger binary to local-ledger/regen
in order to be used by other makefile commands. Note: this will wipe any existing local regen ledger data
Run the following in order for initial project setup, then re-run to wipe local ledger data
make local-clean
- wipe prior local ledger datamake local-init
- set up local ledger, user wallets / accounts, seed fundsmake local-start
- run local nodemake bank-send
- send funds to the wallet address listed belowYou'll need to import generated wallet info into Keplr in order to test features:
(from USER
in the makefile)
high return silly coyote skin trumpet stock bicycle enjoy common exact sure
If you're using VSCode, it's recommended you install the eslint + prettier extensions and copy over the suggested workspace settings:
cp .vscode/settings.suggested.json .vscode/settings.json
This project is organized by Atomic Design principals for UI components:
📦src
┣ 📂components
┃ ┣ 📂atoms - elements which can't be reduced to something simpler
┃ ┃ ┗ 📜index.ts
┃ ┣ 📂molecules - collection of atoms
┃ ┣ 📂organisms - more complex elements made up of atoms, molecules, and (sometimes) other organisms
┃ ┗ 📂templates - viewport positioning and layout
┗ 📂pages - implementations of templates
Some relevant notes / Highlights:
Atom
should not have margin
set on the outer element - instead, it would be set by its parent componentAtoms
have index.ts
barrel files for convenience (ie import { Box, Button } from '@/atoms'
), butMolecules
, Organisms
, Templates
, and Pages
do not. This is to avoid circular imports which can impact code splittingLedger calls & typescript types are generated using telescope, and reside in another package
camel_case
- this means the types used in this project won't work on RPC clients (relevant cosmos-sdk issue)UI
(e.g. the UIGroup
type represnts a sdk ChainInfo
with typed metadata
which the UI creates)yarn lint
- format with Prettier, fix linting errors