config

package
v0.0.0-...-89a1428 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSerializableConfig

func LoadSerializableConfig(chainID string, serializableConfig *OracleSerializableConfig) (*oracle.Config, error)

Types

type DAppChainSerializableConfig

type DAppChainSerializableConfig struct {
	WriteURI string
	ReadURI  string
	// Used to sign txs sent to Loom DAppChain
	PrivateKeyPath string
}

func (*DAppChainSerializableConfig) Clone

Clone returns a deep clone of the config.

type EthClientSerializableConfig

type EthClientSerializableConfig struct {
	// URI of an Ethereum node
	EthereumURI string
	// Path of Private key that should be used to sign txs sent to Ethereum
	PrivateKeyPath string
}

func (*EthClientSerializableConfig) Clone

Clone returns a deep clone of the config.

type OracleSerializableConfig

type OracleSerializableConfig struct {
	Enabled              bool
	StatusServiceAddress string
	DAppChainCfg         *DAppChainSerializableConfig
	EthClientCfg         *EthClientSerializableConfig
	TimeLockWorkerCfg    *TimeLockWorkerSerializableConfig
	MainnetPollInterval  int64
}

func DefaultConfig

func DefaultConfig() *OracleSerializableConfig

func (*OracleSerializableConfig) Clone

Clone returns a deep clone of the config.

type TimeLockWorkerSerializableConfig

type TimeLockWorkerSerializableConfig struct {
	TimeLockFactoryHexAddress string
	Enabled                   bool
}

Jump to

Keyboard shortcuts

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