ethereum

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthAdaptor

type EthAdaptor struct {
	Addrs storage.AddressBook
	// contains filtered or unexported fields
}

EthAdaptor provides adapter for ethereum

func (*EthAdaptor) Count

func (a *EthAdaptor) Count() (totalNumber int, consensusNumber int)

Count Calculate the total and consensus number for chain

func (*EthAdaptor) GetChainName

func (a *EthAdaptor) GetChainName() string

GetChainName returns chain name

func (*EthAdaptor) GetIP

func (a *EthAdaptor) GetIP() string

GetIP returns chain node ip

func (*EthAdaptor) GetPort

func (a *EthAdaptor) GetPort() int

GetPort returns chain node port

func (*EthAdaptor) GetSequence

func (a *EthAdaptor) GetSequence() int64

GetSequence returns sequence of tx in cache

func (*EthAdaptor) ObtainTx

func (a *EthAdaptor) ObtainTx(chainID string, sequence int64) (*txs.TxQcp, error)

ObtainTx obtain Tx from ethereum chain recharge:

send transaction data back to fabric

withdraw:

send transaction data back to fabric

func (*EthAdaptor) QuerySequence

func (a *EthAdaptor) QuerySequence(chainID string, inout string) (int64, error)

QuerySequence query sequence of Tx in ethereum

func (*EthAdaptor) Start

func (a *EthAdaptor) Start() error

Start fabric adapter service

func (*EthAdaptor) Stop

func (a *EthAdaptor) Stop() error

Stop fabric adapter service

func (*EthAdaptor) SubmitTx

func (a *EthAdaptor) SubmitTx(chainID string, tx *txs.TxQcp) error

SubmitTx submit Tx to ethereum chain

func (*EthAdaptor) Subscribe

func (a *EthAdaptor) Subscribe(listener ports.EventsListener)

Subscribe events from ethereum chain

func (*EthAdaptor) Sync

func (a *EthAdaptor) Sync() error

Sync status for fabric adapter service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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