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 10:50:43 +01:00
|
|
|
gas_faucet = "0x6dE38F79Cf455339e8141D15E208ba09eea634e1"
|
|
|
|
giftable_token_address = "0x4091fc149522d5FE31d0970687078B1aE0625892"
|
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 10:50:43 +01:00
|
|
|
private_key = "d87f322629cf071ccd3ddf17ab5e1abf098a25c4c5d791d7535d265379b2ae37"
|
2023-02-02 13:29:43 +01:00
|
|
|
lock_prefix = "lock:"
|
2023-02-12 10:50:43 +01:00
|
|
|
public_key = "0xe5ab7A5af1f28aA8E9658AC33a6ebF2a8641d948"
|
2023-02-02 13:29:43 +01:00
|
|
|
token_decimals = 6
|
2023-02-12 10:50:43 +01:00
|
|
|
token_transfer_gas_limit = 200000
|
|
|
|
account_index = "0x70138F458Fa56C034acb19E38d082843327F18A4"
|
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"
|
|
|
|
]
|