conf

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenContract      = "swan_token"
	CollateralContract = "swan_collateral"
	DefaultRpc         = "swan"
	BaseRpc            = "goerli"
)

Variables

This section is empty.

Functions

func GetRpcByName

func GetRpcByName(rpcName string) (string, error)

Types

type ChainConfig

type ChainConfig struct {
	RPC struct {
		GoerliUrl   string `toml:"GOERLI_URL"`
		SwanTestnet string `toml:"SWAN_TESTNET"`
		SwanMainnet string `toml:"SWAN_MAINNET"`
	} `toml:"RPC"`
	CONTRACT struct {
		SwanToken  string `toml:"SWAN_CONTRACT"`
		Collateral string `toml:"SWAN_COLLATERAL_CONTRACT"`
		UbiTask    string `toml:"UBI_TASK_CONTRACT"`
	} `toml:"CONTRACT"`
}

Jump to

Keyboard shortcuts

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