This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config-test.yaml
77 lines (65 loc) · 2.23 KB
/
config-test.yaml
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
# Copyright 2021 ChainSafe Systems
# SPDX-License-Identifier: LGPL-3.0-only
# app mode: debug, release
app_mode: release
# env
env: dev # dev, production
# Log level
log_level: 5 # 5 is debug level, use 4(info) in prod
# Gin http server config
http_server:
mode: debug # or release, debug
port: :8091
# time in second before server shutdown
# this will allow server to finish running jobs before shutdown
finish_up_time: 3
# internal scheduled cronjob
cron_job:
update_conversion_rate_job:
name: conversion rate
enable: true
check_frequency: "* * * * *"
process_number: 1
update_gas_price_job:
name: gas price
enable: true
check_frequency: "* * * * *"
process_number: 1
# store path
store:
path: ./lvldbdata
# conversion_rate_apis contains the list of conversion rate api services
# implementation indicates the implementation of the oracle
# source is the source of the data, reflected the source of the api url
# url is the api url of gas price of the oracle
# api_key is the api key of the oracle
# enable is the flag to enable/disable the current api service, fee oracle will not instantiate this service if it is disabled
conversion_rate_apis:
- implementation: coinmarketcap
source: coinmarketcap
enable: true
url: https://pro-api.coinmarketcap.com/v2/cryptocurrency/quotes/latest?
domain_list:
- domain_id: 1
gas_price_apis:
- implementation: etherscan
source: etherscan_goerli
enable: true
url: https://api.etherscan.io/api?module=gastracker&action=gasoracle&apikey=
decimals: 9
- domain_id: 2
gas_price_apis:
- implementation: etherscan
source: etherscan_sepolia
enable: true
url: https://api.etherscan.io/api?module=gastracker&action=gasoracle&apikey=
decimals: 9
# conversion_rate_pairs contains price pair for conversion rate
# must be paired and follow the format of [ base, foreign, base, foreign, ... ]
conversion_rate_pairs:
[ eth, usdt ]
# strategy defines the strategy on verify and aggregate data from store when fetched
strategy:
local: average
# data_valid_interval defines how long the endpoint response data remains valid before sending it to fee handler contract
data_valid_interval: 3600 # second