This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4dcf30
commit b4dda03
Showing
32 changed files
with
1,380 additions
and
1,162 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM dipdup/dipdup:6.1-slim | ||
FROM dipdup/dipdup:6 | ||
COPY . . | ||
RUN install_dependencies requirements.txt | ||
RUN pip install -r requirements.txt |
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,32 +1,31 @@ | ||
# Juster indexer | ||
# juster-dipdup | ||
|
||
## Installation | ||
This repo contains a Juster betting protocol indexer based on DipDup. | ||
|
||
``` | ||
poetry install | ||
``` | ||
Juster protocol was sunsetted on May 2023; this repo is archived. Thanks for your support! | ||
|
||
## Debugging | ||
|
||
### Sqlite | ||
## Installation | ||
|
||
``` | ||
poetry shell | ||
dipdup run | ||
``` | ||
Python 3.10 is required to run DipDup v6. Use the following commands to set up dev environment: | ||
|
||
### Postgres | ||
```shell | ||
# Using poetry | ||
$ poetry install | ||
$ poetry shell | ||
|
||
``` | ||
poetry shell | ||
make up | ||
make run | ||
make down | ||
# Using pip | ||
$ python3.10 -m venv .venv | ||
$ source .venv/bin/activate | ||
$ python3.10 -m pip install -e . | ||
``` | ||
|
||
## Running | ||
## Running and deployment | ||
|
||
``` | ||
docker-compose pull | ||
docker-compose up -d | ||
```shell | ||
# SQLite database | ||
$ dipdup run | ||
|
||
# PostgreSQL in docker-compose | ||
$ docker-compose up -d db hasura | ||
$ dipdup -c dipdup.yml -c dipdup.local.yml run | ||
``` |
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 +1,5 @@ | ||
sentry: | ||
dsn: ${SENTRY_DSN:-"https://[email protected]/6"} | ||
dsn: ${SENTRY_DSN:-""} | ||
environment: ${SENTRY_ENVIRONMENT:-""} | ||
server_name: ${SENTRY_SERVER_NAME:-""} | ||
release: ${SENTRY_RELEASE:-""} |
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,6 +1,5 @@ | ||
[mypy] | ||
python_version = 3.10 | ||
plugins = pydantic.mypy | ||
|
||
[mypy-ruamel] | ||
ignore_missing_imports = True |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
[tool.poetry] | ||
name = "juster-dipdup" | ||
version = "0.0.1" | ||
description = "" | ||
authors = ["Lev Gorodetskiy <[email protected]>"] | ||
version = "1.0.0" | ||
description = "DipDup indexer for Juster protocol" | ||
authors = [ | ||
"Lev Gorodetskiy <[email protected]>", | ||
"Stepan Naumov <[email protected]>", | ||
"Michael Zaikin <[email protected]>" | ||
] | ||
packages = [ | ||
{ include = "juster", from = "src" }, | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.10,<3.11" | ||
dipdup = "^6.1.0" | ||
# dipdup = {path = "../dipdup", develop = true} | ||
# dipdup = {git = "https://github.com/dipdup-net/dipdup-py.git", branch = "feat/db-rollback"} | ||
dipdup = "^6" | ||
strict-rfc3339 = "^0.7" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "^22.1.0" | ||
bump2version = "^1.0.1" | ||
diff-cover = "^6.5.0" | ||
flake8-return = "^1.1.3" | ||
flake8-comprehensions = "^3.8.0" | ||
flake8-bugbear = "^22.1.11" | ||
flake8-simplify = "^0.19.2" | ||
flakeheaven = "^2.0.0" | ||
isort = "^5.9.3" | ||
mypy = "^0.971" | ||
isort = "*" | ||
black = "*" | ||
ruff = "*" | ||
mypy = "*" | ||
|
||
[tool.isort] | ||
line_length = 140 | ||
|
@@ -35,19 +31,11 @@ line-length = 140 | |
target-version = ['py310'] | ||
skip-string-normalization = true | ||
|
||
[tool.flakeheaven] | ||
format = "colored" | ||
max_line_length = 140 | ||
show_source = true | ||
extended_default_ignore = [] | ||
[tool.ruff] | ||
line-length = 140 | ||
target-version = 'py310' | ||
|
||
[tool.flakeheaven.plugins] | ||
"*" = ["+*"] | ||
flake8-comprehensions = ["-C417"] | ||
flake8-docstrings = ["-*"] | ||
flake8-simplify = ["-SIM106", "-SIM114", "-SIM102"] | ||
pycodestyle = ["-*"] | ||
|
||
[build-system] | ||
requires = ["poetry_core==1.0.0"] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.
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
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 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 +1,3 @@ | ||
from decimal import Decimal | ||
|
||
from dipdup.context import HandlerContext | ||
from dipdup.models import Transaction | ||
|
||
|
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
Empty file.
Oops, something went wrong.