2022-11-30 10:51:24 +01:00
|
|
|
[service]
|
2023-02-15 08:05:43 +01:00
|
|
|
address = ":5005"
|
|
|
|
# Exposes Prometheus metrics
|
|
|
|
# /metrics endpoint
|
|
|
|
metrics = true
|
2022-11-30 10:51:24 +01:00
|
|
|
|
2023-02-20 10:56:30 +01:00
|
|
|
[chain]
|
|
|
|
rpc_endpoint = "https://rpc.alfajores.celo.grassecon.net"
|
|
|
|
testnet = true
|
|
|
|
|
2023-02-15 08:05:43 +01:00
|
|
|
# System default values
|
|
|
|
# Valus are in wei unless otherwise stated
|
2022-11-30 10:51:24 +01:00
|
|
|
[system]
|
2023-02-15 08:05:43 +01:00
|
|
|
# The giftable token is a training voucher
|
|
|
|
# Every new user is given 5 DGFT
|
2023-02-20 10:56:30 +01:00
|
|
|
gas_faucet = "0xf2a1fc19Ad275A0EAe3445798761FeD1Eea725d5"
|
|
|
|
giftable_token_address = "0xB92463E2262E700e29c16416270c9Fdfa17934D7"
|
2023-02-15 08:05:43 +01:00
|
|
|
giftable_token_value = 5000000
|
2023-02-20 10:56:30 +01:00
|
|
|
gas_refill_threshold = 20000000000000000
|
|
|
|
gas_refill_value = 10000000000000000
|
2023-02-15 08:05:43 +01:00
|
|
|
# Every custodial account is given 2 KES worth of CELO
|
2023-02-20 10:56:30 +01:00
|
|
|
giftable_gas_value = 10000000000000000
|
2023-02-15 08:05:43 +01:00
|
|
|
# System private key
|
|
|
|
# Should always be toped up
|
2023-02-20 10:56:30 +01:00
|
|
|
private_key = "95f04bc8321cbf693db9cc2bc063411bbd8bee0e4a03dea096c755d8bcca42c6"
|
2023-02-15 08:05:43 +01:00
|
|
|
lock_prefix = "lock:"
|
2023-02-20 10:56:30 +01:00
|
|
|
public_key = "0x0577AE5A3547AC753aC499E282557CE0275a4942"
|
2023-02-15 08:05:43 +01:00
|
|
|
token_decimals = 6
|
|
|
|
token_transfer_gas_limit = 200000
|
2023-02-20 10:56:30 +01:00
|
|
|
account_index = "0x1e041282695C66944BfC53cabce947cf35CEaf87"
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
[postgres]
|
|
|
|
debug = false
|
2023-02-15 08:05:43 +01:00
|
|
|
dsn = "postgres://postgres:postgres@localhost:5432/cic_custodial"
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
[redis]
|
2023-02-15 08:05:43 +01:00
|
|
|
debug = false
|
|
|
|
dsn = "redis://localhost:6379/1"
|
|
|
|
min_idle_conn = 5
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
[asynq]
|
2023-02-15 08:05:43 +01:00
|
|
|
worker_count = 15
|
|
|
|
debug = false
|
|
|
|
dsn = "redis://localhost:6379/0"
|
|
|
|
task_retention_hrs = 24
|
|
|
|
|
|
|
|
# https://docs.nats.io/
|
|
|
|
[jetstream]
|
|
|
|
endpoint = "nats://localhost:4222"
|
|
|
|
# Duration JetStream should keep the message before remocing it from the persistent store
|
|
|
|
persist_duration_hours = 48
|
|
|
|
# Duration to ignore duplicate transactions (e.g. due to restart)
|
2023-02-20 10:56:30 +01:00
|
|
|
dedup_duration_hours = 6
|