config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NetworkIdentifier NetworkIdentifier `yaml:"network_identifier"`
	Currency          Currency          `yaml:"currency"`
	Server            Server            `yaml:"server"`
	KeepNoneTxAction  bool              `yaml:"keepNoneTxAction"`
}

func New

func New(path string) (cfg *Config, err error)

type Currency

type Currency struct {
	Symbol   string `yaml:"symbol"`
	Decimals int32  `yaml:"decimals"`
}

type NetworkIdentifier

type NetworkIdentifier struct {
	Blockchain   string `yaml:"blockchain"`
	Network      string `yaml:"network"`
	EvmNetworkID uint32 `yaml:"evmNetworkID"`
}

type Server

type Server struct {
	Port           string `yaml:"port"`
	Endpoint       string `yaml:"endpoint"`
	SecureEndpoint bool   `yaml:"secureEndpoint"`
	RosettaVersion string `yaml:"rosettaVersion"`
}

Jump to

Keyboard shortcuts

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