PROJECT

safe-anvil-mock

Safe transaction helper for local integration and blockchain workflows.

A reusable helper for Safe proposal testing and local transaction flows. This utility reduces integration friction by making Safe proposal flows reproducible in local and CI environments.

safe-anvil-mock cover image

Technical details

Stack

  • Node.js ESM, Express, and TypeScript
  • Anvil integration for local blockchain execution
  • Route, service, and utility layers for Safe flows
  • Ethers compatibility coverage in tests

Architecture hints

  • HTTP mock surface mirrors the Safe transaction service endpoints used by clients
  • In-memory state keeps confirmations and transaction flow deterministic for tests
  • Execution is delegated to Anvil once the configured confirmation threshold is reached
  • Signature validation is isolated so client-version differences stay compatible