TOMB Compiler
TOMB Compiler

Description
The current Phantasma smart-contract compiler is pha-tomb.
Use it to compile .tomb source files into:
.pvmVM bytecode.abiinterface metadata- optional debug and assembly artifacts
pha-tomb targets the current Phantasma VM and is the compiler used by the current contract lifecycle tooling.
What you can build
- standalone custom VM contracts
- token-backed contracts
- NFT submodules inside token modules
- transaction scripts
- ABI-bearing modules for deployment and tooling
Deployment model
Compiling a contract is only the first step. After compilation, deployment depends on what you are trying to create:
- standalone custom contract -> deploy with
contract deploy - new token-backed contract -> create with
--create-token - existing token + new VM code -> attach with
contract attach - later code update ->
contract upgrade
For the current deployment tooling, see:
Quick Start
Start with the quick start when creating your first smart contract:
API Reference
Dive deeper into the language surface and standard libraries: