config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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
	NeoMagic          uint32
	NeoWalletFile     string
	NeoJsonRpcUrl     string
	NeoChainID        uint64
	NeoCCMC           string // big endian string, like 0x1234567812345678123456781234567812345678
	NtorContract      string
	RtonContract      string
	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