htlc

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 8 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

View Source
const HtlcABI = "" /* 3047-byte string literal not displayed */

HtlcABI is the input ABI used to generate the binding from.

View Source
const HtlcBin = `` /* 6844-byte string literal not displayed */

HtlcBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Htlc

type Htlc struct {
	HtlcCaller     // Read-only binding to the contract
	HtlcTransactor // Write-only binding to the contract
	HtlcFilterer   // Log filterer for contract events
}

Htlc is an auto generated Go binding around an Ethereum contract.

func DeployHtlc

func DeployHtlc(auth *bind.TransactOpts, backend bind.ContractBackend, _sender common.Address) (common.Address, *types.Transaction, *Htlc, error)

DeployHtlc deploys a new Ethereum contract, binding an instance of Htlc to it.

func NewHtlc

func NewHtlc(address common.Address, backend bind.ContractBackend) (*Htlc, error)

NewHtlc creates a new instance of Htlc, bound to a specific deployed contract.

type HtlcCaller

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

HtlcCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewHtlcCaller

func NewHtlcCaller(address common.Address, caller bind.ContractCaller) (*HtlcCaller, error)

NewHtlcCaller creates a new read-only instance of Htlc, bound to a specific deployed contract.

func (*HtlcCaller) Audit

func (_Htlc *HtlcCaller) Audit(opts *bind.CallOpts, receiver_ common.Address, balance_ *big.Int, scrHash_ [32]byte) (bool, error)

Audit is a free data retrieval call binding the contract method 0x09ce7368.

Solidity: function audit(receiver_ address, balance_ uint256, scrHash_ bytes32) constant returns(bool)

func (*HtlcCaller) Balance

func (_Htlc *HtlcCaller) Balance(opts *bind.CallOpts) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() constant returns(uint256)

func (*HtlcCaller) ExtractMsg

func (_Htlc *HtlcCaller) ExtractMsg(opts *bind.CallOpts) ([]byte, error)

ExtractMsg is a free data retrieval call binding the contract method 0xb77577cd.

Solidity: function extractMsg() constant returns(bytes)

func (*HtlcCaller) LockPeriod

func (_Htlc *HtlcCaller) LockPeriod(opts *bind.CallOpts) (*big.Int, error)

LockPeriod is a free data retrieval call binding the contract method 0x3fd8b02f.

Solidity: function lockPeriod() constant returns(uint256)

func (*HtlcCaller) Receiver

func (_Htlc *HtlcCaller) Receiver(opts *bind.CallOpts) (common.Address, error)

Receiver is a free data retrieval call binding the contract method 0xf7260d3e.

Solidity: function receiver() constant returns(address)

func (*HtlcCaller) ScrHash

func (_Htlc *HtlcCaller) ScrHash(opts *bind.CallOpts) ([32]byte, error)

ScrHash is a free data retrieval call binding the contract method 0x45d8b894.

Solidity: function scrHash() constant returns(bytes32)

func (*HtlcCaller) Sender

func (_Htlc *HtlcCaller) Sender(opts *bind.CallOpts) (common.Address, error)

Sender is a free data retrieval call binding the contract method 0x67e404ce.

Solidity: function sender() constant returns(address)

func (*HtlcCaller) StartFromTime

func (_Htlc *HtlcCaller) StartFromTime(opts *bind.CallOpts) (*big.Int, error)

StartFromTime is a free data retrieval call binding the contract method 0xf85da5ca.

Solidity: function startFromTime() constant returns(uint256)

func (*HtlcCaller) Validate

func (_Htlc *HtlcCaller) Validate(opts *bind.CallOpts, scr_ []byte) error

Validate is a free data retrieval call binding the contract method 0xc16e50ef.

Solidity: function validate(scr_ bytes) constant returns()

type HtlcCallerRaw

type HtlcCallerRaw struct {
	Contract *HtlcCaller // Generic read-only contract binding to access the raw methods on
}

HtlcCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*HtlcCallerRaw) Call

func (_Htlc *HtlcCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type HtlcCallerSession

type HtlcCallerSession struct {
	Contract *HtlcCaller   // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

HtlcCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*HtlcCallerSession) Audit

func (_Htlc *HtlcCallerSession) Audit(receiver_ common.Address, balance_ *big.Int, scrHash_ [32]byte) (bool, error)

Audit is a free data retrieval call binding the contract method 0x09ce7368.

Solidity: function audit(receiver_ address, balance_ uint256, scrHash_ bytes32) constant returns(bool)

func (*HtlcCallerSession) Balance

func (_Htlc *HtlcCallerSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() constant returns(uint256)

func (*HtlcCallerSession) ExtractMsg

func (_Htlc *HtlcCallerSession) ExtractMsg() ([]byte, error)

ExtractMsg is a free data retrieval call binding the contract method 0xb77577cd.

Solidity: function extractMsg() constant returns(bytes)

func (*HtlcCallerSession) LockPeriod

func (_Htlc *HtlcCallerSession) LockPeriod() (*big.Int, error)

LockPeriod is a free data retrieval call binding the contract method 0x3fd8b02f.

Solidity: function lockPeriod() constant returns(uint256)

func (*HtlcCallerSession) Receiver

func (_Htlc *HtlcCallerSession) Receiver() (common.Address, error)

Receiver is a free data retrieval call binding the contract method 0xf7260d3e.

Solidity: function receiver() constant returns(address)

func (*HtlcCallerSession) ScrHash

func (_Htlc *HtlcCallerSession) ScrHash() ([32]byte, error)

ScrHash is a free data retrieval call binding the contract method 0x45d8b894.

Solidity: function scrHash() constant returns(bytes32)

func (*HtlcCallerSession) Sender

func (_Htlc *HtlcCallerSession) Sender() (common.Address, error)

Sender is a free data retrieval call binding the contract method 0x67e404ce.

Solidity: function sender() constant returns(address)

func (*HtlcCallerSession) StartFromTime

func (_Htlc *HtlcCallerSession) StartFromTime() (*big.Int, error)

StartFromTime is a free data retrieval call binding the contract method 0xf85da5ca.

Solidity: function startFromTime() constant returns(uint256)

func (*HtlcCallerSession) Validate

func (_Htlc *HtlcCallerSession) Validate(scr_ []byte) error

Validate is a free data retrieval call binding the contract method 0xc16e50ef.

Solidity: function validate(scr_ bytes) constant returns()

type HtlcFilterer

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

HtlcFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewHtlcFilterer

func NewHtlcFilterer(address common.Address, filterer bind.ContractFilterer) (*HtlcFilterer, error)

NewHtlcFilterer creates a new log filterer instance of Htlc, bound to a specific deployed contract.

func (*HtlcFilterer) FilterRelease

func (_Htlc *HtlcFilterer) FilterRelease(opts *bind.FilterOpts) (*HtlcReleaseIterator, error)

FilterRelease is a free log retrieval operation binding the contract event 0xcb54aad3bd772fcfe1bc124e01bd1a91a91c9d80126d8b3014c4d9e687d5ca48.

Solidity: e Release(sender address, receiver address, value uint256)

func (*HtlcFilterer) FilterRollback

func (_Htlc *HtlcFilterer) FilterRollback(opts *bind.FilterOpts) (*HtlcRollbackIterator, error)

FilterRollback is a free log retrieval operation binding the contract event 0xbaf3b92e813efec2b7525399a930acf56a9ea74f17622f3f1080387356d1c711.

Solidity: e Rollback(sender address, receiver address, value uint256)

func (*HtlcFilterer) WatchRelease

func (_Htlc *HtlcFilterer) WatchRelease(opts *bind.WatchOpts, sink chan<- *HtlcRelease) (event.Subscription, error)

WatchRelease is a free log subscription operation binding the contract event 0xcb54aad3bd772fcfe1bc124e01bd1a91a91c9d80126d8b3014c4d9e687d5ca48.

Solidity: e Release(sender address, receiver address, value uint256)

func (*HtlcFilterer) WatchRollback

func (_Htlc *HtlcFilterer) WatchRollback(opts *bind.WatchOpts, sink chan<- *HtlcRollback) (event.Subscription, error)

WatchRollback is a free log subscription operation binding the contract event 0xbaf3b92e813efec2b7525399a930acf56a9ea74f17622f3f1080387356d1c711.

Solidity: e Rollback(sender address, receiver address, value uint256)

type HtlcRaw

type HtlcRaw struct {
	Contract *Htlc // Generic contract binding to access the raw methods on
}

HtlcRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*HtlcRaw) Call

func (_Htlc *HtlcRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*HtlcRaw) Transact

func (_Htlc *HtlcRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*HtlcRaw) Transfer

func (_Htlc *HtlcRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type HtlcRelease

type HtlcRelease struct {
	Sender   common.Address
	Receiver common.Address
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

HtlcRelease represents a Release event raised by the Htlc contract.

type HtlcReleaseIterator

type HtlcReleaseIterator struct {
	Event *HtlcRelease // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

HtlcReleaseIterator is returned from FilterRelease and is used to iterate over the raw logs and unpacked data for Release events raised by the Htlc contract.

func (*HtlcReleaseIterator) Close

func (it *HtlcReleaseIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*HtlcReleaseIterator) Error

func (it *HtlcReleaseIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HtlcReleaseIterator) Next

func (it *HtlcReleaseIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type HtlcRollback

type HtlcRollback struct {
	Sender   common.Address
	Receiver common.Address
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

HtlcRollback represents a Rollback event raised by the Htlc contract.

type HtlcRollbackIterator

type HtlcRollbackIterator struct {
	Event *HtlcRollback // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

HtlcRollbackIterator is returned from FilterRollback and is used to iterate over the raw logs and unpacked data for Rollback events raised by the Htlc contract.

func (*HtlcRollbackIterator) Close

func (it *HtlcRollbackIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*HtlcRollbackIterator) Error

func (it *HtlcRollbackIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HtlcRollbackIterator) Next

func (it *HtlcRollbackIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type HtlcSession

type HtlcSession struct {
	Contract     *Htlc             // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

HtlcSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*HtlcSession) Audit

func (_Htlc *HtlcSession) Audit(receiver_ common.Address, balance_ *big.Int, scrHash_ [32]byte) (bool, error)

Audit is a free data retrieval call binding the contract method 0x09ce7368.

Solidity: function audit(receiver_ address, balance_ uint256, scrHash_ bytes32) constant returns(bool)

func (*HtlcSession) Balance

func (_Htlc *HtlcSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() constant returns(uint256)

func (*HtlcSession) ExtractMsg

func (_Htlc *HtlcSession) ExtractMsg() ([]byte, error)

ExtractMsg is a free data retrieval call binding the contract method 0xb77577cd.

Solidity: function extractMsg() constant returns(bytes)

func (*HtlcSession) Funds

func (_Htlc *HtlcSession) Funds(_lockPeriod *big.Int, _receiver common.Address, _scrHash [32]byte) (*types.Transaction, error)

Funds is a paid mutator transaction binding the contract method 0xd81cb7cf.

Solidity: function funds(_lockPeriod uint256, _receiver address, _scrHash bytes32) returns()

func (*HtlcSession) LockPeriod

func (_Htlc *HtlcSession) LockPeriod() (*big.Int, error)

LockPeriod is a free data retrieval call binding the contract method 0x3fd8b02f.

Solidity: function lockPeriod() constant returns(uint256)

func (*HtlcSession) Receiver

func (_Htlc *HtlcSession) Receiver() (common.Address, error)

Receiver is a free data retrieval call binding the contract method 0xf7260d3e.

Solidity: function receiver() constant returns(address)

func (*HtlcSession) Redeem

func (_Htlc *HtlcSession) Redeem(scr_ []byte) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0x9945e3d3.

Solidity: function redeem(scr_ bytes) returns(bool)

func (*HtlcSession) Refund

func (_Htlc *HtlcSession) Refund() (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x590e1ae3.

Solidity: function refund() returns(bool)

func (*HtlcSession) ScrHash

func (_Htlc *HtlcSession) ScrHash() ([32]byte, error)

ScrHash is a free data retrieval call binding the contract method 0x45d8b894.

Solidity: function scrHash() constant returns(bytes32)

func (*HtlcSession) Sender

func (_Htlc *HtlcSession) Sender() (common.Address, error)

Sender is a free data retrieval call binding the contract method 0x67e404ce.

Solidity: function sender() constant returns(address)

func (*HtlcSession) StartFromTime

func (_Htlc *HtlcSession) StartFromTime() (*big.Int, error)

StartFromTime is a free data retrieval call binding the contract method 0xf85da5ca.

Solidity: function startFromTime() constant returns(uint256)

func (*HtlcSession) Validate

func (_Htlc *HtlcSession) Validate(scr_ []byte) error

Validate is a free data retrieval call binding the contract method 0xc16e50ef.

Solidity: function validate(scr_ bytes) constant returns()

type HtlcTransactor

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

HtlcTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewHtlcTransactor

func NewHtlcTransactor(address common.Address, transactor bind.ContractTransactor) (*HtlcTransactor, error)

NewHtlcTransactor creates a new write-only instance of Htlc, bound to a specific deployed contract.

func (*HtlcTransactor) Funds

func (_Htlc *HtlcTransactor) Funds(opts *bind.TransactOpts, _lockPeriod *big.Int, _receiver common.Address, _scrHash [32]byte) (*types.Transaction, error)

Funds is a paid mutator transaction binding the contract method 0xd81cb7cf.

Solidity: function funds(_lockPeriod uint256, _receiver address, _scrHash bytes32) returns()

func (*HtlcTransactor) Redeem

func (_Htlc *HtlcTransactor) Redeem(opts *bind.TransactOpts, scr_ []byte) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0x9945e3d3.

Solidity: function redeem(scr_ bytes) returns(bool)

func (*HtlcTransactor) Refund

func (_Htlc *HtlcTransactor) Refund(opts *bind.TransactOpts) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x590e1ae3.

Solidity: function refund() returns(bool)

type HtlcTransactorRaw

type HtlcTransactorRaw struct {
	Contract *HtlcTransactor // Generic write-only contract binding to access the raw methods on
}

HtlcTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*HtlcTransactorRaw) Transact

func (_Htlc *HtlcTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*HtlcTransactorRaw) Transfer

func (_Htlc *HtlcTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type HtlcTransactorSession

type HtlcTransactorSession struct {
	Contract     *HtlcTransactor   // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

HtlcTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*HtlcTransactorSession) Funds

func (_Htlc *HtlcTransactorSession) Funds(_lockPeriod *big.Int, _receiver common.Address, _scrHash [32]byte) (*types.Transaction, error)

Funds is a paid mutator transaction binding the contract method 0xd81cb7cf.

Solidity: function funds(_lockPeriod uint256, _receiver address, _scrHash bytes32) returns()

func (*HtlcTransactorSession) Redeem

func (_Htlc *HtlcTransactorSession) Redeem(scr_ []byte) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0x9945e3d3.

Solidity: function redeem(scr_ bytes) returns(bool)

func (*HtlcTransactorSession) Refund

func (_Htlc *HtlcTransactorSession) Refund() (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x590e1ae3.

Solidity: function refund() returns(bool)

Jump to

Keyboard shortcuts

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