| Crates.io | cargo-unc |
| lib.rs | cargo-unc |
| version | 0.8.1 |
| created_at | 2024-03-07 04:08:41.652887+00 |
| updated_at | 2024-05-30 07:18:48.324613+00 |
| description | Cargo extension for building Rust smart contracts on UNC |
| homepage | |
| repository | https://github.com/utnet-org/cargo-unc |
| max_upload_size | |
| id | 1165545 |
| size | 263,486 |
Release notes and unreleased changes can be found in the CHANGELOG
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/utnet-org/cargo-unc/releases/latest/download/cargo-unc-installer.sh | sh
irm https://github.com/utnet-org/cargo-unc/releases/latest/download/cargo-unc-installer.ps1 | iex
npm install cargo-unc
cargo install cargo-unc
or, install the most recent version from git repository:
$ git clone https://github.com/utnet-org/cargo-unc
$ cargo install --path cargo-unc
See cargo unc --help for a complete list of available commands or run cargo unc to dive into interactive mode. Help is also available for each individual command with a --help flag, e.g. cargo unc build --help.
cargo unc
Starts interactive mode that will allow to explore all the available commands.
cargo unc build
Builds a UNC smart contract along with its ABI (while in the directory containing contract's Cargo.toml).
You can also make this command embed ABI into your WASM artifact by adding --embed-abi parameter. Once deployed, this will allow you to call a view function __contract_abi to retrieve a ZST-compressed ABI.
cargo unc abi
Generates UNC smart contract's ABI (while in the directory containing contract's Cargo.toml).
cargo unc create-dev-account
Guides you through creation of a new UNC account on testnet.
cargo unc deploy
Builds the smart contract (equivalent to cargo unc build) and guides you to deploy it to the blockchain.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.
Licensed under either of
at your option.