This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
/
config.py
51 lines (44 loc) · 2.29 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ForkDelta Backend
# https://github.com/forkdelta/backend-replacement
# Copyright (C) 2018, Arseniy Ivanov and ForkDelta Contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from os import environ
HTTP_PROVIDER_URL = environ.get("HTTP_PROVIDER_URL")
WS_PROVIDER_URL = environ.get("WS_PROVIDER_URL")
ALLOWED_ORIGIN_SUFFIXES = environ.get("ALLOWED_ORIGIN_SUFFIXES",
"localhost").split(",")
ED_CONTRACT_ADDR = '0x8d12a197cb00d4747a1fe03395095ce2a5cc6819'
with open('etherdelta.abi.json') as f:
import json
ED_CONTRACT_ABI = json.load(f)
ED_WS_SERVERS = [
"wss://socket01.etherdelta.com/socket.io/?EIO=3&transport=websocket",
"wss://socket02.etherdelta.com/socket.io/?EIO=3&transport=websocket",
"wss://socket03.etherdelta.com/socket.io/?EIO=3&transport=websocket",
"wss://socket04.etherdelta.com/socket.io/?EIO=3&transport=websocket",
"wss://socket05.etherdelta.com/socket.io/?EIO=3&transport=websocket",
"wss://socket06.etherdelta.com/socket.io/?EIO=3&transport=websocket",
]
POSTGRES_HOST = "postgres"
POSTGRES_DB = environ.get("POSTGRES_DB")
POSTGRES_USER = environ.get("POSTGRES_USER")
POSTGRES_PASSWORD = environ.get("POSTGRES_PASSWORD")
HTTP_ORDERS_ENDPOINT_SECRET = environ.get("HTTP_ORDERS_ENDPOINT_SECRET")
FRONTEND_CONFIG_FILE = "https://forkdelta.app/config/main.json"
STOPPED_TOKENS = (
"0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0", # EOS: https://block.one/news/community-reminder-eos-token-registration-and-freeze/
"0x7e9e431a0b8c4d532c745b1043c7fa29a48d4fba", # eosDAC: https://twitter.com/eosdac/status/1002657571197673475?lang=en
"0xa5fd1a791c4dfcaacc963d4f73c6ae5824149ea7", # JNT: https://t.me/jibrel_network/129713
)