0.0.5 • Published 3 years ago

ton-compiler-groz v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

The TON func smart-contract compiler

npm i ton-compiler-groz

Required

git clone --recurse-submodules https://github.com/ton-blockchain/ton.git

###Install Fift and FunC

Example compile

const compiler = new TonCompiler({
  smartcontLibs: ['<ton directory>/crypto/smartcont/stdlib.fc'],
  fiftLib: '<ton directory>/crypto/fift/lib',
  fift: '/usr/bin/fift',
  func: '/usr/bin/func',
  tmpDir: '/tmp'
})
await compiler.getCell('..code func')
// or
await compiler.compileCell(['contract.fc'], './contract.cell')

Documentation

Tests

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago