Crates.io | hookpoint-cli |
lib.rs | hookpoint-cli |
version | 0.1.0 |
source | src |
created_at | 2023-08-13 15:45:29.192889 |
updated_at | 2023-08-13 15:45:29.192889 |
description | Hookpoint CLI - A CLI for the Hookpoint Pallet |
homepage | https://github.com/deep-ink-ventures/hookpoints-cli |
repository | https://github.com/deep-ink-ventures/hookpoints-cli |
max_upload_size | |
id | 943400 |
size | 119,360 |
The Hookpoint 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
.hookpoint
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] hookpoint-cli
# Navigate to the directory
cd hookpoint-cli
# Build the project
cargo build --release
## Usage
Configure hookpoints interactively:
```shell
./hookpoint-cli configure --substrate-dir [YOUR_SUBSTRATE_DIRECTORY]
This will create a hookpoint.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.Of course, here's the markdown from the "Documentation" section onwards:
Dive deeper into the functionalities and modules by exploring the inline documentation available in each source file.
Contributions are warmly welcomed! Check out CONTRIBUTING.md for guidelines on how to get involved.
Licensed under the Apache 2.0 License - see the LICENSE file for more details.