Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Kujira feeder config tool created by Starsquid. Automates the updating of our config.toml for our Kujira oracle price-feeder file.

Notifications You must be signed in to change notification settings

WhisperNode/starsquid-feeder-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feeder-config

Unofficial configurations, scripts and examples for Kujira price feeder

Simple update

Create a toml that holds your price feeder specific settings as well as your custom url sets

gas_adjustment = 2.5
gas_prices = "0.0034ukuji"
enable_server = true
enable_voter = true
provider_timeout = "1s"

history_db = "/var/tmp/feeder.db"

[server]
listen_addr = "0.0.0.0:7171"
read_timeout = "20s"
verbose_cors = true
write_timeout = "20s"

[account]
address = "kujira1..."
chain_id = "kaiyo-1"
validator = "kujiravaloper..."
prefix = "kujira"
# fee_granter = "kujira..."

[keyring]
backend = "file"
dir = "/home/kujira-feeder"

[rpc]
grpc_endpoint = "localhost:9090"
rpc_timeout = "100ms"
tmrpc_endpoint = "http://localhost:26657"

[telemetry]
enable_hostname = true
enable_hostname_label = true
enable_service_label = true
enabled = true
global_labels = [["chain_id", "kaiyo-1"]]
service_name = "price-feeder"
type = "prometheus"
# prometheus_retention = 120

#
#  URL SETS
# ------------------------------------------------------------

[url_set.fin]
urls = ["https://kaiyo-1.gigalixirapp.com"]

[url_set.api_kujira]
urls = [
  "https://you.api.node",
  "https://another.url"
]

Update your feeder config

update-config.py --tag x.y.z --custom custom.toml --config configname > config.toml

Configs

global

This config makes use of (almost) all available price sources including binance and binanceus

Required URL sets:

# providers: finv2
# https://cosmos.directory/kujira/nodes (REST)
[url_set.api_kujira]
urls = []

# providers: astroport_neutron
# https://cosmos.directory/neutron/nodes (REST)
[url_set.api_neutron]
urls = []

# providers: osmosisv2
# https://cosmos.directory/osmosis/nodes (REST)
[url_set.api_osmosis]
urls = []

# providers: dexter
# https://cosmos.directory/persistence/nodes (REST)
[url_set.api_persistence]
urls = []

# providers: shade
# https://cosmos.directory/secretnetwork/nodes (REST)
[url_set.api_secret]
urls = []

# providers: uniswapv3
# https://ethereumnodes.com
[url_set.rpc_ethereum]
urls = []

# providers: fin
# ["https://api.kujira.app", "https://kaiyo-1.gigalixirapp.com"]
[url_set.fin]
urls = []

north-america

This config is meant for nodes running in North America and are geo blocked by binance. It makes use of (almost) all available price sources excluding binance

Required URL sets:

# providers: finv2
# https://cosmos.directory/kujira/nodes (REST)
[url_set.api_kujira]
urls = []

# providers: astroport_neutron
# https://cosmos.directory/neutron/nodes (REST)
[url_set.api_neutron]
urls = []

# providers: osmosisv2
# https://cosmos.directory/osmosis/nodes (REST)
[url_set.api_osmosis]
urls = []

# providers: dexter
# https://cosmos.directory/persistence/nodes (REST)
[url_set.api_persistence]
urls = []

# providers: shade
# https://cosmos.directory/secretnetwork/nodes (REST)
[url_set.api_secret]
urls = []

# providers: uniswapv3
# https://ethereumnodes.com
[url_set.rpc_ethereum]
urls = []

# providers: fin
# ["https://api.kujira.app", "https://kaiyo-1.gigalixirapp.com"]
[url_set.fin]
urls = []

YAML to TOML converter

To make config maintenance a bit easier, you can define the price source config in YAML notation and convert it to TOML with

create-feeder-config.py your-config.yml

About

Kujira feeder config tool created by Starsquid. Automates the updating of our config.toml for our Kujira oracle price-feeder file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.8%
  • Shell 2.2%