mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-22 06:16:45 +01:00
Mohammed Sohail
4d13a14dc2
Squashed commit of the following: commit05e1396121
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Wed Feb 15 10:03:44 2023 +0300 feat: add status types to dispatcher commit397cd78ca9
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Wed Feb 15 09:39:31 2023 +0300 deps: bump -> cic-celo-sdk commitf2ba079232
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Sun Feb 12 16:53:53 2023 +0300 snapshot: 12-ebening commit4f7909e4ee
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Sun Feb 12 12:50:43 2023 +0300 xnapshot: 12-02 commit773474cad9
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Thu Feb 9 14:23:37 2023 +0300 update: deps initializers commit8a0880fcfc
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Thu Feb 9 10:42:15 2023 +0300 wip: refactor taskers commit8676450122
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Fri Feb 3 12:29:27 2023 +0300 refactor: decouple sql queries, remove transfer * add inline docs * removed transfer taks in prep for re-write commitb4c09cd11a
Author: Mohammed Sohail <sohailsameja@gmail.com> Date: Thu Feb 2 12:29:43 2023 +0000 refactor: cmd/service/* and api
64 lines
1.8 KiB
TOML
64 lines
1.8 KiB
TOML
[service]
|
|
address = ":5005"
|
|
# Exposes Prometheus metrics
|
|
# /metrics endpoint
|
|
metrics = true
|
|
|
|
# System default values
|
|
# Valus are in wei unless otherwise stated
|
|
[system]
|
|
# The giftable token is a training voucher
|
|
# Every new user is given 5 DGFT
|
|
gas_faucet = "0xA8b3Ffc715e85792FB361BDee9357B38D5A4a6cF"
|
|
giftable_token_address = "0xdD4F5ea484F6b16f031eF7B98F3810365493BC20"
|
|
giftable_token_value = 5000000
|
|
gas_refill_threshold = 100000000000000000
|
|
gas_refill_value = 100000000000000000
|
|
# Every custodial account is given 2 KES worth of CELO
|
|
giftable_gas_value = 2000000000000000000
|
|
# System private key
|
|
# Should always be toped up
|
|
private_key = "bfa7222a7bea3bde312434abe819b14cf3bc8703ceaabb98a9e3a97ceb0b79fd"
|
|
lock_prefix = "lock:"
|
|
public_key = "0x08eb3a90128D5874da54cf654fCfA88cEd1bb047"
|
|
token_decimals = 6
|
|
token_transfer_gas_limit = 200000
|
|
account_index = "0xdb2550ac5E52A54B6189FFAf17ECfF33AE190db9"
|
|
|
|
[chain]
|
|
rpc_endpoint = "http://192.168.0.101:8545"
|
|
testnet = true
|
|
|
|
[postgres]
|
|
debug = false
|
|
dsn = "postgres://postgres:postgres@localhost:5432/cic_custodial"
|
|
|
|
[redis]
|
|
debug = false
|
|
dsn = "redis://localhost:6379/1"
|
|
min_idle_conn = 5
|
|
|
|
[asynq]
|
|
worker_count = 15
|
|
debug = false
|
|
dsn = "redis://localhost:6379/0"
|
|
task_retention_hrs = 24
|
|
|
|
# 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"
|
|
] |