
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
@transia/hooks-toolkit
Advanced tools
$ npm i -g c2wasm-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/base.c build
tail -f xahau/log/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-netgen up:standaloneDocker standalone only:
$ docker run -p 5005:5005 -p 6006:6006 -it transia/xahaud: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 44 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.