XRPLF / xrpl-hooks-ide

XRPL Hooks Builder - Add smart contract functionality to the XRP Ledger
https://hooks-builder.xrpl.org
17 stars 5 forks source link

Bundle patched `xrpl-accountlib` and expose through require syntax. #282

Closed muzam1l closed 1 year ago

muzam1l commented 1 year ago

Instead of importing xrpl-accountlib from esm.sh, use require

const lib = require("xrpl-accountlib");

Its bundled dependencies are also exposed viz: ripple-binary-codec, ripple-keypairs, ripple-address-codec and ripple-secret-codec.

ripple-binary-codec is the actual patched library, anything that depends on that and bundles that is also therefore patched.

Rest of libraries shall be imported from esm.sh only.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
xrpl-hooks-ide ✅ Ready (Inspect) Visit Preview Feb 9, 2023 at 10:17AM (UTC)
muzam1l commented 1 year ago

Fixes js scripts in #281.

Templates are not updated yet, so make the change manually.