config

package
v1.3.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseClientConfig

func ParseClientConfig()

ParseClientConfig reads config from command line

func Setup

func Setup()

Types

type BridgeConfig

type BridgeConfig struct {
	// Ethereum mnemonic (derivation of Ethereum owner, public and private key)
	Mnemonic string
	// Address of Ethereum bridge contract
	BridgeAddress string
	// Address of WZCN Ethereum wrapped token
	WzcnAddress string
	// URL of ethereum RPC node (infura or alchemy)
	EthereumNodeURL string
	// Ethereum chain ID
	ChainID string
	// Gas limit to execute ethereum transaction
	GasLimit uint64
	// Value to execute ZCN smart contracts
	Value int64
}

BridgeConfig initializes Ethereum wallet and params

var (
	Bridge BridgeConfig
)

type ClientConfig

type ClientConfig struct {
	KeyFileDir  *string
	KeyFile     *string
	LogPath     *string
	ConfigFile  *string
	ConfigDir   *string
	Development *bool
}
var Client ClientConfig

func (ClientConfig) BlockWorker

func (c ClientConfig) BlockWorker() string

func (ClientConfig) LogDir

func (c ClientConfig) LogDir() string

func (ClientConfig) LogLvl

func (c ClientConfig) LogLvl() string

func (ClientConfig) SignatureScheme

func (c ClientConfig) SignatureScheme() string

Jump to

Keyboard shortcuts

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