Crates.io | hookpoints-cli |
lib.rs | hookpoints-cli |
version | 1.0.0 |
source | src |
created_at | 2023-08-15 06:56:10.263455 |
updated_at | 2023-08-15 14:27:55.235599 |
description | Hookpoints CLI - A CLI for the Hookpoints Pallet |
homepage | https://github.com/deep-ink-ventures/hookpoints-cli |
repository | https://github.com/deep-ink-ventures/hookpoints-cli |
max_upload_size | |
id | 944772 |
size | 127,900 |
Note: This CLI tool is an add-on to pallet-hookpoints. Dive deeper at pallet-hookpoints.
The Hookpoints CLI is a powerful tool designed to streamline the integration of hook points in Substrate and ink! smart contracts. With this CLI, developers can effortlessly bridge the gap between blockchain runtime and smart contract development, ensuring a cohesive and efficient workflow.
hookpoints.json
.hookpoints
pallet. Integrate the pallet into your Substrate node to unlock the full potential of the CLI.pallet_contracts
: Built on top of the robust pallet_contracts
pallet from Parity.# Clone the repository
git clone [repository_url] hookpoints-cli
# Navigate to the directory
cd hookpoints-cli
# Build the project
cargo build --release
## Usage
Configure hookpoints interactively:
```shell
./hookpoint-cli configure --substrate-dir [YOUR_SUBSTRATE_DIRECTORY]
This will create a hookpoints.json
with all the definitions of your hookpoints.
You don't have to give your substrate dir if it's the current directory!
Generate hooks:
./hookpoint-cli generate --substrate-dir [YOUR_SUBSTRATE_DIRECTORY]
This will generate three folders under ./contracts/hooks
:
hooks.rs
with simple functions to call from within substrate. No bytes-wrestling, no decoding/encoding, no interaction with ink/substrate wiring. It just works.Licensed under the Apache 2.0 License - see the LICENSE file for more details.