package
0.0.0-20200909163651-5ade1b4e7d45
Repository: https://github.com/threefoldtech/rivine-extension-erc20.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Denominate converts gwei units into ether units.
IsNoPeerErr checks if an error is means an ethereum client could not execute a call because it has no valid peers.
NewBridge creates a new Bridge.
NewBridgeContract creates a new wrapper for an allready deployed contract.
NewLightClient creates a new light client that can be used to interact with the ETH network.

# Constants

EthBlockDelay is the amount of blocks to wait before pushing eth transaction to the tfchain network.
TFTBlockDelay is the amount of blocks to wait before pushing tft transactions to the ethereum contract.

# Variables

ErrNoAccountLoaded is an error returned for all Light Client methods that require an account and for which no account is loaded.

# Structs

Bridge is a high lvl structure which listens on contract events and bridge-related tfchain transactions, and handles them.
BridgeContract exposes a higher lvl api for specific contract bindings.
LightClient creates a light client that can be used to interact with the Ethereum network, for ERC20 purposes.
LightClientConfig combines all configuration required for creating and configuring a LightClient.
WithdrawEvent holds relevant information about a withdraw event.