Crate hooks_rs

Source
Expand description

This crate allows you to write XRPL hooks in Rust.

Warning: this is a pre-alpha version of the library. It is not recommended to use it in production yet and many things are subject to change or simply not implemented yet.

hooks-rs provides a few things for the hook builders:

  1. Abstraction over the XRPL Hooks C API
  2. A set of pre-built transaction builders, like XrpPaymentBuilder
  3. Utility methods to make working with hooks easier, such as max_iter or ComparableArray.

Re-exports§

pub use api::*;
pub use transaction::*;
pub use utils::*;

Modules§

api
XRPL Hooks API that abstracts the usage of external C API
c
Internal C bindings. Unless if you are creating something very low-level, you should not need to use this module directly.
transaction
Transaction builders. It is a lot of manual work to build an XRPL transaction. This module provides a few pre-built transaction builders as well as a generic buffer and builder that can be used to build any transaction.
utils
Utility methods to make working with hooks easier