config

package
v0.0.0-...-b49069d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CONFIG_FILE_NAME = "./config.json"
	DEFAULT_LOG_LEVEL        = 2
)

Variables

View Source
var DefConfig = NewConfig()

Default config instance

Functions

This section is empty.

Types

type Config

type Config struct {
	RelayJsonRpcUrl   string
	WalletFile        string
	RelayAccountsPath string

	NeoWalletFile string
	NeoJsonRpcUrl string
	NeoChainID    uint64
	NeoCCMC       string // little endian string
	NtorContract  string // neo to relay contract which is monitored
	RtonContract  string // relay to neo contract which is monitored
	NeoSysFee     float64
	NeoNetFee     float64

	ScanInterval     uint64
	RetryInterval    uint64
	DBPath           string
	ChangeBookkeeper bool

	PolyStartHeight uint32
	NeoStartHeight  uint32
}

Config object used by neo-instance

func NewConfig

func NewConfig() *Config

NewConfig retuen a TestConfig instance

func (*Config) Init

func (this *Config) Init(fileName string) error

Init TestConfig with a config file

Jump to

Keyboard shortcuts

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