Safe Transaction Service mock for local or dockerized integration tests on Anvil
1.3K

Production-like Safe Transaction Service mock for local integration tests on Anvil.
Source code: github.com/mlachgar/safe-anvil-mock
docker run --rm -p 8000:8000 \
-e RPC_URL=http://anvil:8545 \
-e SYSTEM_PUBLIC_KEY=0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A \
mlachgar/safe-anvil-mock:1.0.0
Use this image inside a Docker network alongside:
Example configuration:
SAFE_TX_SERVICE_URL=http://safe-anvil-mock:8000
RPC_URL=http://anvil:8545
GET /health/GET /v1/safes/:safe/GET /v2/safes/:safe/multisig-transactions/POST /v2/safes/:safe/multisig-transactions/GET /v2/multisig-transactions/:safeTxHash/GET /v1/multisig-transactions/:safeTxHash/confirmations/POST /v1/multisig-transactions/:safeTxHash/confirmations/POST /mock/transactions/:safeTxHash/confirm/Content type
Image
Digest
sha256:f94f79ebd…
Size
89.1 MB
Last updated
7 months ago
docker pull mlachgar/safe-anvil-mock