1.0.4 • Published 3 years ago

@chikai-io/nbi-cli v1.0.4

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

NBI CLI

Generating the AST for a Near Contract

generate artifacts folder

mkdir -p ./artifacts/
rm -rf ./artifacts/*.json

rustc

rustc -Z ast-json ./contract.rs > ./artifacts/contract.json

This command generates contract.json inside the artifacts folder

cargo

cargo rustc -p <package> --target wasm32-unknown-unknown --release -- -Z ast-json >artifacts/<package>.json

This command generates package.json inside the artifacts folder

Create NBI with the CLI

npx @chikai-io/nbi-cli ./artifacts/<contract|package>.json

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago