-
Notifications
You must be signed in to change notification settings - Fork 18
/
constants.py
61 lines (51 loc) · 3.19 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
import textwrap
from datetime import timedelta
from raiden.utils.typing import BlockTimeout
API_PATH: str = "/api/v1"
DEFAULT_API_HOST: str = "localhost"
DEFAULT_API_PORT: int = 6000
WEB3_PROVIDER_DEFAULT: str = "http://127.0.0.1:8545"
DIVERSITY_PEN_DEFAULT: int = 5
FEE_PEN_DEFAULT: int = 100
MAX_PATHS_PER_REQUEST: int = 25
DEFAULT_MAX_PATHS: int = 5 # number of paths return when no `max_path` argument is given
DEFAULT_REVEAL_TIMEOUT: BlockTimeout = BlockTimeout(50)
DEFAULT_SETTLE_TO_REVEAL_TIMEOUT_RATIO = 2
DEFAULT_POLL_INTERVALL = 2
DEFAULT_INFO_MESSAGE = "This is your favorite PFS."
# When a new IOU session is started, this is the minimum number of blocks
# between the current block and `expiration_block`.
MIN_IOU_EXPIRY: int = 7 * 24 * 60 * 4
MAX_AGE_OF_IOU_REQUESTS: timedelta = timedelta(hours=1)
MAX_AGE_OF_FEEDBACK_REQUESTS: timedelta = timedelta(minutes=10)
PFS_DISCLAIMER: str = textwrap.dedent(
"""\
----------------------------------------------------------------------
| This is an Alpha version of experimental open source software |
| released as a test version under an MIT license and may contain |
| errors and/or bugs. No guarantee or representations whatsoever is |
| made regarding its suitability (or its use) for any purpose or |
| regarding its compliance with any applicable laws and regulations. |
| Use of the software is at your own risk and discretion and by |
| using the software you acknowledge that you have read this |
| disclaimer, understand its contents, assume all risk related |
| thereto and hereby release, waive, discharge and covenant not to |
| sue Brainbot Labs Establishment or any officers, employees or |
| affiliates from and for any direct or indirect liability resulting |
| from the use of the software as permissible by applicable laws and |
| regulations. |
| |
| Privacy Warning: Please be aware, that by using the Raiden |
| Pathfinding service or Monitoring service among others, your |
| Ethereum address, account balance and your transactions |
| will be stored on the Ethereum chain, i.e. on servers of Ethereum |
| node operators and ergo are to a certain extent publicly available.|
| The same might also be stored on systems of parties running Raiden |
| nodes connected to the same token network. Data present in the |
| Ethereum chain is very unlikely to be able to be changed, removed |
| or deleted from the public arena. |
| This implementation follows the technical specification of |
| https://raiden-network-specification.readthedocs.io/en/latest/ |
| Pathfinding service. |
----------------------------------------------------------------------"""
)