Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ton-compiler

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ton-compiler

TON compiler binaries

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

TON COMPILER

Version npm

Packaged Func compiler for TON smart contracts.

BETA: right now works only on MacOS

Features

  • 🚀 Doesn't need to install and compile TON
  • 🍰 Programmatic and CLI interfaces
  • 💸 Ready to use in unit-testing

Install

yarn add ton-compiler

How to use

This packages adds multiple binaries: func, fift and ton-compiler.

  • Fift compiler already have stdlib included
  • Func compiler need stdlib to be provided, you can use bundled-in: ./node_modules/ton-compioler/funclib/stdblib.fc
  • Ton Compiler is a wrapper around them to be able to compile everything in one go

Console Use

# Compile to binary form (for contract creation)
ton-compiler --input ./wallet.fc --output ./wallet.cell

# Compile to fift (useful for debuging)
ton-compiler --input ./wallet.fc --output ./wallet.fif --fift

Programmatic use

import { compileFunc } from "ton-compiler";
let compiled = await compileFunc("source code");
console.log(compiled.fift); // Compiled Fift assembler
console.log(compiled.cell.toString('hex')); // Compiled cell

License

MIT

FAQs

Package last updated on 18 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc