ethereum

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtherToWei added in v0.5.0

func EtherToWei(value *big.Int) *big.Int

func GetAddress

func GetAddress() common.Address

func GetAuth

func GetAuth() *bind.TransactOpts

func WaitTxSuccess added in v0.7.0

func WaitTxSuccess(client *ethclient.Client, tx *types.Transaction, maxWait time.Duration, interval time.Duration)

func WeiToEther added in v0.5.0

func WeiToEther(value *big.Int) *big.Int

Types

type HTLContract added in v0.5.0

type HTLContract struct {
	Address common.Address `json:"address"`
	TxHash  common.Hash    `json:"txhash"`
}

func CreateHtlContract added in v0.5.2

func CreateHtlContract() *HTLContract

func (*HTLContract) Audit added in v0.5.0

func (h *HTLContract) Audit(receiver common.Address, value *big.Int, scrHash [32]byte) error

func (*HTLContract) Balance added in v0.5.0

func (h *HTLContract) Balance() *big.Int

func (*HTLContract) Chain added in v0.7.0

func (h *HTLContract) Chain() data.ChainType

func (*HTLContract) Extract added in v0.5.0

func (h *HTLContract) Extract() []byte

func (*HTLContract) FromBytes added in v0.7.0

func (h *HTLContract) FromBytes(message []byte)

func (*HTLContract) Funds added in v0.5.0

func (h *HTLContract) Funds(value *big.Int, lockTime *big.Int, receiver common.Address, scrHash [32]byte) error

func (*HTLContract) HTLContractObject added in v0.5.0

func (h *HTLContract) HTLContractObject() *htlc.Htlc

func (*HTLContract) Redeem added in v0.5.0

func (h *HTLContract) Redeem(scr []byte) error

func (*HTLContract) Refund added in v0.5.0

func (h *HTLContract) Refund() error

func (*HTLContract) ScrHash added in v0.5.0

func (h *HTLContract) ScrHash() [32]byte

func (*HTLContract) ToBytes added in v0.7.0

func (h *HTLContract) ToBytes() []byte

func (*HTLContract) ToKey added in v0.5.2

func (h *HTLContract) ToKey() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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