forked from andelf/tronpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.py
More file actions
36 lines (30 loc) · 896 Bytes
/
defaults.py
File metadata and controls
36 lines (30 loc) · 896 Bytes
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
CONF_MAINNET = {
"fullnode": "https://api.trongrid.io",
"event": "https://api.trongrid.io",
}
# The long running, maintained by the tron-us community
CONF_SHASTA = {
"fullnode": "https://api.shasta.trongrid.io",
"event": "https://api.shasta.trongrid.io",
"faucet": "https://www.trongrid.io/faucet",
}
# Maintained by the official team
CONF_NILE = {
"fullnode": "https://api.nileex.io",
"event": "https://event.nileex.io",
"faucet": "http://nileex.io/join/getJoinPage",
}
# Maintained by the official team
CONF_TRONEX = {
"fullnode": "https://testhttpapi.tronex.io",
"event": "https://testapi.tronex.io",
"faucet": "http://testnet.tronex.io/join/getJoinPage",
}
ALL = {
"mainnet": CONF_MAINNET,
"nile": CONF_NILE,
"shasta": CONF_SHASTA,
"tronex": CONF_TRONEX,
}
def conf_for_name(name: str) -> dict:
return ALL.get(name, None)