This is a very simple onboarder app to manage distribution of a social/governance token through staking of a chains native token.
It uses a onboarding Shaman to streamline the process of staking into a shared treasury in return for DAO tokens.
Shamans are made to interface with the Moloch DAO framework and in this case issues Loot tokens.
npx degit HausDAO/dao-app-starter-vite my-daohaus-app
cd my-daohaus-app
git init
yarn
git clone [email protected]:HausDAO/moloch-v3-vite-starter.git
git remote remove origin
cd dh-moloch-v3-vite-starter
yarn
git clone https://github.com/HausDAO/dh-v3-vite-starter.git
git remote remove origin
cd dh-v3-vite-starter
yarn
cp .env.sample .env
VITE_RIVET_KEY
Summon a DAO
Add your DAO's data to the property and values of the object
yarn dev
- Sets up the
react-query
provider@daohaus/moloch-v3-hooks
will use - Sets up
DHConnectProvider
- that handles the Wallet Connect functionality - Sets up
HausThemeProvider
- that provides the styling theme to the app - Adds the router to the app
- Parent component wrapping all routes/pages
- Sets up
DHLayout
which adds the connect button and navigation to the app- You can update the navigation in
navLinks
- You can update the navigation in
- Sets up
TXBuilder
which enables easy transaction creation
These values are used in most hooks and components and you have some options:
Get them from targetDao.ts
const daoChain = TARGETS.CHAIN_ID;
const daoId = TARGETS.DAO_ADDRESS;
- DAO Toolbox docs
- HausDAO monorepo libs
- monorepo admin/admin-new