
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
@transia/hooks-toolkit
Advanced tools
$ npm i -g c2wasm-cli xrpld-cli
Run this command to locally compile an XRPL Hook source file (inside ./contracts) from .c to .wasm code:
$ yarn run build:hooks
Here is what each command does in the background:
wasmcc - compiles a Hook source file (C code) to WebAssembly (WASM) code. For example, ./contracts/base.c compiles to ./build/base.wasmwasm-opt - optimizes the WASM code ./build/base.wasmhook-cleaner - cleans it by removing unnecessary additional exportsguard_checker - this checks if any guard violation has occurred in the Hooks code before submitting it in SetHook transaction. For more information, visit this linkSetHook transactionYou can also build a single hook with;
$ yarn run build:hook contracts/toolbox/keylet_hook_state_dir.c build
tail -f xrpld/debug.log | grep HookTrace
Run Unit tests
$ yarn run test:unit
Before you can run the integration tests you must have a standalone rippled server running.
Full env with explorer:
$ xrpld-cli up:standaloneDocker standalone only:
$ docker run -p 5005:5005 -p 6006:6006 -it gcr.io/thelab-924f3/dangell7-hooksv3d-standalone:latestRun Integration tests
$ yarn run test:integration
Run single Integration test
$ yarn run test:integration test/integration/toolbox/base.test.ts
contracts directory$ yarn run build:hooksbase.test.ts template into the correct folder. (audited/toolbox)$ yarn run test:integration test/integration/audited/myHook.test.tsFAQs
A toolkit for interacting with smart contracts (hooks) on the Xahau Ledger.
The npm package @transia/hooks-toolkit receives a total of 28 weekly downloads. As such, @transia/hooks-toolkit popularity was classified as not popular.
We found that @transia/hooks-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.