Skip to content

Latest commit

 

History

History
82 lines (52 loc) · 1.41 KB

README.md

File metadata and controls

82 lines (52 loc) · 1.41 KB

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