⚡️ TributeDAO Framework provides you a set of modular and extensible smart contracts to launch your DAO with minimal costs.
- Infura Ethereum API KEY, you can use the same key you created in the Configuration step of the tutorial.
- Docker Compose install Docker Compose (https://docs.docker.com/compose/install/). This will be used in this tutorial to launch the local instances of snapshot-hub, graph node, and ipfs services.
- MetaMask download and install MetaMask from https://metamask.io/download.html into your browser to access the DAO dApp.
In order to run the dApp we will be using
docker-compose, which will help us to spin up all the services required by the dApp.
First, set the
tribute-ui env vars in the
tribute-contracts/.env file, just append the following content to the bottom of the file if you did not use the sample .env file from previous sections:
# tribute-contracts/.env ######################## Tribute UI env vars ######################## # Configure the UI to use the Rinkeby network for local developmentREACT_APP_DEFAULT_CHAIN_NAME_LOCAL=RINKEBY # It can be the same value you used for the Tribute DAO deployment.REACT_APP_INFURA_PROJECT_ID_DEV=set-your-infura-api-key-here # The address of the Multicall smart contract deployed to the Rinkeby network.# Copy that from the tribute-contracts/build/deployed/contracts-rinkeby-YYYY-MM-DD-HH:mm:ss.jsonREACT_APP_MULTICALL_CONTRACT_ADDRESS=0x... # The address of the DaoRegistry smart contract deployed to the Rinkeby network.# Copy that from the tribute-contracts/build/deployed/contracts-rinkeby-YYYY-MM-DD-HH:mm:ss.jsonREACT_APP_DAO_REGISTRY_CONTRACT_ADDRESS=0x... # Enable Rinkeby network for Tribute UIREACT_APP_ENVIRONMENT=development
Open the file which contains the addresses of all deployed contracts:
Copy the address of
DaoRegistry contract and set it to
REACT_APP_DAO_REGISTRY_CONTRACT_ADDRESS env var.
Next, copy the address of
Multicall contract and set it to
The contracts were deployed and the subgraph configurations were prepared, now it is time to start the services using docker-compose.
tribute-contracts/docker folder, run:
This command will launch the several services that are integrated with Tribute DAO, and are essential to interact with the contracts in the Ethereum Network.
Wait for the following output:
trib-ui | Compiled successfully! trib-ui | trib-ui | You can now view tribute-ui in the browser. trib-ui | trib-ui | Local: http://localhost:3000 trib-ui | On Your Network: http://a.b.c.d:3000 trib-ui | trib-ui | Note that the development build is not optimized. trib-ui | To create a production build, use npm run build. ...
🎉 You have launched your DAO using Tribute DAO framework, and now you can interact with it using the Tribute UI dApp!
Open your browser and access http://localhost:3000.
You should see the Tribute UI onboarding page:
Connect to TributeUI using the same MetaMask account you used to deploy the DAO to Rinkeby, since that address is considered the owner of the DAO you will have access to all features, and will hold 1 unit token (1 share).
In order to add new members to the DAO open the Onboarding page, and click on onboard button to create a new onboarding proposal. Set the new member address and the amount in ETH that the member needs to contribute to join the DAO. Click on Submit, sponsor it, vote yes, and wait for the voting period to end.
Once the voting period is ended you can submit the vote result to the DAO. Then the grace period starts.
The new member will be able to access the proposal page, and click on Process button to join the DAO after the grace period is over.
You can also process the proposal using your member, but you will be paying for the new member contribution.
The Process Proposal routine will move the funds from the sender wallet to the bank, and issue the new DAO shares for the address that is specified in the Onboarding proposal.
If the proposal was successfully processed, you will see it in the Passed section on the Onboarding page.
The the address informed in the proposal is now a DAO member.
👏 Yeah, it was a lengthy tutorial, but you made it. Congrats and welcome to the Tribute DAO community!