Skip to content

safe-global/safe-locking-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python CI Coverage Status pre-commit Python 3.12 Django 5 Docker Image Version (latest semver)

Safe Locking Service

Keeps track emitted events by Safe token locking contract. https://github.com/safe-global/safe-locking

Configuration

cp .env.sample .env

Configure environment variables on .env:

  • DJANGO_SECRET_KEY: IMPORTANT: Update it with a secure generated string.
  • ETHEREUM_NODE_URL: RPC node url.

Execution

docker compose build
docker compose up

Then go to http://localhost:8000 to see the service documentation.

Endpoints

  • /v1/about

Setup for development

Use a virtualenv if possible:

python -m venv venv

Then enter the virtualenv and install the dependencies:

source venv/bin/activate
pip install -r requirements-dev.txt
pre-commit install -f
cp .env.sample .env
./run_tests.sh

Contributors

See contributors