Governance in a decentralized world plays a big role in defining the roadmaps as well as the direction of the protocol. Big whales with big voting power can incluence the future of the protocol which might not be favorable for small token holder. We combine the power of NFT to voting by giving small stakeholder voters weighted advantage. Small token holders who vote consistently in the winning proposal will be able to unlock new categories of NFTs giving them more voting power. This will give small token holders a chance to compete with big whales in the governance process. ✅
We're live on alfazero.vercel.app! 🎉
- Run
cd appto change to the frontend subdirectory. The following commands must be run from there. - Go to https://generate-secret.vercel.app/32 and copy the secret.
- Create
.env.local(inapp!) with the following contents:
GITHUB_ID=XXXXXXXXXX
GITHUB_SECRET=XXXXXXXXXX
TWITTER_CLIENT_ID=XXXXXXXXXX
TWITTER_CLIENT_SECRET=XXXXXXXXXX
SECRET=XXXXXXXXXX
NEXTAUTH_URL=http://localhost:3000 # Change the URL on production!
(Replace each XXXXXXXXXX with a valid value.)
- Run
npm installto install the dependencies. - Run
npm run devto start the application locally. - Go to http://localhost:3000/ to see the app.
P.S. You can deploy the app to Vercel for free by following the instructions here. (Remember to set the environment variables.)
- Install Rust.
- Install Solana.
- Install Anchor.
cd programto change to the program subdirectory. All the following commands must be run from there!npm ci && npm ci -Dto install the exact versions of the dependencies.solana-keygen new --force --outfile wallet.json --no-bip39-passphraseanchor buildsolana airdrop 2 wallet.json(repeat at least 3 times)anchor deploy- Replace the old program ID (
3mAW7AVHr7TRvYkmeXKdTsDCYjdnJ2t4TpFeXPb57BRu) inAnchor.tomlandlib.rs. anchor testnode printPrivKey.js- Import the private key in Phantom and switch to Devnet. The NFT should be there.