Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.