Documentation
¶
Index ¶
- func EtherToWei(value *big.Int) *big.Int
- func GetAddress() common.Address
- func GetAuth() *bind.TransactOpts
- 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) Extract() []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) ToKey() []byte
- func (h *HTLContract) ToMessage() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetAuth ¶
func GetAuth() *bind.TransactOpts
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) 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) 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
Click to show internal directories.
Click to hide internal directories.