config

package
v0.0.0-...-67c5371 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChainIDUnknown = "n/a"
	ChainIDBTS     = "4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8"
	ChainIDMuse    = "45ad2d3f9ef92a49b55c2227eb06123f613bb35dd08bd876f2aea21925a67a67"
	ChainIDTest    = "39f5e2ede1f8bc1a3a54a7914414e3779e33193f1f5693510e73cb7a87617447"
	ChainIDObelisk = "1cfde7c388b9e8ac06462d68aadbd966b58f88797637d9af805b4560b0e9661e"
	ChainIDGPH     = "b8d1603965b3eb1acba27e62ff59f74efa3154d43a4188d381088ac7cdf35539"
	ChainIDSPM     = ""
	ChainIDSPMTest = "3b3b6ec2827fe6b27805203264e035e4a94f6ba95da7a14f7746b6f75612e676"
	ChainIDAIS     = "32a81eefffe46f2b486d9c7c6b3990f8a1c1d97713eed46bfbb3925d2a4e986e"
)
View Source
var DefaultChain = ChainConfig{
	"name":           "BAR",
	"core_asset":     "BAR",
	"address_prefix": "BAR",
}

Functions

func CustomCurrentConfig

func CustomCurrentConfig(cfg *ChainConfig) error

func SetCurrentConfig

func SetCurrentConfig(chainID string) error

Types

type ChainConfig

type ChainConfig map[string]interface{}

func CurrentConfig

func CurrentConfig() *ChainConfig

func (ChainConfig) ID

func (p ChainConfig) ID() string

func (ChainConfig) Prefix

func (p ChainConfig) Prefix() string

Jump to

Keyboard shortcuts

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