Skip to content

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.0 in its .nvmrc file.
  • npm, to install dependencies.

To check both are installed:

node -v
npm -v

Installation and setup

  1. Clone the tokentable-tvm repository.
  2. Run npm i under Node.js v18.19.0.
  3. To run the deployment and admin scripts, copy .env.template to .env and fill in WALLET_MNEMONIC, WALLET_VERSION (for example v4), ADMIN_ADDRESS and TOKEN_DISTRIBUTOR_ADDRESS.
  4. Build the contracts with npx blueprint build (or npm run build to build all of them) and run the tests with npm test.
  5. Run a script from scripts/, such as deployMerkleTokenDistributor, with npx blueprint run.