DAC (Decentralized Autonomous Consortium) Voting System
- camino-suite
- depends on
- camino-wallet
- camino-block-explorer
- depends on
- caminojs (
addDACTx
branch)
- Modify (refer to the PR #180) and start the
camino-suite
, and start the apps it depends on, i.e.,- Start the
camino-wallet
- Start the
camino-block-explorer
- Start the
- Update the submodule from remote
git submodule update --init --remote
- enter into the submodule folder
caminojs
and check if locates at commitad7f3a7f
- install the dependencies and build
caminojs
,yarn && yarn build
- and check the
dist
folder has been created under thencaminojs
- ** if the dac TXs implementation have been merged and released into
caminojs
, we don't need the submodule, just installcaminojs
into the dependency as so far
- Install the dependencies
pnpm i
or useyarn
- Start the voting app
pnpm start
oryarn start
- Theme:
light
mode has not been fully tested - Dockerfile: need to be created
- camino-suite: merge or modify the PR #185 to add DAC app
- camino-suite-voting (this repo): make sure the included submodule
caminojs
referencing to theaddDACTx
branch ofcaminojs
- Implement the new proposal type in
caminojs
(addDACTx branch), can reference to thesrc/apis/platformvm/addproposaltx/addmemberproposal.ts
to extends the abstract class,EssentialProposal
, and implement the necessary methodssrc/apis/platformvm/constants.ts
to add the ID of the new proposal type
- Most of UI components have a draft according to the previous design in Figma, like General Proposal and Fee Distribution, can check under the folders,
pages/proposal/active
,pages/proposal/completed
, andpages/proposal/create
- Add or modify the configuration to enable the proposal type in
routes/loaders.tsx
according to the value ofProposalTypes
enum - Update the
useAddProposal
hook in thesrc/hooks/useProposals.ts
to add the new proposal type ID (sync with backend) with the extra parameters according to the caminojs API