0.1.1 • Published 3 years ago
@ahalabs/cli v0.1.1
Build tool for NEAR smart contracts
Currently supports Rust Contracts.
npm install -g @ahalabs/cli@ahalabs/cliSetup
Get pinata account and add your API key to ENV
export PINATA_API_KEY=""
export PINATA_API_SECRET=""rust installation
rustup target add wasm32-unknown-unknownCommands
build
'build' compiles a workspace of contracts and generates wit, ts, and json. The json is then pinned to IPFS using Pinata. The resulting IPFS content address is written to a custom section in each contract binary.
Currently we use the json name for the custom section.