sqs

package
v28.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

Sidecar Query Server Ingester

This is an implementation of the sidecar query server (SQS) ingester.

Please find the sidecar query server here

The use case for this is performing certain data and computationally intensive tasks outside of the chain node or the clients. For example, routing falls under this category because it requires all pool data for performing the complex routing algorithm.

SQS is meant to offload the query load from the chain node to a separate server. Primarily, we use it for swap routing.

Integrator Guide

Follow this link to find a guide on how to integrate with the sidecar query server.

Documentation

Index

Constants

View Source
const (

	// This is the pool ID that is used for converting between UOSMO and USDC
	// for liquidity pricing.
	// https://app.osmosis.zone/pool/1263
	DefaultUSDCUOSMOPool = 1263
)

Variables

View Source
var DefaultConfig = Config{
	IsEnabled: false,

	GRPCIngestAddress: "localhost:50051",

	GRPCIngestMaxCallSizeBytes: 50 * 1024 * 1024,
}

DefaultConfig defines the default config for the sidecar query server.

Functions

This section is empty.

Types

type Config

type Config struct {
	// IsEnabled defines if the sidecar query server is enabled.
	IsEnabled bool `mapstructure:"enabled"`
	// GRPCIngestAddress defines the gRPC address of the sidecar query server ingest.
	GRPCIngestAddress string `mapstructure:"grpc-ingest-address"`
	// GRPCIngestMaxCallSizeBytes defines the maximum size of a gRPC ingest call in bytes.
	GRPCIngestMaxCallSizeBytes int `mapstructure:"grpc-ingest-max-call-size-bytes"`
}

Config defines the config for the sidecar query server.

func NewConfigFromOptions

func NewConfigFromOptions(opts servertypes.AppOptions) Config

NewConfigFromOptions returns a new sidecar query server config from the given options.

Directories

Path Synopsis
pools

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL