config

package
v0.0.0-...-31acdf0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERC20DepositVersion string

Functions

This section is empty.

Types

type Config

type Config interface {
	DepositConfig() DepositConfig
	EthereumConfig() EthereumConfig
	FunnelConfig() FunnelConfig
	DeployerConfig() DeployerConfig

	comfig.Logger
	Horizoner
	Ether
}

func NewConfig

func NewConfig(getter kv.Getter) Config

type DeployerConfig

type DeployerConfig struct {
	KeyPair       *eth.Keypair    `fig:"private_key,required"`
	GasPrice      *big.Int        `fig:"gas_price,required"`
	GasLimit      *big.Int        `fig:"gas_limit,required"`
	ContractCount int             `fig:"contract_count,required"`
	ContractOwner common.Address  `fig:"contract_owner,required"`
	Signer        keypair.Full    `fig:"signer,required"`
	Source        keypair.Address `fig:"source"`
}

type DepositConfig

type DepositConfig struct {
	AdminSigner keypair.Full `fig:"admin_signer,required"`
}

type Ether

type Ether interface {
	EthClient() *ethclient.Client
}

func NewEther

func NewEther(getter kv.Getter) Ether

type EthereumConfig

type EthereumConfig struct {
	Checkpoint    uint64 `fig:"checkpoint"`
	Confirmations int64  `fig:"confirmations"`
}

type FunnelConfig

type FunnelConfig struct {
	GasPrice   *big.Int       `fig:"gas_price,required"`
	Threshold  *big.Int       `fig:"threshold,required"`
	HotWallet  common.Address `fig:"hot_wallet,required"`
	PrivateKey string         `fig:"private_key,required"`
}

type Horizoner

type Horizoner interface {
	Horizon() *client.Client
}

func NewHorizoner

func NewHorizoner(getter kv.Getter) Horizoner

Jump to

Keyboard shortcuts

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