abi

package
v0.0.0-...-11a4fed Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ERC20ABI = "" /* 1487-byte string literal not displayed */

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

View Source
const ETHSwapABI = "" /* 3889-byte string literal not displayed */

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

View Source
const Erc20SwapABI = "" /* 4269-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20Caller

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

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

func NewERC20Caller

func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error)

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Caller) Allowance

func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) constant returns(uint256)

func (*ERC20Caller) BalanceOf

func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, who common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address who) constant returns(uint256)

func (*ERC20Caller) TotalSupply

func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) 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 ERC20CallerSession

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

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

func (*ERC20CallerSession) Allowance

func (_ERC20 *ERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) constant returns(uint256)

func (*ERC20CallerSession) BalanceOf

func (_ERC20 *ERC20CallerSession) BalanceOf(who common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address who) constant returns(uint256)

func (*ERC20CallerSession) TotalSupply

func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20Filterer

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

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

func NewERC20Filterer

func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error)

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

type ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) 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 (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) 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 ERC20Session

type ERC20Session struct {
	Contract     *ERC20            // 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
}

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

func (*ERC20Session) Allowance

func (_ERC20 *ERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) constant returns(uint256)

func (*ERC20Session) Approve

func (_ERC20 *ERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*ERC20Session) BalanceOf

func (_ERC20 *ERC20Session) BalanceOf(who common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address who) constant returns(uint256)

func (*ERC20Session) TotalSupply

func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type ERC20Transactor

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

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

func NewERC20Transactor

func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error)

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) Approve

func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) 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 ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Approve

func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type ETHSwap

type ETHSwap struct {
	ETHSwapCaller     // Read-only binding to the contract
	ETHSwapTransactor // Write-only binding to the contract
	ETHSwapFilterer   // Log filterer for contract events
}

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

func NewETHSwap

func NewETHSwap(address common.Address, backend bind.ContractBackend) (*ETHSwap, error)

NewETHSwap creates a new instance of ETHSwap, bound to a specific deployed contract.

type ETHSwapCaller

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

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

func NewETHSwapCaller

func NewETHSwapCaller(address common.Address, caller bind.ContractCaller) (*ETHSwapCaller, error)

NewETHSwapCaller creates a new read-only instance of ETHSwap, bound to a specific deployed contract.

func (*ETHSwapCaller) CalSwapID

func (_ETHSwap *ETHSwapCaller) CalSwapID(opts *bind.CallOpts, _randomNumberHash [32]byte, _swapSender common.Address, _bep2SenderAddr [20]byte) ([32]byte, error)

CalSwapID is a free data retrieval call binding the contract method 0x7ef3e92e.

Solidity: function calSwapID(bytes32 _randomNumberHash, address _swapSender, bytes20 _bep2SenderAddr) constant returns(bytes32)

func (*ETHSwapCaller) Claimable

func (_ETHSwap *ETHSwapCaller) Claimable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

Claimable is a free data retrieval call binding the contract method 0x9b58e0a1.

Solidity: function claimable(bytes32 _swapID) constant returns(bool)

func (*ETHSwapCaller) IsSwapExist

func (_ETHSwap *ETHSwapCaller) IsSwapExist(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

IsSwapExist is a free data retrieval call binding the contract method 0x50f7a03b.

Solidity: function isSwapExist(bytes32 _swapID) constant returns(bool)

func (*ETHSwapCaller) QueryOpenSwap

func (_ETHSwap *ETHSwapCaller) QueryOpenSwap(opts *bind.CallOpts, _swapID [32]byte) (struct {
	RandomNumberHash [32]byte
	Timestamp        uint64
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Sender           common.Address
	Recipient        common.Address
}, error)

QueryOpenSwap is a free data retrieval call binding the contract method 0xb48017b1.

Solidity: function queryOpenSwap(bytes32 _swapID) constant returns(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _expireHeight, uint256 _outAmount, address _sender, address _recipient)

func (*ETHSwapCaller) Refundable

func (_ETHSwap *ETHSwapCaller) Refundable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(bytes32 _swapID) constant returns(bool)

type ETHSwapCallerRaw

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

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

func (*ETHSwapCallerRaw) Call

func (_ETHSwap *ETHSwapCallerRaw) 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 ETHSwapCallerSession

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

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

func (*ETHSwapCallerSession) CalSwapID

func (_ETHSwap *ETHSwapCallerSession) CalSwapID(_randomNumberHash [32]byte, _swapSender common.Address, _bep2SenderAddr [20]byte) ([32]byte, error)

CalSwapID is a free data retrieval call binding the contract method 0x7ef3e92e.

Solidity: function calSwapID(bytes32 _randomNumberHash, address _swapSender, bytes20 _bep2SenderAddr) constant returns(bytes32)

func (*ETHSwapCallerSession) Claimable

func (_ETHSwap *ETHSwapCallerSession) Claimable(_swapID [32]byte) (bool, error)

Claimable is a free data retrieval call binding the contract method 0x9b58e0a1.

Solidity: function claimable(bytes32 _swapID) constant returns(bool)

func (*ETHSwapCallerSession) IsSwapExist

func (_ETHSwap *ETHSwapCallerSession) IsSwapExist(_swapID [32]byte) (bool, error)

IsSwapExist is a free data retrieval call binding the contract method 0x50f7a03b.

Solidity: function isSwapExist(bytes32 _swapID) constant returns(bool)

func (*ETHSwapCallerSession) QueryOpenSwap

func (_ETHSwap *ETHSwapCallerSession) QueryOpenSwap(_swapID [32]byte) (struct {
	RandomNumberHash [32]byte
	Timestamp        uint64
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Sender           common.Address
	Recipient        common.Address
}, error)

QueryOpenSwap is a free data retrieval call binding the contract method 0xb48017b1.

Solidity: function queryOpenSwap(bytes32 _swapID) constant returns(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _expireHeight, uint256 _outAmount, address _sender, address _recipient)

func (*ETHSwapCallerSession) Refundable

func (_ETHSwap *ETHSwapCallerSession) Refundable(_swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(bytes32 _swapID) constant returns(bool)

type ETHSwapClaimed

type ETHSwapClaimed struct {
	MsgSender        common.Address
	RecipientAddr    common.Address
	SwapID           [32]byte
	RandomNumberHash [32]byte
	RandomNumber     [32]byte
	Raw              types.Log // Blockchain specific contextual infos
}

ETHSwapClaimed represents a Claimed event raised by the ETHSwap contract.

type ETHSwapClaimedIterator

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

ETHSwapClaimedIterator is returned from FilterClaimed and is used to iterate over the raw logs and unpacked data for Claimed events raised by the ETHSwap contract.

func (*ETHSwapClaimedIterator) Close

func (it *ETHSwapClaimedIterator) Close() error

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

func (*ETHSwapClaimedIterator) Error

func (it *ETHSwapClaimedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ETHSwapClaimedIterator) Next

func (it *ETHSwapClaimedIterator) 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 ETHSwapFilterer

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

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

func NewETHSwapFilterer

func NewETHSwapFilterer(address common.Address, filterer bind.ContractFilterer) (*ETHSwapFilterer, error)

NewETHSwapFilterer creates a new log filterer instance of ETHSwap, bound to a specific deployed contract.

func (*ETHSwapFilterer) FilterClaimed

func (_ETHSwap *ETHSwapFilterer) FilterClaimed(opts *bind.FilterOpts, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (*ETHSwapClaimedIterator, error)

FilterClaimed is a free log retrieval operation binding the contract event 0x9f46b1606087bdf4183ec7dfdbe68e4ab9129a6a37901c16a7b320ae11a96018.

Solidity: event Claimed(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, bytes32 _randomNumber)

func (*ETHSwapFilterer) FilterHTLT

func (_ETHSwap *ETHSwapFilterer) FilterHTLT(opts *bind.FilterOpts, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (*ETHSwapHTLTIterator, error)

FilterHTLT is a free log retrieval operation binding the contract event 0xb3e26d98380491276a8dce9d38fd1049e89070230ff5f36ebb55ead64500ade1.

Solidity: event HTLT(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, uint64 _timestamp, bytes20 _bep2Addr, uint256 _expireHeight, uint256 _outAmount, uint256 _bep2Amount)

func (*ETHSwapFilterer) FilterRefunded

func (_ETHSwap *ETHSwapFilterer) FilterRefunded(opts *bind.FilterOpts, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (*ETHSwapRefundedIterator, error)

FilterRefunded is a free log retrieval operation binding the contract event 0x04eb8ae268f23cfe2f9d72fa12367b104af16959f6a93530a4cc0f50688124f9.

Solidity: event Refunded(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash)

func (*ETHSwapFilterer) ParseClaimed

func (_ETHSwap *ETHSwapFilterer) ParseClaimed(log types.Log) (*ETHSwapClaimed, error)

ParseClaimed is a log parse operation binding the contract event 0x9f46b1606087bdf4183ec7dfdbe68e4ab9129a6a37901c16a7b320ae11a96018.

Solidity: event Claimed(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, bytes32 _randomNumber)

func (*ETHSwapFilterer) ParseHTLT

func (_ETHSwap *ETHSwapFilterer) ParseHTLT(log types.Log) (*ETHSwapHTLT, error)

ParseHTLT is a log parse operation binding the contract event 0xb3e26d98380491276a8dce9d38fd1049e89070230ff5f36ebb55ead64500ade1.

Solidity: event HTLT(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, uint64 _timestamp, bytes20 _bep2Addr, uint256 _expireHeight, uint256 _outAmount, uint256 _bep2Amount)

func (*ETHSwapFilterer) ParseRefunded

func (_ETHSwap *ETHSwapFilterer) ParseRefunded(log types.Log) (*ETHSwapRefunded, error)

ParseRefunded is a log parse operation binding the contract event 0x04eb8ae268f23cfe2f9d72fa12367b104af16959f6a93530a4cc0f50688124f9.

Solidity: event Refunded(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash)

func (*ETHSwapFilterer) WatchClaimed

func (_ETHSwap *ETHSwapFilterer) WatchClaimed(opts *bind.WatchOpts, sink chan<- *ETHSwapClaimed, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (event.Subscription, error)

WatchClaimed is a free log subscription operation binding the contract event 0x9f46b1606087bdf4183ec7dfdbe68e4ab9129a6a37901c16a7b320ae11a96018.

Solidity: event Claimed(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, bytes32 _randomNumber)

func (*ETHSwapFilterer) WatchHTLT

func (_ETHSwap *ETHSwapFilterer) WatchHTLT(opts *bind.WatchOpts, sink chan<- *ETHSwapHTLT, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (event.Subscription, error)

WatchHTLT is a free log subscription operation binding the contract event 0xb3e26d98380491276a8dce9d38fd1049e89070230ff5f36ebb55ead64500ade1.

Solidity: event HTLT(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, uint64 _timestamp, bytes20 _bep2Addr, uint256 _expireHeight, uint256 _outAmount, uint256 _bep2Amount)

func (*ETHSwapFilterer) WatchRefunded

func (_ETHSwap *ETHSwapFilterer) WatchRefunded(opts *bind.WatchOpts, sink chan<- *ETHSwapRefunded, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (event.Subscription, error)

WatchRefunded is a free log subscription operation binding the contract event 0x04eb8ae268f23cfe2f9d72fa12367b104af16959f6a93530a4cc0f50688124f9.

Solidity: event Refunded(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash)

type ETHSwapHTLT

type ETHSwapHTLT struct {
	MsgSender        common.Address
	RecipientAddr    common.Address
	SwapID           [32]byte
	RandomNumberHash [32]byte
	Timestamp        uint64
	Bep2Addr         [20]byte
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Bep2Amount       *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ETHSwapHTLT represents a HTLT event raised by the ETHSwap contract.

type ETHSwapHTLTIterator

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

ETHSwapHTLTIterator is returned from FilterHTLT and is used to iterate over the raw logs and unpacked data for HTLT events raised by the ETHSwap contract.

func (*ETHSwapHTLTIterator) Close

func (it *ETHSwapHTLTIterator) Close() error

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

func (*ETHSwapHTLTIterator) Error

func (it *ETHSwapHTLTIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ETHSwapHTLTIterator) Next

func (it *ETHSwapHTLTIterator) 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 ETHSwapRaw

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

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

func (*ETHSwapRaw) Call

func (_ETHSwap *ETHSwapRaw) 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 (*ETHSwapRaw) Transact

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

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

func (*ETHSwapRaw) Transfer

func (_ETHSwap *ETHSwapRaw) 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 ETHSwapRefunded

type ETHSwapRefunded struct {
	MsgSender        common.Address
	RecipientAddr    common.Address
	SwapID           [32]byte
	RandomNumberHash [32]byte
	Raw              types.Log // Blockchain specific contextual infos
}

ETHSwapRefunded represents a Refunded event raised by the ETHSwap contract.

type ETHSwapRefundedIterator

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

ETHSwapRefundedIterator is returned from FilterRefunded and is used to iterate over the raw logs and unpacked data for Refunded events raised by the ETHSwap contract.

func (*ETHSwapRefundedIterator) Close

func (it *ETHSwapRefundedIterator) Close() error

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

func (*ETHSwapRefundedIterator) Error

func (it *ETHSwapRefundedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ETHSwapRefundedIterator) Next

func (it *ETHSwapRefundedIterator) 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 ETHSwapSession

type ETHSwapSession struct {
	Contract     *ETHSwap          // 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
}

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

func (*ETHSwapSession) CalSwapID

func (_ETHSwap *ETHSwapSession) CalSwapID(_randomNumberHash [32]byte, _swapSender common.Address, _bep2SenderAddr [20]byte) ([32]byte, error)

CalSwapID is a free data retrieval call binding the contract method 0x7ef3e92e.

Solidity: function calSwapID(bytes32 _randomNumberHash, address _swapSender, bytes20 _bep2SenderAddr) constant returns(bytes32)

func (*ETHSwapSession) Claim

func (_ETHSwap *ETHSwapSession) Claim(_swapID [32]byte, _randomNumber [32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x84cc9dfb.

Solidity: function claim(bytes32 _swapID, bytes32 _randomNumber) returns(bool)

func (*ETHSwapSession) Claimable

func (_ETHSwap *ETHSwapSession) Claimable(_swapID [32]byte) (bool, error)

Claimable is a free data retrieval call binding the contract method 0x9b58e0a1.

Solidity: function claimable(bytes32 _swapID) constant returns(bool)

func (*ETHSwapSession) Htlt

func (_ETHSwap *ETHSwapSession) Htlt(_randomNumberHash [32]byte, _timestamp uint64, _heightSpan *big.Int, _recipientAddr common.Address, _bep2SenderAddr [20]byte, _bep2RecipientAddr [20]byte, _bep2Amount *big.Int) (*types.Transaction, error)

Htlt is a paid mutator transaction binding the contract method 0xeba38663.

Solidity: function htlt(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _heightSpan, address _recipientAddr, bytes20 _bep2SenderAddr, bytes20 _bep2RecipientAddr, uint256 _bep2Amount) returns(bool)

func (*ETHSwapSession) IsSwapExist

func (_ETHSwap *ETHSwapSession) IsSwapExist(_swapID [32]byte) (bool, error)

IsSwapExist is a free data retrieval call binding the contract method 0x50f7a03b.

Solidity: function isSwapExist(bytes32 _swapID) constant returns(bool)

func (*ETHSwapSession) QueryOpenSwap

func (_ETHSwap *ETHSwapSession) QueryOpenSwap(_swapID [32]byte) (struct {
	RandomNumberHash [32]byte
	Timestamp        uint64
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Sender           common.Address
	Recipient        common.Address
}, error)

QueryOpenSwap is a free data retrieval call binding the contract method 0xb48017b1.

Solidity: function queryOpenSwap(bytes32 _swapID) constant returns(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _expireHeight, uint256 _outAmount, address _sender, address _recipient)

func (*ETHSwapSession) Refund

func (_ETHSwap *ETHSwapSession) Refund(_swapID [32]byte) (*types.Transaction, error)

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

Solidity: function refund(bytes32 _swapID) returns(bool)

func (*ETHSwapSession) Refundable

func (_ETHSwap *ETHSwapSession) Refundable(_swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(bytes32 _swapID) constant returns(bool)

type ETHSwapTransactor

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

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

func NewETHSwapTransactor

func NewETHSwapTransactor(address common.Address, transactor bind.ContractTransactor) (*ETHSwapTransactor, error)

NewETHSwapTransactor creates a new write-only instance of ETHSwap, bound to a specific deployed contract.

func (*ETHSwapTransactor) Claim

func (_ETHSwap *ETHSwapTransactor) Claim(opts *bind.TransactOpts, _swapID [32]byte, _randomNumber [32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x84cc9dfb.

Solidity: function claim(bytes32 _swapID, bytes32 _randomNumber) returns(bool)

func (*ETHSwapTransactor) Htlt

func (_ETHSwap *ETHSwapTransactor) Htlt(opts *bind.TransactOpts, _randomNumberHash [32]byte, _timestamp uint64, _heightSpan *big.Int, _recipientAddr common.Address, _bep2SenderAddr [20]byte, _bep2RecipientAddr [20]byte, _bep2Amount *big.Int) (*types.Transaction, error)

Htlt is a paid mutator transaction binding the contract method 0xeba38663.

Solidity: function htlt(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _heightSpan, address _recipientAddr, bytes20 _bep2SenderAddr, bytes20 _bep2RecipientAddr, uint256 _bep2Amount) returns(bool)

func (*ETHSwapTransactor) Refund

func (_ETHSwap *ETHSwapTransactor) Refund(opts *bind.TransactOpts, _swapID [32]byte) (*types.Transaction, error)

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

Solidity: function refund(bytes32 _swapID) returns(bool)

type ETHSwapTransactorRaw

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

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

func (*ETHSwapTransactorRaw) Transact

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

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

func (*ETHSwapTransactorRaw) Transfer

func (_ETHSwap *ETHSwapTransactorRaw) 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 ETHSwapTransactorSession

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

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

func (*ETHSwapTransactorSession) Claim

func (_ETHSwap *ETHSwapTransactorSession) Claim(_swapID [32]byte, _randomNumber [32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x84cc9dfb.

Solidity: function claim(bytes32 _swapID, bytes32 _randomNumber) returns(bool)

func (*ETHSwapTransactorSession) Htlt

func (_ETHSwap *ETHSwapTransactorSession) Htlt(_randomNumberHash [32]byte, _timestamp uint64, _heightSpan *big.Int, _recipientAddr common.Address, _bep2SenderAddr [20]byte, _bep2RecipientAddr [20]byte, _bep2Amount *big.Int) (*types.Transaction, error)

Htlt is a paid mutator transaction binding the contract method 0xeba38663.

Solidity: function htlt(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _heightSpan, address _recipientAddr, bytes20 _bep2SenderAddr, bytes20 _bep2RecipientAddr, uint256 _bep2Amount) returns(bool)

func (*ETHSwapTransactorSession) Refund

func (_ETHSwap *ETHSwapTransactorSession) Refund(_swapID [32]byte) (*types.Transaction, error)

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

Solidity: function refund(bytes32 _swapID) returns(bool)

type Erc20Swap

type Erc20Swap struct {
	Erc20SwapCaller     // Read-only binding to the contract
	Erc20SwapTransactor // Write-only binding to the contract
	Erc20SwapFilterer   // Log filterer for contract events
}

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

func NewErc20Swap

func NewErc20Swap(address common.Address, backend bind.ContractBackend) (*Erc20Swap, error)

NewErc20Swap creates a new instance of Erc20Swap, bound to a specific deployed contract.

type Erc20SwapCaller

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

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

func NewErc20SwapCaller

func NewErc20SwapCaller(address common.Address, caller bind.ContractCaller) (*Erc20SwapCaller, error)

NewErc20SwapCaller creates a new read-only instance of Erc20Swap, bound to a specific deployed contract.

func (*Erc20SwapCaller) CalSwapID

func (_Erc20Swap *Erc20SwapCaller) CalSwapID(opts *bind.CallOpts, _randomNumberHash [32]byte, _swapSender common.Address, _bep2SenderAddr [20]byte) ([32]byte, error)

CalSwapID is a free data retrieval call binding the contract method 0x7ef3e92e.

Solidity: function calSwapID(bytes32 _randomNumberHash, address _swapSender, bytes20 _bep2SenderAddr) constant returns(bytes32)

func (*Erc20SwapCaller) Claimable

func (_Erc20Swap *Erc20SwapCaller) Claimable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

Claimable is a free data retrieval call binding the contract method 0x9b58e0a1.

Solidity: function claimable(bytes32 _swapID) constant returns(bool)

func (*Erc20SwapCaller) ERC20ContractAddr

func (_Erc20Swap *Erc20SwapCaller) ERC20ContractAddr(opts *bind.CallOpts) (common.Address, error)

ERC20ContractAddr is a free data retrieval call binding the contract method 0x49404437.

Solidity: function ERC20ContractAddr() constant returns(address)

func (*Erc20SwapCaller) IsSwapExist

func (_Erc20Swap *Erc20SwapCaller) IsSwapExist(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

IsSwapExist is a free data retrieval call binding the contract method 0x50f7a03b.

Solidity: function isSwapExist(bytes32 _swapID) constant returns(bool)

func (*Erc20SwapCaller) QueryOpenSwap

func (_Erc20Swap *Erc20SwapCaller) QueryOpenSwap(opts *bind.CallOpts, _swapID [32]byte) (struct {
	RandomNumberHash [32]byte
	Timestamp        uint64
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Sender           common.Address
	Recipient        common.Address
}, error)

QueryOpenSwap is a free data retrieval call binding the contract method 0xb48017b1.

Solidity: function queryOpenSwap(bytes32 _swapID) constant returns(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _expireHeight, uint256 _outAmount, address _sender, address _recipient)

func (*Erc20SwapCaller) Refundable

func (_Erc20Swap *Erc20SwapCaller) Refundable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(bytes32 _swapID) constant returns(bool)

type Erc20SwapCallerRaw

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

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

func (*Erc20SwapCallerRaw) Call

func (_Erc20Swap *Erc20SwapCallerRaw) 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 Erc20SwapCallerSession

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

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

func (*Erc20SwapCallerSession) CalSwapID

func (_Erc20Swap *Erc20SwapCallerSession) CalSwapID(_randomNumberHash [32]byte, _swapSender common.Address, _bep2SenderAddr [20]byte) ([32]byte, error)

CalSwapID is a free data retrieval call binding the contract method 0x7ef3e92e.

Solidity: function calSwapID(bytes32 _randomNumberHash, address _swapSender, bytes20 _bep2SenderAddr) constant returns(bytes32)

func (*Erc20SwapCallerSession) Claimable

func (_Erc20Swap *Erc20SwapCallerSession) Claimable(_swapID [32]byte) (bool, error)

Claimable is a free data retrieval call binding the contract method 0x9b58e0a1.

Solidity: function claimable(bytes32 _swapID) constant returns(bool)

func (*Erc20SwapCallerSession) ERC20ContractAddr

func (_Erc20Swap *Erc20SwapCallerSession) ERC20ContractAddr() (common.Address, error)

ERC20ContractAddr is a free data retrieval call binding the contract method 0x49404437.

Solidity: function ERC20ContractAddr() constant returns(address)

func (*Erc20SwapCallerSession) IsSwapExist

func (_Erc20Swap *Erc20SwapCallerSession) IsSwapExist(_swapID [32]byte) (bool, error)

IsSwapExist is a free data retrieval call binding the contract method 0x50f7a03b.

Solidity: function isSwapExist(bytes32 _swapID) constant returns(bool)

func (*Erc20SwapCallerSession) QueryOpenSwap

func (_Erc20Swap *Erc20SwapCallerSession) QueryOpenSwap(_swapID [32]byte) (struct {
	RandomNumberHash [32]byte
	Timestamp        uint64
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Sender           common.Address
	Recipient        common.Address
}, error)

QueryOpenSwap is a free data retrieval call binding the contract method 0xb48017b1.

Solidity: function queryOpenSwap(bytes32 _swapID) constant returns(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _expireHeight, uint256 _outAmount, address _sender, address _recipient)

func (*Erc20SwapCallerSession) Refundable

func (_Erc20Swap *Erc20SwapCallerSession) Refundable(_swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(bytes32 _swapID) constant returns(bool)

type Erc20SwapClaimed

type Erc20SwapClaimed struct {
	MsgSender        common.Address
	RecipientAddr    common.Address
	SwapID           [32]byte
	RandomNumberHash [32]byte
	RandomNumber     [32]byte
	Raw              types.Log // Blockchain specific contextual infos
}

Erc20SwapClaimed represents a Claimed event raised by the Erc20Swap contract.

type Erc20SwapClaimedIterator

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

Erc20SwapClaimedIterator is returned from FilterClaimed and is used to iterate over the raw logs and unpacked data for Claimed events raised by the Erc20Swap contract.

func (*Erc20SwapClaimedIterator) Close

func (it *Erc20SwapClaimedIterator) Close() error

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

func (*Erc20SwapClaimedIterator) Error

func (it *Erc20SwapClaimedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20SwapClaimedIterator) Next

func (it *Erc20SwapClaimedIterator) 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 Erc20SwapFilterer

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

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

func NewErc20SwapFilterer

func NewErc20SwapFilterer(address common.Address, filterer bind.ContractFilterer) (*Erc20SwapFilterer, error)

NewErc20SwapFilterer creates a new log filterer instance of Erc20Swap, bound to a specific deployed contract.

func (*Erc20SwapFilterer) FilterClaimed

func (_Erc20Swap *Erc20SwapFilterer) FilterClaimed(opts *bind.FilterOpts, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (*Erc20SwapClaimedIterator, error)

FilterClaimed is a free log retrieval operation binding the contract event 0x9f46b1606087bdf4183ec7dfdbe68e4ab9129a6a37901c16a7b320ae11a96018.

Solidity: event Claimed(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, bytes32 _randomNumber)

func (*Erc20SwapFilterer) FilterHTLT

func (_Erc20Swap *Erc20SwapFilterer) FilterHTLT(opts *bind.FilterOpts, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (*Erc20SwapHTLTIterator, error)

FilterHTLT is a free log retrieval operation binding the contract event 0xb3e26d98380491276a8dce9d38fd1049e89070230ff5f36ebb55ead64500ade1.

Solidity: event HTLT(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, uint64 _timestamp, bytes20 _bep2Addr, uint256 _expireHeight, uint256 _outAmount, uint256 _bep2Amount)

func (*Erc20SwapFilterer) FilterRefunded

func (_Erc20Swap *Erc20SwapFilterer) FilterRefunded(opts *bind.FilterOpts, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (*Erc20SwapRefundedIterator, error)

FilterRefunded is a free log retrieval operation binding the contract event 0x04eb8ae268f23cfe2f9d72fa12367b104af16959f6a93530a4cc0f50688124f9.

Solidity: event Refunded(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash)

func (*Erc20SwapFilterer) ParseClaimed

func (_Erc20Swap *Erc20SwapFilterer) ParseClaimed(log types.Log) (*Erc20SwapClaimed, error)

ParseClaimed is a log parse operation binding the contract event 0x9f46b1606087bdf4183ec7dfdbe68e4ab9129a6a37901c16a7b320ae11a96018.

Solidity: event Claimed(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, bytes32 _randomNumber)

func (*Erc20SwapFilterer) ParseHTLT

func (_Erc20Swap *Erc20SwapFilterer) ParseHTLT(log types.Log) (*Erc20SwapHTLT, error)

ParseHTLT is a log parse operation binding the contract event 0xb3e26d98380491276a8dce9d38fd1049e89070230ff5f36ebb55ead64500ade1.

Solidity: event HTLT(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, uint64 _timestamp, bytes20 _bep2Addr, uint256 _expireHeight, uint256 _outAmount, uint256 _bep2Amount)

func (*Erc20SwapFilterer) ParseRefunded

func (_Erc20Swap *Erc20SwapFilterer) ParseRefunded(log types.Log) (*Erc20SwapRefunded, error)

ParseRefunded is a log parse operation binding the contract event 0x04eb8ae268f23cfe2f9d72fa12367b104af16959f6a93530a4cc0f50688124f9.

Solidity: event Refunded(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash)

func (*Erc20SwapFilterer) WatchClaimed

func (_Erc20Swap *Erc20SwapFilterer) WatchClaimed(opts *bind.WatchOpts, sink chan<- *Erc20SwapClaimed, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (event.Subscription, error)

WatchClaimed is a free log subscription operation binding the contract event 0x9f46b1606087bdf4183ec7dfdbe68e4ab9129a6a37901c16a7b320ae11a96018.

Solidity: event Claimed(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, bytes32 _randomNumber)

func (*Erc20SwapFilterer) WatchHTLT

func (_Erc20Swap *Erc20SwapFilterer) WatchHTLT(opts *bind.WatchOpts, sink chan<- *Erc20SwapHTLT, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (event.Subscription, error)

WatchHTLT is a free log subscription operation binding the contract event 0xb3e26d98380491276a8dce9d38fd1049e89070230ff5f36ebb55ead64500ade1.

Solidity: event HTLT(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash, uint64 _timestamp, bytes20 _bep2Addr, uint256 _expireHeight, uint256 _outAmount, uint256 _bep2Amount)

func (*Erc20SwapFilterer) WatchRefunded

func (_Erc20Swap *Erc20SwapFilterer) WatchRefunded(opts *bind.WatchOpts, sink chan<- *Erc20SwapRefunded, _msgSender []common.Address, _recipientAddr []common.Address, _swapID [][32]byte) (event.Subscription, error)

WatchRefunded is a free log subscription operation binding the contract event 0x04eb8ae268f23cfe2f9d72fa12367b104af16959f6a93530a4cc0f50688124f9.

Solidity: event Refunded(address indexed _msgSender, address indexed _recipientAddr, bytes32 indexed _swapID, bytes32 _randomNumberHash)

type Erc20SwapHTLT

type Erc20SwapHTLT struct {
	MsgSender        common.Address
	RecipientAddr    common.Address
	SwapID           [32]byte
	RandomNumberHash [32]byte
	Timestamp        uint64
	Bep2Addr         [20]byte
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Bep2Amount       *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

Erc20SwapHTLT represents a HTLT event raised by the Erc20Swap contract.

type Erc20SwapHTLTIterator

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

Erc20SwapHTLTIterator is returned from FilterHTLT and is used to iterate over the raw logs and unpacked data for HTLT events raised by the Erc20Swap contract.

func (*Erc20SwapHTLTIterator) Close

func (it *Erc20SwapHTLTIterator) Close() error

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

func (*Erc20SwapHTLTIterator) Error

func (it *Erc20SwapHTLTIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20SwapHTLTIterator) Next

func (it *Erc20SwapHTLTIterator) 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 Erc20SwapRaw

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

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

func (*Erc20SwapRaw) Call

func (_Erc20Swap *Erc20SwapRaw) 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 (*Erc20SwapRaw) Transact

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

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

func (*Erc20SwapRaw) Transfer

func (_Erc20Swap *Erc20SwapRaw) 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 Erc20SwapRefunded

type Erc20SwapRefunded struct {
	MsgSender        common.Address
	RecipientAddr    common.Address
	SwapID           [32]byte
	RandomNumberHash [32]byte
	Raw              types.Log // Blockchain specific contextual infos
}

Erc20SwapRefunded represents a Refunded event raised by the Erc20Swap contract.

type Erc20SwapRefundedIterator

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

Erc20SwapRefundedIterator is returned from FilterRefunded and is used to iterate over the raw logs and unpacked data for Refunded events raised by the Erc20Swap contract.

func (*Erc20SwapRefundedIterator) Close

func (it *Erc20SwapRefundedIterator) Close() error

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

func (*Erc20SwapRefundedIterator) Error

func (it *Erc20SwapRefundedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20SwapRefundedIterator) Next

func (it *Erc20SwapRefundedIterator) 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 Erc20SwapSession

type Erc20SwapSession struct {
	Contract     *Erc20Swap        // 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
}

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

func (*Erc20SwapSession) CalSwapID

func (_Erc20Swap *Erc20SwapSession) CalSwapID(_randomNumberHash [32]byte, _swapSender common.Address, _bep2SenderAddr [20]byte) ([32]byte, error)

CalSwapID is a free data retrieval call binding the contract method 0x7ef3e92e.

Solidity: function calSwapID(bytes32 _randomNumberHash, address _swapSender, bytes20 _bep2SenderAddr) constant returns(bytes32)

func (*Erc20SwapSession) Claim

func (_Erc20Swap *Erc20SwapSession) Claim(_swapID [32]byte, _randomNumber [32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x84cc9dfb.

Solidity: function claim(bytes32 _swapID, bytes32 _randomNumber) returns(bool)

func (*Erc20SwapSession) Claimable

func (_Erc20Swap *Erc20SwapSession) Claimable(_swapID [32]byte) (bool, error)

Claimable is a free data retrieval call binding the contract method 0x9b58e0a1.

Solidity: function claimable(bytes32 _swapID) constant returns(bool)

func (*Erc20SwapSession) ERC20ContractAddr

func (_Erc20Swap *Erc20SwapSession) ERC20ContractAddr() (common.Address, error)

ERC20ContractAddr is a free data retrieval call binding the contract method 0x49404437.

Solidity: function ERC20ContractAddr() constant returns(address)

func (*Erc20SwapSession) Htlt

func (_Erc20Swap *Erc20SwapSession) Htlt(_randomNumberHash [32]byte, _timestamp uint64, _heightSpan *big.Int, _recipientAddr common.Address, _bep2SenderAddr [20]byte, _bep2RecipientAddr [20]byte, _outAmount *big.Int, _bep2Amount *big.Int) (*types.Transaction, error)

Htlt is a paid mutator transaction binding the contract method 0x91fda287.

Solidity: function htlt(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _heightSpan, address _recipientAddr, bytes20 _bep2SenderAddr, bytes20 _bep2RecipientAddr, uint256 _outAmount, uint256 _bep2Amount) returns(bool)

func (*Erc20SwapSession) IsSwapExist

func (_Erc20Swap *Erc20SwapSession) IsSwapExist(_swapID [32]byte) (bool, error)

IsSwapExist is a free data retrieval call binding the contract method 0x50f7a03b.

Solidity: function isSwapExist(bytes32 _swapID) constant returns(bool)

func (*Erc20SwapSession) QueryOpenSwap

func (_Erc20Swap *Erc20SwapSession) QueryOpenSwap(_swapID [32]byte) (struct {
	RandomNumberHash [32]byte
	Timestamp        uint64
	ExpireHeight     *big.Int
	OutAmount        *big.Int
	Sender           common.Address
	Recipient        common.Address
}, error)

QueryOpenSwap is a free data retrieval call binding the contract method 0xb48017b1.

Solidity: function queryOpenSwap(bytes32 _swapID) constant returns(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _expireHeight, uint256 _outAmount, address _sender, address _recipient)

func (*Erc20SwapSession) Refund

func (_Erc20Swap *Erc20SwapSession) Refund(_swapID [32]byte) (*types.Transaction, error)

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

Solidity: function refund(bytes32 _swapID) returns(bool)

func (*Erc20SwapSession) Refundable

func (_Erc20Swap *Erc20SwapSession) Refundable(_swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(bytes32 _swapID) constant returns(bool)

type Erc20SwapTransactor

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

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

func NewErc20SwapTransactor

func NewErc20SwapTransactor(address common.Address, transactor bind.ContractTransactor) (*Erc20SwapTransactor, error)

NewErc20SwapTransactor creates a new write-only instance of Erc20Swap, bound to a specific deployed contract.

func (*Erc20SwapTransactor) Claim

func (_Erc20Swap *Erc20SwapTransactor) Claim(opts *bind.TransactOpts, _swapID [32]byte, _randomNumber [32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x84cc9dfb.

Solidity: function claim(bytes32 _swapID, bytes32 _randomNumber) returns(bool)

func (*Erc20SwapTransactor) Htlt

func (_Erc20Swap *Erc20SwapTransactor) Htlt(opts *bind.TransactOpts, _randomNumberHash [32]byte, _timestamp uint64, _heightSpan *big.Int, _recipientAddr common.Address, _bep2SenderAddr [20]byte, _bep2RecipientAddr [20]byte, _outAmount *big.Int, _bep2Amount *big.Int) (*types.Transaction, error)

Htlt is a paid mutator transaction binding the contract method 0x91fda287.

Solidity: function htlt(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _heightSpan, address _recipientAddr, bytes20 _bep2SenderAddr, bytes20 _bep2RecipientAddr, uint256 _outAmount, uint256 _bep2Amount) returns(bool)

func (*Erc20SwapTransactor) Refund

func (_Erc20Swap *Erc20SwapTransactor) Refund(opts *bind.TransactOpts, _swapID [32]byte) (*types.Transaction, error)

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

Solidity: function refund(bytes32 _swapID) returns(bool)

type Erc20SwapTransactorRaw

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

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

func (*Erc20SwapTransactorRaw) Transact

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

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

func (*Erc20SwapTransactorRaw) Transfer

func (_Erc20Swap *Erc20SwapTransactorRaw) 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 Erc20SwapTransactorSession

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

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

func (*Erc20SwapTransactorSession) Claim

func (_Erc20Swap *Erc20SwapTransactorSession) Claim(_swapID [32]byte, _randomNumber [32]byte) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x84cc9dfb.

Solidity: function claim(bytes32 _swapID, bytes32 _randomNumber) returns(bool)

func (*Erc20SwapTransactorSession) Htlt

func (_Erc20Swap *Erc20SwapTransactorSession) Htlt(_randomNumberHash [32]byte, _timestamp uint64, _heightSpan *big.Int, _recipientAddr common.Address, _bep2SenderAddr [20]byte, _bep2RecipientAddr [20]byte, _outAmount *big.Int, _bep2Amount *big.Int) (*types.Transaction, error)

Htlt is a paid mutator transaction binding the contract method 0x91fda287.

Solidity: function htlt(bytes32 _randomNumberHash, uint64 _timestamp, uint256 _heightSpan, address _recipientAddr, bytes20 _bep2SenderAddr, bytes20 _bep2RecipientAddr, uint256 _outAmount, uint256 _bep2Amount) returns(bool)

func (*Erc20SwapTransactorSession) Refund

func (_Erc20Swap *Erc20SwapTransactorSession) Refund(_swapID [32]byte) (*types.Transaction, error)

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

Solidity: function refund(bytes32 _swapID) returns(bool)

Jump to

Keyboard shortcuts

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