-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
89 lines (79 loc) · 2.2 KB
/
constants.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
81
82
83
84
85
86
87
88
89
class Sessions:
id = "_id"
step = "step"
status = "status"
timestamp = "timestamp"
name = "nameOfIdentity"
requirement = "requirement"
wallet_addresses = "walletAddresses"
sign = 'sign'
isSign = 'isSign'
created_by_wallet = "walletAddress"
identity = "identity"
chain_id = "chainId"
class Identities:
id = "_id"
name = "name"
chain_id = "chain_id"
created_by_session_id = "sessionId"
wallet_addresses = "walletAddresses"
address = 'address'
timestamp = 'timestamp'
name_of_identity = 'nameOfIdentity'
adding_wallet_addresses = 'addingWalletAddresses'
requirement = "requirement"
wallet_address = "walletAddress"
sign = "sign"
class Wallets:
id = "_id"
address = "address"
having_identity = "havingIdentity"
identity = "identity"
invited_in_identities = "invitingIdentities"
class Events:
id = "_id"
block_timestamp = "block_timestamp"
block_number = "block_number"
timestamp = "timestamp"
contract_address = "contract_address"
event_type = "event_type"
log_index = "log_index"
sender = "sender"
transaction_hash = "transaction_hash"
transaction_id = "transaction_id"
type = "type"
revocation = "REVOCATION"
class MongoCollections:
GraphDB = "identity_graph_builder"
RootGraphDB = "identity_graph_builder_root"
cross_chain_identities = "CrossChainIdentities"
wallets = 'wallets'
identities = 'identities'
sessions = 'sessions'
b_richer = "BRicher"
tokens = 'tokens'
events = 'events'
suffix = "_blockchain_etl"
bsc_testnet = "bsc_testnet"
rinkeby = "rinkeby"
goerli = "goerli"
all_chain = 'all_chain'
network = [all_chain, bsc_testnet, rinkeby, goerli]
mapping = {
"bsc": bsc_testnet,
"rinkeby": rinkeby,
"goerli": goerli,
}
chain_id = {
all_chain: '0x',
bsc_testnet: '0x61',
rinkeby: '0x4',
goerli: '0x5'
}
class ArangoDBConstant:
TOKEN_DB = "token_database"
CONFIGS_COL = "configs"
TOKENS_COL = "tokens"
MERGED_TOKEN_PRICE_COL = "merged_token_price"
TOKEN_PRICE_COL = "token_price"
price_change_logs = "priceChangeLogs"