ethereum

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

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 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"`
	Tx      *types.Transaction `json:"Tx"`
}

func CreateHtlContract added in v0.5.2

func CreateHtlContract() *HTLContract

func GetHTLCFromMessage added in v0.5.0

func GetHTLCFromMessage(message []byte) *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) Extract added in v0.5.0

func (h *HTLContract) Extract() []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) ToKey added in v0.5.2

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

func (*HTLContract) ToMessage added in v0.5.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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