0.0.8 • Published 1 year ago

@ton-a-z/nx-ton v0.0.8

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

@ton-a-z/nx-ton

Nx plugin for generating, building, testing and deploying func smart contracts.

Installation

Before installing the plugin, ensure func and fift binaries are available in $PATH. Refer to Official Installation Guide for installing binaries.

For yarn

yarn add -D @ton-a-z/nx-ton

for npm

npm i --save-dev @ton-a-z/nx-ton

Generators

Library

Run nx generate @ton-a-z/nx-ton:library mylib to generate the library with func smart contracts

Executors

Build

Run nx build mylib to compile func -> fift -> json containing BoC

Test

Run nx test mylib run test files

Deploy

Run nx deploy mylib run test files

ParamEquivalent ENV VariableDescriptionDefault Value
isTestnetTON_A_Z_DEPLOY_TESTNETSpecifies which network to use for deploymenttrue
workchainTON_A_Z_DEPLOY_WORKCHAINSpecifies which workchain to use for deployment0
deployMnemonicTON_A_Z_DEPLOY_MNEMONICSpecifies which mnemonic to use for deploymentgenerated if not passed

NOTE: env variables override params passed form project.json, this was done to simplify deployment through CI/CD

NOTE: don't pass deployMnemonic in project.json for mainnet deployment, rather use TON_A_Z_DEPLOY_MNEMONIC