We want to develop hooks in AssemblyScript (not C).
What it does
This lib provides definitions for the XRPL Hooks API to be pulled into a new AssemblyScript project.
How we built it
We used the examples that Richard Holland provided in C and recreated them in AS with exports.
Challenges we ran into
Translating usage of these from C to AS is a challenge.
Accomplishments that we're proud of
We are proud of the work we put into this in order to go from zero knowledge of XRPL hooks and zero AssemblyScript knowledge to a working "Hello World" app.
The lib we've created provides a full set of functions for Hooks made available from the XRPL.
What we learned
We learned about the environment the XRPL provides to WASM apps. How to build and deploy WASM apps to the XRPL.
We also learned more about reading the XRPL logs.
What's next for XRPL Hook lib for AssemblyScript
We are going to keep working at it to map functionality we see in the C examples to AS. We have deployed a lib to npm.
Assuming others have not come up with a "better" way to do this we plan on building some content around how to use the lib.