assetholdereth

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssetHolderETHBinRuntime = "" /* 7604-byte string literal not displayed */

AssetHolderETHBinRuntime is the runtime part of the compiled bytecode used for deploying new contracts.

View Source
var AssetholderethABI = AssetholderethMetaData.ABI

AssetholderethABI is the input ABI used to generate the binding from. Deprecated: Use AssetholderethMetaData.ABI instead.

View Source
var AssetholderethBin = AssetholderethMetaData.Bin

AssetholderethBin is the compiled bytecode used for deploying new contracts. Deprecated: Use AssetholderethMetaData.Bin instead.

View Source
var AssetholderethMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_adjudicator\",\"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\":[{\"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: "0x608060405234801561001057600080fd5b50604051610f6d380380610f6d83398101604081905261002f91610054565b600280546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610eda806100936000396000f3fe6080604052600436106100555760003560e01c80631de26e161461005a5780634ed4283c1461006f57806353c2ed8e1461008f578063ae9ee18c146100cc578063d945af1d14610107578063fc79a66d14610147575b600080fd5b61006d610068366004610c01565b610167565b005b34801561007b57600080fd5b5061006d61008a366004610c23565b6101d7565b34801561009b57600080fd5b506002546100af906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100d857600080fd5b506100f96100e7366004610cae565b60006020819052908152604090205481565b6040519081526020016100c3565b34801561011357600080fd5b50610137610122366004610cae565b60016020526000908152604090205460ff1681565b60405190151581526020016100c3565b34801561015357600080fd5b5061006d610162366004610d0c565b6103ef565b61017182826106fe565b60008281526020819052604090205461018a9082610751565b600083815260208190526040902055817fcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9826040516101cb91815260200190565b60405180910390a25050565b823560009081526001602052604090205460ff166102325760405162461bcd60e51b815260206004820152601360248201527218da185b9b995b081b9bdd081cd95d1d1b1959606a1b60448201526064015b60405180910390fd5b61029a836040516020016102469190610d9b565b60408051601f198184030181526020601f860181900481028401810190925284835291908590859081908401838280828437600092019190915250610295925050506040870160208801610de7565b610764565b6102e65760405162461bcd60e51b815260206004820152601d60248201527f7369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610229565b600061030284356102fd6040870160208801610de7565b6107ed565b6000818152602081905260409020549091506060850135111561035c5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610229565b600081815260208190526040902054610379906060860135610832565b60008281526020819052604090205561039384848461083e565b807fd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81606086018035906103c99060408901610de7565b604080519283526001600160a01b0390911660208301520160405180910390a250505050565b6002546001600160a01b031633146104575760405162461bcd60e51b815260206004820152602560248201527f63616e206f6e6c792062652063616c6c6564206279207468652061646a75646960448201526431b0ba37b960d91b6064820152608401610229565b8281146104b85760405162461bcd60e51b815260206004820152602960248201527f7061727469636970616e7473206c656e6774682073686f756c6420657175616c6044820152682062616c616e63657360b81b6064820152608401610229565b60008581526001602052604090205460ff16156105255760405162461bcd60e51b815260206004820152602560248201527f747279696e6720746f2073657420616c726561647920736574746c6564206368604482015264185b9b995b60da1b6064820152608401610229565b600085815260208190526040812080549082905590808567ffffffffffffffff81111561055457610554610e04565b60405190808252806020026020018201604052801561057d578160200160208202803683370190505b50905060005b868110156106415760006105b88a8a8a858181106105a3576105a3610e1a565b90506020020160208101906102fd9190610de7565b9050808383815181106105cd576105cd610e1a565b6020026020010181815250506105fe600080838152602001908152602001600020548661075190919063ffffffff16565b945061062b87878481811061061557610615610e1a565b905060200201358561075190919063ffffffff16565b935050808061063990610e46565b915050610583565b508183106106b15760005b868110156106af5785858281811061066657610666610e1a565b9050602002013560008084848151811061068257610682610e1a565b602002602001015181526020019081526020016000208190555080806106a790610e46565b91505061064c565b505b6000888152600160208190526040808320805460ff19169092179091555189917fef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b891a25050505050505050565b80341461074d5760405162461bcd60e51b815260206004820152601f60248201527f77726f6e6720616d6f756e74206f662045544820666f72206465706f736974006044820152606401610229565b5050565b600061075d8284610e5f565b9392505050565b6000806107c585805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006107d38286610890565b6001600160a01b0390811690851614925050509392505050565b600082826040516020016108149291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120905092915050565b600061075d8284610e77565b61084e6060840160408501610de7565b6001600160a01b03166108fc84606001359081150290604051600060405180830381858888f1935050505015801561088a573d6000803e3d6000fd5b50505050565b600080600061089f85856108b4565b915091506108ac81610922565b509392505050565b60008082516041036108ea5760208301516040840151606085015160001a6108de87828585610adb565b9450945050505061091b565b82516040036109135760208301516040840151610908868383610bc8565b93509350505061091b565b506000905060025b9250929050565b600081600481111561093657610936610e8e565b0361093e5750565b600181600481111561095257610952610e8e565b0361099f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610229565b60028160048111156109b3576109b3610e8e565b03610a005760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610229565b6003816004811115610a1457610a14610e8e565b03610a6c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610229565b6004816004811115610a8057610a80610e8e565b03610ad85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610229565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610b125750600090506003610bbf565b8460ff16601b14158015610b2a57508460ff16601c14155b15610b3b5750600090506004610bbf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610b8f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610bb857600060019250925050610bbf565b9150600090505b94509492505050565b6000806001600160ff1b03831681610be560ff86901c601b610e5f565b9050610bf387828885610adb565b935093505050935093915050565b60008060408385031215610c1457600080fd5b50508035926020909101359150565b600080600083850360a0811215610c3957600080fd5b6080811215610c4757600080fd5b50839250608084013567ffffffffffffffff80821115610c6657600080fd5b818601915086601f830112610c7a57600080fd5b813581811115610c8957600080fd5b876020828501011115610c9b57600080fd5b6020830194508093505050509250925092565b600060208284031215610cc057600080fd5b5035919050565b60008083601f840112610cd957600080fd5b50813567ffffffffffffffff811115610cf157600080fd5b6020830191508360208260051b850101111561091b57600080fd5b600080600080600060608688031215610d2457600080fd5b85359450602086013567ffffffffffffffff80821115610d4357600080fd5b610d4f89838a01610cc7565b90965094506040880135915080821115610d6857600080fd5b50610d7588828901610cc7565b969995985093965092949392505050565b6001600160a01b0381168114610ad857600080fd5b81358152608081016020830135610db181610d86565b6001600160a01b039081166020840152604084013590610dd082610d86565b166040830152606092830135929091019190915290565b600060208284031215610df957600080fd5b813561075d81610d86565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610e5857610e58610e30565b5060010190565b60008219821115610e7257610e72610e30565b500190565b600082821015610e8957610e89610e30565b500390565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220e67f794b0375e592581f6c9457e01b34a1c4011a9c0093598bcd7f4a9bd29f6864736f6c634300080f0033",
}

