Documentation ¶
Index ¶
- Variables
- type IWalletNonceInfo
- type Wallet
- type WalletAssignWallet
- type WalletAssignWalletIterator
- type WalletCaller
- func (_Wallet *WalletCaller) DEDAULTVALIDITYTERM(opts *bind.CallOpts) (*big.Int, error)
- func (_Wallet *WalletCaller) Nonce(opts *bind.CallOpts) (*big.Int, error)
- func (_Wallet *WalletCaller) NonceInfos(opts *bind.CallOpts, nonce_ *big.Int) (IWalletNonceInfo, error)
- func (_Wallet *WalletCaller) PlpAddressPool(opts *bind.CallOpts) (common.Address, error)
- func (_Wallet *WalletCaller) RecordedBalance(opts *bind.CallOpts) (*big.Int, error)
- type WalletCallerRaw
- type WalletCallerSession
- func (_Wallet *WalletCallerSession) DEDAULTVALIDITYTERM() (*big.Int, error)
- func (_Wallet *WalletCallerSession) Nonce() (*big.Int, error)
- func (_Wallet *WalletCallerSession) NonceInfos(nonce_ *big.Int) (IWalletNonceInfo, error)
- func (_Wallet *WalletCallerSession) PlpAddressPool() (common.Address, error)
- func (_Wallet *WalletCallerSession) RecordedBalance() (*big.Int, error)
- type WalletCollectFund
- type WalletCollectFundIterator
- type WalletFilterer
- func (_Wallet *WalletFilterer) FilterAssignWallet(opts *bind.FilterOpts, nonce []*big.Int, payer []common.Address, ...) (*WalletAssignWalletIterator, error)
- func (_Wallet *WalletFilterer) FilterCollectFund(opts *bind.FilterOpts, fundToken []common.Address, receiver []common.Address) (*WalletCollectFundIterator, error)
- func (_Wallet *WalletFilterer) FilterRefund(opts *bind.FilterOpts, fundToken []common.Address, receiver []common.Address) (*WalletRefundIterator, error)
- func (_Wallet *WalletFilterer) FilterSetPlpAddressPool(opts *bind.FilterOpts, plpAddressPool []common.Address) (*WalletSetPlpAddressPoolIterator, error)
- func (_Wallet *WalletFilterer) FilterUpdateRecordedBalance(opts *bind.FilterOpts) (*WalletUpdateRecordedBalanceIterator, error)
- func (_Wallet *WalletFilterer) ParseAssignWallet(log types.Log) (*WalletAssignWallet, error)
- func (_Wallet *WalletFilterer) ParseCollectFund(log types.Log) (*WalletCollectFund, error)
- func (_Wallet *WalletFilterer) ParseRefund(log types.Log) (*WalletRefund, error)
- func (_Wallet *WalletFilterer) ParseSetPlpAddressPool(log types.Log) (*WalletSetPlpAddressPool, error)
- func (_Wallet *WalletFilterer) ParseUpdateRecordedBalance(log types.Log) (*WalletUpdateRecordedBalance, error)
- func (_Wallet *WalletFilterer) WatchAssignWallet(opts *bind.WatchOpts, sink chan<- *WalletAssignWallet, nonce []*big.Int, ...) (event.Subscription, error)
- func (_Wallet *WalletFilterer) WatchCollectFund(opts *bind.WatchOpts, sink chan<- *WalletCollectFund, ...) (event.Subscription, error)
- func (_Wallet *WalletFilterer) WatchRefund(opts *bind.WatchOpts, sink chan<- *WalletRefund, fundToken []common.Address, ...) (event.Subscription, error)
- func (_Wallet *WalletFilterer) WatchSetPlpAddressPool(opts *bind.WatchOpts, sink chan<- *WalletSetPlpAddressPool, ...) (event.Subscription, error)
- func (_Wallet *WalletFilterer) WatchUpdateRecordedBalance(opts *bind.WatchOpts, sink chan<- *WalletUpdateRecordedBalance) (event.Subscription, error)
- type WalletRaw
- func (_Wallet *WalletRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Wallet *WalletRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Wallet *WalletRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type WalletRefund
- type WalletRefundIterator
- type WalletSession
- func (_Wallet *WalletSession) AssignWallet(payer_ common.Address, payee_ common.Address, payableAmount_ *big.Int, ...) (*types.Transaction, error)
- func (_Wallet *WalletSession) CheckAndRefund() (*types.Transaction, error)
- func (_Wallet *WalletSession) CollectFund(amount_ *big.Int) (*types.Transaction, error)
- func (_Wallet *WalletSession) DEDAULTVALIDITYTERM() (*big.Int, error)
- func (_Wallet *WalletSession) Nonce() (*big.Int, error)
- func (_Wallet *WalletSession) NonceInfos(nonce_ *big.Int) (IWalletNonceInfo, error)
- func (_Wallet *WalletSession) PlpAddressPool() (common.Address, error)
- func (_Wallet *WalletSession) RecordedBalance() (*big.Int, error)
- func (_Wallet *WalletSession) UpdateRecordedBalance(newBalance_ *big.Int) (*types.Transaction, error)
- type WalletSetPlpAddressPool
- type WalletSetPlpAddressPoolIterator
- type WalletTransactor
- func (_Wallet *WalletTransactor) AssignWallet(opts *bind.TransactOpts, payer_ common.Address, payee_ common.Address, ...) (*types.Transaction, error)
- func (_Wallet *WalletTransactor) CheckAndRefund(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Wallet *WalletTransactor) CollectFund(opts *bind.TransactOpts, amount_ *big.Int) (*types.Transaction, error)
- func (_Wallet *WalletTransactor) UpdateRecordedBalance(opts *bind.TransactOpts, newBalance_ *big.Int) (*types.Transaction, error)
- type WalletTransactorRaw
- type WalletTransactorSession
- func (_Wallet *WalletTransactorSession) AssignWallet(payer_ common.Address, payee_ common.Address, payableAmount_ *big.Int, ...) (*types.Transaction, error)
- func (_Wallet *WalletTransactorSession) CheckAndRefund() (*types.Transaction, error)
- func (_Wallet *WalletTransactorSession) CollectFund(amount_ *big.Int) (*types.Transaction, error)
- func (_Wallet *WalletTransactorSession) UpdateRecordedBalance(newBalance_ *big.Int) (*types.Transaction, error)
- type WalletUpdateRecordedBalance
- type WalletUpdateRecordedBalanceIterator
Constants ¶
This section is empty.
Variables ¶
var WalletABI = WalletMetaData.ABI
WalletABI is the input ABI used to generate the binding from. Deprecated: Use WalletMetaData.ABI instead.
var WalletBin = WalletMetaData.Bin
WalletBin is the compiled bytecode used for deploying new contracts. Deprecated: Use WalletMetaData.Bin instead.
var WalletMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"plpAddressPool_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"AddressInsufficientBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"payer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"payee\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payableAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expireTime\",\"type\":\"uint256\"}],\"name\":\"AssignWallet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fundToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"CollectFund\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fundToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Refund\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"plpAddressPool\",\"type\":\"address\"}],\"name\":\"SetPlpAddressPool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldBalance\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newBalance\",\"type\":\"uint256\"}],\"name\":\"UpdateRecordedBalance\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEDAULT_VALIDITY_TERM\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"payer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"payee_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payableAmount_\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"validityTerm_\",\"type\":\"uint64\"}],\"name\":\"assignWallet\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkAndRefund\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"refundAmount_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"name\":\"collectFund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"nonce_\",\"type\":\"uint256\"}],\"name\":\"nonceInfos\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"payer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"payee\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payableAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"expireTime\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"isPaymentProcessed\",\"type\":\"bool\"}],\"internalType\":\"structIWallet.NonceInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"plpAddressPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"recordedBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newBalance_\",\"type\":\"uint256\"}],\"name\":\"updateRecordedBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561000f575f80fd5b506040516118ee3803806118ee83398181016040528101906100319190610186565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361009f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161009690610231565b60405180910390fd5b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fb05aa80f4d46de3be3c7dfb3ff4755c02487412d66a301e4b032b2b4db9cefea60405160405180910390a25061024f565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6101558261012c565b9050919050565b6101658161014b565b811461016f575f80fd5b50565b5f815190506101808161015c565b92915050565b5f6020828403121561019b5761019a610128565b5b5f6101a884828501610172565b91505092915050565b5f82825260208201905092915050565b7f706c70206164647265737320706f6f6c2063616e6e6f742062652061646472655f8201527f7373203000000000000000000000000000000000000000000000000000000000602082015250565b5f61021b6024836101b1565b9150610226826101c1565b604082019050919050565b5f6020820190508181035f8301526102488161020f565b9050919050565b6116928061025c5f395ff3fe608060405234801561000f575f80fd5b5060043610610091575f3560e01c806355cf03471161006457806355cf03471461010d578063575f9c15146101295780635c51d9c71461015a5780639b558b011461018a578063affed0e0146101a657610091565b8063097cb0ac146100955780632f5b1199146100b3578063329fd4c2146100d15780635539d583146100ef575b5f80fd5b61009d6101c4565b6040516100aa9190611038565b60405180910390f35b6100bb6105cc565b6040516100c89190611038565b60405180910390f35b6100d96105d2565b6040516100e69190611090565b60405180910390f35b6100f76105f7565b6040516101049190611038565b60405180910390f35b610127600480360381019061012291906110d7565b6105fd565b005b610143600480360381019061013e9190611169565b61080b565b6040516101519291906111cd565b60405180910390f35b610174600480360381019061016f91906110d7565b610ac5565b60405161018191906112a1565b60405180910390f35b6101a4600480360381019061019f91906110d7565b610bee565b005b6101ae610cf5565b6040516101bb9190611038565b60405180910390f35b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024b9061133a565b60405180910390fd5b5f805f60015481526020019081526020015f206040518060a00160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016003820160089054906101000a900460ff1615151515815250509050806060015167ffffffffffffffff16421180610390575080608001515b6103cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c6906113a2565b60405180910390fd5b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166350adcdb76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561043a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061045e91906113d4565b90505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161049a9190611090565b602060405180830381865afa1580156104b5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d99190611413565b9050600254816104e9919061146b565b93505f8411156105c65761053f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16858473ffffffffffffffffffffffffffffffffffffffff16610cfb9092919063ffffffff16565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167ff40cc8c1a1d17359049ba500cfc894596a692cffc9d03943cd92ec2e159cf6ae866040516105bd9190611038565b60405180910390a35b50505090565b60025481565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61070881565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461068c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106839061133a565b60405180910390fd5b8060025f82825461069d919061146b565b925050819055505f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166350adcdb76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561070f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061073391906113d4565b905061078160035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838373ffffffffffffffffffffffffffffffffffffffff16610cfb9092919063ffffffff16565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f035109a7996d9fbc0e0995ee7da097497cc1c71f2d1a708b2ea8d5df4fcc3769846040516107ff9190611038565b60405180910390a35050565b5f8060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461089c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108939061133a565b60405180910390fd5b60015f8154809291906108ae9061149e565b91905055505f808467ffffffffffffffff16146108d5578367ffffffffffffffff166108d9565b6107085b426108e491906114e5565b90506040518060a001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018267ffffffffffffffff1681526020015f15158152505f8060015481526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015f6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060808201518160030160086101000a81548160ff0219169083151502179055509050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff166001547f15e7bdce764cbcdc4314fff03c0904c24721630ad765469547a5bf423ebfc0958885604051610a9e929190611551565b60405180910390a4600154818067ffffffffffffffff169050925092505094509492505050565b610acd610fbe565b5f808381526020019081526020015f206040518060a00160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382015f9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016003820160089054906101000a900460ff1615151515815250509050919050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c749061133a565b60405180910390fd5b5f60025490508160028190555060015f8060015481526020019081526020015f2060030160086101000a81548160ff0219169083151502179055507fde9150fd1d337cca1ae320c766c512e929f2fd5761547cd2547deb55d10931988183604051610ce99291906111cd565b60405180910390a15050565b60015481565b610d75838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610d2e929190611578565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d7a565b505050565b5f610da4828473ffffffffffffffffffffffffffffffffffffffff16610e0f90919063ffffffff16565b90505f815114158015610dc8575080806020019051810190610dc691906115c9565b155b15610e0a57826040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610e019190611090565b60405180910390fd5b505050565b6060610e1c83835f610e24565b905092915050565b606081471015610e6b57306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401610e629190611090565b60405180910390fd5b5f808573ffffffffffffffffffffffffffffffffffffffff168486604051610e939190611646565b5f6040518083038185875af1925050503d805f8114610ecd576040519150601f19603f3d011682016040523d82523d5f602084013e610ed2565b606091505b5091509150610ee2868383610eed565b925050509392505050565b606082610f0257610efd82610f7a565b610f72565b5f8251148015610f2857505f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610f6a57836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401610f619190611090565b60405180910390fd5b819050610f73565b5b9392505050565b5f81511115610f8c5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060a001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f67ffffffffffffffff1681526020015f151581525090565b5f819050919050565b61103281611020565b82525050565b5f60208201905061104b5f830184611029565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61107a82611051565b9050919050565b61108a81611070565b82525050565b5f6020820190506110a35f830184611081565b92915050565b5f80fd5b6110b681611020565b81146110c0575f80fd5b50565b5f813590506110d1816110ad565b92915050565b5f602082840312156110ec576110eb6110a9565b5b5f6110f9848285016110c3565b91505092915050565b61110b81611070565b8114611115575f80fd5b50565b5f8135905061112681611102565b92915050565b5f67ffffffffffffffff82169050919050565b6111488161112c565b8114611152575f80fd5b50565b5f813590506111638161113f565b92915050565b5f805f8060808587031215611181576111806110a9565b5b5f61118e87828801611118565b945050602061119f87828801611118565b93505060406111b0878288016110c3565b92505060606111c187828801611155565b91505092959194509250565b5f6040820190506111e05f830185611029565b6111ed6020830184611029565b9392505050565b6111fd81611070565b82525050565b61120c81611020565b82525050565b61121b8161112c565b82525050565b5f8115159050919050565b61123581611221565b82525050565b60a082015f82015161124f5f8501826111f4565b50602082015161126260208501826111f4565b5060408201516112756040850182611203565b5060608201516112886060850182611212565b50608082015161129b608085018261122c565b50505050565b5f60a0820190506112b45f83018461123b565b92915050565b5f82825260208201905092915050565b7f63616c6c6572206973206e6f742074686520706c70206164647265737320706f5f8201527f6f6c000000000000000000000000000000000000000000000000000000000000602082015250565b5f6113246022836112ba565b915061132f826112ca565b604082019050919050565b5f6020820190508181035f83015261135181611318565b9050919050565b7f6e6f7420726566756e642074696d6500000000000000000000000000000000005f82015250565b5f61138c600f836112ba565b915061139782611358565b602082019050919050565b5f6020820190508181035f8301526113b981611380565b9050919050565b5f815190506113ce81611102565b92915050565b5f602082840312156113e9576113e86110a9565b5b5f6113f6848285016113c0565b91505092915050565b5f8151905061140d816110ad565b92915050565b5f60208284031215611428576114276110a9565b5b5f611435848285016113ff565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61147582611020565b915061148083611020565b92508282039050818111156114985761149761143e565b5b92915050565b5f6114a882611020565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114da576114d961143e565b5b600182019050919050565b5f6114ef82611020565b91506114fa83611020565b92508282019050808211156115125761151161143e565b5b92915050565b5f819050919050565b5f61153b6115366115318461112c565b611518565b611020565b9050919050565b61154b81611521565b82525050565b5f6040820190506115645f830185611029565b6115716020830184611542565b9392505050565b5f60408201905061158b5f830185611081565b6115986020830184611029565b9392505050565b6115a881611221565b81146115b2575f80fd5b50565b5f815190506115c38161159f565b92915050565b5f602082840312156115de576115dd6110a9565b5b5f6115eb848285016115b5565b91505092915050565b5f81519050919050565b5f81905092915050565b8281835e5f83830152505050565b5f611620826115f4565b61162a81856115fe565b935061163a818560208601611608565b80840191505092915050565b5f6116518284611616565b91508190509291505056fea26469706673582212203550d45328398bc789966acf4d499937177c26e4870a80cf98f6a2e17bc4ec1264736f6c634300081a0033",
}
WalletMetaData contains all meta data concerning the Wallet contract.
Functions ¶
This section is empty.
Types ¶
type IWalletNonceInfo ¶
type IWalletNonceInfo struct { Payer common.Address Payee common.Address PayableAmount *big.Int ExpireTime uint64 IsPaymentProcessed bool }
IWalletNonceInfo is an auto generated low-level Go binding around an user-defined struct.
type Wallet ¶
type Wallet struct { WalletCaller // Read-only binding to the contract WalletTransactor // Write-only binding to the contract WalletFilterer // Log filterer for contract events }
Wallet is an auto generated Go binding around an Ethereum contract.
func DeployWallet ¶
func DeployWallet(auth *bind.TransactOpts, backend bind.ContractBackend, plpAddressPool_ common.Address) (common.Address, *types.Transaction, *Wallet, error)
DeployWallet deploys a new Ethereum contract, binding an instance of Wallet to it.
type WalletAssignWallet ¶
type WalletAssignWallet struct { Nonce *big.Int Payer common.Address Payee common.Address PayableAmount *big.Int ExpireTime *big.Int Raw types.Log // Blockchain specific contextual infos }
WalletAssignWallet represents a AssignWallet event raised by the Wallet contract.
type WalletAssignWalletIterator ¶
type WalletAssignWalletIterator struct { Event *WalletAssignWallet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WalletAssignWalletIterator is returned from FilterAssignWallet and is used to iterate over the raw logs and unpacked data for AssignWallet events raised by the Wallet contract.
func (*WalletAssignWalletIterator) Close ¶
func (it *WalletAssignWalletIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WalletAssignWalletIterator) Error ¶
func (it *WalletAssignWalletIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WalletAssignWalletIterator) Next ¶
func (it *WalletAssignWalletIterator) 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 WalletCaller ¶
type WalletCaller struct {
// contains filtered or unexported fields
}
WalletCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewWalletCaller ¶
func NewWalletCaller(address common.Address, caller bind.ContractCaller) (*WalletCaller, error)
NewWalletCaller creates a new read-only instance of Wallet, bound to a specific deployed contract.
func (*WalletCaller) DEDAULTVALIDITYTERM ¶
DEDAULTVALIDITYTERM is a free data retrieval call binding the contract method 0x5539d583.
Solidity: function DEDAULT_VALIDITY_TERM() view returns(uint256)
func (*WalletCaller) Nonce ¶
Nonce is a free data retrieval call binding the contract method 0xaffed0e0.
Solidity: function nonce() view returns(uint256)
func (*WalletCaller) NonceInfos ¶
func (_Wallet *WalletCaller) NonceInfos(opts *bind.CallOpts, nonce_ *big.Int) (IWalletNonceInfo, error)
NonceInfos is a free data retrieval call binding the contract method 0x5c51d9c7.
Solidity: function nonceInfos(uint256 nonce_) view returns((address,address,uint256,uint64,bool))
func (*WalletCaller) PlpAddressPool ¶
PlpAddressPool is a free data retrieval call binding the contract method 0x329fd4c2.
Solidity: function plpAddressPool() view returns(address)
func (*WalletCaller) RecordedBalance ¶
RecordedBalance is a free data retrieval call binding the contract method 0x2f5b1199.
Solidity: function recordedBalance() view returns(uint256)
type WalletCallerRaw ¶
type WalletCallerRaw struct {
Contract *WalletCaller // Generic read-only contract binding to access the raw methods on
}
WalletCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*WalletCallerRaw) Call ¶
func (_Wallet *WalletCallerRaw) 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 WalletCallerSession ¶
type WalletCallerSession struct { Contract *WalletCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
WalletCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*WalletCallerSession) DEDAULTVALIDITYTERM ¶
func (_Wallet *WalletCallerSession) DEDAULTVALIDITYTERM() (*big.Int, error)
DEDAULTVALIDITYTERM is a free data retrieval call binding the contract method 0x5539d583.
Solidity: function DEDAULT_VALIDITY_TERM() view returns(uint256)
func (*WalletCallerSession) Nonce ¶
func (_Wallet *WalletCallerSession) Nonce() (*big.Int, error)
Nonce is a free data retrieval call binding the contract method 0xaffed0e0.
Solidity: function nonce() view returns(uint256)
func (*WalletCallerSession) NonceInfos ¶
func (_Wallet *WalletCallerSession) NonceInfos(nonce_ *big.Int) (IWalletNonceInfo, error)
NonceInfos is a free data retrieval call binding the contract method 0x5c51d9c7.
Solidity: function nonceInfos(uint256 nonce_) view returns((address,address,uint256,uint64,bool))
func (*WalletCallerSession) PlpAddressPool ¶
func (_Wallet *WalletCallerSession) PlpAddressPool() (common.Address, error)
PlpAddressPool is a free data retrieval call binding the contract method 0x329fd4c2.
Solidity: function plpAddressPool() view returns(address)
func (*WalletCallerSession) RecordedBalance ¶
func (_Wallet *WalletCallerSession) RecordedBalance() (*big.Int, error)
RecordedBalance is a free data retrieval call binding the contract method 0x2f5b1199.
Solidity: function recordedBalance() view returns(uint256)
type WalletCollectFund ¶
type WalletCollectFund struct { FundToken common.Address Receiver common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
WalletCollectFund represents a CollectFund event raised by the Wallet contract.
type WalletCollectFundIterator ¶
type WalletCollectFundIterator struct { Event *WalletCollectFund // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WalletCollectFundIterator is returned from FilterCollectFund and is used to iterate over the raw logs and unpacked data for CollectFund events raised by the Wallet contract.
func (*WalletCollectFundIterator) Close ¶
func (it *WalletCollectFundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WalletCollectFundIterator) Error ¶
func (it *WalletCollectFundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WalletCollectFundIterator) Next ¶
func (it *WalletCollectFundIterator) 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 WalletFilterer ¶
type WalletFilterer struct {
// contains filtered or unexported fields
}
WalletFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewWalletFilterer ¶
func NewWalletFilterer(address common.Address, filterer bind.ContractFilterer) (*WalletFilterer, error)
NewWalletFilterer creates a new log filterer instance of Wallet, bound to a specific deployed contract.
func (*WalletFilterer) FilterAssignWallet ¶
func (_Wallet *WalletFilterer) FilterAssignWallet(opts *bind.FilterOpts, nonce []*big.Int, payer []common.Address, payee []common.Address) (*WalletAssignWalletIterator, error)
FilterAssignWallet is a free log retrieval operation binding the contract event 0x15e7bdce764cbcdc4314fff03c0904c24721630ad765469547a5bf423ebfc095.
Solidity: event AssignWallet(uint256 indexed nonce, address indexed payer, address indexed payee, uint256 payableAmount, uint256 expireTime)
func (*WalletFilterer) FilterCollectFund ¶
func (_Wallet *WalletFilterer) FilterCollectFund(opts *bind.FilterOpts, fundToken []common.Address, receiver []common.Address) (*WalletCollectFundIterator, error)
FilterCollectFund is a free log retrieval operation binding the contract event 0x035109a7996d9fbc0e0995ee7da097497cc1c71f2d1a708b2ea8d5df4fcc3769.
Solidity: event CollectFund(address indexed fundToken, address indexed receiver, uint256 amount)
func (*WalletFilterer) FilterRefund ¶
func (_Wallet *WalletFilterer) FilterRefund(opts *bind.FilterOpts, fundToken []common.Address, receiver []common.Address) (*WalletRefundIterator, error)
FilterRefund is a free log retrieval operation binding the contract event 0xf40cc8c1a1d17359049ba500cfc894596a692cffc9d03943cd92ec2e159cf6ae.
Solidity: event Refund(address indexed fundToken, address indexed receiver, uint256 amount)
func (*WalletFilterer) FilterSetPlpAddressPool ¶
func (_Wallet *WalletFilterer) FilterSetPlpAddressPool(opts *bind.FilterOpts, plpAddressPool []common.Address) (*WalletSetPlpAddressPoolIterator, error)
FilterSetPlpAddressPool is a free log retrieval operation binding the contract event 0xb05aa80f4d46de3be3c7dfb3ff4755c02487412d66a301e4b032b2b4db9cefea.
Solidity: event SetPlpAddressPool(address indexed plpAddressPool)
func (*WalletFilterer) FilterUpdateRecordedBalance ¶
func (_Wallet *WalletFilterer) FilterUpdateRecordedBalance(opts *bind.FilterOpts) (*WalletUpdateRecordedBalanceIterator, error)
FilterUpdateRecordedBalance is a free log retrieval operation binding the contract event 0xde9150fd1d337cca1ae320c766c512e929f2fd5761547cd2547deb55d1093198.
Solidity: event UpdateRecordedBalance(uint256 oldBalance, uint256 newBalance)
func (*WalletFilterer) ParseAssignWallet ¶
func (_Wallet *WalletFilterer) ParseAssignWallet(log types.Log) (*WalletAssignWallet, error)
ParseAssignWallet is a log parse operation binding the contract event 0x15e7bdce764cbcdc4314fff03c0904c24721630ad765469547a5bf423ebfc095.
Solidity: event AssignWallet(uint256 indexed nonce, address indexed payer, address indexed payee, uint256 payableAmount, uint256 expireTime)
func (*WalletFilterer) ParseCollectFund ¶
func (_Wallet *WalletFilterer) ParseCollectFund(log types.Log) (*WalletCollectFund, error)
ParseCollectFund is a log parse operation binding the contract event 0x035109a7996d9fbc0e0995ee7da097497cc1c71f2d1a708b2ea8d5df4fcc3769.
Solidity: event CollectFund(address indexed fundToken, address indexed receiver, uint256 amount)
func (*WalletFilterer) ParseRefund ¶
func (_Wallet *WalletFilterer) ParseRefund(log types.Log) (*WalletRefund, error)
ParseRefund is a log parse operation binding the contract event 0xf40cc8c1a1d17359049ba500cfc894596a692cffc9d03943cd92ec2e159cf6ae.
Solidity: event Refund(address indexed fundToken, address indexed receiver, uint256 amount)
func (*WalletFilterer) ParseSetPlpAddressPool ¶
func (_Wallet *WalletFilterer) ParseSetPlpAddressPool(log types.Log) (*WalletSetPlpAddressPool, error)
ParseSetPlpAddressPool is a log parse operation binding the contract event 0xb05aa80f4d46de3be3c7dfb3ff4755c02487412d66a301e4b032b2b4db9cefea.
Solidity: event SetPlpAddressPool(address indexed plpAddressPool)
func (*WalletFilterer) ParseUpdateRecordedBalance ¶
func (_Wallet *WalletFilterer) ParseUpdateRecordedBalance(log types.Log) (*WalletUpdateRecordedBalance, error)
ParseUpdateRecordedBalance is a log parse operation binding the contract event 0xde9150fd1d337cca1ae320c766c512e929f2fd5761547cd2547deb55d1093198.
Solidity: event UpdateRecordedBalance(uint256 oldBalance, uint256 newBalance)
func (*WalletFilterer) WatchAssignWallet ¶
func (_Wallet *WalletFilterer) WatchAssignWallet(opts *bind.WatchOpts, sink chan<- *WalletAssignWallet, nonce []*big.Int, payer []common.Address, payee []common.Address) (event.Subscription, error)
WatchAssignWallet is a free log subscription operation binding the contract event 0x15e7bdce764cbcdc4314fff03c0904c24721630ad765469547a5bf423ebfc095.
Solidity: event AssignWallet(uint256 indexed nonce, address indexed payer, address indexed payee, uint256 payableAmount, uint256 expireTime)
func (*WalletFilterer) WatchCollectFund ¶
func (_Wallet *WalletFilterer) WatchCollectFund(opts *bind.WatchOpts, sink chan<- *WalletCollectFund, fundToken []common.Address, receiver []common.Address) (event.Subscription, error)
WatchCollectFund is a free log subscription operation binding the contract event 0x035109a7996d9fbc0e0995ee7da097497cc1c71f2d1a708b2ea8d5df4fcc3769.
Solidity: event CollectFund(address indexed fundToken, address indexed receiver, uint256 amount)
func (*WalletFilterer) WatchRefund ¶
func (_Wallet *WalletFilterer) WatchRefund(opts *bind.WatchOpts, sink chan<- *WalletRefund, fundToken []common.Address, receiver []common.Address) (event.Subscription, error)
WatchRefund is a free log subscription operation binding the contract event 0xf40cc8c1a1d17359049ba500cfc894596a692cffc9d03943cd92ec2e159cf6ae.
Solidity: event Refund(address indexed fundToken, address indexed receiver, uint256 amount)
func (*WalletFilterer) WatchSetPlpAddressPool ¶
func (_Wallet *WalletFilterer) WatchSetPlpAddressPool(opts *bind.WatchOpts, sink chan<- *WalletSetPlpAddressPool, plpAddressPool []common.Address) (event.Subscription, error)
WatchSetPlpAddressPool is a free log subscription operation binding the contract event 0xb05aa80f4d46de3be3c7dfb3ff4755c02487412d66a301e4b032b2b4db9cefea.
Solidity: event SetPlpAddressPool(address indexed plpAddressPool)
func (*WalletFilterer) WatchUpdateRecordedBalance ¶
func (_Wallet *WalletFilterer) WatchUpdateRecordedBalance(opts *bind.WatchOpts, sink chan<- *WalletUpdateRecordedBalance) (event.Subscription, error)
WatchUpdateRecordedBalance is a free log subscription operation binding the contract event 0xde9150fd1d337cca1ae320c766c512e929f2fd5761547cd2547deb55d1093198.
Solidity: event UpdateRecordedBalance(uint256 oldBalance, uint256 newBalance)
type WalletRaw ¶
type WalletRaw struct {
Contract *Wallet // Generic contract binding to access the raw methods on
}
WalletRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*WalletRaw) Call ¶
func (_Wallet *WalletRaw) 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 (*WalletRaw) Transact ¶
func (_Wallet *WalletRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WalletRaw) Transfer ¶
func (_Wallet *WalletRaw) 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 WalletRefund ¶
type WalletRefund struct { FundToken common.Address Receiver common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
WalletRefund represents a Refund event raised by the Wallet contract.
type WalletRefundIterator ¶
type WalletRefundIterator struct { Event *WalletRefund // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WalletRefundIterator is returned from FilterRefund and is used to iterate over the raw logs and unpacked data for Refund events raised by the Wallet contract.
func (*WalletRefundIterator) Close ¶
func (it *WalletRefundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WalletRefundIterator) Error ¶
func (it *WalletRefundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WalletRefundIterator) Next ¶
func (it *WalletRefundIterator) 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 WalletSession ¶
type WalletSession struct { Contract *Wallet // 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 }
WalletSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*WalletSession) AssignWallet ¶
func (_Wallet *WalletSession) AssignWallet(payer_ common.Address, payee_ common.Address, payableAmount_ *big.Int, validityTerm_ uint64) (*types.Transaction, error)
AssignWallet is a paid mutator transaction binding the contract method 0x575f9c15.
Solidity: function assignWallet(address payer_, address payee_, uint256 payableAmount_, uint64 validityTerm_) returns(uint256, uint256)
func (*WalletSession) CheckAndRefund ¶
func (_Wallet *WalletSession) CheckAndRefund() (*types.Transaction, error)
CheckAndRefund is a paid mutator transaction binding the contract method 0x097cb0ac.
Solidity: function checkAndRefund() returns(uint256 refundAmount_)
func (*WalletSession) CollectFund ¶
func (_Wallet *WalletSession) CollectFund(amount_ *big.Int) (*types.Transaction, error)
CollectFund is a paid mutator transaction binding the contract method 0x55cf0347.
Solidity: function collectFund(uint256 amount_) returns()
func (*WalletSession) DEDAULTVALIDITYTERM ¶
func (_Wallet *WalletSession) DEDAULTVALIDITYTERM() (*big.Int, error)
DEDAULTVALIDITYTERM is a free data retrieval call binding the contract method 0x5539d583.
Solidity: function DEDAULT_VALIDITY_TERM() view returns(uint256)
func (*WalletSession) Nonce ¶
func (_Wallet *WalletSession) Nonce() (*big.Int, error)
Nonce is a free data retrieval call binding the contract method 0xaffed0e0.
Solidity: function nonce() view returns(uint256)
func (*WalletSession) NonceInfos ¶
func (_Wallet *WalletSession) NonceInfos(nonce_ *big.Int) (IWalletNonceInfo, error)
NonceInfos is a free data retrieval call binding the contract method 0x5c51d9c7.
Solidity: function nonceInfos(uint256 nonce_) view returns((address,address,uint256,uint64,bool))
func (*WalletSession) PlpAddressPool ¶
func (_Wallet *WalletSession) PlpAddressPool() (common.Address, error)
PlpAddressPool is a free data retrieval call binding the contract method 0x329fd4c2.
Solidity: function plpAddressPool() view returns(address)
func (*WalletSession) RecordedBalance ¶
func (_Wallet *WalletSession) RecordedBalance() (*big.Int, error)
RecordedBalance is a free data retrieval call binding the contract method 0x2f5b1199.
Solidity: function recordedBalance() view returns(uint256)
func (*WalletSession) UpdateRecordedBalance ¶
func (_Wallet *WalletSession) UpdateRecordedBalance(newBalance_ *big.Int) (*types.Transaction, error)
UpdateRecordedBalance is a paid mutator transaction binding the contract method 0x9b558b01.
Solidity: function updateRecordedBalance(uint256 newBalance_) returns()
type WalletSetPlpAddressPool ¶
type WalletSetPlpAddressPool struct { PlpAddressPool common.Address Raw types.Log // Blockchain specific contextual infos }
WalletSetPlpAddressPool represents a SetPlpAddressPool event raised by the Wallet contract.
type WalletSetPlpAddressPoolIterator ¶
type WalletSetPlpAddressPoolIterator struct { Event *WalletSetPlpAddressPool // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WalletSetPlpAddressPoolIterator is returned from FilterSetPlpAddressPool and is used to iterate over the raw logs and unpacked data for SetPlpAddressPool events raised by the Wallet contract.
func (*WalletSetPlpAddressPoolIterator) Close ¶
func (it *WalletSetPlpAddressPoolIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WalletSetPlpAddressPoolIterator) Error ¶
func (it *WalletSetPlpAddressPoolIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WalletSetPlpAddressPoolIterator) Next ¶
func (it *WalletSetPlpAddressPoolIterator) 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 WalletTransactor ¶
type WalletTransactor struct {
// contains filtered or unexported fields
}
WalletTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewWalletTransactor ¶
func NewWalletTransactor(address common.Address, transactor bind.ContractTransactor) (*WalletTransactor, error)
NewWalletTransactor creates a new write-only instance of Wallet, bound to a specific deployed contract.
func (*WalletTransactor) AssignWallet ¶
func (_Wallet *WalletTransactor) AssignWallet(opts *bind.TransactOpts, payer_ common.Address, payee_ common.Address, payableAmount_ *big.Int, validityTerm_ uint64) (*types.Transaction, error)
AssignWallet is a paid mutator transaction binding the contract method 0x575f9c15.
Solidity: function assignWallet(address payer_, address payee_, uint256 payableAmount_, uint64 validityTerm_) returns(uint256, uint256)
func (*WalletTransactor) CheckAndRefund ¶
func (_Wallet *WalletTransactor) CheckAndRefund(opts *bind.TransactOpts) (*types.Transaction, error)
CheckAndRefund is a paid mutator transaction binding the contract method 0x097cb0ac.
Solidity: function checkAndRefund() returns(uint256 refundAmount_)
func (*WalletTransactor) CollectFund ¶
func (_Wallet *WalletTransactor) CollectFund(opts *bind.TransactOpts, amount_ *big.Int) (*types.Transaction, error)
CollectFund is a paid mutator transaction binding the contract method 0x55cf0347.
Solidity: function collectFund(uint256 amount_) returns()
func (*WalletTransactor) UpdateRecordedBalance ¶
func (_Wallet *WalletTransactor) UpdateRecordedBalance(opts *bind.TransactOpts, newBalance_ *big.Int) (*types.Transaction, error)
UpdateRecordedBalance is a paid mutator transaction binding the contract method 0x9b558b01.
Solidity: function updateRecordedBalance(uint256 newBalance_) returns()
type WalletTransactorRaw ¶
type WalletTransactorRaw struct {
Contract *WalletTransactor // Generic write-only contract binding to access the raw methods on
}
WalletTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*WalletTransactorRaw) Transact ¶
func (_Wallet *WalletTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WalletTransactorRaw) Transfer ¶
func (_Wallet *WalletTransactorRaw) 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 WalletTransactorSession ¶
type WalletTransactorSession struct { Contract *WalletTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
WalletTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*WalletTransactorSession) AssignWallet ¶
func (_Wallet *WalletTransactorSession) AssignWallet(payer_ common.Address, payee_ common.Address, payableAmount_ *big.Int, validityTerm_ uint64) (*types.Transaction, error)
AssignWallet is a paid mutator transaction binding the contract method 0x575f9c15.
Solidity: function assignWallet(address payer_, address payee_, uint256 payableAmount_, uint64 validityTerm_) returns(uint256, uint256)
func (*WalletTransactorSession) CheckAndRefund ¶
func (_Wallet *WalletTransactorSession) CheckAndRefund() (*types.Transaction, error)
CheckAndRefund is a paid mutator transaction binding the contract method 0x097cb0ac.
Solidity: function checkAndRefund() returns(uint256 refundAmount_)
func (*WalletTransactorSession) CollectFund ¶
func (_Wallet *WalletTransactorSession) CollectFund(amount_ *big.Int) (*types.Transaction, error)
CollectFund is a paid mutator transaction binding the contract method 0x55cf0347.
Solidity: function collectFund(uint256 amount_) returns()
func (*WalletTransactorSession) UpdateRecordedBalance ¶
func (_Wallet *WalletTransactorSession) UpdateRecordedBalance(newBalance_ *big.Int) (*types.Transaction, error)
UpdateRecordedBalance is a paid mutator transaction binding the contract method 0x9b558b01.
Solidity: function updateRecordedBalance(uint256 newBalance_) returns()
type WalletUpdateRecordedBalance ¶
type WalletUpdateRecordedBalance struct { OldBalance *big.Int NewBalance *big.Int Raw types.Log // Blockchain specific contextual infos }
WalletUpdateRecordedBalance represents a UpdateRecordedBalance event raised by the Wallet contract.
type WalletUpdateRecordedBalanceIterator ¶
type WalletUpdateRecordedBalanceIterator struct { Event *WalletUpdateRecordedBalance // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WalletUpdateRecordedBalanceIterator is returned from FilterUpdateRecordedBalance and is used to iterate over the raw logs and unpacked data for UpdateRecordedBalance events raised by the Wallet contract.
func (*WalletUpdateRecordedBalanceIterator) Close ¶
func (it *WalletUpdateRecordedBalanceIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WalletUpdateRecordedBalanceIterator) Error ¶
func (it *WalletUpdateRecordedBalanceIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WalletUpdateRecordedBalanceIterator) Next ¶
func (it *WalletUpdateRecordedBalanceIterator) 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.