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

@chikai-io/nbi-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chikai-io/nbi-cli

## Generating the AST for a Near Contract

  • 1.0.4
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 13 Oct 2021

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