Oracle provider implementation
Configuration (default name: o1.json):
{
"address": "0xB65e413Cd1b7b177Ebd38c8E850EeCD64630768C",
"port": 8000,
"privatekey": "b3aa5b1e29c4a2ecd7563b50ab8483837d9c3622474227b81c7764b13eec2939",
"keyfile": "path-to-filekey",
"ip": "127.0.0.1"
}
Where privatekey
and privatekey
are ways to define oracle key and only one is necessary.
Invoke with:
uvicorn run:app
or:
python run.py
Especify other configuration file with one of these:
CFG=mycfg.json uvicorn run:app
CFG=my_config.json python run.py
- make publish message support fallback address
- read blocks for new published price
sign endpoint- configure oracle server port from its config file
- review block incoming function for busyloops
- check price checker functions