config

package
v0.0.0-...-c0e68af Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultFusdcDecimals to use as the default for the base asset
	DefaultFusdcDecimals = 6

	// DefaultFusdcSymbol to send to users (from Superposition Testnet)
	DefaultFusdcSymbol = "fUSDC"

	// DefaultFusdcName to use (from Superposition Testnet)
	DefaultFusdcName = "Fluid USDC"
)

Variables

View Source
var DefaultFusdcTotalSupply = mustUnscaled("999999999999999999900750000")

DefaultFusdcTotalSupply from Superposition Testnet

View Source
var DefaultPoolConfiguration = Pool{
	Displayed:      true,
	Classification: seawater.ClassificationUnknown,
}

DefaultPoolConfig, for when we haven't identified the pool manually in the past.

Functions

This section is empty.

Types

type C

type C struct {
	GethUrl                 string
	TimescaleUrls           []string
	SeawaterAddr, FusdcAddr types.Address
	FusdcDecimals           int
	FusdcTotalSupply        types.UnscaledNumber
	FusdcSymbol, FusdcName  string
}

C is configuration for each service, and globally.

func Get

func Get() C

Get config by querying environment variables.

func (C) PickTimescaleUrl

func (c C) PickTimescaleUrl() string

type Pool

type Pool struct {
	Displayed      bool                    `toml:"displayed" json:"displayed"`
	Classification seawater.Classification `toml:"classification" json:"classification"`
	Image          string                  `toml:"image" json:"image"`
	Price          string                  `toml:"price" json:"price"`
}

Pool config, probably derived from config/pools.toml.

Jump to

Keyboard shortcuts

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