ethereum

package
v0.0.0-...-9fddba8 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ethereum

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

func NewEthereum

func NewEthereum(endpoint string, plasmaContractAddress common.Address) (*Ethereum, error)

func (*Ethereum) Deposit

func (e *Ethereum) Deposit(ctx context.Context, key *ecdsa.PrivateKey, value *big.Int) (*types.Transaction, error)

func (*Ethereum) DepositERC20

func (e *Ethereum) DepositERC20(ctx context.Context, key *ecdsa.PrivateKey, tokenAddress common.Address, value *big.Int) (*types.Transaction, error)

func (*Ethereum) Exit

func (e *Ethereum) Exit(ctx context.Context, key *ecdsa.PrivateKey) (*types.Transaction, error)

func (*Ethereum) GetBalance

func (e *Ethereum) GetBalance(ctx context.Context, address common.Address) (*big.Int, error)

func (*Ethereum) GetLastBlockNumber

func (e *Ethereum) GetLastBlockNumber() (*big.Int, error)

func (*Ethereum) PushHashBlock

func (e *Ethereum) PushHashBlock(ctx context.Context, key *ecdsa.PrivateKey, blockNumber uint32, hash []byte) (*types.Transaction, error)

func (*Ethereum) SendTransactionInWei

func (e *Ethereum) SendTransactionInWei(ctx context.Context, key *ecdsa.PrivateKey, value *big.Int, to common.Address) (*types.Transaction, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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