config

package
v0.0.0-...-029200b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

common use fot dna-tool

Index

Constants

This section is empty.

Variables

View Source
var DefConfig = NewTestConfig()

Default config instance

Functions

This section is empty.

Types

type TestConfig

type TestConfig struct {
	//JsonRpcAddress of dna
	JsonRpcAddress string
	//RestfulAddress of dna
	RestfulAddress string
	//WebSocketAddress of dna
	WebSocketAddress string

	//Gas Price of transaction
	GasPrice uint64
	//Gas Limit of invoke transaction
	GasLimit uint64
	//Gas Limit of deploy transaction
	GasDeployLimit uint64
}

Config object used by dna-instance

func NewTestConfig

func NewTestConfig() *TestConfig

NewTestConfig retuen a TestConfig instance

func (*TestConfig) Init

func (this *TestConfig) 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