Documentation ¶
Index ¶
- Constants
- Variables
- func BoundContract(name string) *bind.BoundContract
- func JSON(reader io.Reader) (*abi.ABI, error)
- func ParsedABI(name string) (*abi.ABI, error)
- type Canceled
- type Claimed
- type Created
- type ERC20PaymentsPayment
- type EventInfo
- type EventType
- type Payments
- type PaymentsCaller
- type PaymentsCanceled
- type PaymentsCanceledIterator
- type PaymentsClaimed
- type PaymentsClaimedIterator
- type PaymentsCreated
- type PaymentsCreatedIterator
- type PaymentsFilterer
- func (_Payments *PaymentsFilterer) FilterCanceled(opts *bind.FilterOpts, paymentId [][16]byte) (*PaymentsCanceledIterator, error)
- func (_Payments *PaymentsFilterer) FilterClaimed(opts *bind.FilterOpts, paymentId [][16]byte) (*PaymentsClaimedIterator, error)
- func (_Payments *PaymentsFilterer) FilterCreated(opts *bind.FilterOpts, paymentId [][16]byte) (*PaymentsCreatedIterator, error)
- func (_Payments *PaymentsFilterer) ParseCanceled(log types.Log) (*PaymentsCanceled, error)
- func (_Payments *PaymentsFilterer) ParseClaimed(log types.Log) (*PaymentsClaimed, error)
- func (_Payments *PaymentsFilterer) ParseCreated(log types.Log) (*PaymentsCreated, error)
- func (_Payments *PaymentsFilterer) WatchCanceled(opts *bind.WatchOpts, sink chan<- *PaymentsCanceled, paymentId [][16]byte) (event.Subscription, error)
- func (_Payments *PaymentsFilterer) WatchClaimed(opts *bind.WatchOpts, sink chan<- *PaymentsClaimed, paymentId [][16]byte) (event.Subscription, error)
- func (_Payments *PaymentsFilterer) WatchCreated(opts *bind.WatchOpts, sink chan<- *PaymentsCreated, paymentId [][16]byte) (event.Subscription, error)
- type PaymentsTransactor
- func (_Payments *PaymentsTransactor) CancelPayment(opts *bind.TransactOpts, _paymentId [16]byte) (*types.Transaction, error)
- func (_Payments *PaymentsTransactor) ClaimPayment(opts *bind.TransactOpts, _paymentId [16]byte) (*types.Transaction, error)
- func (_Payments *PaymentsTransactor) CreatePayment(opts *bind.TransactOpts, _receivers []common.Address, ...) (*types.Transaction, error)
Constants ¶
const ( E_Canceled = "Canceled" E_Claimed = "Claimed" E_Created = "Created" )
Unique events names. Unique events are events whose ID and name are unique across contracts.
const (
K_Payments = "Payments"
)
Type names of contract binding
Variables ¶
var ABIS = map[string]string{ K_Payments: PaymentsABI, }
var BoundContracts = map[string]*bind.BoundContract{}
Map of ABI names to *bind.BoundContract for log parsing only ABI names are constants starting with K_
var EventsByID = map[common.Hash]*EventInfo{}
Map of Unique events IDs to *EventInfo
var EventsByType = map[reflect.Type]*EventInfo{}
Map of Unique events types to *EventInfo
var ParsedABIS = map[string]*abi.ABI{}
Map of ABI names to *abi.ABI ABI names are constants starting with K_
var PaymentsABI = PaymentsMetaData.ABI
PaymentsABI is the input ABI used to generate the binding from. Deprecated: Use PaymentsMetaData.ABI instead.
var PaymentsBin = PaymentsMetaData.Bin
PaymentsBin is the compiled bytecode used for deploying new contracts. Deprecated: Use PaymentsMetaData.Bin instead.
var PaymentsMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes16\",\"name\":\"paymentId\",\"type\":\"bytes16\"}],\"name\":\"Canceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes16\",\"name\":\"paymentId\",\"type\":\"bytes16\"}],\"name\":\"Claimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes16\",\"name\":\"paymentId\",\"type\":\"bytes16\"}],\"name\":\"Created\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"}],\"name\":\"calculateTotal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"_paymentId\",\"type\":\"bytes16\"}],\"name\":\"cancelPayment\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"_paymentId\",\"type\":\"bytes16\"}],\"name\":\"claimPayment\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_receivers\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"bytes16\",\"name\":\"paymentId\",\"type\":\"bytes16\"},{\"internalType\":\"address\",\"name\":\"oracleId\",\"type\":\"address\"}],\"internalType\":\"structERC20Payments.Payment\",\"name\":\"_payment\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"_tokenContract\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"}],\"name\":\"createPayment\",\"outputs\":[{\"internalType\":\"bytes16\",\"name\":\"paymentId\",\"type\":\"bytes16\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"_paymentId\",\"type\":\"bytes16\"}],\"name\":\"getPayment\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"receivers\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"tokenContract\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"},{\"internalType\":\"enumERC20Payments.PaymentState\",\"name\":\"state\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b506113b4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063732760a11461005c578063820b71ca1461008d5780638e2aa1f3146100b0578063e2f5f998146100d5578063f2c9f603146100f6575b600080fd5b61006f61006a366004611035565b610109565b6040516001600160801b031990911681526020015b60405180910390f35b6100a061009b3660046110d5565b6104c7565b6040519015158152602001610084565b6100c36100be3660046110d5565b610856565b6040516100849695949392919061113e565b6100e86100e336600461120d565b6109ca565b604051908152602001610084565b6100a06101043660046110d5565b610a16565b600061011860208601866110d5565b61012181610d2a565b1561016e5760405162461bcd60e51b81526020600482015260186024820152777061796d656e74496420616c72656164792065786973747360401b60448201526064015b60405180910390fd5b61017b60208701876110d5565b915060006101bd8585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a9250610d51915050565b90506101c883610d2a565b156102105760405162461bcd60e51b81526020600482015260186024820152777061796d656e74496420616c72656164792065786973747360401b6044820152606401610165565b6040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038716906323b872dd906064016020604051808303816000875af1158015610263573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028791906112cb565b6102de5760405162461bcd60e51b815260206004820152602260248201527f7472616e7366657246726f6d2073656e64657220746f2074686973206661696c604482015261195960f21b6064820152608401610165565b6040518060c00160405280336001600160a01b031681526020018a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505050908252506001600160a01b03881660208083019190915260408051888302818101840183528982529190930192918991899182919085019084908082843760009201919091525050509082525060209081019061038d9060408b01908b016112ed565b6001600160a01b03168152602001600090526001600160801b03198416600090815260208181526040909120825181546001600160a01b0319166001600160a01b0390911617815582820151805191926103ef92600185019290910190610f18565b5060408201516002820180546001600160a01b0319166001600160a01b0390921691909117905560608201518051610431916003840191602090910190610f7d565b5060808201516004820180546001600160a01b039092166001600160a01b031983168117825560a0850151926001600160a81b03191617600160a01b83600281111561047f5761047f611106565b0217905550506040516001600160801b0319851691507f1a5cbdfaa174b8c077f5e32871877ef08cbf1cdba62a1ca568f500124c7a241190600090a250509695505050505050565b6000816104d381610d2a565b61051a5760405162461bcd60e51b81526020600482015260186024820152771c185e5b595b9d125908191bd95cc81b9bdd08195e1a5cdd60421b6044820152606401610165565b8260016001600160801b03198216600090815260208190526040902060040154600160a01b900460ff16600281111561055557610555611106565b036105a25760405162461bcd60e51b815260206004820152601a60248201527f636c61696d61626c653a20616c726561647920636c61696d65640000000000006044820152606401610165565b60026001600160801b03198216600090815260208190526040902060040154600160a01b900460ff1660028111156105dc576105dc611106565b036106295760405162461bcd60e51b815260206004820152601b60248201527f636c61696d61626c653a20616c726561647920726566756e64656400000000006044820152606401610165565b6001600160801b0319841660009081526020819052604090206004015484906001600160a01b031633146106b15760405162461bcd60e51b815260206004820152602960248201527f6f6e6c794f7261636c653a206d6573736167652073656e646572206d757374206044820152686265206f7261636c6560b81b6064820152608401610165565b6001600160801b031985166000908152602081905260408120905b60018201548110156107ff5760028201546001830180546001600160a01b039092169163a9059cbb91908490811061070657610706611308565b6000918252602090912001546003850180546001600160a01b03909216918590811061073457610734611308565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561078b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107af91906112cb565b6107ed5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610165565b806107f781611334565b9150506106cc565b5060048101805460ff60a01b1916600160a01b1790556040516001600160801b03198716907f51630b38d4d2aa8f785cae61e1d06989553fa9b886c9f286106e331a8ff2e57a90600090a250600195945050505050565b600060606000606060008061086a87610d2a565b15156000036108bb5760405162461bcd60e51b815260206004820152601760248201527f636f6e747261637420646f6573206e6f742065786973740000000000000000006044820152606401610165565b6001600160801b031987166000908152602081815260409182902080546002820154600483015460018401805487518188028101880190985280885294966001600160a01b0394851696919593851694600389019490841693600160a01b900460ff169287919083018282801561095b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161093d575b50505050509450828054806020026020016040519081016040528092919081815260200182805480156109ad57602002820191906000526020600020905b815481526020019060010190808311610999575b505050505092509650965096509650965096505091939550919395565b6000805b8251811015610a10578281815181106109e9576109e9611308565b6020026020010151826109fc919061134d565b915080610a0881611334565b9150506109ce565b50919050565b600081610a2281610d2a565b610a695760405162461bcd60e51b81526020600482015260186024820152771c185e5b595b9d125908191bd95cc81b9bdd08195e1a5cdd60421b6044820152606401610165565b6001600160801b0319831660009081526020819052604090206004015483906001600160a01b03163314610ad85760405162461bcd60e51b8152602060048201526016602482015275726566756e6461626c653a206e6f74206f7261636c6560501b6044820152606401610165565b60026001600160801b03198216600090815260208190526040902060040154600160a01b900460ff166002811115610b1257610b12611106565b03610b5f5760405162461bcd60e51b815260206004820152601c60248201527f726566756e6461626c653a20616c726561647920726566756e646564000000006044820152606401610165565b60016001600160801b03198216600090815260208190526040902060040154600160a01b900460ff166002811115610b9957610b99611106565b03610be65760405162461bcd60e51b815260206004820152601b60248201527f726566756e6461626c653a20616c726561647920636c61696d656400000000006044820152606401610165565b6001600160801b0319841660009081526020818152604080832060048101805460ff60a01b1916600160a11b179055600381018054835181860281018601909452808452919493610c6c939290830182828015610c6257602002820191906000526020600020905b815481526020019060010190808311610c4e575b50505050506109ca565b6002830154835460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af1158015610cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce891906112cb565b506040516001600160801b03198716907f25ccef20460325159f2f1853d4e2f53d50e508519fd950a1b57ca5f4f92ea26490600090a250600195945050505050565b6001600160801b0319166000908152602081905260409020546001600160a01b0316151590565b600080835111610d995760405162461bcd60e51b81526020600482015260136024820152721b9bc8185b5bdd5b9d1cc81c1c9bdd9a591959606a1b6044820152606401610165565b506000805b8351811015610e49576000848281518110610dbb57610dbb611308565b602002602001015111610e105760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610165565b838181518110610e2257610e22611308565b602002602001015182610e35919061134d565b915080610e4181611334565b915050610d9e565b50604051636eb1769f60e11b815233600482015230602482015281906001600160a01b0384169063dd62ed3e90604401602060405180830381865afa158015610e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eba9190611365565b1015610f125760405162461bcd60e51b815260206004820152602160248201527f616c6c6f77616e6365206d757374206265203e3d2073756d28616d6f756e74736044820152602960f81b6064820152608401610165565b92915050565b828054828255906000526020600020908101928215610f6d579160200282015b82811115610f6d57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610f38565b50610f79929150610fb8565b5090565b828054828255906000526020600020908101928215610f6d579160200282015b82811115610f6d578251825591602001919060010190610f9d565b5b80821115610f795760008155600101610fb9565b60008083601f840112610fdf57600080fd5b50813567ffffffffffffffff811115610ff757600080fd5b6020830191508360208260051b850101111561101257600080fd5b9250929050565b80356001600160a01b038116811461103057600080fd5b919050565b60008060008060008086880360a081121561104f57600080fd5b873567ffffffffffffffff8082111561106757600080fd5b6110738b838c01610fcd565b90995097508791506040601f198401121561108d57600080fd5b60208a01965061109f60608b01611019565b955060808a01359250808311156110b557600080fd5b50506110c389828a01610fcd565b979a9699509497509295939492505050565b6000602082840312156110e757600080fd5b81356001600160801b0319811681146110ff57600080fd5b9392505050565b634e487b7160e01b600052602160045260246000fd5b6003811061113a57634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b03878116825260c0602080840182905288519184018290526000928982019290919060e0860190855b8181101561118c57855185168352948301949183019160010161116e565b5050918916604086015284820360608601528751808352918101925080880160005b838110156111ca578151855293820193908201906001016111ae565b5050506001600160a01b03861660808501525090506111ec60a083018461111c565b979650505050505050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561122057600080fd5b823567ffffffffffffffff8082111561123857600080fd5b818501915085601f83011261124c57600080fd5b81358181111561125e5761125e6111f7565b8060051b604051601f19603f83011681018181108582111715611283576112836111f7565b6040529182528482019250838101850191888311156112a157600080fd5b938501935b828510156112bf578435845293850193928501926112a6565b98975050505050505050565b6000602082840312156112dd57600080fd5b815180151581146110ff57600080fd5b6000602082840312156112ff57600080fd5b6110ff82611019565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016113465761134661131e565b5060010190565b600082198211156113605761136061131e565b500190565b60006020828403121561137757600080fd5b505191905056fea2646970667358221220cc6ca163ca20b3573009af62f4b1962dec4151e5a6befafe1032818244b6d8b464736f6c634300080d0033",
}
PaymentsMetaData contains all meta data concerning the Payments contract.
var UniqueEvents = map[string]*EventInfo{}
Map of Unique events names to *EventInfo. Unique events names are constants starting with E_
Functions ¶
func BoundContract ¶
func BoundContract(name string) *bind.BoundContract
Types ¶
type Canceled ¶
Canceled event with ID 0x25ccef20460325159f2f1853d4e2f53d50e508519fd950a1b57ca5f4f92ea264
type Claimed ¶ added in v1.3.8
Claimed event with ID 0x51630b38d4d2aa8f785cae61e1d06989553fa9b886c9f286106e331a8ff2e57a
type Created ¶
Created event with ID 0x1a5cbdfaa174b8c077f5e32871877ef08cbf1cdba62a1ca568f500124c7a2411
type ERC20PaymentsPayment ¶ added in v1.3.8
ERC20PaymentsPayment is an auto generated low-level Go binding around an user-defined struct.
type Payments ¶
type Payments struct { PaymentsCaller // Read-only binding to the contract PaymentsTransactor // Write-only binding to the contract PaymentsFilterer // Log filterer for contract events }
Payments is an auto generated Go binding around an Ethereum contract.
func DeployPayments ¶
func DeployPayments(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Payments, error)
DeployPayments deploys a new Ethereum contract, binding an instance of Payments to it.
func NewPayments ¶
NewPayments creates a new instance of Payments, bound to a specific deployed contract.
type PaymentsCaller ¶
type PaymentsCaller struct {
// contains filtered or unexported fields
}
PaymentsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPaymentsCaller ¶
func NewPaymentsCaller(address common.Address, caller bind.ContractCaller) (*PaymentsCaller, error)
NewPaymentsCaller creates a new read-only instance of Payments, bound to a specific deployed contract.
func (*PaymentsCaller) CalculateTotal ¶
func (_Payments *PaymentsCaller) CalculateTotal(opts *bind.CallOpts, _amounts []*big.Int) (*big.Int, error)
CalculateTotal is a free data retrieval call binding the contract method 0xe2f5f998.
Solidity: function calculateTotal(uint256[] _amounts) pure returns(uint256 total)
func (*PaymentsCaller) GetPayment ¶ added in v1.3.8
func (_Payments *PaymentsCaller) GetPayment(opts *bind.CallOpts, _paymentId [16]byte) (struct { Sender common.Address Receivers []common.Address TokenContract common.Address Amounts []*big.Int Oracle common.Address State uint8 }, error)
GetPayment is a free data retrieval call binding the contract method 0x8e2aa1f3.
Solidity: function getPayment(bytes16 _paymentId) view returns(address sender, address[] receivers, address tokenContract, uint256[] amounts, address oracle, uint8 state)
type PaymentsCanceled ¶
type PaymentsCanceled struct { PaymentId [16]byte Raw types.Log // Blockchain specific contextual infos }
PaymentsCanceled represents a Canceled event raised by the Payments contract.
type PaymentsCanceledIterator ¶
type PaymentsCanceledIterator struct { Event *PaymentsCanceled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PaymentsCanceledIterator is returned from FilterCanceled and is used to iterate over the raw logs and unpacked data for Canceled events raised by the Payments contract.
func (*PaymentsCanceledIterator) Close ¶
func (it *PaymentsCanceledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PaymentsCanceledIterator) Error ¶
func (it *PaymentsCanceledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PaymentsCanceledIterator) Next ¶
func (it *PaymentsCanceledIterator) 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 PaymentsClaimed ¶ added in v1.3.8
type PaymentsClaimed struct { PaymentId [16]byte Raw types.Log // Blockchain specific contextual infos }
PaymentsClaimed represents a Claimed event raised by the Payments contract.
type PaymentsClaimedIterator ¶ added in v1.3.8
type PaymentsClaimedIterator struct { Event *PaymentsClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PaymentsClaimedIterator is returned from FilterClaimed and is used to iterate over the raw logs and unpacked data for Claimed events raised by the Payments contract.
func (*PaymentsClaimedIterator) Close ¶ added in v1.3.8
func (it *PaymentsClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PaymentsClaimedIterator) Error ¶ added in v1.3.8
func (it *PaymentsClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PaymentsClaimedIterator) Next ¶ added in v1.3.8
func (it *PaymentsClaimedIterator) 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 PaymentsCreated ¶
type PaymentsCreated struct { PaymentId [16]byte Raw types.Log // Blockchain specific contextual infos }
PaymentsCreated represents a Created event raised by the Payments contract.
type PaymentsCreatedIterator ¶
type PaymentsCreatedIterator struct { Event *PaymentsCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PaymentsCreatedIterator is returned from FilterCreated and is used to iterate over the raw logs and unpacked data for Created events raised by the Payments contract.
func (*PaymentsCreatedIterator) Close ¶
func (it *PaymentsCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PaymentsCreatedIterator) Error ¶
func (it *PaymentsCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PaymentsCreatedIterator) Next ¶
func (it *PaymentsCreatedIterator) 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 PaymentsFilterer ¶
type PaymentsFilterer struct {
// contains filtered or unexported fields
}
PaymentsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPaymentsFilterer ¶
func NewPaymentsFilterer(address common.Address, filterer bind.ContractFilterer) (*PaymentsFilterer, error)
NewPaymentsFilterer creates a new log filterer instance of Payments, bound to a specific deployed contract.
func (*PaymentsFilterer) FilterCanceled ¶
func (_Payments *PaymentsFilterer) FilterCanceled(opts *bind.FilterOpts, paymentId [][16]byte) (*PaymentsCanceledIterator, error)
FilterCanceled is a free log retrieval operation binding the contract event 0x25ccef20460325159f2f1853d4e2f53d50e508519fd950a1b57ca5f4f92ea264.
Solidity: event Canceled(bytes16 indexed paymentId)
func (*PaymentsFilterer) FilterClaimed ¶ added in v1.3.8
func (_Payments *PaymentsFilterer) FilterClaimed(opts *bind.FilterOpts, paymentId [][16]byte) (*PaymentsClaimedIterator, error)
FilterClaimed is a free log retrieval operation binding the contract event 0x51630b38d4d2aa8f785cae61e1d06989553fa9b886c9f286106e331a8ff2e57a.
Solidity: event Claimed(bytes16 indexed paymentId)
func (*PaymentsFilterer) FilterCreated ¶
func (_Payments *PaymentsFilterer) FilterCreated(opts *bind.FilterOpts, paymentId [][16]byte) (*PaymentsCreatedIterator, error)
FilterCreated is a free log retrieval operation binding the contract event 0x1a5cbdfaa174b8c077f5e32871877ef08cbf1cdba62a1ca568f500124c7a2411.
Solidity: event Created(bytes16 indexed paymentId)
func (*PaymentsFilterer) ParseCanceled ¶
func (_Payments *PaymentsFilterer) ParseCanceled(log types.Log) (*PaymentsCanceled, error)
ParseCanceled is a log parse operation binding the contract event 0x25ccef20460325159f2f1853d4e2f53d50e508519fd950a1b57ca5f4f92ea264.
Solidity: event Canceled(bytes16 indexed paymentId)
func (*PaymentsFilterer) ParseClaimed ¶ added in v1.3.8
func (_Payments *PaymentsFilterer) ParseClaimed(log types.Log) (*PaymentsClaimed, error)
ParseClaimed is a log parse operation binding the contract event 0x51630b38d4d2aa8f785cae61e1d06989553fa9b886c9f286106e331a8ff2e57a.
Solidity: event Claimed(bytes16 indexed paymentId)
func (*PaymentsFilterer) ParseCreated ¶
func (_Payments *PaymentsFilterer) ParseCreated(log types.Log) (*PaymentsCreated, error)
ParseCreated is a log parse operation binding the contract event 0x1a5cbdfaa174b8c077f5e32871877ef08cbf1cdba62a1ca568f500124c7a2411.
Solidity: event Created(bytes16 indexed paymentId)
func (*PaymentsFilterer) WatchCanceled ¶
func (_Payments *PaymentsFilterer) WatchCanceled(opts *bind.WatchOpts, sink chan<- *PaymentsCanceled, paymentId [][16]byte) (event.Subscription, error)
WatchCanceled is a free log subscription operation binding the contract event 0x25ccef20460325159f2f1853d4e2f53d50e508519fd950a1b57ca5f4f92ea264.
Solidity: event Canceled(bytes16 indexed paymentId)
func (*PaymentsFilterer) WatchClaimed ¶ added in v1.3.8
func (_Payments *PaymentsFilterer) WatchClaimed(opts *bind.WatchOpts, sink chan<- *PaymentsClaimed, paymentId [][16]byte) (event.Subscription, error)
WatchClaimed is a free log subscription operation binding the contract event 0x51630b38d4d2aa8f785cae61e1d06989553fa9b886c9f286106e331a8ff2e57a.
Solidity: event Claimed(bytes16 indexed paymentId)
func (*PaymentsFilterer) WatchCreated ¶
func (_Payments *PaymentsFilterer) WatchCreated(opts *bind.WatchOpts, sink chan<- *PaymentsCreated, paymentId [][16]byte) (event.Subscription, error)
WatchCreated is a free log subscription operation binding the contract event 0x1a5cbdfaa174b8c077f5e32871877ef08cbf1cdba62a1ca568f500124c7a2411.
Solidity: event Created(bytes16 indexed paymentId)
type PaymentsTransactor ¶
type PaymentsTransactor struct {
// contains filtered or unexported fields
}
PaymentsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPaymentsTransactor ¶
func NewPaymentsTransactor(address common.Address, transactor bind.ContractTransactor) (*PaymentsTransactor, error)
NewPaymentsTransactor creates a new write-only instance of Payments, bound to a specific deployed contract.
func (*PaymentsTransactor) CancelPayment ¶
func (_Payments *PaymentsTransactor) CancelPayment(opts *bind.TransactOpts, _paymentId [16]byte) (*types.Transaction, error)
CancelPayment is a paid mutator transaction binding the contract method 0xf2c9f603.
Solidity: function cancelPayment(bytes16 _paymentId) returns(bool)
func (*PaymentsTransactor) ClaimPayment ¶
func (_Payments *PaymentsTransactor) ClaimPayment(opts *bind.TransactOpts, _paymentId [16]byte) (*types.Transaction, error)
ClaimPayment is a paid mutator transaction binding the contract method 0x820b71ca.
Solidity: function claimPayment(bytes16 _paymentId) returns(bool)
func (*PaymentsTransactor) CreatePayment ¶
func (_Payments *PaymentsTransactor) CreatePayment(opts *bind.TransactOpts, _receivers []common.Address, _payment ERC20PaymentsPayment, _tokenContract common.Address, _amounts []*big.Int) (*types.Transaction, error)
CreatePayment is a paid mutator transaction binding the contract method 0x732760a1.
Solidity: function createPayment(address[] _receivers, (bytes16,address) _payment, address _tokenContract, uint256[] _amounts) returns(bytes16 paymentId)