forked from warp-contracts/warp-dre-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.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=''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BlbDtBVoaOQUqKURS2ynqYnLvqNwQuoNG69n4U2IbLNkoV7Sz
rirJbWgiegob4xr6fkr+n7z41EwO
-----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