Documentation
¶
Index ¶
- Constants
- Variables
- type Ethswap
- type EthswapCaller
- type EthswapCallerRaw
- type EthswapCallerSession
- type EthswapFilterer
- type EthswapRaw
- func (_Ethswap *EthswapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Ethswap *EthswapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Ethswap *EthswapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EthswapSession
- type EthswapTransactor
- type EthswapTransactorRaw
- type EthswapTransactorSession
- type ReentryAttack
- type ReentryAttackCaller
- type ReentryAttackCallerRaw
- type ReentryAttackCallerSession
- type ReentryAttackFilterer
- type ReentryAttackRaw
- func (_ReentryAttack *ReentryAttackRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ReentryAttack *ReentryAttackRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ReentryAttackSession
- func (_ReentryAttack *ReentryAttackSession) AllYourBase() (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackSession) AreBelongToUs() (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackSession) Owner() (common.Address, error)
- func (_ReentryAttack *ReentryAttackSession) SetUsUpTheBomb(es common.Address, sh [32]byte, refundTimestamp *big.Int, ...) (*types.Transaction, error)
- type ReentryAttackTransactor
- func (_ReentryAttack *ReentryAttackTransactor) AllYourBase(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackTransactor) AreBelongToUs(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackTransactor) SetUsUpTheBomb(opts *bind.TransactOpts, es common.Address, sh [32]byte, ...) (*types.Transaction, error)
- type ReentryAttackTransactorRaw
- type ReentryAttackTransactorSession
- func (_ReentryAttack *ReentryAttackTransactorSession) AllYourBase() (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackTransactorSession) AreBelongToUs() (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_ReentryAttack *ReentryAttackTransactorSession) SetUsUpTheBomb(es common.Address, sh [32]byte, refundTimestamp *big.Int, ...) (*types.Transaction, error)
Constants ¶
const EthswapABI = "" /* 524-byte string literal not displayed */
EthswapABI is the input ABI used to generate the binding from.
const ReentryAttackABI = "" /* 933-byte string literal not displayed */
ReentryAttackABI is the input ABI used to generate the binding from.
Variables ¶
var EthswapFuncSigs = map[string]string{
"ae052147": "initiate(uint256,bytes32,address)",
"7249fbb6": "refund(bytes32)",
}
EthswapFuncSigs maps the 4-byte function signature to its string representation.
var ReentryAttackBin = "" /* 1436-byte string literal not displayed */
ReentryAttackBin is the compiled bytecode used for deploying new contracts.
var ReentryAttackFuncSigs = map[string]string{
"8f110770": "allYourBase()",
"627599ee": "areBelongToUs()",
"8da5cb5b": "owner()",
"b9ce28a4": "setUsUpTheBomb(address,bytes32,uint256,address)",
}
ReentryAttackFuncSigs maps the 4-byte function signature to its string representation.
Functions ¶
This section is empty.
Types ¶
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 ¶
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.
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.
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.
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 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) Initiate ¶
func (_Ethswap *EthswapSession) Initiate(refundTimestamp *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(uint256 refundTimestamp, bytes32 secretHash, address participant) payable returns()
func (*EthswapSession) Refund ¶
func (_Ethswap *EthswapSession) Refund(secretHash [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(bytes32 secretHash) returns()
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) Initiate ¶
func (_Ethswap *EthswapTransactor) Initiate(opts *bind.TransactOpts, refundTimestamp *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(uint256 refundTimestamp, bytes32 secretHash, address participant) payable returns()
func (*EthswapTransactor) Refund ¶
func (_Ethswap *EthswapTransactor) Refund(opts *bind.TransactOpts, secretHash [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(bytes32 secretHash) returns()
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) Initiate ¶
func (_Ethswap *EthswapTransactorSession) Initiate(refundTimestamp *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(uint256 refundTimestamp, bytes32 secretHash, address participant) payable returns()
func (*EthswapTransactorSession) Refund ¶
func (_Ethswap *EthswapTransactorSession) Refund(secretHash [32]byte) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x7249fbb6.
Solidity: function refund(bytes32 secretHash) returns()
type ReentryAttack ¶
type ReentryAttack struct { ReentryAttackCaller // Read-only binding to the contract ReentryAttackTransactor // Write-only binding to the contract ReentryAttackFilterer // Log filterer for contract events }
ReentryAttack is an auto generated Go binding around an Ethereum contract.
func DeployReentryAttack ¶
func DeployReentryAttack(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ReentryAttack, error)
DeployReentryAttack deploys a new Ethereum contract, binding an instance of ReentryAttack to it.
func NewReentryAttack ¶
func NewReentryAttack(address common.Address, backend bind.ContractBackend) (*ReentryAttack, error)
NewReentryAttack creates a new instance of ReentryAttack, bound to a specific deployed contract.
type ReentryAttackCaller ¶
type ReentryAttackCaller struct {
// contains filtered or unexported fields
}
ReentryAttackCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewReentryAttackCaller ¶
func NewReentryAttackCaller(address common.Address, caller bind.ContractCaller) (*ReentryAttackCaller, error)
NewReentryAttackCaller creates a new read-only instance of ReentryAttack, bound to a specific deployed contract.
type ReentryAttackCallerRaw ¶
type ReentryAttackCallerRaw struct {
Contract *ReentryAttackCaller // Generic read-only contract binding to access the raw methods on
}
ReentryAttackCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ReentryAttackCallerRaw) Call ¶
func (_ReentryAttack *ReentryAttackCallerRaw) 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 ReentryAttackCallerSession ¶
type ReentryAttackCallerSession struct { Contract *ReentryAttackCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ReentryAttackCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type ReentryAttackFilterer ¶
type ReentryAttackFilterer struct {
// contains filtered or unexported fields
}
ReentryAttackFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewReentryAttackFilterer ¶
func NewReentryAttackFilterer(address common.Address, filterer bind.ContractFilterer) (*ReentryAttackFilterer, error)
NewReentryAttackFilterer creates a new log filterer instance of ReentryAttack, bound to a specific deployed contract.
type ReentryAttackRaw ¶
type ReentryAttackRaw struct {
Contract *ReentryAttack // Generic contract binding to access the raw methods on
}
ReentryAttackRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ReentryAttackRaw) Call ¶
func (_ReentryAttack *ReentryAttackRaw) 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 (*ReentryAttackRaw) Transact ¶
func (_ReentryAttack *ReentryAttackRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ReentryAttackRaw) Transfer ¶
func (_ReentryAttack *ReentryAttackRaw) 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 ReentryAttackSession ¶
type ReentryAttackSession struct { Contract *ReentryAttack // 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 }
ReentryAttackSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ReentryAttackSession) AllYourBase ¶
func (_ReentryAttack *ReentryAttackSession) AllYourBase() (*types.Transaction, error)
AllYourBase is a paid mutator transaction binding the contract method 0x8f110770.
Solidity: function allYourBase() returns()
func (*ReentryAttackSession) AreBelongToUs ¶
func (_ReentryAttack *ReentryAttackSession) AreBelongToUs() (*types.Transaction, error)
AreBelongToUs is a paid mutator transaction binding the contract method 0x627599ee.
Solidity: function areBelongToUs() returns()
func (*ReentryAttackSession) Fallback ¶
func (_ReentryAttack *ReentryAttackSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*ReentryAttackSession) Owner ¶
func (_ReentryAttack *ReentryAttackSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*ReentryAttackSession) SetUsUpTheBomb ¶
func (_ReentryAttack *ReentryAttackSession) SetUsUpTheBomb(es common.Address, sh [32]byte, refundTimestamp *big.Int, participant common.Address) (*types.Transaction, error)
SetUsUpTheBomb is a paid mutator transaction binding the contract method 0xb9ce28a4.
Solidity: function setUsUpTheBomb(address es, bytes32 sh, uint256 refundTimestamp, address participant) payable returns()
type ReentryAttackTransactor ¶
type ReentryAttackTransactor struct {
// contains filtered or unexported fields
}
ReentryAttackTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewReentryAttackTransactor ¶
func NewReentryAttackTransactor(address common.Address, transactor bind.ContractTransactor) (*ReentryAttackTransactor, error)
NewReentryAttackTransactor creates a new write-only instance of ReentryAttack, bound to a specific deployed contract.
func (*ReentryAttackTransactor) AllYourBase ¶
func (_ReentryAttack *ReentryAttackTransactor) AllYourBase(opts *bind.TransactOpts) (*types.Transaction, error)
AllYourBase is a paid mutator transaction binding the contract method 0x8f110770.
Solidity: function allYourBase() returns()
func (*ReentryAttackTransactor) AreBelongToUs ¶
func (_ReentryAttack *ReentryAttackTransactor) AreBelongToUs(opts *bind.TransactOpts) (*types.Transaction, error)
AreBelongToUs is a paid mutator transaction binding the contract method 0x627599ee.
Solidity: function areBelongToUs() returns()
func (*ReentryAttackTransactor) Fallback ¶
func (_ReentryAttack *ReentryAttackTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*ReentryAttackTransactor) SetUsUpTheBomb ¶
func (_ReentryAttack *ReentryAttackTransactor) SetUsUpTheBomb(opts *bind.TransactOpts, es common.Address, sh [32]byte, refundTimestamp *big.Int, participant common.Address) (*types.Transaction, error)
SetUsUpTheBomb is a paid mutator transaction binding the contract method 0xb9ce28a4.
Solidity: function setUsUpTheBomb(address es, bytes32 sh, uint256 refundTimestamp, address participant) payable returns()
type ReentryAttackTransactorRaw ¶
type ReentryAttackTransactorRaw struct {
Contract *ReentryAttackTransactor // Generic write-only contract binding to access the raw methods on
}
ReentryAttackTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ReentryAttackTransactorRaw) Transact ¶
func (_ReentryAttack *ReentryAttackTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ReentryAttackTransactorRaw) Transfer ¶
func (_ReentryAttack *ReentryAttackTransactorRaw) 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 ReentryAttackTransactorSession ¶
type ReentryAttackTransactorSession struct { Contract *ReentryAttackTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ReentryAttackTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ReentryAttackTransactorSession) AllYourBase ¶
func (_ReentryAttack *ReentryAttackTransactorSession) AllYourBase() (*types.Transaction, error)
AllYourBase is a paid mutator transaction binding the contract method 0x8f110770.
Solidity: function allYourBase() returns()
func (*ReentryAttackTransactorSession) AreBelongToUs ¶
func (_ReentryAttack *ReentryAttackTransactorSession) AreBelongToUs() (*types.Transaction, error)
AreBelongToUs is a paid mutator transaction binding the contract method 0x627599ee.
Solidity: function areBelongToUs() returns()
func (*ReentryAttackTransactorSession) Fallback ¶
func (_ReentryAttack *ReentryAttackTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*ReentryAttackTransactorSession) SetUsUpTheBomb ¶
func (_ReentryAttack *ReentryAttackTransactorSession) SetUsUpTheBomb(es common.Address, sh [32]byte, refundTimestamp *big.Int, participant common.Address) (*types.Transaction, error)
SetUsUpTheBomb is a paid mutator transaction binding the contract method 0xb9ce28a4.
Solidity: function setUsUpTheBomb(address es, bytes32 sh, uint256 refundTimestamp, address participant) payable returns()