AssetholderethMetaData contains all meta data concerning the Assetholdereth 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 Assetholdereth

type Assetholdereth struct {
	AssetholderethCaller     // Read-only binding to the contract
	AssetholderethTransactor // Write-only binding to the contract
	AssetholderethFilterer   // Log filterer for contract events
}

Assetholdereth is an auto generated Go binding around an Ethereum contract.

func DeployAssetholdereth

func DeployAssetholdereth(auth *bind.TransactOpts, backend bind.ContractBackend, _adjudicator common.Address) (common.Address, *types.Transaction, *Assetholdereth, error)

DeployAssetholdereth deploys a new Ethereum contract, binding an instance of Assetholdereth to it.

func NewAssetholdereth

func NewAssetholdereth(address common.Address, backend bind.ContractBackend) (*Assetholdereth, error)

NewAssetholdereth creates a new instance of Assetholdereth, bound to a specific deployed contract.

type AssetholderethCaller

type AssetholderethCaller struct {
	// contains filtered or unexported fields
}

AssetholderethCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewAssetholderethCaller

func NewAssetholderethCaller(address common.Address, caller bind.ContractCaller) (*AssetholderethCaller, error)

NewAssetholderethCaller creates a new read-only instance of Assetholdereth, bound to a specific deployed contract.

func (*AssetholderethCaller) Adjudicator

func (_Assetholdereth *AssetholderethCaller) 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 (*AssetholderethCaller) Holdings

func (_Assetholdereth *AssetholderethCaller) 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)

func (*AssetholderethCaller) Settled

