XRPL-Labs / hookscript

Working repo for development of Hook Script -- a subset of typescript designed for writing hooks
Apache License 2.0
11 stars 3 forks source link

HookScript #14

Open elmurci opened 1 year ago

elmurci commented 1 year ago

The Hookscript link in the Readme is broken.

How could I find out more about util functions and types? Also, seems like, as of now, only Payments and AccountDelete are supported by the emit function?

Thanks!

vbar commented 1 year ago

Well, the link isn't so much broken as private - HookScript isn't ready to be public yet... But as for the emit, if you use a newer version of our assemblyscript fork (e.g. today's v0.0.0-alpha.1679386866), you should be able to emit all transactions, by specifying transactionType in the emit argument, e.g.

emit({
        transactionType: TransactionType.AccountSet,
...

Looking forward to see some usage... :-)