Think & Dev & Metis Workshop.
-
MetisSBT.sol: SBT token to allow voting and register votes in MetisVote contract
-
Voting.sol: Voting contract with only MetisSBTs.
- yarn
- Node js v18
- Typescript
- Hardhat
- Install:
cd contracts && yarn
- Compile contracts:
yarn compile
- Deploy locally:
yarn deploy
- Deploy to metis testnet: For this step you would need to provide your MNEMONIC inside .envrc file
export MNEMONIC='YOUR MNEMONIC'
direnv allow .envrc
And then run:
yarn deploy:network metis
- Run Test:
yarn test
- Run coverage:
yarn coverage
- Generate abis:
yarn abis
yarn size
- Set MetisVote contrat in MetisSBT
npx hardhat set-metis-vote --address <metis-vote-address> --network metis
- Set default token uri
npx hardhat set-default-token-uri --uri <uri> --network metis
- Lazy mint batch
npx hardhat lazy-mint-batch --quantity -<quantity> --network metis
-- Create Election
npx hardhat create-election --position <position> --start-time <startTime> --end-time <endTime> --network metis
-- Election Info
npx hardhat election-info --election-id <electionId> --network metis
-- Set new start time election
npx hardhat set-new-start-time --election-id <electionId> --new-start-time <newStartTime> --network metis
-- Set new end time election
npx hardhat set-new-end-time --election-id <electionId> --new-end-time <newEndTime> --network metis
-- Add candidate
npx hardhat add-candidate --election-id <electionId> --party <party> --person <person> --network metis
- yarn
- Next js
- Tailwind css
- Run dev
yarn dev
- Run build
yarn build
- Run linter
yarn lint
-
Alejo Lovallo
-
Ayrton Fabian Paredes Rodas