blockchain

package
v0.0.0-...-c50a19c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const RelayABI = "" /* 7048-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client to manage Connection to Ethereum

func (*Client) Close

func (ec *Client) Close()

Close ethereum connection

func (*Client) ConfigCall

func (ec *Client) ConfigCall(fromAddress common.Address) *bind.CallOpts

ConfigCall for ethereum address

func (*Client) ConfigTransaction

func (ec *Client) ConfigTransaction(key *ecdsa.PrivateKey, gasLimit uint64) (*bind.TransactOpts, error)

ConfigTransaction from ethereum address contract

func (*Client) Connect

func (ec *Client) Connect(nodeURL string) error

Connect to Ethereum

func (*Client) GenerateTransaction

func (ec *Client) GenerateTransaction(gasLimitTx uint64, relayAddress common.Address, from common.Address, to *common.Address, encodedFunction []byte, gasLimit *big.Int, nonce *big.Int, signature []byte, senderSignature []byte) *types.Transaction

GenerateTransaction ...

func (*Client) GetEthclient

func (ec *Client) GetEthclient() *ethclient.Client

GetEthclient ...

func (*Client) GetNodeInformation

func (ec *Client) GetNodeInformation(contractAddress common.Address, enodeHigh, enodeLow [32]byte, enodeIp [16]byte, port uint16, blockNumber *big.Int) (uint8, error)

GetNodeInformation ...

func (*Client) GetNodeIngressContract

func (ec *Client) GetNodeIngressContract(contractAddress common.Address, name [32]byte) (string, error)

0x72756c6573000000000000000000000000000000000000000000000000000000 GetNodeIngressContract ...

func (*Client) GetTransactionReceipt

func (ec *Client) GetTransactionReceipt(transactionHash common.Hash) (*types.Receipt, error)

GetTransactionReceipt ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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