-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.env.defaults.u
145 lines (133 loc) · 5.45 KB
/
.env.defaults.u
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# test, prod
ENV=prod
MY_NAME_IS='DRE-U'
WARP_GW_URL='https://gw.warp.cc'
# PG config
PG_HOST='localhost'
PG_DATABASE='postgres'
PG_USER_WARP='warp'
PG_USER_WARP_PASSWORD='warp_password'
PG_USER_DRE='dre'
PG_USER_DRE_PASSWORD='dre_password'
PG_PORT=21726
PG_SSL='false'
PG_MIN_CONTRACT_ENTRIES=100000
PG_MAX_CONTRACT_ENTRIES=1000000
FIRST_INTERACTION_TIMESTAMP=1666220657408
REDIS_PUBLISH_STATE=false
APPSYNC_PUBLISH_STATE=false
# required only if APPSYNC_PUBLISH_STATE=true
APPSYNC_KEY=''
APPSYNC_STREAM=''
NODE_JWK_KEY=''
UPDATE_MODE='poll'
# 6h (6 * 60 * 60s), 1h (60 * 60s), 1m (60s), 2s
SYNC_WINDOW_SECONDS='[21600,3600,60,2]'
POLL_RESPONSE_LENGTH_LIMIT=30000
POLL_INTERACTIONS_URL='http://api-dre-sync.warp.cc/v1/interactions'
# Spawns a separate node process to evaluate a partition of interactions
POLL_FORK_PROCESS=false
## Warp GW Redis connection, required only if PUBSUB_TYPE=redis
# required only if the PUBSUB_TYPE=redis #
GW_PORT=6379
GW_HOST=dre-redis-read.warp.cc
GW_USERNAME=contracts
GW_PASSWORD=''
GW_TLS=true
GW_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zDQpbCKokxHn+4XbM+j4GLRkpaCfSnfeB5E3gi76G
X3WGjXaVErgH1d4NhroSm0oAFqmd
-----END CERTIFICATE-----"
### Evaluation options
EVALUATION_USEVM2=true
EVALUATION_MAXCALLDEPTH=5
EVALUATION_MAXINTERACTIONEVALUATIONTIMESECONDS=10
EVALUATION_ALLOWBIGINT=true
EVALUATION_UNSAFECLIENT=skip
EVALUATION_INTERNALWRITES=true
# The following whitelist is intended for the U contract evaluation only.
EVALUATION_WHITELIST_SOURCES='
[
"Of9pi--Gj7hCTawhgxOwbuWnFI1h24TTgO5pw8ENJNQ",
"W78KEzU8vIODFHzwa9ab7SS7Pjchc7KenivCiwSHxBY",
"kP1Ed8AMvaaBrEFjatP4pSmiE_fsRrGS0EcBMQYYiyc",
"mGxosQexdvrvzYCshzBvj18Xh1QmZX16qFJBuh4qobo",
"7qv5x9A0NgAlTdMnBc1H2HFvN-te0kzzuT9RNt_66g8",
"eIAyBgHH-H7Qzw9fj7Austj30QKPQn27eaakvpOUSR8",
"Of9pi--Gj7hCTawhgxOwbuWnFI1h24TTgO5pw8ENJNQ",
"ovWCp0xKuHtq-bADXbtiNr6umwb_AE73kVZWtfHlX3w",
"1hDZBRSptTNgnACuO9qGHLbaOfnAcMBKCHcHPRhMWUY",
"LBcYEl2zwKDApj1Cow1_BYyiicxVV7OCZTexsjk6mB4",
"dRTFmLwJ3cNqdNvFK4yUvwc13CrJtFOmLymLxL4HWOE",
"yXPm9-9VyxH9otGf7xim0EJsnt21IJN8qJjanFTC_kc",
"qOd7mNAJdju9PxtsRJbel4Zu3xYgEwUbxW8U14czjD8",
"0GOnb0o9c232d6SXF_HXHbGzfIdiYeos7U5jobOSZ_c",
"8kPgNMm7dZUVk93T7wq05otEy1oDNqZhyD3L7WrcMTY",
"yDAppVePqGU1qcRnxdk-AShpIJ0RHCZixOMXtJTgm4Y",
"W7V0n7g2UKhCee1QDTpvAq6eI6pP9jCS860uF70TbYY",
"h9v17KHV4SXwdW2-JHU6a23f6R0YtbXZJJht8LfP8QM",
"DXc7dRQe8AZRPNqHzjewWWeT7dUeEQxBEEYOHlomp2g",
"j9Lk3cTmukZS2-hae9GYxK1CuHtWtHcA1V5-tkIfu5k",
"JcELSCid4ZWZxW8Mj0nza12mm4bFjyAOfpW9anDgaMY"
]'
# "Of9pi--Gj7hCTawhgxOwbuWnFI1h24TTgO5pw8ENJNQ" // Atomic Asset
# "W78KEzU8vIODFHzwa9ab7SS7Pjchc7KenivCiwSHxBY" // STAMP
# "kP1Ed8AMvaaBrEFjatP4pSmiE_fsRrGS0EcBMQYYiyc" // STAMP-evolve
# "mGxosQexdvrvzYCshzBvj18Xh1QmZX16qFJBuh4qobo" // U
# "7qv5x9A0NgAlTdMnBc1H2HFvN-te0kzzuT9RNt_66g8" // UCM contract old
# "eIAyBgHH-H7Qzw9fj7Austj30QKPQn27eaakvpOUSR8" // Facts
# "Of9pi--Gj7hCTawhgxOwbuWnFI1h24TTgO5pw8ENJNQ" // Pages
# "ovWCp0xKuHtq-bADXbtiNr6umwb_AE73kVZWtfHlX3w" // VouchDAO
# "1hDZBRSptTNgnACuO9qGHLbaOfnAcMBKCHcHPRhMWUY" // VouchDAO-evolve
# "LBcYEl2zwKDApj1Cow1_BYyiicxVV7OCZTexsjk6mB4" // UCM contract new
# "dRTFmLwJ3cNqdNvFK4yUvwc13CrJtFOmLymLxL4HWOE" // UCM contract evolve
# "yXPm9-9VyxH9otGf7xim0EJsnt21IJN8qJjanFTC_kc" // UCM contract evolve
# "qOd7mNAJdju9PxtsRJbel4Zu3xYgEwUbxW8U14czjD8" // UCM contract evolve
# "0GOnb0o9c232d6SXF_HXHbGzfIdiYeos7U5jobOSZ_c" // UCM contract evolve
# "8kPgNMm7dZUVk93T7wq05otEy1oDNqZhyD3L7WrcMTY" // UCM contract evolve
# "yDAppVePqGU1qcRnxdk-AShpIJ0RHCZixOMXtJTgm4Y" // UCM contract evolve
# "W7V0n7g2UKhCee1QDTpvAq6eI6pP9jCS860uF70TbYY" // UCM contract evolve
# "h9v17KHV4SXwdW2-JHU6a23f6R0YtbXZJJht8LfP8QM" // FAIR
# "DXc7dRQe8AZRPNqHzjewWWeT7dUeEQxBEEYOHlomp2g" // UCM contract evolve
# "j9Lk3cTmukZS2-hae9GYxK1CuHtWtHcA1V5-tkIfu5k" // PST ASSET
# "JcELSCid4ZWZxW8Mj0nza12mm4bFjyAOfpW9anDgaMY" // AR.IO ANT
EVALUATION_BLACKLISTED_CONTRACTS='[]'
### Bull MQ redis connection ###
BULLMQ_PORT=6379
BULLMQ_HOST=
BULLMQ_USERNAME=
BULLMQ_PASSWORD=
BULLMQ_TLS=
BULLMQ_ENABLE_OFFLINE_QUEUE=true
BULLMQ_LAZY_CONNECT=true
### Available functionality
FUNC_VIEW_STATE=false
PROCESS_CONTRACT_EVENTS=false
### Workers ###
WORKERS_REGISTER=1
WORKERS_UPDATE=1
# By default maintenance is turned off
WORKERS_MAINTENANCE=0
# Every 5 minutes (value is in ms)
WORKERS_MAINTENANCE_WINDOW=300000
WORKERS_POST_EVAL=1
WORKERS_JOB_ID_REFRESH_SECONDS=2
WORKERS_MAX_FAILURES=3
WORKERS_MAX_STATESIZE=30000000