-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add price endpoint * Add dockerfile * Configure github actions
- Loading branch information
Showing
48 changed files
with
2,746 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Test project outside docker | ||
PYTHONPATH=/app/ | ||
DEBUG=0 | ||
DJANGO_SETTINGS_MODULE=config.settings.test | ||
DJANGO_SECRET_KEY=t3st-s3cr3t#-!k3y | ||
ETHEREUM_NODES_URLS=https://ethereum.publicnode.com,https://polygon-rpc.com | ||
ETH_HASH_BACKEND=pysha3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Test project outside docker | ||
PYTHONPATH=/app/ | ||
DEBUG=0 | ||
DJANGO_SETTINGS_MODULE=config.settings.test | ||
DJANGO_SECRET_KEY=t3st-s3cr3t#-!k3y | ||
ETHEREUM_MAINNET_NODE=https://ethereum.publicnode.com | ||
ETHEREUM_NODES_URLS=http://localhost:8545 | ||
ETH_HASH_BACKEND=pysha3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
![Build Status](https://github.com/safe-global/safe-price-service/workflows/Python%20CI/badge.svg?branch=master) | ||
[![Coverage Status](https://coveralls.io/repos/github/safe-global/safe-price-service/badge.svg?branch=master)](https://coveralls.io/github/safe-global/safe-price-service?branch=master) | ||
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) | ||
![Python 3.10](https://img.shields.io/badge/Python-3.10-blue.svg) | ||
![Python 3.11](https://img.shields.io/badge/Python-3.11-blue.svg) | ||
![Django 4](https://img.shields.io/badge/Django-4-blue.svg) | ||
[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/safeglobal/safe-price-service?label=Docker&sort=semver)](https://hub.docker.com/r/safeglobal/safe-price-service) | ||
|
||
# Safe Price Service | ||
Returns fiat prices for base currencies and ERC20 tokens. | ||
|
||
## Configuration | ||
|
||
Environment variables: | ||
- `ETHEREUM_NODES_URLS`: Comma separated list of the node RPCS for the chains supported for fetching prices. | ||
- `PRICES_CACHE_TTL_MINUTES`: Minutes to keep a price in cache. | ||
|
||
## Contributors | ||
[See contributors](https://github.com/safe-global/safe-price-service/graphs/contributors) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +0,0 @@ | ||
# This will make sure the app is always imported when | ||
# Django starts so that shared_task will use this app. | ||
from .celery_app import app as celery_app | ||
|
||
__all__ = ("celery_app",) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.