Smart Contracts

Phantasma supports VM smart contracts. In the current toolchain, contracts are authored in TOMB source files and compiled with pha-tomb.

Smart-contract workflows fall into two broad groups:

  • standalone custom contracts

  • token-backed contracts bound to an uppercase token symbol

TOMB Compilerchevron-right

Deployment flows

  • standalone lowercase custom contract -> deploy with contract deploy

  • new uppercase token-backed contract -> create with --create-token

  • existing token + new VM code -> contract attach

  • later contract code update -> contract upgrade

For the current deployment tooling:

pha-deploychevron-right

For the deployment flow overview:

How to Deploychevron-right

Last updated