The goal of the validator voting is to give delegators a simple way to directly stake and remove stake to their validator. This also provides a Supabase database that tracks the delegators wallet and their allocation of weights across subnets so that the Validator can make a conscious decision on their weights based off of the delegators voice. This is designed as a template for validators to take and create their own branded voting applications, however pull requests are always encouraged.
Below are steps to create a Supabase connection string:
- Either create an account or log in to Supabase
- You might be asked to create an organization. In which case, choose the options best suited for your use case.
- Once completed, create a new project with a secure password and location of your choosing. Save your password, you will need it later. Your project will then take a few minutes to be provisioned.
- Once the project has been created, click on the green Connect button near the top right of the screen
- A modal should open up. Click on connection string and URI.
- Copy the connection string shown and insert your password
Fill in DATABASE_URL
to your connection string you copied from Supabase with your saved password.
Fill in NEXT_PUBLIC_VALIDATOR_NAME
with your name as a Validator.
Fill in NEXT_PUBLIC_VALIDATOR_ADDRESS
with your SS58 Address.
Fill in NEXT_PUBLIC_VALIDATOR_EXTENSION_ID
with the extension that you wish Polkadot to show to your users as the application asking for access.
Install bun, then run
bun db:push
This initializes the database schema.
We highly recommend testing your application before deploying it.
Replace NEXT_PUBLIC_VALIDATOR_ADDRESS
with a Testnet Validator address.
Run
bun i
to install the project dependencies, then run
bun dev
This builds your development application. Navigate to http://localhost:3000 and test your application with a Testnet wallet.
Create a vercel account and hookup your github to it. Add a new project and import your forked github repo and paste in your .env file
Your application should now be operational. Make sure you test everything yourself before advertising it.
Manifold welcomes all PR's for the betterment of the subnet and Bittensor as a whole. We are striving for improvement at every interval and believe through open communication and sharing of ideas will success be attainable.