k8s native config mgmt
This commit is contained in:
6
conf/finaldata/dexorder-finaldata.toml
Normal file
6
conf/finaldata/dexorder-finaldata.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
metadata='metadata.json' # mounted from a ConfigMap in the k8s yaml
|
||||
rpc_url = '${rpc_urls.finaldata}'
|
||||
account = ''
|
||||
ws_url = ''
|
||||
redis_url = ''
|
||||
ohlc_dir = '/ohlc'
|
||||
20
conf/finaldata/logging-finaldata.toml
Normal file
20
conf/finaldata/logging-finaldata.toml
Normal file
@@ -0,0 +1,20 @@
|
||||
# https://docs.python.org/3/library/logging.config.html#logging-config-dictschema
|
||||
version=1
|
||||
|
||||
[loggers.'']
|
||||
level='INFO'
|
||||
handlers=['console',]
|
||||
|
||||
[loggers.dexorder]
|
||||
level='DEBUG'
|
||||
|
||||
[handlers.console]
|
||||
class='logging.StreamHandler'
|
||||
formatter='notime'
|
||||
stream='ext://sys.stdout'
|
||||
|
||||
[formatters.notime]
|
||||
# https://docs.python.org/3/library/logging.html#logrecord-attributes
|
||||
format='%(levelname)s %(name)s %(message)s'
|
||||
# https://docs.python.org/3/library/time.html#time.strftime
|
||||
datefmt='%Y-%m-%d %H:%M:%S'
|
||||
28
conf/finaldata/metadata-finaldata.json
Normal file
28
conf/finaldata/metadata-finaldata.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"42161": {
|
||||
"t": [
|
||||
{
|
||||
"a": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
||||
"n": "Wrapped Ether",
|
||||
"s": "WETH",
|
||||
"d": 18
|
||||
},
|
||||
{
|
||||
"a": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
||||
"n": "USD Coin (Arbitrum Native)",
|
||||
"s": "USDC",
|
||||
"d": 6
|
||||
}
|
||||
],
|
||||
"p": [
|
||||
{
|
||||
"a": "0xC6962004f452bE9203591991D15f6b388e09E8D0",
|
||||
"b": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
||||
"q": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
||||
"f": 500,
|
||||
"e": 1,
|
||||
"d": 12
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user