Skip to content

ston-fi/jvp-core

Repository files navigation

Jetton voting platform

TON License

Core contracts for the a jetton voting platform. In-depth architecture doc can be found here.

Installation

The following assumes the use of node@>=18

yarn install

Compile contracts

yarn blueprint build --all

Run tests

yarn test

Live blockchain

The user must create an .env file from .env.example and deploy.config.json file from deploy.config.example.json

Deploy

yarn blueprint run --mainnet --mnemonic deployRegister

Add yourself to voter list

Add your wallet address to the list of voters

yarn blueprint run --mainnet --mnemonic addMyself

Send vote

Send positive votes:

yarn blueprint run --mainnet --mnemonic castPosVotes

Send negative votes:

yarn blueprint run --mainnet --mnemonic castPNegVotes

Get methods

Call get method to data on register:

yarn blueprint run --mainnet --mnemonic getRegisterData

Call get method to check data on vote storage:

yarn blueprint run --mainnet --mnemonic getStorageData

Call get method to check data on vote status:

yarn blueprint run --mainnet --mnemonic getStatusData

Licensing

MIT

About

Core contracts for jetton voting platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages