Documentation ¶
Index ¶
- Constants
- func NewETHSwapContractBinder(account libeth.Account, swap swap.Swap, cost blockchain.Cost, ...) (immediate.Contract, error)
- type EthSwapContract
- type EthSwapContractCaller
- func (_EthSwapContract *EthSwapContractCaller) Audit(opts *bind.CallOpts, _swapID [32]byte) (struct{ ... }, error)
- func (_EthSwapContract *EthSwapContractCaller) AuditSecret(opts *bind.CallOpts, _swapID [32]byte) ([32]byte, error)
- func (_EthSwapContract *EthSwapContractCaller) BrokerFees(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_EthSwapContract *EthSwapContractCaller) Initiatable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractCaller) Redeemable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractCaller) RedeemedAt(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (_EthSwapContract *EthSwapContractCaller) Refundable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractCaller) SwapID(opts *bind.CallOpts, _secretLock [32]byte, _timelock *big.Int) ([32]byte, error)
- func (_EthSwapContract *EthSwapContractCaller) VERSION(opts *bind.CallOpts) (string, error)
- type EthSwapContractCallerRaw
- type EthSwapContractCallerSession
- func (_EthSwapContract *EthSwapContractCallerSession) Audit(_swapID [32]byte) (struct{ ... }, error)
- func (_EthSwapContract *EthSwapContractCallerSession) AuditSecret(_swapID [32]byte) ([32]byte, error)
- func (_EthSwapContract *EthSwapContractCallerSession) BrokerFees(arg0 common.Address) (*big.Int, error)
- func (_EthSwapContract *EthSwapContractCallerSession) Initiatable(_swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractCallerSession) Redeemable(_swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractCallerSession) RedeemedAt(arg0 [32]byte) (*big.Int, error)
- func (_EthSwapContract *EthSwapContractCallerSession) Refundable(_swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractCallerSession) SwapID(_secretLock [32]byte, _timelock *big.Int) ([32]byte, error)
- func (_EthSwapContract *EthSwapContractCallerSession) VERSION() (string, error)
- type EthSwapContractFilterer
- func (_EthSwapContract *EthSwapContractFilterer) FilterLogClose(opts *bind.FilterOpts) (*EthSwapContractLogCloseIterator, error)
- func (_EthSwapContract *EthSwapContractFilterer) FilterLogExpire(opts *bind.FilterOpts) (*EthSwapContractLogExpireIterator, error)
- func (_EthSwapContract *EthSwapContractFilterer) FilterLogOpen(opts *bind.FilterOpts) (*EthSwapContractLogOpenIterator, error)
- func (_EthSwapContract *EthSwapContractFilterer) WatchLogClose(opts *bind.WatchOpts, sink chan<- *EthSwapContractLogClose) (event.Subscription, error)
- func (_EthSwapContract *EthSwapContractFilterer) WatchLogExpire(opts *bind.WatchOpts, sink chan<- *EthSwapContractLogExpire) (event.Subscription, error)
- func (_EthSwapContract *EthSwapContractFilterer) WatchLogOpen(opts *bind.WatchOpts, sink chan<- *EthSwapContractLogOpen) (event.Subscription, error)
- type EthSwapContractLogClose
- type EthSwapContractLogCloseIterator
- type EthSwapContractLogExpire
- type EthSwapContractLogExpireIterator
- type EthSwapContractLogOpen
- type EthSwapContractLogOpenIterator
- type EthSwapContractRaw
- func (_EthSwapContract *EthSwapContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_EthSwapContract *EthSwapContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EthSwapContractSession
- func (_EthSwapContract *EthSwapContractSession) Audit(_swapID [32]byte) (struct{ ... }, error)
- func (_EthSwapContract *EthSwapContractSession) AuditSecret(_swapID [32]byte) ([32]byte, error)
- func (_EthSwapContract *EthSwapContractSession) BrokerFees(arg0 common.Address) (*big.Int, error)
- func (_EthSwapContract *EthSwapContractSession) Initiatable(_swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractSession) Initiate(_swapID [32]byte, _spender common.Address, _secretLock [32]byte, ...) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractSession) InitiateWithFees(_swapID [32]byte, _spender common.Address, _broker common.Address, ...) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractSession) Redeem(_swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractSession) Redeemable(_swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractSession) RedeemedAt(arg0 [32]byte) (*big.Int, error)
- func (_EthSwapContract *EthSwapContractSession) Refund(_swapID [32]byte) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractSession) Refundable(_swapID [32]byte) (bool, error)
- func (_EthSwapContract *EthSwapContractSession) SwapID(_secretLock [32]byte, _timelock *big.Int) ([32]byte, error)
- func (_EthSwapContract *EthSwapContractSession) VERSION() (string, error)
- func (_EthSwapContract *EthSwapContractSession) WithdrawBrokerFees(_amount *big.Int) (*types.Transaction, error)
- type EthSwapContractTransactor
- func (_EthSwapContract *EthSwapContractTransactor) Initiate(opts *bind.TransactOpts, _swapID [32]byte, _spender common.Address, ...) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactor) InitiateWithFees(opts *bind.TransactOpts, _swapID [32]byte, _spender common.Address, ...) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactor) Redeem(opts *bind.TransactOpts, _swapID [32]byte, _receiver common.Address, ...) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactor) Refund(opts *bind.TransactOpts, _swapID [32]byte) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactor) WithdrawBrokerFees(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- type EthSwapContractTransactorRaw
- type EthSwapContractTransactorSession
- func (_EthSwapContract *EthSwapContractTransactorSession) Initiate(_swapID [32]byte, _spender common.Address, _secretLock [32]byte, ...) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactorSession) InitiateWithFees(_swapID [32]byte, _spender common.Address, _broker common.Address, ...) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactorSession) Redeem(_swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactorSession) Refund(_swapID [32]byte) (*types.Transaction, error)
- func (_EthSwapContract *EthSwapContractTransactorSession) WithdrawBrokerFees(_amount *big.Int) (*types.Transaction, error)
Constants ¶
const EthSwapContractABI = "" /* 4487-byte string literal not displayed */
EthSwapContractABI is the input ABI used to generate the binding from.
const EthSwapContractBin = `` /* 9058-byte string literal not displayed */
EthSwapContractBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
func NewETHSwapContractBinder ¶
func NewETHSwapContractBinder(account libeth.Account, swap swap.Swap, cost blockchain.Cost, logger logrus.FieldLogger) (immediate.Contract, error)
NewETHSwapContractBinder returns a new Ethereum RequestAtom instance
Types ¶
type EthSwapContract ¶
type EthSwapContract struct { EthSwapContractCaller // Read-only binding to the contract EthSwapContractTransactor // Write-only binding to the contract EthSwapContractFilterer // Log filterer for contract events }
EthSwapContract is an auto generated Go binding around an Ethereum contract.
func DeployEthSwapContract ¶
func DeployEthSwapContract(auth *bind.TransactOpts, backend bind.ContractBackend, _VERSION string) (common.Address, *types.Transaction, *EthSwapContract, error)
DeployEthSwapContract deploys a new Ethereum contract, binding an instance of EthSwapContract to it.
func NewEthSwapContract ¶
func NewEthSwapContract(address common.Address, backend bind.ContractBackend) (*EthSwapContract, error)
NewEthSwapContract creates a new instance of EthSwapContract, bound to a specific deployed contract.
type EthSwapContractCaller ¶
type EthSwapContractCaller struct {
// contains filtered or unexported fields
}
EthSwapContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewEthSwapContractCaller ¶
func NewEthSwapContractCaller(address common.Address, caller bind.ContractCaller) (*EthSwapContractCaller, error)
NewEthSwapContractCaller creates a new read-only instance of EthSwapContract, bound to a specific deployed contract.
func (*EthSwapContractCaller) Audit ¶
func (_EthSwapContract *EthSwapContractCaller) Audit(opts *bind.CallOpts, _swapID [32]byte) (struct { Timelock *big.Int Value *big.Int To common.Address BrokerFee *big.Int Broker common.Address From common.Address SecretLock [32]byte }, error)
Audit is a free data retrieval call binding the contract method 0xc140635b.
Solidity: function audit(_swapID bytes32) constant returns(timelock uint256, value uint256, to address, brokerFee uint256, broker address, from address, secretLock bytes32)
func (*EthSwapContractCaller) AuditSecret ¶
func (_EthSwapContract *EthSwapContractCaller) AuditSecret(opts *bind.CallOpts, _swapID [32]byte) ([32]byte, error)
AuditSecret is a free data retrieval call binding the contract method 0x976d00f4.
Solidity: function auditSecret(_swapID bytes32) constant returns(secretKey bytes32)
func (*EthSwapContractCaller) BrokerFees ¶
func (_EthSwapContract *EthSwapContractCaller) BrokerFees(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
BrokerFees is a free data retrieval call binding the contract method 0xe1ec380c.
Solidity: function brokerFees( address) constant returns(uint256)
func (*EthSwapContractCaller) Initiatable ¶
func (_EthSwapContract *EthSwapContractCaller) Initiatable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)
Initiatable is a free data retrieval call binding the contract method 0x09ece618.
Solidity: function initiatable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractCaller) Redeemable ¶
func (_EthSwapContract *EthSwapContractCaller) Redeemable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)
Redeemable is a free data retrieval call binding the contract method 0x68f06b29.
Solidity: function redeemable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractCaller) RedeemedAt ¶
func (_EthSwapContract *EthSwapContractCaller) RedeemedAt(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
RedeemedAt is a free data retrieval call binding the contract method 0xbc4fcc4a.
Solidity: function redeemedAt( bytes32) constant returns(uint256)
func (*EthSwapContractCaller) Refundable ¶
func (_EthSwapContract *EthSwapContractCaller) Refundable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)
Refundable is a free data retrieval call binding the contract method 0x9fb31475.
Solidity: function refundable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractCaller) SwapID ¶
func (_EthSwapContract *EthSwapContractCaller) SwapID(opts *bind.CallOpts, _secretLock [32]byte, _timelock *big.Int) ([32]byte, error)
SwapID is a free data retrieval call binding the contract method 0x4b2ac3fa.
Solidity: function swapID(_secretLock bytes32, _timelock uint256) constant returns(bytes32)
type EthSwapContractCallerRaw ¶
type EthSwapContractCallerRaw struct {
Contract *EthSwapContractCaller // Generic read-only contract binding to access the raw methods on
}
EthSwapContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*EthSwapContractCallerRaw) Call ¶
func (_EthSwapContract *EthSwapContractCallerRaw) 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 EthSwapContractCallerSession ¶
type EthSwapContractCallerSession struct { Contract *EthSwapContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
EthSwapContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*EthSwapContractCallerSession) Audit ¶
func (_EthSwapContract *EthSwapContractCallerSession) Audit(_swapID [32]byte) (struct { Timelock *big.Int Value *big.Int To common.Address BrokerFee *big.Int Broker common.Address From common.Address SecretLock [32]byte }, error)
Audit is a free data retrieval call binding the contract method 0xc140635b.
Solidity: function audit(_swapID bytes32) constant returns(timelock uint256, value uint256, to address, brokerFee uint256, broker address, from address, secretLock bytes32)
func (*EthSwapContractCallerSession) AuditSecret ¶
func (_EthSwapContract *EthSwapContractCallerSession) AuditSecret(_swapID [32]byte) ([32]byte, error)
AuditSecret is a free data retrieval call binding the contract method 0x976d00f4.
Solidity: function auditSecret(_swapID bytes32) constant returns(secretKey bytes32)
func (*EthSwapContractCallerSession) BrokerFees ¶
func (_EthSwapContract *EthSwapContractCallerSession) BrokerFees(arg0 common.Address) (*big.Int, error)
BrokerFees is a free data retrieval call binding the contract method 0xe1ec380c.
Solidity: function brokerFees( address) constant returns(uint256)
func (*EthSwapContractCallerSession) Initiatable ¶
func (_EthSwapContract *EthSwapContractCallerSession) Initiatable(_swapID [32]byte) (bool, error)
Initiatable is a free data retrieval call binding the contract method 0x09ece618.
Solidity: function initiatable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractCallerSession) Redeemable ¶
func (_EthSwapContract *EthSwapContractCallerSession) Redeemable(_swapID [32]byte) (bool, error)
Redeemable is a free data retrieval call binding the contract method 0x68f06b29.
Solidity: function redeemable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractCallerSession) RedeemedAt ¶
func (_EthSwapContract *EthSwapContractCallerSession) RedeemedAt(arg0 [32]byte) (*big.Int, error)
RedeemedAt is a free data retrieval call binding the contract method 0xbc4fcc4a.
Solidity: function redeemedAt( bytes32) constant returns(uint256)
func (*EthSwapContractCallerSession) Refundable ¶
func (_EthSwapContract *EthSwapContractCallerSession) Refundable(_swapID [32]byte) (bool, error)
Refundable is a free data retrieval call binding the contract method 0x9fb31475.
Solidity: function refundable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractCallerSession) SwapID ¶
func (_EthSwapContract *EthSwapContractCallerSession) SwapID(_secretLock [32]byte, _timelock *big.Int) ([32]byte, error)
SwapID is a free data retrieval call binding the contract method 0x4b2ac3fa.
Solidity: function swapID(_secretLock bytes32, _timelock uint256) constant returns(bytes32)
func (*EthSwapContractCallerSession) VERSION ¶
func (_EthSwapContract *EthSwapContractCallerSession) VERSION() (string, error)
VERSION is a free data retrieval call binding the contract method 0xffa1ad74.
Solidity: function VERSION() constant returns(string)
type EthSwapContractFilterer ¶
type EthSwapContractFilterer struct {
// contains filtered or unexported fields
}
EthSwapContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewEthSwapContractFilterer ¶
func NewEthSwapContractFilterer(address common.Address, filterer bind.ContractFilterer) (*EthSwapContractFilterer, error)
NewEthSwapContractFilterer creates a new log filterer instance of EthSwapContract, bound to a specific deployed contract.
func (*EthSwapContractFilterer) FilterLogClose ¶
func (_EthSwapContract *EthSwapContractFilterer) FilterLogClose(opts *bind.FilterOpts) (*EthSwapContractLogCloseIterator, error)
FilterLogClose is a free log retrieval operation binding the contract event 0x07da1fa25a1d885732677ce9c192cbec27051a4b69d391c9a64850f5a5112ba0.
Solidity: e LogClose(_swapID bytes32, _secretKey bytes32)
func (*EthSwapContractFilterer) FilterLogExpire ¶
func (_EthSwapContract *EthSwapContractFilterer) FilterLogExpire(opts *bind.FilterOpts) (*EthSwapContractLogExpireIterator, error)
FilterLogExpire is a free log retrieval operation binding the contract event 0xeb711459e1247171382f0da0387b86239b8e3ca60af3b15a9ff2f1eb3d7f6a1d.
Solidity: e LogExpire(_swapID bytes32)
func (*EthSwapContractFilterer) FilterLogOpen ¶
func (_EthSwapContract *EthSwapContractFilterer) FilterLogOpen(opts *bind.FilterOpts) (*EthSwapContractLogOpenIterator, error)
FilterLogOpen is a free log retrieval operation binding the contract event 0x497d46e9505eefe8b910d1a02e6b40d8769510023b0053c3ac4b9574b81c97bf.
Solidity: e LogOpen(_swapID bytes32, _spender address, _secretLock bytes32)
func (*EthSwapContractFilterer) WatchLogClose ¶
func (_EthSwapContract *EthSwapContractFilterer) WatchLogClose(opts *bind.WatchOpts, sink chan<- *EthSwapContractLogClose) (event.Subscription, error)
WatchLogClose is a free log subscription operation binding the contract event 0x07da1fa25a1d885732677ce9c192cbec27051a4b69d391c9a64850f5a5112ba0.
Solidity: e LogClose(_swapID bytes32, _secretKey bytes32)
func (*EthSwapContractFilterer) WatchLogExpire ¶
func (_EthSwapContract *EthSwapContractFilterer) WatchLogExpire(opts *bind.WatchOpts, sink chan<- *EthSwapContractLogExpire) (event.Subscription, error)
WatchLogExpire is a free log subscription operation binding the contract event 0xeb711459e1247171382f0da0387b86239b8e3ca60af3b15a9ff2f1eb3d7f6a1d.
Solidity: e LogExpire(_swapID bytes32)
func (*EthSwapContractFilterer) WatchLogOpen ¶
func (_EthSwapContract *EthSwapContractFilterer) WatchLogOpen(opts *bind.WatchOpts, sink chan<- *EthSwapContractLogOpen) (event.Subscription, error)
WatchLogOpen is a free log subscription operation binding the contract event 0x497d46e9505eefe8b910d1a02e6b40d8769510023b0053c3ac4b9574b81c97bf.
Solidity: e LogOpen(_swapID bytes32, _spender address, _secretLock bytes32)
type EthSwapContractLogClose ¶
type EthSwapContractLogClose struct { SwapID [32]byte SecretKey [32]byte Raw types.Log // Blockchain specific contextual infos }
EthSwapContractLogClose represents a LogClose event raised by the EthSwapContract contract.
type EthSwapContractLogCloseIterator ¶
type EthSwapContractLogCloseIterator struct { Event *EthSwapContractLogClose // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EthSwapContractLogCloseIterator is returned from FilterLogClose and is used to iterate over the raw logs and unpacked data for LogClose events raised by the EthSwapContract contract.
func (*EthSwapContractLogCloseIterator) Close ¶
func (it *EthSwapContractLogCloseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EthSwapContractLogCloseIterator) Error ¶
func (it *EthSwapContractLogCloseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EthSwapContractLogCloseIterator) Next ¶
func (it *EthSwapContractLogCloseIterator) 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 EthSwapContractLogExpire ¶
type EthSwapContractLogExpire struct { SwapID [32]byte Raw types.Log // Blockchain specific contextual infos }
EthSwapContractLogExpire represents a LogExpire event raised by the EthSwapContract contract.
type EthSwapContractLogExpireIterator ¶
type EthSwapContractLogExpireIterator struct { Event *EthSwapContractLogExpire // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EthSwapContractLogExpireIterator is returned from FilterLogExpire and is used to iterate over the raw logs and unpacked data for LogExpire events raised by the EthSwapContract contract.
func (*EthSwapContractLogExpireIterator) Close ¶
func (it *EthSwapContractLogExpireIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EthSwapContractLogExpireIterator) Error ¶
func (it *EthSwapContractLogExpireIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EthSwapContractLogExpireIterator) Next ¶
func (it *EthSwapContractLogExpireIterator) 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 EthSwapContractLogOpen ¶
type EthSwapContractLogOpen struct { SwapID [32]byte Spender common.Address SecretLock [32]byte Raw types.Log // Blockchain specific contextual infos }
EthSwapContractLogOpen represents a LogOpen event raised by the EthSwapContract contract.
type EthSwapContractLogOpenIterator ¶
type EthSwapContractLogOpenIterator struct { Event *EthSwapContractLogOpen // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EthSwapContractLogOpenIterator is returned from FilterLogOpen and is used to iterate over the raw logs and unpacked data for LogOpen events raised by the EthSwapContract contract.
func (*EthSwapContractLogOpenIterator) Close ¶
func (it *EthSwapContractLogOpenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EthSwapContractLogOpenIterator) Error ¶
func (it *EthSwapContractLogOpenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EthSwapContractLogOpenIterator) Next ¶
func (it *EthSwapContractLogOpenIterator) 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 EthSwapContractRaw ¶
type EthSwapContractRaw struct {
Contract *EthSwapContract // Generic contract binding to access the raw methods on
}
EthSwapContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*EthSwapContractRaw) Call ¶
func (_EthSwapContract *EthSwapContractRaw) 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 (*EthSwapContractRaw) Transact ¶
func (_EthSwapContract *EthSwapContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EthSwapContractRaw) Transfer ¶
func (_EthSwapContract *EthSwapContractRaw) 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 EthSwapContractSession ¶
type EthSwapContractSession struct { Contract *EthSwapContract // 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 }
EthSwapContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*EthSwapContractSession) Audit ¶
func (_EthSwapContract *EthSwapContractSession) Audit(_swapID [32]byte) (struct { Timelock *big.Int Value *big.Int To common.Address BrokerFee *big.Int Broker common.Address From common.Address SecretLock [32]byte }, error)
Audit is a free data retrieval call binding the contract method 0xc140635b.
Solidity: function audit(_swapID bytes32) constant returns(timelock uint256, value uint256, to address, brokerFee uint256, broker address, from address, secretLock bytes32)
func (*EthSwapContractSession) AuditSecret ¶
func (_EthSwapContract *EthSwapContractSession) AuditSecret(_swapID [32]byte) ([32]byte, error)
AuditSecret is a free data retrieval call binding the contract method 0x976d00f4.
Solidity: function auditSecret(_swapID bytes32) constant returns(secretKey bytes32)
func (*EthSwapContractSession) BrokerFees ¶
BrokerFees is a free data retrieval call binding the contract method 0xe1ec380c.
Solidity: function brokerFees( address) constant returns(uint256)
func (*EthSwapContractSession) Initiatable ¶
func (_EthSwapContract *EthSwapContractSession) Initiatable(_swapID [32]byte) (bool, error)
Initiatable is a free data retrieval call binding the contract method 0x09ece618.
Solidity: function initiatable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractSession) Initiate ¶
func (_EthSwapContract *EthSwapContractSession) Initiate(_swapID [32]byte, _spender common.Address, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)
Initiate is a paid mutator transaction binding the contract method 0x027a2577.
Solidity: function initiate(_swapID bytes32, _spender address, _secretLock bytes32, _timelock uint256, _value uint256) returns()
func (*EthSwapContractSession) InitiateWithFees ¶
func (_EthSwapContract *EthSwapContractSession) InitiateWithFees(_swapID [32]byte, _spender common.Address, _broker common.Address, _brokerFee *big.Int, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)
InitiateWithFees is a paid mutator transaction binding the contract method 0xb8688e3f.
Solidity: function initiateWithFees(_swapID bytes32, _spender address, _broker address, _brokerFee uint256, _secretLock bytes32, _timelock uint256, _value uint256) returns()
func (*EthSwapContractSession) Redeem ¶
func (_EthSwapContract *EthSwapContractSession) Redeem(_swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xc23b1a85.
Solidity: function redeem(_swapID bytes32, _receiver address, _secretKey bytes32) returns()
func (*EthSwapContractSession) Redeemable ¶
func (_EthSwapContract *EthSwapContractSession) Redeemable(_swapID [32]byte) (bool, error)
Redeemable is a free data retrieval call binding the contract method 0x68f06b29.
Solidity: function redeemable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractSession) RedeemedAt ¶
func (_EthSwapContract *EthSwapContractSession) RedeemedAt(arg0 [32]byte) (*big.Int, error)
RedeemedAt is a free data retrieval call binding the contract method 0xbc4fcc4a.
Solidity: function redeemedAt( bytes32) constant returns(uint256)
func (*EthSwapContractSession) Refund ¶
func (_EthSwapContract *EthSwapContractSession) Refund(_swapID [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(_swapID bytes32) returns()
func (*EthSwapContractSession) Refundable ¶
func (_EthSwapContract *EthSwapContractSession) Refundable(_swapID [32]byte) (bool, error)
Refundable is a free data retrieval call binding the contract method 0x9fb31475.
Solidity: function refundable(_swapID bytes32) constant returns(bool)
func (*EthSwapContractSession) SwapID ¶
func (_EthSwapContract *EthSwapContractSession) SwapID(_secretLock [32]byte, _timelock *big.Int) ([32]byte, error)
SwapID is a free data retrieval call binding the contract method 0x4b2ac3fa.
Solidity: function swapID(_secretLock bytes32, _timelock uint256) constant returns(bytes32)
func (*EthSwapContractSession) VERSION ¶
func (_EthSwapContract *EthSwapContractSession) VERSION() (string, error)
VERSION is a free data retrieval call binding the contract method 0xffa1ad74.
Solidity: function VERSION() constant returns(string)
func (*EthSwapContractSession) WithdrawBrokerFees ¶
func (_EthSwapContract *EthSwapContractSession) WithdrawBrokerFees(_amount *big.Int) (*types.Transaction, error)
WithdrawBrokerFees is a paid mutator transaction binding the contract method 0x4c6d37ff.
Solidity: function withdrawBrokerFees(_amount uint256) returns()
type EthSwapContractTransactor ¶
type EthSwapContractTransactor struct {
// contains filtered or unexported fields
}
EthSwapContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewEthSwapContractTransactor ¶
func NewEthSwapContractTransactor(address common.Address, transactor bind.ContractTransactor) (*EthSwapContractTransactor, error)
NewEthSwapContractTransactor creates a new write-only instance of EthSwapContract, bound to a specific deployed contract.
func (*EthSwapContractTransactor) Initiate ¶
func (_EthSwapContract *EthSwapContractTransactor) Initiate(opts *bind.TransactOpts, _swapID [32]byte, _spender common.Address, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)
Initiate is a paid mutator transaction binding the contract method 0x027a2577.
Solidity: function initiate(_swapID bytes32, _spender address, _secretLock bytes32, _timelock uint256, _value uint256) returns()
func (*EthSwapContractTransactor) InitiateWithFees ¶
func (_EthSwapContract *EthSwapContractTransactor) InitiateWithFees(opts *bind.TransactOpts, _swapID [32]byte, _spender common.Address, _broker common.Address, _brokerFee *big.Int, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)
InitiateWithFees is a paid mutator transaction binding the contract method 0xb8688e3f.
Solidity: function initiateWithFees(_swapID bytes32, _spender address, _broker address, _brokerFee uint256, _secretLock bytes32, _timelock uint256, _value uint256) returns()
func (*EthSwapContractTransactor) Redeem ¶
func (_EthSwapContract *EthSwapContractTransactor) Redeem(opts *bind.TransactOpts, _swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xc23b1a85.
Solidity: function redeem(_swapID bytes32, _receiver address, _secretKey bytes32) returns()
func (*EthSwapContractTransactor) Refund ¶
func (_EthSwapContract *EthSwapContractTransactor) Refund(opts *bind.TransactOpts, _swapID [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(_swapID bytes32) returns()
func (*EthSwapContractTransactor) WithdrawBrokerFees ¶
func (_EthSwapContract *EthSwapContractTransactor) WithdrawBrokerFees(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
WithdrawBrokerFees is a paid mutator transaction binding the contract method 0x4c6d37ff.
Solidity: function withdrawBrokerFees(_amount uint256) returns()
type EthSwapContractTransactorRaw ¶
type EthSwapContractTransactorRaw struct {
Contract *EthSwapContractTransactor // Generic write-only contract binding to access the raw methods on
}
EthSwapContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*EthSwapContractTransactorRaw) Transact ¶
func (_EthSwapContract *EthSwapContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EthSwapContractTransactorRaw) Transfer ¶
func (_EthSwapContract *EthSwapContractTransactorRaw) 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 EthSwapContractTransactorSession ¶
type EthSwapContractTransactorSession struct { Contract *EthSwapContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
EthSwapContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*EthSwapContractTransactorSession) Initiate ¶
func (_EthSwapContract *EthSwapContractTransactorSession) Initiate(_swapID [32]byte, _spender common.Address, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)
Initiate is a paid mutator transaction binding the contract method 0x027a2577.
Solidity: function initiate(_swapID bytes32, _spender address, _secretLock bytes32, _timelock uint256, _value uint256) returns()
func (*EthSwapContractTransactorSession) InitiateWithFees ¶
func (_EthSwapContract *EthSwapContractTransactorSession) InitiateWithFees(_swapID [32]byte, _spender common.Address, _broker common.Address, _brokerFee *big.Int, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)
InitiateWithFees is a paid mutator transaction binding the contract method 0xb8688e3f.
Solidity: function initiateWithFees(_swapID bytes32, _spender address, _broker address, _brokerFee uint256, _secretLock bytes32, _timelock uint256, _value uint256) returns()
func (*EthSwapContractTransactorSession) Redeem ¶
func (_EthSwapContract *EthSwapContractTransactorSession) Redeem(_swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xc23b1a85.
Solidity: function redeem(_swapID bytes32, _receiver address, _secretKey bytes32) returns()
func (*EthSwapContractTransactorSession) Refund ¶
func (_EthSwapContract *EthSwapContractTransactorSession) Refund(_swapID [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(_swapID bytes32) returns()
func (*EthSwapContractTransactorSession) WithdrawBrokerFees ¶
func (_EthSwapContract *EthSwapContractTransactorSession) WithdrawBrokerFees(_amount *big.Int) (*types.Transaction, error)
WithdrawBrokerFees is a paid mutator transaction binding the contract method 0x4c6d37ff.
Solidity: function withdrawBrokerFees(_amount uint256) returns()