Giter Site home page Giter Site logo

kujira-feeder-config's Introduction

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 = [
  "http://127.0.0.1:11702",
  "https://api-kujira.starsquid.io"
]

Update your feeder config

update-config.py --tag v1.0.0 --custom custom.toml --config global > 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: 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

kujira-feeder-config's People

Contributors

starsquidnodes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.