Documentation ¶
Index ¶
- func EtherToWei(value *big.Int) *big.Int
- func GetAddress() common.Address
- func GetAuth() *bind.TransactOpts
- func WaitTxSuccess(client *ethclient.Client, tx *types.Transaction, maxWait time.Duration, ...)
- func WeiToEther(value *big.Int) *big.Int
- type HTLContract
- func (h *HTLContract) Audit(receiver common.Address, value *big.Int, scrHash [32]byte) error
- func (h *HTLContract) Balance() *big.Int
- func (h *HTLContract) Chain() data.ChainType
- func (h *HTLContract) Extract() []byte
- func (h *HTLContract) FromBytes(message []byte)
- func (h *HTLContract) Funds(value *big.Int, lockTime *big.Int, receiver common.Address, scrHash [32]byte) error
- func (h *HTLContract) HTLContractObject() *htlc.Htlc
- func (h *HTLContract) Redeem(scr []byte) error
- func (h *HTLContract) Refund() error
- func (h *HTLContract) ScrHash() [32]byte
- func (h *HTLContract) ToBytes() []byte
- func (h *HTLContract) ToKey() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetAuth ¶
func GetAuth() *bind.TransactOpts
func WaitTxSuccess ¶ added in v0.7.0
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) 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) 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
Click to show internal directories.
Click to hide internal directories.