Getting Started¶
Requirements¶
The contracts are written in FunC and built, tested and deployed with TON Blueprint and the @ton/core, @ton/ton and @ton/sandbox JavaScript libraries, so you need Node.js and npm on your machine:
- Node.js v18. The repository pins
v18.19.0in its.nvmrcfile. - npm, to install dependencies.
To check both are installed:
Installation and setup¶
- Clone the
tokentable-tvmrepository. - Run
npm iunder Node.jsv18.19.0. - To run the deployment and admin scripts, copy
.env.templateto.envand fill inWALLET_MNEMONIC,WALLET_VERSION(for examplev4),ADMIN_ADDRESSandTOKEN_DISTRIBUTOR_ADDRESS. - Build the contracts with
npx blueprint build(ornpm run buildto build all of them) and run the tests withnpm test. - Run a script from
scripts/, such asdeployMerkleTokenDistributor, withnpx blueprint run.