Documentation
¶
Index ¶
- Variables
- type Escrow
- type EscrowCaller
- type EscrowCallerRaw
- type EscrowCallerSession
- type EscrowDeposited
- type EscrowDepositedIterator
- type EscrowFilterer
- func (_Escrow *EscrowFilterer) FilterDeposited(opts *bind.FilterOpts, user []common.Address) (*EscrowDepositedIterator, error)
- func (_Escrow *EscrowFilterer) FilterPaymentMade(opts *bind.FilterOpts, from []common.Address) (*EscrowPaymentMadeIterator, error)
- func (_Escrow *EscrowFilterer) FilterWithdrawn(opts *bind.FilterOpts, user []common.Address) (*EscrowWithdrawnIterator, error)
- func (_Escrow *EscrowFilterer) ParseDeposited(log types.Log) (*EscrowDeposited, error)
- func (_Escrow *EscrowFilterer) ParsePaymentMade(log types.Log) (*EscrowPaymentMade, error)
- func (_Escrow *EscrowFilterer) ParseWithdrawn(log types.Log) (*EscrowWithdrawn, error)
- func (_Escrow *EscrowFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *EscrowDeposited, user []common.Address) (event.Subscription, error)
- func (_Escrow *EscrowFilterer) WatchPaymentMade(opts *bind.WatchOpts, sink chan<- *EscrowPaymentMade, from []common.Address) (event.Subscription, error)
- func (_Escrow *EscrowFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *EscrowWithdrawn, user []common.Address) (event.Subscription, error)
- type EscrowPaymentMade
- type EscrowPaymentMadeIterator
- type EscrowRaw
- func (_Escrow *EscrowRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Escrow *EscrowRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Escrow *EscrowRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EscrowSession
- type EscrowTransactor
- type EscrowTransactorRaw
- type EscrowTransactorSession
- type EscrowWithdrawn
- type EscrowWithdrawnIterator
Constants ¶
This section is empty.
Variables ¶
var EscrowABI = EscrowMetaData.ABI
EscrowABI is the input ABI used to generate the binding from. Deprecated: Use EscrowMetaData.ABI instead.
var EscrowMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isAfterExec\",\"type\":\"bool\"}],\"name\":\"PaymentMade\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
EscrowMetaData contains all meta data concerning the Escrow contract.
Functions ¶
This section is empty.
Types ¶
type Escrow ¶
type Escrow struct { EscrowCaller // Read-only binding to the contract EscrowTransactor // Write-only binding to the contract EscrowFilterer // Log filterer for contract events }
Escrow is an auto generated Go binding around an Ethereum contract.
type EscrowCaller ¶
type EscrowCaller struct {
// contains filtered or unexported fields
}
EscrowCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewEscrowCaller ¶
func NewEscrowCaller(address common.Address, caller bind.ContractCaller) (*EscrowCaller, error)
NewEscrowCaller creates a new read-only instance of Escrow, bound to a specific deployed contract.
type EscrowCallerRaw ¶
type EscrowCallerRaw struct {
Contract *EscrowCaller // Generic read-only contract binding to access the raw methods on
}
EscrowCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*EscrowCallerRaw) Call ¶
func (_Escrow *EscrowCallerRaw) 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 EscrowCallerSession ¶
type EscrowCallerSession struct { Contract *EscrowCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
EscrowCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type EscrowDeposited ¶
type EscrowDeposited struct { User common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
EscrowDeposited represents a Deposited event raised by the Escrow contract.
type EscrowDepositedIterator ¶
type EscrowDepositedIterator struct { Event *EscrowDeposited // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Escrow contract.
func (*EscrowDepositedIterator) Close ¶
func (it *EscrowDepositedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowDepositedIterator) Error ¶
func (it *EscrowDepositedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowDepositedIterator) Next ¶
func (it *EscrowDepositedIterator) 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 EscrowFilterer ¶
type EscrowFilterer struct {
// contains filtered or unexported fields
}
EscrowFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewEscrowFilterer ¶
func NewEscrowFilterer(address common.Address, filterer bind.ContractFilterer) (*EscrowFilterer, error)
NewEscrowFilterer creates a new log filterer instance of Escrow, bound to a specific deployed contract.
func (*EscrowFilterer) FilterDeposited ¶
func (_Escrow *EscrowFilterer) FilterDeposited(opts *bind.FilterOpts, user []common.Address) (*EscrowDepositedIterator, error)
FilterDeposited is a free log retrieval operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.
Solidity: event Deposited(address indexed user, uint256 amount)
func (*EscrowFilterer) FilterPaymentMade ¶
func (_Escrow *EscrowFilterer) FilterPaymentMade(opts *bind.FilterOpts, from []common.Address) (*EscrowPaymentMadeIterator, error)
FilterPaymentMade is a free log retrieval operation binding the contract event 0x729659476ddfdbe82b4e16c19895d9f939f33a114b5c9f17b679b06daf7393fc.
Solidity: event PaymentMade(address indexed from, uint256 amount, bool isAfterExec)
func (*EscrowFilterer) FilterWithdrawn ¶
func (_Escrow *EscrowFilterer) FilterWithdrawn(opts *bind.FilterOpts, user []common.Address) (*EscrowWithdrawnIterator, error)
FilterWithdrawn is a free log retrieval operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.
Solidity: event Withdrawn(address indexed user, uint256 amount)
func (*EscrowFilterer) ParseDeposited ¶
func (_Escrow *EscrowFilterer) ParseDeposited(log types.Log) (*EscrowDeposited, error)
ParseDeposited is a log parse operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.
Solidity: event Deposited(address indexed user, uint256 amount)
func (*EscrowFilterer) ParsePaymentMade ¶
func (_Escrow *EscrowFilterer) ParsePaymentMade(log types.Log) (*EscrowPaymentMade, error)
ParsePaymentMade is a log parse operation binding the contract event 0x729659476ddfdbe82b4e16c19895d9f939f33a114b5c9f17b679b06daf7393fc.
Solidity: event PaymentMade(address indexed from, uint256 amount, bool isAfterExec)
func (*EscrowFilterer) ParseWithdrawn ¶
func (_Escrow *EscrowFilterer) ParseWithdrawn(log types.Log) (*EscrowWithdrawn, error)
ParseWithdrawn is a log parse operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.
Solidity: event Withdrawn(address indexed user, uint256 amount)
func (*EscrowFilterer) WatchDeposited ¶
func (_Escrow *EscrowFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *EscrowDeposited, user []common.Address) (event.Subscription, error)
WatchDeposited is a free log subscription operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.
Solidity: event Deposited(address indexed user, uint256 amount)
func (*EscrowFilterer) WatchPaymentMade ¶
func (_Escrow *EscrowFilterer) WatchPaymentMade(opts *bind.WatchOpts, sink chan<- *EscrowPaymentMade, from []common.Address) (event.Subscription, error)
WatchPaymentMade is a free log subscription operation binding the contract event 0x729659476ddfdbe82b4e16c19895d9f939f33a114b5c9f17b679b06daf7393fc.
Solidity: event PaymentMade(address indexed from, uint256 amount, bool isAfterExec)
func (*EscrowFilterer) WatchWithdrawn ¶
func (_Escrow *EscrowFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *EscrowWithdrawn, user []common.Address) (event.Subscription, error)
WatchWithdrawn is a free log subscription operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.
Solidity: event Withdrawn(address indexed user, uint256 amount)
type EscrowPaymentMade ¶
type EscrowPaymentMade struct { From common.Address Amount *big.Int IsAfterExec bool Raw types.Log // Blockchain specific contextual infos }
EscrowPaymentMade represents a PaymentMade event raised by the Escrow contract.
type EscrowPaymentMadeIterator ¶
type EscrowPaymentMadeIterator struct { Event *EscrowPaymentMade // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowPaymentMadeIterator is returned from FilterPaymentMade and is used to iterate over the raw logs and unpacked data for PaymentMade events raised by the Escrow contract.
func (*EscrowPaymentMadeIterator) Close ¶
func (it *EscrowPaymentMadeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowPaymentMadeIterator) Error ¶
func (it *EscrowPaymentMadeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowPaymentMadeIterator) Next ¶
func (it *EscrowPaymentMadeIterator) 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 EscrowRaw ¶
type EscrowRaw struct {
Contract *Escrow // Generic contract binding to access the raw methods on
}
EscrowRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*EscrowRaw) Call ¶
func (_Escrow *EscrowRaw) 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 (*EscrowRaw) Transact ¶
func (_Escrow *EscrowRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EscrowRaw) Transfer ¶
func (_Escrow *EscrowRaw) 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 EscrowSession ¶
type EscrowSession struct { Contract *Escrow // 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 }
EscrowSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*EscrowSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address user) view returns(uint256)
func (*EscrowSession) Deposit ¶
func (_Escrow *EscrowSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*EscrowSession) Withdraw ¶
func (_Escrow *EscrowSession) Withdraw(amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 amount) returns()
type EscrowTransactor ¶
type EscrowTransactor struct {
// contains filtered or unexported fields
}
EscrowTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewEscrowTransactor ¶
func NewEscrowTransactor(address common.Address, transactor bind.ContractTransactor) (*EscrowTransactor, error)
NewEscrowTransactor creates a new write-only instance of Escrow, bound to a specific deployed contract.
func (*EscrowTransactor) Deposit ¶
func (_Escrow *EscrowTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*EscrowTransactor) Withdraw ¶
func (_Escrow *EscrowTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 amount) returns()
type EscrowTransactorRaw ¶
type EscrowTransactorRaw struct {
Contract *EscrowTransactor // Generic write-only contract binding to access the raw methods on
}
EscrowTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*EscrowTransactorRaw) Transact ¶
func (_Escrow *EscrowTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EscrowTransactorRaw) Transfer ¶
func (_Escrow *EscrowTransactorRaw) 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 EscrowTransactorSession ¶
type EscrowTransactorSession struct { Contract *EscrowTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
EscrowTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*EscrowTransactorSession) Deposit ¶
func (_Escrow *EscrowTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*EscrowTransactorSession) Withdraw ¶
func (_Escrow *EscrowTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 amount) returns()
type EscrowWithdrawn ¶
type EscrowWithdrawn struct { User common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
EscrowWithdrawn represents a Withdrawn event raised by the Escrow contract.
type EscrowWithdrawnIterator ¶
type EscrowWithdrawnIterator struct { Event *EscrowWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EscrowWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Escrow contract.
func (*EscrowWithdrawnIterator) Close ¶
func (it *EscrowWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EscrowWithdrawnIterator) Error ¶
func (it *EscrowWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EscrowWithdrawnIterator) Next ¶
func (it *EscrowWithdrawnIterator) 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.