Documentation ¶
Index ¶
- Variables
- type IVoucher
- type IVoucherCaller
- type IVoucherCallerRaw
- type IVoucherCallerSession
- type IVoucherFilterer
- func (_IVoucher *IVoucherFilterer) FilterVoucherUsed(opts *bind.FilterOpts) (*IVoucherVoucherUsedIterator, error)
- func (_IVoucher *IVoucherFilterer) ParseVoucherUsed(log types.Log) (*IVoucherVoucherUsed, error)
- func (_IVoucher *IVoucherFilterer) WatchVoucherUsed(opts *bind.WatchOpts, sink chan<- *IVoucherVoucherUsed) (event.Subscription, error)
- type IVoucherRaw
- func (_IVoucher *IVoucherRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IVoucher *IVoucherRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IVoucher *IVoucherRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IVoucherSession
- type IVoucherTransactor
- type IVoucherTransactorRaw
- type IVoucherTransactorSession
- type IVoucherVoucher
- type IVoucherVoucherUsed
- type IVoucherVoucherUsedIterator
Constants ¶
This section is empty.
Variables ¶
var IVoucherABI = IVoucherMetaData.ABI
IVoucherABI is the input ABI used to generate the binding from. Deprecated: Use IVoucherMetaData.ABI instead.
var IVoucherMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"expected\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"actual\",\"type\":\"address\"}],\"name\":\"IncorrectSigner\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"expireAt\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"chainId\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"voucherCodeHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"encodedParams\",\"type\":\"bytes\"}],\"internalType\":\"structIVoucher.Voucher\",\"name\":\"voucher\",\"type\":\"tuple\"}],\"name\":\"InvalidVoucher\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"voucherCodeHash\",\"type\":\"bytes32\"}],\"name\":\"VoucherAlreadyUsed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"voucherCodeHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"chainId\",\"type\":\"uint32\"}],\"name\":\"VoucherUsed\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"expireAt\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"chainId\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"voucherCodeHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"encodedParams\",\"type\":\"bytes\"}],\"internalType\":\"structIVoucher.Voucher\",\"name\":\"voucher\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"useVoucher\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"expireAt\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"chainId\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"voucherCodeHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"encodedParams\",\"type\":\"bytes\"}],\"internalType\":\"structIVoucher.Voucher[]\",\"name\":\"vouchers\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"useVouchers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
IVoucherMetaData contains all meta data concerning the IVoucher contract.
Functions ¶
This section is empty.
Types ¶
type IVoucher ¶
type IVoucher struct { IVoucherCaller // Read-only binding to the contract IVoucherTransactor // Write-only binding to the contract IVoucherFilterer // Log filterer for contract events }
IVoucher is an auto generated Go binding around an Ethereum contract.
func NewIVoucher ¶
NewIVoucher creates a new instance of IVoucher, bound to a specific deployed contract.
type IVoucherCaller ¶
type IVoucherCaller struct {
// contains filtered or unexported fields
}
IVoucherCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIVoucherCaller ¶
func NewIVoucherCaller(address common.Address, caller bind.ContractCaller) (*IVoucherCaller, error)
NewIVoucherCaller creates a new read-only instance of IVoucher, bound to a specific deployed contract.
type IVoucherCallerRaw ¶
type IVoucherCallerRaw struct {
Contract *IVoucherCaller // Generic read-only contract binding to access the raw methods on
}
IVoucherCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IVoucherCallerRaw) Call ¶
func (_IVoucher *IVoucherCallerRaw) 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 IVoucherCallerSession ¶
type IVoucherCallerSession struct { Contract *IVoucherCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IVoucherCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type IVoucherFilterer ¶
type IVoucherFilterer struct {
// contains filtered or unexported fields
}
IVoucherFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIVoucherFilterer ¶
func NewIVoucherFilterer(address common.Address, filterer bind.ContractFilterer) (*IVoucherFilterer, error)
NewIVoucherFilterer creates a new log filterer instance of IVoucher, bound to a specific deployed contract.
func (*IVoucherFilterer) FilterVoucherUsed ¶
func (_IVoucher *IVoucherFilterer) FilterVoucherUsed(opts *bind.FilterOpts) (*IVoucherVoucherUsedIterator, error)
FilterVoucherUsed is a free log retrieval operation binding the contract event 0x7697a9d8fa2cf7dd6cb14a34b76d2e6577843156db8afa185d9181e28f607ba9.
Solidity: event VoucherUsed(address wallet, uint8 action, bytes32 voucherCodeHash, uint32 chainId)
func (*IVoucherFilterer) ParseVoucherUsed ¶
func (_IVoucher *IVoucherFilterer) ParseVoucherUsed(log types.Log) (*IVoucherVoucherUsed, error)
ParseVoucherUsed is a log parse operation binding the contract event 0x7697a9d8fa2cf7dd6cb14a34b76d2e6577843156db8afa185d9181e28f607ba9.
Solidity: event VoucherUsed(address wallet, uint8 action, bytes32 voucherCodeHash, uint32 chainId)
func (*IVoucherFilterer) WatchVoucherUsed ¶
func (_IVoucher *IVoucherFilterer) WatchVoucherUsed(opts *bind.WatchOpts, sink chan<- *IVoucherVoucherUsed) (event.Subscription, error)
WatchVoucherUsed is a free log subscription operation binding the contract event 0x7697a9d8fa2cf7dd6cb14a34b76d2e6577843156db8afa185d9181e28f607ba9.
Solidity: event VoucherUsed(address wallet, uint8 action, bytes32 voucherCodeHash, uint32 chainId)
type IVoucherRaw ¶
type IVoucherRaw struct {
Contract *IVoucher // Generic contract binding to access the raw methods on
}
IVoucherRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IVoucherRaw) Call ¶
func (_IVoucher *IVoucherRaw) 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 (*IVoucherRaw) Transact ¶
func (_IVoucher *IVoucherRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IVoucherRaw) Transfer ¶
func (_IVoucher *IVoucherRaw) 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 IVoucherSession ¶
type IVoucherSession struct { Contract *IVoucher // 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 }
IVoucherSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IVoucherSession) UseVoucher ¶
func (_IVoucher *IVoucherSession) UseVoucher(voucher IVoucherVoucher, signature []byte) (*types.Transaction, error)
UseVoucher is a paid mutator transaction binding the contract method 0xb91d544e.
Solidity: function useVoucher((address,uint8,address,uint64,uint32,bytes32,bytes) voucher, bytes signature) returns()
func (*IVoucherSession) UseVouchers ¶
func (_IVoucher *IVoucherSession) UseVouchers(vouchers []IVoucherVoucher, signature []byte) (*types.Transaction, error)
UseVouchers is a paid mutator transaction binding the contract method 0x268f3b25.
Solidity: function useVouchers((address,uint8,address,uint64,uint32,bytes32,bytes)[] vouchers, bytes signature) returns()
type IVoucherTransactor ¶
type IVoucherTransactor struct {
// contains filtered or unexported fields
}
IVoucherTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIVoucherTransactor ¶
func NewIVoucherTransactor(address common.Address, transactor bind.ContractTransactor) (*IVoucherTransactor, error)
NewIVoucherTransactor creates a new write-only instance of IVoucher, bound to a specific deployed contract.
func (*IVoucherTransactor) UseVoucher ¶
func (_IVoucher *IVoucherTransactor) UseVoucher(opts *bind.TransactOpts, voucher IVoucherVoucher, signature []byte) (*types.Transaction, error)
UseVoucher is a paid mutator transaction binding the contract method 0xb91d544e.
Solidity: function useVoucher((address,uint8,address,uint64,uint32,bytes32,bytes) voucher, bytes signature) returns()
func (*IVoucherTransactor) UseVouchers ¶
func (_IVoucher *IVoucherTransactor) UseVouchers(opts *bind.TransactOpts, vouchers []IVoucherVoucher, signature []byte) (*types.Transaction, error)
UseVouchers is a paid mutator transaction binding the contract method 0x268f3b25.
Solidity: function useVouchers((address,uint8,address,uint64,uint32,bytes32,bytes)[] vouchers, bytes signature) returns()
type IVoucherTransactorRaw ¶
type IVoucherTransactorRaw struct {
Contract *IVoucherTransactor // Generic write-only contract binding to access the raw methods on
}
IVoucherTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IVoucherTransactorRaw) Transact ¶
func (_IVoucher *IVoucherTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IVoucherTransactorRaw) Transfer ¶
func (_IVoucher *IVoucherTransactorRaw) 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 IVoucherTransactorSession ¶
type IVoucherTransactorSession struct { Contract *IVoucherTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IVoucherTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IVoucherTransactorSession) UseVoucher ¶
func (_IVoucher *IVoucherTransactorSession) UseVoucher(voucher IVoucherVoucher, signature []byte) (*types.Transaction, error)
UseVoucher is a paid mutator transaction binding the contract method 0xb91d544e.
Solidity: function useVoucher((address,uint8,address,uint64,uint32,bytes32,bytes) voucher, bytes signature) returns()
func (*IVoucherTransactorSession) UseVouchers ¶
func (_IVoucher *IVoucherTransactorSession) UseVouchers(vouchers []IVoucherVoucher, signature []byte) (*types.Transaction, error)
UseVouchers is a paid mutator transaction binding the contract method 0x268f3b25.
Solidity: function useVouchers((address,uint8,address,uint64,uint32,bytes32,bytes)[] vouchers, bytes signature) returns()
type IVoucherVoucher ¶
type IVoucherVoucher struct { Target common.Address Action uint8 Beneficiary common.Address ExpireAt uint64 ChainId uint32 VoucherCodeHash [32]byte EncodedParams []byte }
IVoucherVoucher is an auto generated low-level Go binding around an user-defined struct.
type IVoucherVoucherUsed ¶
type IVoucherVoucherUsed struct { Wallet common.Address Action uint8 VoucherCodeHash [32]byte ChainId uint32 Raw types.Log // Blockchain specific contextual infos }
IVoucherVoucherUsed represents a VoucherUsed event raised by the IVoucher contract.
type IVoucherVoucherUsedIterator ¶
type IVoucherVoucherUsedIterator struct { Event *IVoucherVoucherUsed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IVoucherVoucherUsedIterator is returned from FilterVoucherUsed and is used to iterate over the raw logs and unpacked data for VoucherUsed events raised by the IVoucher contract.
func (*IVoucherVoucherUsedIterator) Close ¶
func (it *IVoucherVoucherUsedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IVoucherVoucherUsedIterator) Error ¶
func (it *IVoucherVoucherUsedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IVoucherVoucherUsedIterator) Next ¶
func (it *IVoucherVoucherUsedIterator) 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.