-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
executable file
·80 lines (68 loc) · 2.42 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class PostgresDevConfig(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DB')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENGINE_OPTIONS = {
'pool_size': 1,
'max_overflow': 2,
'pool_recycle': 30,
'connect_args': {'options': '-c statement_timeout=600s'}
}
class PostgresConfig(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DB')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENGINE_OPTIONS = {
'pool_size': 50,
'max_overflow': 20,
'pool_recycle': 30,
'connect_args': {'options': '-c statement_timeout=40s'}
}
class PostgresFillerConfig(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DB')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENGINE_OPTIONS = {
'pool_size': 10,
'max_overflow': 10,
'connect_args': {'options': '-c statement_timeout=3600s'}
}
class PostgresConsumerConfig(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DB')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENGINE_OPTIONS = {
'pool_size': 5,
'max_overflow': 5,
'connect_args': {'options': '-c statement_timeout=3600s'}
}
chronicle_settings = dict(
host='0.0.0.0',
port=42666,
)
contracts = [
'atomicassets',
'atomicmarket',
'simpleassets',
'simplemarket',
'neftyblocksd', # Drops Contract
'waxbuyoffers', # Old NFTHive Buy offers, only relevant for Analytics
'neftyblocksp', # Pack Contract
'atomicpacksx', # Pack Contract
'wax.gg', # User Profile Picture Updates
'market.myth', # Old Marketplace, only relevant for Analytics
'waxplorercom', # Simpleassets Marketplace
'nft.hive', # FT Marketplace
'atomicdropsx', # Drops Contract
'clltncattool', # On chain categorization
'nfthivedrops', # Drops Contract
'nfthivepacks', # Pack Contract
'atomhubtools', # On chain account settings
'neftyblocksa', # On chain account settings
'nfthivecraft', # Crafting Contract
'twitchreward', # Drop Contract
'redeemprtcol', # Redeem API Contract
'verifystatus', # On chain Collection verification and rating
'wufclaimtool', # Airdrop Contract, most likely not relevant
'rwax', # NFT Tokenization and Redemption
'waxtokenbase', # Token Registration
'waxdaobacker' # Token Backing
]