func (_Assetholdereth *AssetholderethCaller) Settled(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

Settled is a free data retrieval call binding the contract method 0xd945af1d.

Solidity: function settled(bytes32 ) view returns(bool)

type AssetholderethCallerRaw

type AssetholderethCallerRaw struct {
	Contract *AssetholderethCaller // Generic read-only contract binding to access the raw methods on
}

AssetholderethCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*AssetholderethCallerRaw) Call

func (_Assetholdereth *AssetholderethCallerRaw) 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 AssetholderethCallerSession

type AssetholderethCallerSession struct {
	Contract *AssetholderethCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts         // Call options to use throughout this session
}

AssetholderethCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*AssetholderethCallerSession) Adjudicator

func (_Assetholdereth *AssetholderethCallerSession) Adjudicator() (common.Address, error)

Adjudicator is a free data retrieval call binding the contract method 0x53c2ed8e.

Solidity: function adjudicator() view returns(address)

func (*AssetholderethCallerSession) Holdings

func (_Assetholdereth *AssetholderethCallerSession) 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 (*AssetholderethCallerSession) Settled

func (_Assetholdereth *AssetholderethCallerSession) 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)

type AssetholderethDeposited

type AssetholderethDeposited struct {
	FundingID [32]byte
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

AssetholderethDeposited represents a Deposited event raised by the Assetholdereth contract.

type AssetholderethDepositedIterator

type AssetholderethDepositedIterator struct {
	Event *AssetholderethDeposited // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AssetholderethDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Assetholdereth contract.

func (*AssetholderethDepositedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AssetholderethDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetholderethDepositedIterator) Next

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 AssetholderethFilterer

type AssetholderethFilterer struct {
	// contains filtered or unexported fields
}

AssetholderethFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewAssetholderethFilterer

func NewAssetholderethFilterer(address common.Address, filterer bind.ContractFilterer) (*AssetholderethFilterer, error)

NewAssetholderethFilterer creates a new log filterer instance of Assetholdereth, bound to a specific deployed contract.

func (*AssetholderethFilterer) FilterDeposited

func (_Assetholdereth *AssetholderethFilterer) FilterDeposited(opts *bind.FilterOpts, fundingID [][32]byte) (*AssetholderethDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0xcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9.

Solidity: event Deposited(bytes32 indexed fundingID, uint256 amount)

func (*AssetholderethFilterer) FilterOutcomeSet

func (_Assetholdereth *AssetholderethFilterer) FilterOutcomeSet(opts *bind.FilterOpts, channelID [][32]byte) (*AssetholderethOutcomeSetIterator, error)

FilterOutcomeSet is a free log retrieval operation binding the contract event 0xef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b8.

Solidity: event OutcomeSet(bytes32 indexed channelID)

func (*AssetholderethFilterer) FilterWithdrawn

func (_Assetholdereth *AssetholderethFilterer) FilterWithdrawn(opts *bind.FilterOpts, fundingID [][32]byte) (*AssetholderethWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0xd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81.

Solidity: event Withdrawn(bytes32 indexed fundingID, uint256 amount, address receiver)

func (*AssetholderethFilterer) ParseDeposited

func (_Assetholdereth *AssetholderethFilterer) ParseDeposited(log types.Log) (*AssetholderethDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0xcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9.

Solidity: event Deposited(bytes32 indexed fundingID, uint256 amount)

func (*AssetholderethFilterer) ParseOutcomeSet

func (_Assetholdereth *AssetholderethFilterer) ParseOutcomeSet(log types.Log) (*AssetholderethOutcomeSet, error)

ParseOutcomeSet is a log parse operation binding the contract event 0xef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b8.

Solidity: event OutcomeSet(bytes32 indexed channelID)

func (*AssetholderethFilterer) ParseWithdrawn

func (_Assetholdereth *AssetholderethFilterer) ParseWithdrawn(log types.Log) (*AssetholderethWithdrawn, error)

ParseWithdrawn is a log parse operation binding the contract event 0xd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81.

Solidity: event Withdrawn(bytes32 indexed fundingID, uint256 amount, address receiver)

func (*AssetholderethFilterer) WatchDeposited

func (_Assetholdereth *AssetholderethFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *AssetholderethDeposited, 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 (*AssetholderethFilterer) WatchOutcomeSet

func (_Assetholdereth *AssetholderethFilterer) WatchOutcomeSet(opts *bind.WatchOpts, sink chan<- *AssetholderethOutcomeSet, 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 (*AssetholderethFilterer) WatchWithdrawn

func (_Assetholdereth *AssetholderethFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *AssetholderethWithdrawn, 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 AssetholderethOutcomeSet

type AssetholderethOutcomeSet struct {
	ChannelID [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

AssetholderethOutcomeSet represents a OutcomeSet event raised by the Assetholdereth contract.

type AssetholderethOutcomeSetIterator

type AssetholderethOutcomeSetIterator struct {
	Event *AssetholderethOutcomeSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AssetholderethOutcomeSetIterator is returned from FilterOutcomeSet and is used to iterate over the raw logs and unpacked data for OutcomeSet events raised by the Assetholdereth contract.

func (*AssetholderethOutcomeSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AssetholderethOutcomeSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetholderethOutcomeSetIterator) Next

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 AssetholderethRaw

type AssetholderethRaw struct {
	Contract *Assetholdereth // Generic contract binding to access the raw methods on
}

AssetholderethRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*AssetholderethRaw) Call

func (_Assetholdereth *AssetholderethRaw) 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 (*AssetholderethRaw) Transact

func (_Assetholdereth *AssetholderethRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AssetholderethRaw) Transfer

func (_Assetholdereth *AssetholderethRaw) 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 AssetholderethSession

type AssetholderethSession struct {
	Contract     *Assetholdereth   // 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
}

AssetholderethSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*AssetholderethSession) Adjudicator

func (_Assetholdereth *AssetholderethSession) Adjudicator() (common.Address, error)

Adjudicator is a free data retrieval call binding the contract method 0x53c2ed8e.

Solidity: function adjudicator() view returns(address)

func (*AssetholderethSession) Deposit

func (_Assetholdereth *AssetholderethSession) 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 (*AssetholderethSession) Holdings

func (_Assetholdereth *AssetholderethSession) 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 (*AssetholderethSession) SetOutcome

func (_Assetholdereth *AssetholderethSession) 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 (*AssetholderethSession) Settled

func (_Assetholdereth *AssetholderethSession) 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 (*AssetholderethSession) Withdraw

func (_Assetholdereth *AssetholderethSession) 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 AssetholderethTransactor

type AssetholderethTransactor struct {
	// contains filtered or unexported fields
}

AssetholderethTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewAssetholderethTransactor

func NewAssetholderethTransactor(address common.Address, transactor bind.ContractTransactor) (*AssetholderethTransactor, error)

NewAssetholderethTransactor creates a new write-only instance of Assetholdereth, bound to a specific deployed contract.

func (*AssetholderethTransactor) Deposit

func (_Assetholdereth *AssetholderethTransactor) 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 (*AssetholderethTransactor) SetOutcome

func (_Assetholdereth *AssetholderethTransactor) 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 (*AssetholderethTransactor) Withdraw

func (_Assetholdereth *AssetholderethTransactor) 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 AssetholderethTransactorRaw

type AssetholderethTransactorRaw struct {
	Contract *AssetholderethTransactor // Generic write-only contract binding to access the raw methods on
}

AssetholderethTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*AssetholderethTransactorRaw) Transact

func (_Assetholdereth *AssetholderethTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AssetholderethTransactorRaw) Transfer

func (_Assetholdereth *AssetholderethTransactorRaw) 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 AssetholderethTransactorSession

type AssetholderethTransactorSession struct {
	Contract     *AssetholderethTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
}

AssetholderethTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*AssetholderethTransactorSession) Deposit

func (_Assetholdereth *AssetholderethTransactorSession) 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 (*AssetholderethTransactorSession) SetOutcome

func (_Assetholdereth *AssetholderethTransactorSession) 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 (*AssetholderethTransactorSession) Withdraw

func (_Assetholdereth *AssetholderethTransactorSession) 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 AssetholderethWithdrawn

type AssetholderethWithdrawn struct {
	FundingID [32]byte
	Amount    *big.Int
	Receiver  common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

AssetholderethWithdrawn represents a Withdrawn event raised by the Assetholdereth contract.

type AssetholderethWithdrawnIterator

type AssetholderethWithdrawnIterator struct {
	Event *AssetholderethWithdrawn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AssetholderethWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Assetholdereth contract.

func (*AssetholderethWithdrawnIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AssetholderethWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetholderethWithdrawnIterator) Next

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL