ethereum

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	// contains filtered or unexported fields
}

Channel reprensents the connection to the eth blochain

func NewEthereumChannel

func NewEthereumChannel(DB *db.DB, cnf *config.Config) *Channel

NewEthereumChannel connects the eth-client

func (*Channel) GeneratePaymentAddress

func (l *Channel) GeneratePaymentAddress() (Address string, Seed string, err error)

GeneratePaymentAddress generates a ethereum address and seed

func (*Channel) Name

func (l *Channel) Name() string

Name returns the name of the channel

func (*Channel) Start

func (l *Channel) Start() error

Start the listener for the eth blockchain

func (*Channel) TransferAmount

func (l *Channel) TransferAmount(Order *m.UserOrder, inTx *m.IncomingTransaction, Amount *big.Int, fromAddress string, PaymentType string, BTCOutIndex int) error

TransferAmount transfers the given amount to the given address in the btc network also adds the transaction logs

Jump to

Keyboard shortcuts

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