Set up Safe Transaction Service for development
mainTo set up a local development environment, use uv to manage dependencies and virtual environments. Follow these steps:
- Install
uv. - Sync dependencies and activate the virtual environment:
uv sync --group dev --frozen source .venv/bin/activate - Install pre-commit hooks and configure the environment:
pre-commit install -f cp .env.dev .env - Run tests:
./run_tests.sh
To run end-to-end (e2e) tests, you must export the following environment variables:
export ETHEREUM_MAINNET_NODE="https://erigon-node-mainnet.dev/"
export ETHEREUM_4337_BUNDLER_URL="https://eth-sepolia.g.alchemy.com/v2/$API_KEY"
./run_tests.shuv sync --group dev --frozen
source .venv/bin/activate
pre-commit install -f
cp .env.dev .env
./run_tests.sh