Skip to content

Commit 1460870

Browse files
authored
Merge pull request #1 from SWS-5007/harry
Initial Commit
2 parents aa83e42 + 651344e commit 1460870

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+5728
-1
lines changed

.dockerignore

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
app/local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.local.env
86+
.venv
87+
env/
88+
venv*/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
data/
103+
# mypy
104+
.mypy_cache/
105+
.idea

.env.template

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
DOMAIN=localhost
2+
CHAIN_ID=polkadot
3+
BLOCK_LIMIT_COUNT=500000
4+
5+
DB_USERNAME=root
6+
DB_NAME=explorer_api
7+
DB_HOST=mysql
8+
DB_PORT=3306
9+
DB_PASSWORD=root
10+
DB_HARVESTER_NAME=polkascan
11+
12+
BACKEND_CORS_ORIGINS=[]
13+
14+
SERVER_ADDR=0.0.0.0
15+
SERVER_PORT=8000
16+
17+
API_SQLA_URI=mysql+pymysql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?charset=utf8mb4
18+
WEBSOCKET_URI=ws://${SERVER_ADDR}:${SERVER_PORT}
19+
BROADCAST_URI=redis://127.0.0.1:6379
20+
21+
SENTRY_PROJECT_NAME=explorer-api-v2
22+
SENTRY_SERVER_NAME=test
23+
SENTRY_DSN=
24+
25+
HTTP_MOUNT=/graphql/
26+
WS_MOUNT=/graphql-ws/

.gitignore

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.local.env
87+
.venv
88+
env/
89+
venv/
90+
ENV/
91+
env.bak/
92+
venv.bak/
93+
94+
# Spyder project settings
95+
.spyderproject
96+
.spyproject
97+
98+
# Rope project settings
99+
.ropeproject
100+
101+
# mkdocs documentation
102+
/site
103+
data/
104+
# mypy
105+
.mypy_cache/
106+
.idea

.test.env

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
TEST_CONNECTION_WAIT_TIME=10
3+
TEST_QUERY_WAIT_TIME=30
4+
TEST_SUBSCRIPTION_WAIT_TIME=60
5+
TEST_SUBSCRIPTION_NR_BLOCKS=1000
6+
7+
SUBSCRIBE_NEW_BLOCK_CONNECTIONS=1
8+
SUBSCRIBE_NEW_EVENT_CONNECTIONS=1
9+
SUBSCRIBE_NEW_EXTRINSIC_CONNECTIONS=1
10+
SUBSCRIBE_NEW_TRANSFER_CONNECTIONS=1
11+
SUBSCRIBE_NEW_LOG_CONNECTIONS=1

0 commit comments

Comments
 (0)