forked from celo-org/celo-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
296 lines (233 loc) · 12.5 KB
/
.env
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# These are the default values that should apply to most environments, especially dev ones
ENV_TYPE="development"
GETH_DEBUG=true
GETH_VERBOSITY=1
# Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4, consensus/*=4)
GETH_VMODULE="consensus/*=2"
GETH_ENABLE_METRICS=false
VM_BASED=false
KUBERNETES_CLUSTER_NAME="celo-networks-dev"
KUBERNETES_CLUSTER_ZONE="us-west1-a"
CLUSTER_DOMAIN_NAME="celo-networks-dev"
TESTNET_PROJECT_NAME="celo-testnet"
BLOCKSCOUT_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/blockscout"
BLOCKSCOUT_DOCKER_IMAGE_TAG="5f546f4e479fc51817fa324149002ce70478389a"
BLOCKSCOUT_DB_SUFFIX=
# Blockscout related cronjobs
BLOCKSCOUT_METADATA_CRAWLER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
BLOCKSCOUT_METADATA_CRAWLER_IMAGE_TAG="metadata-crawler-f385708f2bc79ead62460e353b5eb964936f90f7"
BLOCKSCOUT_METADATA_CRAWLER_SCHEDULE="*/30 * * * *"
LEADERBOARD_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/celo-monorepo"
LEADERBOARD_DOCKER_IMAGE_TAG="leaderboard-2708d6459b6efe2ab3ec04084d9c3819e202699f"
CELOSTATS_SERVER_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celostats-server"
CELOSTATS_SERVER_DOCKER_IMAGE_TAG="28b3e8a3a03f3926524ccc5b9cff04d256b5a3a9"
CELOSTATS_FRONTEND_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celostats-frontend"
CELOSTATS_FRONTEND_DOCKER_IMAGE_TAG="d092a2d527f64cabbb4364b72eb72faf364c6156"
CELOSTATS_TRUSTED_ADDRESSES=""
CELOSTATS_BANNED_ADDRESSES=""
CELOSTATS_RESERVED_ADDRESSES=""
FAUCET_GENESIS_ACCOUNTS=2
GETH_NODE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/geth"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_NODE_DOCKER_IMAGE_TAG="master"
GETH_BOOTNODE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/geth-all"
# When upgrading change this to latest commit hash from the master of the geth repo
# `geth $ git show | head -n 1`
GETH_BOOTNODE_DOCKER_IMAGE_TAG="master"
CELOTOOL_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
CELOTOOL_DOCKER_IMAGE_TAG="celotool-dc5e5dfa07231a4ff4664816a95eae606293eae9"
CELOCLI_STANDALONE_IMAGE_REPOSITORY="gcr.io/celo-testnet/celocli-standalone"
CELOCLI_STANDALONE_IMAGE_TAG="0.0.30-beta2"
# Schedule for an oracle deployed via celotool, expressed in crontab syntax
# This schedule is "every 5th minute"
MOCK_ORACLE_CRON_SCHEDULE="*/5 * * * *"
MOCK_ORACLE_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/oracle"
MOCK_ORACLE_DOCKER_IMAGE_TAG="default"
TRANSACTION_METRICS_EXPORTER_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet/celo-monorepo"
TRANSACTION_METRICS_EXPORTER_DOCKER_IMAGE_TAG="transaction-metrics-exporter-dc5e5dfa07231a4ff4664816a95eae606293eae9"
TRANSACTION_METRICS_EXPORTER_SUFFIX='1'
EKSPORTISTO_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/eksportisto"
EKSPORTISTO_DOCKER_IMAGE_TAG="12f9f9e822ea35db2f965be616abef126f1724fb"
EKSPORTISTO_SUFFIX='1'
ATTESTATION_SERVICE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/celo-monorepo"
ATTESTATION_SERVICE_DOCKER_IMAGE_TAG="attestation-service-v1.1.0"
# Genesis Vars
NETWORK_ID=1101
CONSENSUS_TYPE="istanbul"
BLOCK_TIME=1
EPOCH=1000
LOOKBACK=12
ISTANBUL_REQUEST_TIMEOUT_MS=3000
# Hardfork activation block numbers (also part of genesis)
CHURRITO_BLOCK=0
DONUT_BLOCK=0
# the number of load test clients that will be given funds in the genesis & migrations
LOAD_TEST_CLIENTS=100
# every 36 seconds, so that 100 transactions are sent by a client every hour
LOAD_TEST_TX_DELAY_MS=36000
# the amount in cUSD wei to give faucet, load test, and attestation bot accounts
FAUCET_CUSD_WEI=60000000000000000000000
VALIDATORS="3"
# format: <# of validators>:<proxy count>,<# of validators>:<proxy count>;...
# For vm-based testnets: The n proxied validators have to be the n first validators. Only indicate in the list the validators with proxy.
# Example: For a 10 validator testnet, 2:3,2:2,2:1 will result in Validator 0-1 with 3 proxies, 2-3 with 2 proxies, 4-5 with 1 proxy, and 6-9 with 0 proxies
VALIDATOR_PROXY_COUNTS=1:1,2:0
STATIC_IPS_FOR_GETH_NODES=false
# Whether tx_nodes/validators stateful set should use ssd persistent disks
GETH_NODES_SSD_DISKS=true
# Used for validators, proxies, and tx_nodes
NODE_DISK_SIZE_GB=10
# Used for private tx_nodes (gcmode archive)
PRIVATE_NODE_DISK_SIZE_GB=10
IN_MEMORY_DISCOVERY_TABLE=false
TX_NODES="3"
# Nodes whose RPC ports are only internally exposed
PRIVATE_TX_NODES=1
# Canary Deployment Variables
# Specify the partition nodes to be using a new statefulset definition. The number of the nodes
# specified in the partition are the nodes using the old definition. Use 0 for all the replicas
# using the latest definition
# https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
VALIDATORS_ROLLING_UPDATE_PARTITION=0
PROXY_ROLLING_UPDATE_PARTITION=0
SECONDARIES_ROLLING_UPDATE_PARTITION=0
TX_NODES_ROLLING_UPDATE_PARTITION=0
TX_NODES_PRIVATE_ROLLING_UPDATE_PARTITION=0
# Kubernetes Cluster Creation flags. Only used when a new kubernetes cluster needs to be created
CLUSTER_CREATION_FLAGS="--enable-autoscaling --min-nodes 3 --max-nodes 40 --machine-type=n1-standard-4 --preemptible --workload-metadata=GKE_METADATA --workload-pool=celo-testnet.svc.id.goog"
# Number of faulty/Byzantine validators
FAULTY_VALIDATORS=0
# What type of Byzantine fault the faulty validators exhibit:
# see valid values at geth/consensus/istanbul/config.go line 28
FAULTY_VALIDATOR_TYPE=1
GETH_NODE_CPU_REQUEST=400m
GETH_NODE_MEMORY_REQUEST=800M
VERIFICATION_POOL_URL="https://us-central1-celo-testnet.cloudfunctions.net/handleVerificationRequestintegration/v0.1/sms/"
VERIFICATION_REWARDS_URL="https://us-central1-celo-testnet.cloudfunctions.net/handleVerificationRequestintegration/v0.1/rewards/"
# Scrape GCE VMs with prometheus Service Discovery from the next regions
PROMETHEUS_GCE_SCRAPE_REGIONS="us-west1-a,us-west1-b,us-west1-c"
# To not deploy the start-auction cronjob, set this value to the empty string
AUCTION_CRON_SPEC=
# Chaos testing variables
CHAOS_TEST_INTERVAL = 3m
CHAOS_TEST_DURATION = 2m
# in milliseconds
CHAOS_TEST_NETWORK_DELAY = 1400
CHAOS_TEST_NETWORK_JITTER = 500
CHAOS_TEST_NETWORK_LOSS = 80
CHAOS_TEST_NETWORK_RATE = 100kbit
CHAOS_TEST_KILL_INTERVAL = 3m
# Below are variables for which there exist no sensible defaults, and thus should
# be customized in their respective .env.$CELO_ENV files
#
# STACKDRIVER_MONITORING_DASHBOARD=""
# STACKDRIVER_NOTIFICATION_CHANNEL_APPLICATIONS=""
# STACKDRIVER_NOTIFICATION_CHANNEL_PROTOCOL=""
# STACKDRIVER_NOTIFICATION_APPLICATIONS_PREFIX=""
# MOBILE_WALLET_PLAYSTORE_LINK=""
# Attestation Bot variables
ATTESTATION_BOT_INITIAL_WAIT_SECONDS=3
ATTESTATION_BOT_IN_BETWEEN_WAIT_SECONDS=10
ATTESTATION_BOT_MAX_ATTESTATIONS=3
# Number of gold-holding bots that vote for validator groups
VOTING_BOTS=3
# 10,000 CG
VOTING_BOT_BALANCE=10000000000000000000000
# Probability that a given bot account will participate in the current epoch's voting
VOTING_BOT_WAKE_PROBABILITY=0.2
# Baseline probability of changing vote once woken. If the group that this bot account
# has currently voted for is 1, this is the probability the bot will change their vote
VOTING_BOT_CHANGE_BASELINE=0.1
# The probability that when choosing a new group to vote for, it will choose a never-elected group
# Should be in the range of 0 to 1. Lower values bias towards incumbency. Higher values bias
# towards novelty.
VOTING_BOT_EXPLORE_PROBABILITY=0.7
# This value is used to determine how heavily a group's score weigh in the bot's voting decision
# Should be a positive number. 1 is a linear relationship. Higher values increase the separation
# among high scores.
VOTING_BOT_SCORE_SENSITIVITY=5
# Schedule for the voting bot process, deployed via celotool, expressed in crontab syntax
# This should run roughly once an epoch, but since epoch length is 16.66667 minutes, this
# is not easily represented.
# This schedule is "every 15 minutes", which is close enough. For some epochs, it will run twice
VOTING_BOT_CRON_SCHEDULE="*/15 * * * *"
# For ODIS e2e tests
ODIS_SIGNER_SERVICE_URL=https://staging-pgpnp-signer0.azurefd.net
ODIS_COMBINER_SERVICE_URL=https://us-central1-celo-phone-number-privacy-stg.cloudfunctions.net
ODIS_BLOCKCHAIN_PROVIDER=https://alfajores-forno.celo-testnet.org
# For WalletConnect relay
WALLET_CONNECT_IMAGE_REPOSITORY = 'us.gcr.io/celo-testnet/walletconnect'
WALLET_CONNECT_IMAGE_TAG = '1472bcaad57e3746498f7a661c42ff5cf9acaf5a'
WALLET_CONNECT_REDIS_CLUSTER_ENABLED = false
WALLET_CONNECT_REDIS_CLUSTER_USEPASSWORD = false
# For dynamic environment variables
# each context should have its own environment variables, generally of the form
# <context in all caps and underscores>_*
CONTEXTS=azure-odis0-centralus,azure-odis1-centralus,azure-odis2-centralus
# ODIS azure k8s deployments
ODIS_SIGNER_DOCKER_IMAGE_REPOSITORY=us.gcr.io/celo-testnet/celo-monorepo
ODIS_SIGNER_DOCKER_IMAGE_TAG=oblivious-decentralized-identifier-service-1.1.4
ODIS_SIGNER_BLOCKCHAIN_PROVIDER=https://alfajores-forno.celo-testnet.org
# ODIS signer 0 Azure info
AZURE_ODIS0_CENTRALUS_AZURE_SUBSCRIPTION_ID=97e2b592-255b-4f92-bce0-127257163c36
AZURE_ODIS0_CENTRALUS_AZURE_TENANT_ID=7cb7628a-e37c-4afb-8332-2029e418980e
AZURE_ODIS0_CENTRALUS_AZURE_REGION_NAME=cus
# ODIS signer 0 K8S cluster info
AZURE_ODIS0_CENTRALUS_AZURE_KUBERNETES_RESOURCE_GROUP=staging-pgpnp-centralus
AZURE_ODIS0_CENTRALUS_KUBERNETES_CLUSTER_NAME=staging-odis0-centralus
# ODIS signer 0 Postgres DB
AZURE_ODIS0_CENTRALUS_ODIS_SIGNER_DB_HOST=staging-pgpnp-centralus.postgres.database.azure.com
AZURE_ODIS0_CENTRALUS_ODIS_SIGNER_DB_PORT=5432
AZURE_ODIS0_CENTRALUS_ODIS_SIGNER_DB_USERNAME=pgpnp@staging-pgpnp-centralus
# ODIS signer 0 Key Vault
AZURE_ODIS0_CENTRALUS_ODIS_SIGNER_AZURE_KEYVAULT_NAME=staging-pgpnp-cus
AZURE_ODIS0_CENTRALUS_ODIS_SIGNER_AZURE_KEYVAULT_SECRET_NAME=bls-share
# ODIS signer 0 Network
AZURE_ODIS0_CENTRALUS_ODIS_NETWORK=staging
# ODIS signer 0 Prometheus config
AZURE_ODIS0_CENTRALUS_PROM_SCRAPE_JOB_NAME=scrape-odis
AZURE_ODIS0_CENTRALUS_PROM_SCRAPE_LABELS="_generic_location: us-central1,_generic_namespace: odis-signer"
AZURE_ODIS0_CENTRALUS_PROM_SCRAPE_TARGETS="staging-odis-signer.staging:3000"
AZURE_ODIS0_CENTRALUS_PROM_SIDECAR_GCP_PROJECT=celo-phone-number-privacy-stg
AZURE_ODIS0_CENTRALUS_PROM_SIDECAR_GCP_REGION=us-east1
# ODIS signer 1 Azure info
AZURE_ODIS1_CENTRALUS_AZURE_SUBSCRIPTION_ID=97e2b592-255b-4f92-bce0-127257163c36
AZURE_ODIS1_CENTRALUS_AZURE_TENANT_ID=7cb7628a-e37c-4afb-8332-2029e418980e
AZURE_ODIS1_CENTRALUS_AZURE_REGION_NAME=cus
# ODIS signer 1 K8S cluster info
AZURE_ODIS1_CENTRALUS_AZURE_KUBERNETES_RESOURCE_GROUP=staging-pgpnp-centralus
AZURE_ODIS1_CENTRALUS_KUBERNETES_CLUSTER_NAME=staging-odis1-centralus
# ODIS signer 1 Postgres DB
AZURE_ODIS1_CENTRALUS_ODIS_SIGNER_DB_HOST=staging-pgpnp1-centralus.postgres.database.azure.com
AZURE_ODIS1_CENTRALUS_ODIS_SIGNER_DB_PORT=5432
AZURE_ODIS1_CENTRALUS_ODIS_SIGNER_DB_USERNAME=pgpnp@staging-pgpnp1-centralus
# ODIS Signer 1 Key Vault
AZURE_ODIS1_CENTRALUS_ODIS_SIGNER_AZURE_KEYVAULT_NAME=staging-pgpnp-cus
AZURE_ODIS1_CENTRALUS_ODIS_SIGNER_AZURE_KEYVAULT_SECRET_NAME=bls-share1
# ODIS Signer 1 Prometheus config
AZURE_ODIS1_CENTRALUS_PROM_SCRAPE_JOB_NAME=scrape-odis
AZURE_ODIS1_CENTRALUS_PROM_SCRAPE_LABELS="_generic_location: us-central1,_generic_namespace: odis-signer"
AZURE_ODIS1_CENTRALUS_PROM_SCRAPE_TARGETS="staging-odis-signer.staging:3000"
AZURE_ODIS1_CENTRALUS_PROM_SIDECAR_GCP_PROJECT=celo-phone-number-privacy-stg
AZURE_ODIS1_CENTRALUS_PROM_SIDECAR_GCP_REGION=us-east1
# ODIS signer 2 Azure info
AZURE_ODIS2_CENTRALUS_AZURE_SUBSCRIPTION_ID=97e2b592-255b-4f92-bce0-127257163c36
AZURE_ODIS2_CENTRALUS_AZURE_TENANT_ID=7cb7628a-e37c-4afb-8332-2029e418980e
AZURE_ODIS2_CENTRALUS_AZURE_REGION_NAME=cus
# ODIS signer 2 K8S cluster info
AZURE_ODIS2_CENTRALUS_AZURE_KUBERNETES_RESOURCE_GROUP=staging-pgpnp-centralus
AZURE_ODIS2_CENTRALUS_KUBERNETES_CLUSTER_NAME=staging-odis2-centralus
# ODIS signer 2 Postgres DB
AZURE_ODIS2_CENTRALUS_ODIS_SIGNER_DB_HOST=staging-pgpnp2-centralus.postgres.database.azure.com
AZURE_ODIS2_CENTRALUS_ODIS_SIGNER_DB_PORT=5432
AZURE_ODIS2_CENTRALUS_ODIS_SIGNER_DB_USERNAME=pgpnp@staging-pgpnp2-centralus
# ODIS Signer 2 Key Vault
AZURE_ODIS2_CENTRALUS_ODIS_SIGNER_AZURE_KEYVAULT_NAME=staging-pgpnp-cus
AZURE_ODIS2_CENTRALUS_ODIS_SIGNER_AZURE_KEYVAULT_SECRET_NAME=bls-share2
# ODIS Signer 2 Prometheus config
AZURE_ODIS2_CENTRALUS_PROM_SCRAPE_JOB_NAME=scrape-odis
AZURE_ODIS2_CENTRALUS_PROM_SCRAPE_LABELS="_generic_location: us-central1,_generic_namespace: odis-signer"
AZURE_ODIS2_CENTRALUS_PROM_SCRAPE_TARGETS="staging-odis-signer.staging:3000"
AZURE_ODIS2_CENTRALUS_PROM_SIDECAR_GCP_PROJECT=celo-phone-number-privacy-stg
AZURE_ODIS2_CENTRALUS_PROM_SIDECAR_GCP_REGION=us-east1