Documentation ¶
Index ¶
- Constants
- type Contract
- type ContractCaller
- type ContractCallerRaw
- type ContractCallerSession
- type ContractFilterer
- func (_Contract *ContractFilterer) FilterInitiated(opts *bind.FilterOpts) (*ContractInitiatedIterator, error)
- func (_Contract *ContractFilterer) FilterParticipated(opts *bind.FilterOpts) (*ContractParticipatedIterator, error)
- func (_Contract *ContractFilterer) FilterRedeemed(opts *bind.FilterOpts) (*ContractRedeemedIterator, error)
- func (_Contract *ContractFilterer) FilterRefunded(opts *bind.FilterOpts) (*ContractRefundedIterator, error)
- func (_Contract *ContractFilterer) WatchInitiated(opts *bind.WatchOpts, sink chan<- *ContractInitiated) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchParticipated(opts *bind.WatchOpts, sink chan<- *ContractParticipated) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchRedeemed(opts *bind.WatchOpts, sink chan<- *ContractRedeemed) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchRefunded(opts *bind.WatchOpts, sink chan<- *ContractRefunded) (event.Subscription, error)
- type ContractInitiated
- type ContractInitiatedIterator
- type ContractParticipated
- type ContractParticipatedIterator
- type ContractRaw
- func (_Contract *ContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ContractRedeemed
- type ContractRedeemedIterator
- type ContractRefunded
- type ContractRefundedIterator
- type ContractSession
- func (_Contract *ContractSession) Initiate(refundTime *big.Int, secretHash [32]byte, participant common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) Participate(refundTime *big.Int, secretHash [32]byte, initiator common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) Redeem(secret [32]byte, secretHash [32]byte) (*types.Transaction, error)
- func (_Contract *ContractSession) Refund(secretHash [32]byte) (*types.Transaction, error)
- func (_Contract *ContractSession) Swaps(arg0 [32]byte) (struct{ ... }, error)
- type ContractTransactor
- func (_Contract *ContractTransactor) Initiate(opts *bind.TransactOpts, refundTime *big.Int, secretHash [32]byte, ...) (*types.Transaction, error)
- func (_Contract *ContractTransactor) Participate(opts *bind.TransactOpts, refundTime *big.Int, secretHash [32]byte, ...) (*types.Transaction, error)
- func (_Contract *ContractTransactor) Redeem(opts *bind.TransactOpts, secret [32]byte, secretHash [32]byte) (*types.Transaction, error)
- func (_Contract *ContractTransactor) Refund(opts *bind.TransactOpts, secretHash [32]byte) (*types.Transaction, error)
- type ContractTransactorRaw
- type ContractTransactorSession
- func (_Contract *ContractTransactorSession) Initiate(refundTime *big.Int, secretHash [32]byte, participant common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) Participate(refundTime *big.Int, secretHash [32]byte, initiator common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) Redeem(secret [32]byte, secretHash [32]byte) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) Refund(secretHash [32]byte) (*types.Transaction, error)
Constants ¶
const ContractABI = "" /* 3315-byte string literal not displayed */
ContractABI is the input ABI used to generate the binding from.
const ContractBin = `` /* 8600-byte string literal not displayed */
ContractBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { ContractCaller // Read-only binding to the contract ContractTransactor // Write-only binding to the contract ContractFilterer // Log filterer for contract events }
Contract is an auto generated Go binding around an Ethereum contract.
func DeployContract ¶
func DeployContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Contract, error)
DeployContract deploys a new Ethereum contract, binding an instance of Contract to it.
func NewContract ¶
NewContract creates a new instance of Contract, bound to a specific deployed contract.
type ContractCaller ¶
type ContractCaller struct {
// contains filtered or unexported fields
}
ContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewContractCaller ¶
func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error)
NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.
func (*ContractCaller) Swaps ¶
func (_Contract *ContractCaller) Swaps(opts *bind.CallOpts, arg0 [32]byte) (struct { InitTimestamp *big.Int RefundTime *big.Int SecretHash [32]byte Secret [32]byte Initiator common.Address Participant common.Address Value *big.Int Kind uint8 State uint8 }, error)
Swaps is a free data retrieval call binding the contract method 0xeb84e7f2.
Solidity: function swaps( bytes32) constant returns(initTimestamp uint256, refundTime uint256, secretHash bytes32, secret bytes32, initiator address, participant address, value uint256, kind uint8, state uint8)
type ContractCallerRaw ¶
type ContractCallerRaw struct {
Contract *ContractCaller // Generic read-only contract binding to access the raw methods on
}
ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ContractCallerRaw) Call ¶
func (_Contract *ContractCallerRaw) 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 ContractCallerSession ¶
type ContractCallerSession struct { Contract *ContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ContractCallerSession) Swaps ¶
func (_Contract *ContractCallerSession) Swaps(arg0 [32]byte) (struct { InitTimestamp *big.Int RefundTime *big.Int SecretHash [32]byte Secret [32]byte Initiator common.Address Participant common.Address Value *big.Int Kind uint8 State uint8 }, error)
Swaps is a free data retrieval call binding the contract method 0xeb84e7f2.
Solidity: function swaps( bytes32) constant returns(initTimestamp uint256, refundTime uint256, secretHash bytes32, secret bytes32, initiator address, participant address, value uint256, kind uint8, state uint8)
type ContractFilterer ¶
type ContractFilterer struct {
// contains filtered or unexported fields
}
ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewContractFilterer ¶
func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error)
NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.
func (*ContractFilterer) FilterInitiated ¶
func (_Contract *ContractFilterer) FilterInitiated(opts *bind.FilterOpts) (*ContractInitiatedIterator, error)
FilterInitiated is a free log retrieval operation binding the contract event 0x75501a491c11746724d18ea6e5ac6a53864d886d653da6b846fdecda837cf576.
Solidity: e Initiated(initTimestamp uint256, refundTime uint256, secretHash bytes32, initiator address, participant address, value uint256)
func (*ContractFilterer) FilterParticipated ¶
func (_Contract *ContractFilterer) FilterParticipated(opts *bind.FilterOpts) (*ContractParticipatedIterator, error)
FilterParticipated is a free log retrieval operation binding the contract event 0xe5571d467a528d7481c0e3bdd55ad528d0df6b457b07bab736c3e245c3aa16f4.
Solidity: e Participated(initTimestamp uint256, refundTime uint256, secretHash bytes32, initiator address, participant address, value uint256)
func (*ContractFilterer) FilterRedeemed ¶
func (_Contract *ContractFilterer) FilterRedeemed(opts *bind.FilterOpts) (*ContractRedeemedIterator, error)
FilterRedeemed is a free log retrieval operation binding the contract event 0xe4da013d8c42cdfa76ab1d5c08edcdc1503d2da88d7accc854f0e57ebe45c591.
Solidity: e Redeemed(redeemTime uint256, secretHash bytes32, secret bytes32, redeemer address, value uint256)
func (*ContractFilterer) FilterRefunded ¶
func (_Contract *ContractFilterer) FilterRefunded(opts *bind.FilterOpts) (*ContractRefundedIterator, error)
FilterRefunded is a free log retrieval operation binding the contract event 0xadb1dca52dfad065e50a1e25c2ee47ae54013a1f2d6f8ea5abace52eb4b7a4c8.
Solidity: e Refunded(refundTime uint256, secretHash bytes32, refunder address, value uint256)
func (*ContractFilterer) WatchInitiated ¶
func (_Contract *ContractFilterer) WatchInitiated(opts *bind.WatchOpts, sink chan<- *ContractInitiated) (event.Subscription, error)
WatchInitiated is a free log subscription operation binding the contract event 0x75501a491c11746724d18ea6e5ac6a53864d886d653da6b846fdecda837cf576.
Solidity: e Initiated(initTimestamp uint256, refundTime uint256, secretHash bytes32, initiator address, participant address, value uint256)
func (*ContractFilterer) WatchParticipated ¶
func (_Contract *ContractFilterer) WatchParticipated(opts *bind.WatchOpts, sink chan<- *ContractParticipated) (event.Subscription, error)
WatchParticipated is a free log subscription operation binding the contract event 0xe5571d467a528d7481c0e3bdd55ad528d0df6b457b07bab736c3e245c3aa16f4.
Solidity: e Participated(initTimestamp uint256, refundTime uint256, secretHash bytes32, initiator address, participant address, value uint256)
func (*ContractFilterer) WatchRedeemed ¶
func (_Contract *ContractFilterer) WatchRedeemed(opts *bind.WatchOpts, sink chan<- *ContractRedeemed) (event.Subscription, error)
WatchRedeemed is a free log subscription operation binding the contract event 0xe4da013d8c42cdfa76ab1d5c08edcdc1503d2da88d7accc854f0e57ebe45c591.
Solidity: e Redeemed(redeemTime uint256, secretHash bytes32, secret bytes32, redeemer address, value uint256)
func (*ContractFilterer) WatchRefunded ¶
func (_Contract *ContractFilterer) WatchRefunded(opts *bind.WatchOpts, sink chan<- *ContractRefunded) (event.Subscription, error)
WatchRefunded is a free log subscription operation binding the contract event 0xadb1dca52dfad065e50a1e25c2ee47ae54013a1f2d6f8ea5abace52eb4b7a4c8.
Solidity: e Refunded(refundTime uint256, secretHash bytes32, refunder address, value uint256)
type ContractInitiated ¶
type ContractInitiated struct { InitTimestamp *big.Int RefundTime *big.Int SecretHash [32]byte Initiator common.Address Participant common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractInitiated represents a Initiated event raised by the Contract contract.
type ContractInitiatedIterator ¶
type ContractInitiatedIterator struct { Event *ContractInitiated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractInitiatedIterator is returned from FilterInitiated and is used to iterate over the raw logs and unpacked data for Initiated events raised by the Contract contract.
func (*ContractInitiatedIterator) Close ¶
func (it *ContractInitiatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractInitiatedIterator) Error ¶
func (it *ContractInitiatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractInitiatedIterator) Next ¶
func (it *ContractInitiatedIterator) 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 ContractParticipated ¶
type ContractParticipated struct { InitTimestamp *big.Int RefundTime *big.Int SecretHash [32]byte Initiator common.Address Participant common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractParticipated represents a Participated event raised by the Contract contract.
type ContractParticipatedIterator ¶
type ContractParticipatedIterator struct { Event *ContractParticipated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractParticipatedIterator is returned from FilterParticipated and is used to iterate over the raw logs and unpacked data for Participated events raised by the Contract contract.
func (*ContractParticipatedIterator) Close ¶
func (it *ContractParticipatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractParticipatedIterator) Error ¶
func (it *ContractParticipatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractParticipatedIterator) Next ¶
func (it *ContractParticipatedIterator) 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 ContractRaw ¶
type ContractRaw struct {
Contract *Contract // Generic contract binding to access the raw methods on
}
ContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ContractRaw) Call ¶
func (_Contract *ContractRaw) 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 (*ContractRaw) Transact ¶
func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractRaw) Transfer ¶
func (_Contract *ContractRaw) 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 ContractRedeemed ¶
type ContractRedeemed struct { RedeemTime *big.Int SecretHash [32]byte Secret [32]byte Redeemer common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractRedeemed represents a Redeemed event raised by the Contract contract.
type ContractRedeemedIterator ¶
type ContractRedeemedIterator struct { Event *ContractRedeemed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractRedeemedIterator is returned from FilterRedeemed and is used to iterate over the raw logs and unpacked data for Redeemed events raised by the Contract contract.
func (*ContractRedeemedIterator) Close ¶
func (it *ContractRedeemedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractRedeemedIterator) Error ¶
func (it *ContractRedeemedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractRedeemedIterator) Next ¶
func (it *ContractRedeemedIterator) 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 ContractRefunded ¶
type ContractRefunded struct { RefundTime *big.Int SecretHash [32]byte Refunder common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractRefunded represents a Refunded event raised by the Contract contract.
type ContractRefundedIterator ¶
type ContractRefundedIterator struct { Event *ContractRefunded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractRefundedIterator is returned from FilterRefunded and is used to iterate over the raw logs and unpacked data for Refunded events raised by the Contract contract.
func (*ContractRefundedIterator) Close ¶
func (it *ContractRefundedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractRefundedIterator) Error ¶
func (it *ContractRefundedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractRefundedIterator) Next ¶
func (it *ContractRefundedIterator) 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 ContractSession ¶
type ContractSession struct { Contract *Contract // 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 }
ContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ContractSession) Initiate ¶
func (_Contract *ContractSession) Initiate(refundTime *big.Int, secretHash [32]byte, participant common.Address) (*types.Transaction, error)
Initiate is a paid mutator transaction binding the contract method 0xae052147.
Solidity: function initiate(refundTime uint256, secretHash bytes32, participant address) returns()
func (*ContractSession) Participate ¶
func (_Contract *ContractSession) Participate(refundTime *big.Int, secretHash [32]byte, initiator common.Address) (*types.Transaction, error)
Participate is a paid mutator transaction binding the contract method 0x1aa02853.
Solidity: function participate(refundTime uint256, secretHash bytes32, initiator address) returns()
func (*ContractSession) Redeem ¶
func (_Contract *ContractSession) Redeem(secret [32]byte, secretHash [32]byte) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xb31597ad.
Solidity: function redeem(secret bytes32, secretHash bytes32) returns()
func (*ContractSession) Refund ¶
func (_Contract *ContractSession) Refund(secretHash [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(secretHash bytes32) returns()
func (*ContractSession) Swaps ¶
func (_Contract *ContractSession) Swaps(arg0 [32]byte) (struct { InitTimestamp *big.Int RefundTime *big.Int SecretHash [32]byte Secret [32]byte Initiator common.Address Participant common.Address Value *big.Int Kind uint8 State uint8 }, error)
Swaps is a free data retrieval call binding the contract method 0xeb84e7f2.
Solidity: function swaps( bytes32) constant returns(initTimestamp uint256, refundTime uint256, secretHash bytes32, secret bytes32, initiator address, participant address, value uint256, kind uint8, state uint8)
type ContractTransactor ¶
type ContractTransactor struct {
// contains filtered or unexported fields
}
ContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewContractTransactor ¶
func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error)
NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.
func (*ContractTransactor) Initiate ¶
func (_Contract *ContractTransactor) Initiate(opts *bind.TransactOpts, refundTime *big.Int, secretHash [32]byte, participant common.Address) (*types.Transaction, error)
Initiate is a paid mutator transaction binding the contract method 0xae052147.
Solidity: function initiate(refundTime uint256, secretHash bytes32, participant address) returns()
func (*ContractTransactor) Participate ¶
func (_Contract *ContractTransactor) Participate(opts *bind.TransactOpts, refundTime *big.Int, secretHash [32]byte, initiator common.Address) (*types.Transaction, error)
Participate is a paid mutator transaction binding the contract method 0x1aa02853.
Solidity: function participate(refundTime uint256, secretHash bytes32, initiator address) returns()
func (*ContractTransactor) Redeem ¶
func (_Contract *ContractTransactor) Redeem(opts *bind.TransactOpts, secret [32]byte, secretHash [32]byte) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xb31597ad.
Solidity: function redeem(secret bytes32, secretHash bytes32) returns()
func (*ContractTransactor) Refund ¶
func (_Contract *ContractTransactor) Refund(opts *bind.TransactOpts, secretHash [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(secretHash bytes32) returns()
type ContractTransactorRaw ¶
type ContractTransactorRaw struct {
Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on
}
ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ContractTransactorRaw) Transact ¶
func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractTransactorRaw) Transfer ¶
func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession ¶
type ContractTransactorSession struct { Contract *ContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ContractTransactorSession) Initiate ¶
func (_Contract *ContractTransactorSession) Initiate(refundTime *big.Int, secretHash [32]byte, participant common.Address) (*types.Transaction, error)
Initiate is a paid mutator transaction binding the contract method 0xae052147.
Solidity: function initiate(refundTime uint256, secretHash bytes32, participant address) returns()
func (*ContractTransactorSession) Participate ¶
func (_Contract *ContractTransactorSession) Participate(refundTime *big.Int, secretHash [32]byte, initiator common.Address) (*types.Transaction, error)
Participate is a paid mutator transaction binding the contract method 0x1aa02853.
Solidity: function participate(refundTime uint256, secretHash bytes32, initiator address) returns()
func (*ContractTransactorSession) Redeem ¶
func (_Contract *ContractTransactorSession) Redeem(secret [32]byte, secretHash [32]byte) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xb31597ad.
Solidity: function redeem(secret bytes32, secretHash bytes32) returns()
func (*ContractTransactorSession) Refund ¶
func (_Contract *ContractTransactorSession) Refund(secretHash [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(secretHash bytes32) returns()