Documentation ¶
Index ¶
- Variables
- type AssetHolderWithdrawalAuth
- type Assetholdererc20
- type Assetholdererc20Caller
- func (_Assetholdererc20 *Assetholdererc20Caller) Adjudicator(opts *bind.CallOpts) (common.Address, error)
- func (_Assetholdererc20 *Assetholdererc20Caller) Holdings(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (_Assetholdererc20 *Assetholdererc20Caller) Settled(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_Assetholdererc20 *Assetholdererc20Caller) Token(opts *bind.CallOpts) (common.Address, error)
- type Assetholdererc20CallerRaw
- type Assetholdererc20CallerSession
- func (_Assetholdererc20 *Assetholdererc20CallerSession) Adjudicator() (common.Address, error)
- func (_Assetholdererc20 *Assetholdererc20CallerSession) Holdings(arg0 [32]byte) (*big.Int, error)
- func (_Assetholdererc20 *Assetholdererc20CallerSession) Settled(arg0 [32]byte) (bool, error)
- func (_Assetholdererc20 *Assetholdererc20CallerSession) Token() (common.Address, error)
- type Assetholdererc20Deposited
- type Assetholdererc20DepositedIterator
- type Assetholdererc20Filterer
- func (_Assetholdererc20 *Assetholdererc20Filterer) FilterDeposited(opts *bind.FilterOpts, fundingID [][32]byte) (*Assetholdererc20DepositedIterator, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) FilterOutcomeSet(opts *bind.FilterOpts, channelID [][32]byte) (*Assetholdererc20OutcomeSetIterator, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) FilterWithdrawn(opts *bind.FilterOpts, fundingID [][32]byte) (*Assetholdererc20WithdrawnIterator, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) ParseDeposited(log types.Log) (*Assetholdererc20Deposited, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) ParseOutcomeSet(log types.Log) (*Assetholdererc20OutcomeSet, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) ParseWithdrawn(log types.Log) (*Assetholdererc20Withdrawn, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *Assetholdererc20Deposited, ...) (event.Subscription, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) WatchOutcomeSet(opts *bind.WatchOpts, sink chan<- *Assetholdererc20OutcomeSet, ...) (event.Subscription, error)
- func (_Assetholdererc20 *Assetholdererc20Filterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *Assetholdererc20Withdrawn, ...) (event.Subscription, error)
- type Assetholdererc20OutcomeSet
- type Assetholdererc20OutcomeSetIterator
- type Assetholdererc20Raw
- func (_Assetholdererc20 *Assetholdererc20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Assetholdererc20 *Assetholdererc20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Assetholdererc20 *Assetholdererc20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Assetholdererc20Session
- func (_Assetholdererc20 *Assetholdererc20Session) Adjudicator() (common.Address, error)
- func (_Assetholdererc20 *Assetholdererc20Session) Deposit(fundingID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (_Assetholdererc20 *Assetholdererc20Session) Holdings(arg0 [32]byte) (*big.Int, error)
- func (_Assetholdererc20 *Assetholdererc20Session) SetOutcome(channelID [32]byte, parts []common.Address, newBals []*big.Int) (*types.Transaction, error)
- func (_Assetholdererc20 *Assetholdererc20Session) Settled(arg0 [32]byte) (bool, error)
- func (_Assetholdererc20 *Assetholdererc20Session) Token() (common.Address, error)
- func (_Assetholdererc20 *Assetholdererc20Session) Withdraw(authorization AssetHolderWithdrawalAuth, signature []byte) (*types.Transaction, error)
- type Assetholdererc20Transactor
- func (_Assetholdererc20 *Assetholdererc20Transactor) Deposit(opts *bind.TransactOpts, fundingID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (_Assetholdererc20 *Assetholdererc20Transactor) SetOutcome(opts *bind.TransactOpts, channelID [32]byte, parts []common.Address, ...) (*types.Transaction, error)
- func (_Assetholdererc20 *Assetholdererc20Transactor) Withdraw(opts *bind.TransactOpts, authorization AssetHolderWithdrawalAuth, ...) (*types.Transaction, error)
- type Assetholdererc20TransactorRaw
- type Assetholdererc20TransactorSession
- func (_Assetholdererc20 *Assetholdererc20TransactorSession) Deposit(fundingID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (_Assetholdererc20 *Assetholdererc20TransactorSession) SetOutcome(channelID [32]byte, parts []common.Address, newBals []*big.Int) (*types.Transaction, error)
- func (_Assetholdererc20 *Assetholdererc20TransactorSession) Withdraw(authorization AssetHolderWithdrawalAuth, signature []byte) (*types.Transaction, error)
- type Assetholdererc20Withdrawn
- type Assetholdererc20WithdrawnIterator
Constants ¶
This section is empty.
Variables ¶
var AssetHolderERC20BinRuntime = "" /* 8646-byte string literal not displayed */
AssetHolderERC20BinRuntime is the runtime part of the compiled bytecode used for deploying new contracts.
var Assetholdererc20ABI = Assetholdererc20MetaData.ABI
Assetholdererc20ABI is the input ABI used to generate the binding from. Deprecated: Use Assetholdererc20MetaData.ABI instead.
var Assetholdererc20Bin = Assetholdererc20MetaData.Bin
Assetholdererc20Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use Assetholdererc20MetaData.Bin instead.
var Assetholdererc20MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_adjudicator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"fundingID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"channelID\",\"type\":\"bytes32\"}],\"name\":\"OutcomeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"fundingID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"adjudicator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fundingID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"holdings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"channelID\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"parts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"newBals\",\"type\":\"uint256[]\"}],\"name\":\"setOutcome\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"settled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"channelID\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"participant\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structAssetHolder.WithdrawalAuth\",\"name\":\"authorization\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x60a060405234801561001057600080fd5b506040516111af3803806111af83398101604081905261002f91610070565b600280546001600160a01b0319166001600160a01b03938416179055166080526100a3565b80516001600160a01b038116811461006b57600080fd5b919050565b6000806040838503121561008357600080fd5b61008c83610054565b915061009a60208401610054565b90509250929050565b6080516110e36100cc60003960008181610174015281816107f0015261099001526110e36000f3fe6080604052600436106100705760003560e01c8063ae9ee18c1161004e578063ae9ee18c146100e7578063d945af1d14610122578063fc0c546a14610162578063fc79a66d1461019657600080fd5b80631de26e16146100755780634ed4283c1461008a57806353c2ed8e146100aa575b600080fd5b610088610083366004610de8565b6101b6565b005b34801561009657600080fd5b506100886100a5366004610e0a565b610230565b3480156100b657600080fd5b506002546100ca906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f357600080fd5b50610114610102366004610e95565b60006020819052908152604090205481565b6040519081526020016100de565b34801561012e57600080fd5b5061015261013d366004610e95565b60016020526000908152604090205460ff1681565b60405190151581526020016100de565b34801561016e57600080fd5b506100ca7f000000000000000000000000000000000000000000000000000000000000000081565b3480156101a257600080fd5b506100886101b1366004610ef3565b610448565b6101c08282610757565b6000828152602081905260409020546101d990826107bb565b6000838152602081905260409020556101f282826107ce565b817fcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a98260405161022491815260200190565b60405180910390a25050565b823560009081526001602052604090205460ff1661028b5760405162461bcd60e51b815260206004820152601360248201527218da185b9b995b081b9bdd081cd95d1d1b1959606a1b60448201526064015b60405180910390fd5b6102f38360405160200161029f9190610f82565b60408051601f198184030181526020601f8601819004810284018101909252848352919085908590819084018382808284376000920191909152506102ee925050506040870160208801610fce565b6108a7565b61033f5760405162461bcd60e51b815260206004820152601d60248201527f7369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610282565b600061035b84356103566040870160208801610fce565b610930565b600081815260208190526040902054909150606085013511156103b55760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610282565b6000818152602081905260409020546103d290606086013561097a565b6000828152602081905260409020556103ec848484610986565b807fd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81606086018035906104229060408901610fce565b604080519283526001600160a01b0390911660208301520160405180910390a250505050565b6002546001600160a01b031633146104b05760405162461bcd60e51b815260206004820152602560248201527f63616e206f6e6c792062652063616c6c6564206279207468652061646a75646960448201526431b0ba37b960d91b6064820152608401610282565b8281146105115760405162461bcd60e51b815260206004820152602960248201527f7061727469636970616e7473206c656e6774682073686f756c6420657175616c6044820152682062616c616e63657360b81b6064820152608401610282565b60008581526001602052604090205460ff161561057e5760405162461bcd60e51b815260206004820152602560248201527f747279696e6720746f2073657420616c726561647920736574746c6564206368604482015264185b9b995b60da1b6064820152608401610282565b600085815260208190526040812080549082905590808567ffffffffffffffff8111156105ad576105ad610feb565b6040519080825280602002602001820160405280156105d6578160200160208202803683370190505b50905060005b8681101561069a5760006106118a8a8a858181106105fc576105fc611001565b90506020020160208101906103569190610fce565b90508083838151811061062657610626611001565b60200260200101818152505061065760008083815260200190815260200160002054866107bb90919063ffffffff16565b945061068487878481811061066e5761066e611001565b90506020020135856107bb90919063ffffffff16565b93505080806106929061102d565b9150506105dc565b5081831061070a5760005b86811015610708578585828181106106bf576106bf611001565b905060200201356000808484815181106106db576106db611001565b602002602001015181526020019081526020016000208190555080806107009061102d565b9150506106a5565b505b6000888152600160208190526040808320805460ff19169092179091555189917fef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b891a25050505050505050565b34156107b75760405162461bcd60e51b815260206004820152602960248201527f6d6573736167652076616c7565206d757374206265203020666f7220746f6b656044820152681b8819195c1bdcda5d60ba1b6064820152608401610282565b5050565b60006107c78284611046565b9392505050565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610841573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610865919061105e565b6107b75760405162461bcd60e51b81526020600482015260136024820152721d1c985b9cd9995c919c9bdb4819985a5b1959606a1b6044820152606401610282565b60008061090885805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006109168286610a77565b6001600160a01b0390811690851614925050509392505050565b600082826040516020016109579291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120905092915050565b505050565b60006107c78284611080565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb6109c56060860160408701610fce565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152606086013560248201526044016020604051808303816000875af1158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a39919061105e565b6109755760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610282565b6000806000610a868585610a9b565b91509150610a9381610b09565b509392505050565b6000808251604103610ad15760208301516040840151606085015160001a610ac587828585610cc2565b94509450505050610b02565b8251604003610afa5760208301516040840151610aef868383610daf565b935093505050610b02565b506000905060025b9250929050565b6000816004811115610b1d57610b1d611097565b03610b255750565b6001816004811115610b3957610b39611097565b03610b865760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610282565b6002816004811115610b9a57610b9a611097565b03610be75760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610282565b6003816004811115610bfb57610bfb611097565b03610c535760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610282565b6004816004811115610c6757610c67611097565b03610cbf5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610282565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610cf95750600090506003610da6565b8460ff16601b14158015610d1157508460ff16601c14155b15610d225750600090506004610da6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610d76573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610d9f57600060019250925050610da6565b9150600090505b94509492505050565b6000806001600160ff1b03831681610dcc60ff86901c601b611046565b9050610dda87828885610cc2565b935093505050935093915050565b60008060408385031215610dfb57600080fd5b50508035926020909101359150565b600080600083850360a0811215610e2057600080fd5b6080811215610e2e57600080fd5b50839250608084013567ffffffffffffffff80821115610e4d57600080fd5b818601915086601f830112610e6157600080fd5b813581811115610e7057600080fd5b876020828501011115610e8257600080fd5b6020830194508093505050509250925092565b600060208284031215610ea757600080fd5b5035919050565b60008083601f840112610ec057600080fd5b50813567ffffffffffffffff811115610ed857600080fd5b6020830191508360208260051b8501011115610b0257600080fd5b600080600080600060608688031215610f0b57600080fd5b85359450602086013567ffffffffffffffff80821115610f2a57600080fd5b610f3689838a01610eae565b90965094506040880135915080821115610f4f57600080fd5b50610f5c88828901610eae565b969995985093965092949392505050565b6001600160a01b0381168114610cbf57600080fd5b81358152608081016020830135610f9881610f6d565b6001600160a01b039081166020840152604084013590610fb782610f6d565b166040830152606092830135929091019190915290565b600060208284031215610fe057600080fd5b81356107c781610f6d565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161103f5761103f611017565b5060010190565b6000821982111561105957611059611017565b500190565b60006020828403121561107057600080fd5b815180151581146107c757600080fd5b60008282101561109257611092611017565b500390565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d3e80917f9617ba8b135219fea2e91389e1e021193af03d47d7e36c46018351e64736f6c634300080f0033",
}
Assetholdererc20MetaData contains all meta data concerning the Assetholdererc20 contract.
Functions ¶
This section is empty.
Types ¶
type AssetHolderWithdrawalAuth ¶
type AssetHolderWithdrawalAuth struct { ChannelID [32]byte Participant common.Address Receiver common.Address Amount *big.Int }
AssetHolderWithdrawalAuth is an auto generated low-level Go binding around an user-defined struct.
type Assetholdererc20 ¶
type Assetholdererc20 struct { Assetholdererc20Caller // Read-only binding to the contract Assetholdererc20Transactor // Write-only binding to the contract Assetholdererc20Filterer // Log filterer for contract events }
Assetholdererc20 is an auto generated Go binding around an Ethereum contract.
func DeployAssetholdererc20 ¶
func DeployAssetholdererc20(auth *bind.TransactOpts, backend bind.ContractBackend, _adjudicator common.Address, _token common.Address) (common.Address, *types.Transaction, *Assetholdererc20, error)
DeployAssetholdererc20 deploys a new Ethereum contract, binding an instance of Assetholdererc20 to it.
func NewAssetholdererc20 ¶
func NewAssetholdererc20(address common.Address, backend bind.ContractBackend) (*Assetholdererc20, error)
NewAssetholdererc20 creates a new instance of Assetholdererc20, bound to a specific deployed contract.
type Assetholdererc20Caller ¶
type Assetholdererc20Caller struct {
// contains filtered or unexported fields
}
Assetholdererc20Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewAssetholdererc20Caller ¶
func NewAssetholdererc20Caller(address common.Address, caller bind.ContractCaller) (*Assetholdererc20Caller, error)
NewAssetholdererc20Caller creates a new read-only instance of Assetholdererc20, bound to a specific deployed contract.
func (*Assetholdererc20Caller) Adjudicator ¶
func (_Assetholdererc20 *Assetholdererc20Caller) Adjudicator(opts *bind.CallOpts) (common.Address, error)
Adjudicator is a free data retrieval call binding the contract method 0x53c2ed8e.
Solidity: function adjudicator() view returns(address)
func (*Assetholdererc20Caller) Holdings ¶
func (_Assetholdererc20 *Assetholdererc20Caller) Holdings(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
Holdings is a free data retrieval call binding the contract method 0xae9ee18c.
Solidity: function holdings(bytes32 ) view returns(uint256)
type Assetholdererc20CallerRaw ¶
type Assetholdererc20CallerRaw struct {
Contract *Assetholdererc20Caller // Generic read-only contract binding to access the raw methods on
}
Assetholdererc20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Assetholdererc20CallerRaw) Call ¶
func (_Assetholdererc20 *Assetholdererc20CallerRaw) 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 Assetholdererc20CallerSession ¶
type Assetholdererc20CallerSession struct { Contract *Assetholdererc20Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Assetholdererc20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Assetholdererc20CallerSession) Adjudicator ¶
func (_Assetholdererc20 *Assetholdererc20CallerSession) Adjudicator() (common.Address, error)
Adjudicator is a free data retrieval call binding the contract method 0x53c2ed8e.
Solidity: function adjudicator() view returns(address)
func (*Assetholdererc20CallerSession) Holdings ¶
func (_Assetholdererc20 *Assetholdererc20CallerSession) Holdings(arg0 [32]byte) (*big.Int, error)
Holdings is a free data retrieval call binding the contract method 0xae9ee18c.
Solidity: function holdings(bytes32 ) view returns(uint256)
type Assetholdererc20Deposited ¶
type Assetholdererc20Deposited struct { FundingID [32]byte Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
Assetholdererc20Deposited represents a Deposited event raised by the Assetholdererc20 contract.
type Assetholdererc20DepositedIterator ¶
type Assetholdererc20DepositedIterator struct { Event *Assetholdererc20Deposited // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Assetholdererc20DepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Assetholdererc20 contract.
func (*Assetholdererc20DepositedIterator) Close ¶
func (it *Assetholdererc20DepositedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Assetholdererc20DepositedIterator) Error ¶
func (it *Assetholdererc20DepositedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Assetholdererc20DepositedIterator) Next ¶
func (it *Assetholdererc20DepositedIterator) 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 Assetholdererc20Filterer ¶
type Assetholdererc20Filterer struct {
// contains filtered or unexported fields
}
Assetholdererc20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewAssetholdererc20Filterer ¶
func NewAssetholdererc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Assetholdererc20Filterer, error)
NewAssetholdererc20Filterer creates a new log filterer instance of Assetholdererc20, bound to a specific deployed contract.
func (*Assetholdererc20Filterer) FilterDeposited ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) FilterDeposited(opts *bind.FilterOpts, fundingID [][32]byte) (*Assetholdererc20DepositedIterator, error)
FilterDeposited is a free log retrieval operation binding the contract event 0xcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9.
Solidity: event Deposited(bytes32 indexed fundingID, uint256 amount)
func (*Assetholdererc20Filterer) FilterOutcomeSet ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) FilterOutcomeSet(opts *bind.FilterOpts, channelID [][32]byte) (*Assetholdererc20OutcomeSetIterator, error)
FilterOutcomeSet is a free log retrieval operation binding the contract event 0xef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b8.
Solidity: event OutcomeSet(bytes32 indexed channelID)
func (*Assetholdererc20Filterer) FilterWithdrawn ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) FilterWithdrawn(opts *bind.FilterOpts, fundingID [][32]byte) (*Assetholdererc20WithdrawnIterator, error)
FilterWithdrawn is a free log retrieval operation binding the contract event 0xd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81.
Solidity: event Withdrawn(bytes32 indexed fundingID, uint256 amount, address receiver)
func (*Assetholdererc20Filterer) ParseDeposited ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) ParseDeposited(log types.Log) (*Assetholdererc20Deposited, error)
ParseDeposited is a log parse operation binding the contract event 0xcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9.
Solidity: event Deposited(bytes32 indexed fundingID, uint256 amount)
func (*Assetholdererc20Filterer) ParseOutcomeSet ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) ParseOutcomeSet(log types.Log) (*Assetholdererc20OutcomeSet, error)
ParseOutcomeSet is a log parse operation binding the contract event 0xef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b8.
Solidity: event OutcomeSet(bytes32 indexed channelID)
func (*Assetholdererc20Filterer) ParseWithdrawn ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) ParseWithdrawn(log types.Log) (*Assetholdererc20Withdrawn, error)
ParseWithdrawn is a log parse operation binding the contract event 0xd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81.
Solidity: event Withdrawn(bytes32 indexed fundingID, uint256 amount, address receiver)
func (*Assetholdererc20Filterer) WatchDeposited ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *Assetholdererc20Deposited, fundingID [][32]byte) (event.Subscription, error)
WatchDeposited is a free log subscription operation binding the contract event 0xcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9.
Solidity: event Deposited(bytes32 indexed fundingID, uint256 amount)
func (*Assetholdererc20Filterer) WatchOutcomeSet ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) WatchOutcomeSet(opts *bind.WatchOpts, sink chan<- *Assetholdererc20OutcomeSet, channelID [][32]byte) (event.Subscription, error)
WatchOutcomeSet is a free log subscription operation binding the contract event 0xef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b8.
Solidity: event OutcomeSet(bytes32 indexed channelID)
func (*Assetholdererc20Filterer) WatchWithdrawn ¶
func (_Assetholdererc20 *Assetholdererc20Filterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *Assetholdererc20Withdrawn, fundingID [][32]byte) (event.Subscription, error)
WatchWithdrawn is a free log subscription operation binding the contract event 0xd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81.
Solidity: event Withdrawn(bytes32 indexed fundingID, uint256 amount, address receiver)
type Assetholdererc20OutcomeSet ¶
type Assetholdererc20OutcomeSet struct { ChannelID [32]byte Raw types.Log // Blockchain specific contextual infos }
Assetholdererc20OutcomeSet represents a OutcomeSet event raised by the Assetholdererc20 contract.
type Assetholdererc20OutcomeSetIterator ¶
type Assetholdererc20OutcomeSetIterator struct { Event *Assetholdererc20OutcomeSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Assetholdererc20OutcomeSetIterator is returned from FilterOutcomeSet and is used to iterate over the raw logs and unpacked data for OutcomeSet events raised by the Assetholdererc20 contract.
func (*Assetholdererc20OutcomeSetIterator) Close ¶
func (it *Assetholdererc20OutcomeSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Assetholdererc20OutcomeSetIterator) Error ¶
func (it *Assetholdererc20OutcomeSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Assetholdererc20OutcomeSetIterator) Next ¶
func (it *Assetholdererc20OutcomeSetIterator) 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 Assetholdererc20Raw ¶
type Assetholdererc20Raw struct {
Contract *Assetholdererc20 // Generic contract binding to access the raw methods on
}
Assetholdererc20Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*Assetholdererc20Raw) Call ¶
func (_Assetholdererc20 *Assetholdererc20Raw) 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 (*Assetholdererc20Raw) Transact ¶
func (_Assetholdererc20 *Assetholdererc20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Assetholdererc20Raw) Transfer ¶
func (_Assetholdererc20 *Assetholdererc20Raw) 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 Assetholdererc20Session ¶
type Assetholdererc20Session struct { Contract *Assetholdererc20 // 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 }
Assetholdererc20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Assetholdererc20Session) Adjudicator ¶
func (_Assetholdererc20 *Assetholdererc20Session) Adjudicator() (common.Address, error)
Adjudicator is a free data retrieval call binding the contract method 0x53c2ed8e.
Solidity: function adjudicator() view returns(address)
func (*Assetholdererc20Session) Deposit ¶
func (_Assetholdererc20 *Assetholdererc20Session) Deposit(fundingID [32]byte, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x1de26e16.
Solidity: function deposit(bytes32 fundingID, uint256 amount) payable returns()
func (*Assetholdererc20Session) Holdings ¶
func (_Assetholdererc20 *Assetholdererc20Session) Holdings(arg0 [32]byte) (*big.Int, error)
Holdings is a free data retrieval call binding the contract method 0xae9ee18c.
Solidity: function holdings(bytes32 ) view returns(uint256)
func (*Assetholdererc20Session) SetOutcome ¶
func (_Assetholdererc20 *Assetholdererc20Session) SetOutcome(channelID [32]byte, parts []common.Address, newBals []*big.Int) (*types.Transaction, error)
SetOutcome is a paid mutator transaction binding the contract method 0xfc79a66d.
Solidity: function setOutcome(bytes32 channelID, address[] parts, uint256[] newBals) returns()
func (*Assetholdererc20Session) Settled ¶
func (_Assetholdererc20 *Assetholdererc20Session) Settled(arg0 [32]byte) (bool, error)
Settled is a free data retrieval call binding the contract method 0xd945af1d.
Solidity: function settled(bytes32 ) view returns(bool)
func (*Assetholdererc20Session) Token ¶
func (_Assetholdererc20 *Assetholdererc20Session) Token() (common.Address, error)
Token is a free data retrieval call binding the contract method 0xfc0c546a.
Solidity: function token() view returns(address)
func (*Assetholdererc20Session) Withdraw ¶
func (_Assetholdererc20 *Assetholdererc20Session) Withdraw(authorization AssetHolderWithdrawalAuth, signature []byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x4ed4283c.
Solidity: function withdraw((bytes32,address,address,uint256) authorization, bytes signature) returns()
type Assetholdererc20Transactor ¶
type Assetholdererc20Transactor struct {
// contains filtered or unexported fields
}
Assetholdererc20Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewAssetholdererc20Transactor ¶
func NewAssetholdererc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Assetholdererc20Transactor, error)
NewAssetholdererc20Transactor creates a new write-only instance of Assetholdererc20, bound to a specific deployed contract.
func (*Assetholdererc20Transactor) Deposit ¶
func (_Assetholdererc20 *Assetholdererc20Transactor) Deposit(opts *bind.TransactOpts, fundingID [32]byte, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x1de26e16.
Solidity: function deposit(bytes32 fundingID, uint256 amount) payable returns()
func (*Assetholdererc20Transactor) SetOutcome ¶
func (_Assetholdererc20 *Assetholdererc20Transactor) SetOutcome(opts *bind.TransactOpts, channelID [32]byte, parts []common.Address, newBals []*big.Int) (*types.Transaction, error)
SetOutcome is a paid mutator transaction binding the contract method 0xfc79a66d.
Solidity: function setOutcome(bytes32 channelID, address[] parts, uint256[] newBals) returns()
func (*Assetholdererc20Transactor) Withdraw ¶
func (_Assetholdererc20 *Assetholdererc20Transactor) Withdraw(opts *bind.TransactOpts, authorization AssetHolderWithdrawalAuth, signature []byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x4ed4283c.
Solidity: function withdraw((bytes32,address,address,uint256) authorization, bytes signature) returns()
type Assetholdererc20TransactorRaw ¶
type Assetholdererc20TransactorRaw struct {
Contract *Assetholdererc20Transactor // Generic write-only contract binding to access the raw methods on
}
Assetholdererc20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Assetholdererc20TransactorRaw) Transact ¶
func (_Assetholdererc20 *Assetholdererc20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Assetholdererc20TransactorRaw) Transfer ¶
func (_Assetholdererc20 *Assetholdererc20TransactorRaw) 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 Assetholdererc20TransactorSession ¶
type Assetholdererc20TransactorSession struct { Contract *Assetholdererc20Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Assetholdererc20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Assetholdererc20TransactorSession) Deposit ¶
func (_Assetholdererc20 *Assetholdererc20TransactorSession) Deposit(fundingID [32]byte, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x1de26e16.
Solidity: function deposit(bytes32 fundingID, uint256 amount) payable returns()
func (*Assetholdererc20TransactorSession) SetOutcome ¶
func (_Assetholdererc20 *Assetholdererc20TransactorSession) SetOutcome(channelID [32]byte, parts []common.Address, newBals []*big.Int) (*types.Transaction, error)
SetOutcome is a paid mutator transaction binding the contract method 0xfc79a66d.
Solidity: function setOutcome(bytes32 channelID, address[] parts, uint256[] newBals) returns()
func (*Assetholdererc20TransactorSession) Withdraw ¶
func (_Assetholdererc20 *Assetholdererc20TransactorSession) Withdraw(authorization AssetHolderWithdrawalAuth, signature []byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x4ed4283c.
Solidity: function withdraw((bytes32,address,address,uint256) authorization, bytes signature) returns()
type Assetholdererc20Withdrawn ¶
type Assetholdererc20Withdrawn struct { FundingID [32]byte Amount *big.Int Receiver common.Address Raw types.Log // Blockchain specific contextual infos }
Assetholdererc20Withdrawn represents a Withdrawn event raised by the Assetholdererc20 contract.
type Assetholdererc20WithdrawnIterator ¶
type Assetholdererc20WithdrawnIterator struct { Event *Assetholdererc20Withdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Assetholdererc20WithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Assetholdererc20 contract.
func (*Assetholdererc20WithdrawnIterator) Close ¶
func (it *Assetholdererc20WithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Assetholdererc20WithdrawnIterator) Error ¶
func (it *Assetholdererc20WithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Assetholdererc20WithdrawnIterator) Next ¶
func (it *Assetholdererc20WithdrawnIterator) 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.