2022-11-30 10:51:24 +01:00
|
|
|
[service]
|
2023-02-12 10:50:43 +01:00
|
|
|
address = ":5005"
|
2023-02-02 13:29:43 +01:00
|
|
|
# Exposes Prometheus metrics
|
|
|
|
# /metrics endpoint
|
|
|
|
metrics = true
|
2022-11-30 10:51:24 +01:00
|
|
|
|
2023-02-02 13:29:43 +01:00
|
|
|
# System default values
|
|
|
|
# Valus are in wei unless otherwise stated
|
2022-11-30 10:51:24 +01:00
|
|
|
[system]
|
2023-02-02 13:29:43 +01:00
|
|
|
# The giftable token is a training voucher
|
|
|
|
# Every new user is given 5 DGFT
|
2023-02-12 14:53:53 +01:00
|
|
|
gas_faucet = "0xA8b3Ffc715e85792FB361BDee9357B38D5A4a6cF"
|
|
|
|
giftable_token_address = "0xdD4F5ea484F6b16f031eF7B98F3810365493BC20"
|
2023-02-02 13:29:43 +01:00
|
|
|
giftable_token_value = 5000000
|
2023-02-12 10:50:43 +01:00
|
|
|
gas_refill_threshold = 100000000000000000
|
|
|
|
gas_refill_value = 100000000000000000
|
|
|
|
# Every custodial account is given 2 KES worth of CELO
|
|
|
|
giftable_gas_value = 2000000000000000000
|
2023-02-02 13:29:43 +01:00
|
|
|
# System private key
|
|
|
|
# Should always be toped up
|
2023-02-12 14:53:53 +01:00
|
|
|
private_key = "bfa7222a7bea3bde312434abe819b14cf3bc8703ceaabb98a9e3a97ceb0b79fd"
|
2023-02-02 13:29:43 +01:00
|
|
|
lock_prefix = "lock:"
|
2023-02-12 14:53:53 +01:00
|
|
|
public_key = "0x08eb3a90128D5874da54cf654fCfA88cEd1bb047"
|
2023-02-02 13:29:43 +01:00
|
|
|
token_decimals = 6
|
2023-02-12 10:50:43 +01:00
|
|
|
token_transfer_gas_limit = 200000
|
2023-02-12 14:53:53 +01:00
|
|
|
account_index = "0xdb2550ac5E52A54B6189FFAf17ECfF33AE190db9"
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
[chain]
|
2023-02-12 10:50:43 +01:00
|
|
|
rpc_endpoint = "http://192.168.0.101:8545"
|
2023-02-02 13:29:43 +01:00
|
|
|
testnet = true
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
[postgres]
|
|
|
|
debug = false
|
2023-02-02 13:29:43 +01:00
|
|
|
dsn = "postgres://postgres:postgres@localhost:5432/cic_custodial"
|
2022-11-30 10:51:24 +01:00
|
|
|
|
|
|
|
[redis]
|
2023-02-02 13:29: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-02 13:29:43 +01:00
|
|
|
worker_count = 15
|
|
|
|
debug = false
|
2023-02-03 10:29:27 +01:00
|
|
|
dsn = "redis://localhost:6379/0"
|
2023-02-02 13:29:43 +01:00
|
|
|
task_retention_hrs = 24
|
2023-02-12 10:50:43 +01:00
|
|
|
|
|
|
|
# https://docs.nats.io/
|
|
|
|
[jetstream]
|
|
|
|
endpoint = "nats://localhost:4222"
|
|
|
|
stream_name = "CUSTODIAL"
|
|
|
|
# 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)
|
|
|
|
dedup_duration_hours = 6
|
|
|
|
# Stream subjects
|
|
|
|
stream_subjects = [
|
|
|
|
"CUSTODIAL.accountNewNonce",
|
|
|
|
"CUSTODIAL.accountRegister",
|
|
|
|
"CUSTODIAL.giftNewAccountGas",
|
|
|
|
"CUSTODIAL.giftNewAccountVoucher",
|
|
|
|
"CUSTODIAL.dispatchFail",
|
|
|
|
"CUSTODIAL.dispatchSuccess",
|
|
|
|
"CUSTODIAL.transferSign"
|
|
|
|
]
|