Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.
/ cli Public archive

CLI to build, test, and deploy NEAR smart contracts

License

Notifications You must be signed in to change notification settings

AhaLabs/cli

Repository files navigation

DEPRECATED:

Moved here: https://github.com/raendev/raen

Build tool for NEAR smart contracts

Currently supports Rust Contracts.

npm install -g @ahalabs/cli@ahalabs/cli

Setup

Get pinata account and add your API key to ENV

export PINATA_API_KEY=""
export PINATA_API_SECRET=""

rust installation

rustup

rustup target add wasm32-unknown-unknown

Commands

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.