Aspect Tool
Aspect Tool is a development tool built in AssemblyScript, designed to assist developers in seamlessly managing Aspect development. The tool offers functionality to create Aspect development scaffolding and seamlessly integrates with the Artela Blockchain. Developers can leverage Aspect Tool for tasks such as compiling, testing, and deploying smart contracts and WebAssembly, enhancing efficiency in blockchain development. This tool published in the npm repository.
Requirements
- Node.js version 18.0 or above (which can be checked by running node -v). You can use nvm for managing multiple Node versions on a single machine installed. When installing Node.js, you are recommended to check all checkboxes related to dependencies.
- Confirm that Node.js has been installed correctly by running
node --version
Assemblyscript is a programming language built on the foundation of TypeScript, designed specifically for WebAssembly (Wasm).
sloc Installing the Solidity Compiler.
Install
npm install @artela/aspect-tool
Commands
This tool contains two commands:
- Init a aspect project in a directory.
USAGE
$
aspect - tool
init [-d < value >]
FLAGS
- d, --dir = <value> [default: The current folder directory]
- Generate state tracing code for Aspect.
USAGE
$
aspect - tool
generate [-i < value >] [-o < value >]
FLAGS
- i, -- in = <value>
-o, --out=
<value>
Tool Guide
- Init project
- Configuration
- Create a account
- Build contract
- Deploy contract
- Build Aspect
- Deploy Aspect
- Contract bind Aspect
- Contract unbind Aspect
- Contract call
- Send transaction
- Operation Call/Send
- Get bound Accounts
- Get bound Aspects
Advanced
Versions
The Version in the subgraph manifest specifies release notes.
Version | Release notes |
---|---|
0.0.57 | Add unbind、operation、get bound aspect、get bound accounts Commands. |
0.0.56 | The first beta is available. |