Quick start developing with TIP-3

This page helps you to instantly start developing with TIP-3 and deploy your own token here and now. Read next guides, if you want to go deeper.

Source code

You can inspect the source code of TIP-3 token implementation by link.

How to deploy your own token

You need to have an installed Smart Contract Development Environment. If you haven't already, follow this tutorial.

Initialize your token project

npx locklift init --path my-first-token
> [INFO]  New Locklift project initialized in .
> [INFO]  Installing required dependencies...
> [INFO]  
> added 181 packages, and audited 182 packages in 13s

> 23 packages are looking for funding
>   run `npm fund` for details

> found 0 vulnerabilities

> [INFO]  LockLift initialized in my-first-token happy hacking!

Install dependencies

Add TIP-3 implementation repository as a devDependencies in corresponding section of package.json file

Specify installed contracts to external contracts section of locklift config, by providing path to contracts artifacts (.abi.json files, .tvc files etc., most commonly placed in a build folder of smart contracts projects) and contract names array.

Now we can compile our contracts and make sure that artifacts were created

Let's move to deploy action. Firstly, we make a new deploy script in scripts directory for TokenRoot contract.

Finally, we can deploy a new token to local network. For this, make sure local node is running, if not follow the next command

and run the deploy script

Congratulations, your first token on the Venom network has been deployed!

Last updated