assetholder

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 AssetHolderBinRuntime = ""

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

View Source
var AssetholderABI = AssetholderMetaData.ABI

AssetholderABI is the input ABI used to generate the binding from. Deprecated: Use AssetholderMetaData.ABI instead.

View Source
var AssetholderMetaData = &bind.MetaData{
	ABI: "[{\"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\"}]",
}

AssetholderMetaData contains all meta data concerning the Assetholder 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 Assetholder

type Assetholder struct {
	AssetholderCaller     // Read-only binding to the contract
	AssetholderTransactor // Write-only binding to the contract
	AssetholderFilterer   // Log filterer for contract events
}

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

func NewAssetholder

func NewAssetholder(address common.Address, backend bind.ContractBackend) (*Assetholder, error)

NewAssetholder creates a new instance of Assetholder, bound to a specific deployed contract.

type AssetholderCaller

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

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

func NewAssetholderCaller

func NewAssetholderCaller(address common.Address, caller bind.ContractCaller) (*AssetholderCaller, error)

NewAssetholderCaller creates a new read-only instance of Assetholder, bound to a specific deployed contract.

func (*AssetholderCaller) Adjudicator

func (_Assetholder *AssetholderCaller) 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 (*AssetholderCaller) Holdings

func (_Assetholder *AssetholderCaller) 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 (*AssetholderCaller) Settled

func (_Assetholder *AssetholderCaller) 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 AssetholderCallerRaw

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

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

func (*AssetholderCallerRaw) Call

func (_Assetholder *AssetholderCallerRaw) 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 AssetholderCallerSession

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

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

func (*AssetholderCallerSession) Adjudicator

func (_Assetholder *AssetholderCallerSession) Adjudicator() (common.Address, error)

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

Solidity: function adjudicator() view returns(address)

func (*AssetholderCallerSession) Holdings

func (_Assetholder *AssetholderCallerSession) 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 (*AssetholderCallerSession) Settled

func (_Assetholder *AssetholderCallerSession) 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 AssetholderDeposited

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

AssetholderDeposited represents a Deposited event raised by the Assetholder contract.

type AssetholderDepositedIterator

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

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

func (*AssetholderDepositedIterator) Close

func (it *AssetholderDepositedIterator) Close() error

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

func (*AssetholderDepositedIterator) Error

func (it *AssetholderDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetholderDepositedIterator) 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 AssetholderFilterer

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

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

func NewAssetholderFilterer

func NewAssetholderFilterer(address common.Address, filterer bind.ContractFilterer) (*AssetholderFilterer, error)

NewAssetholderFilterer creates a new log filterer instance of Assetholder, bound to a specific deployed contract.

func (*AssetholderFilterer) FilterDeposited

func (_Assetholder *AssetholderFilterer) FilterDeposited(opts *bind.FilterOpts, fundingID [][32]byte) (*AssetholderDepositedIterator, error)

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

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

func (*AssetholderFilterer) FilterOutcomeSet

func (_Assetholder *AssetholderFilterer) FilterOutcomeSet(opts *bind.FilterOpts, channelID [][32]byte) (*AssetholderOutcomeSetIterator, error)

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

Solidity: event OutcomeSet(bytes32 indexed channelID)

func (*AssetholderFilterer) FilterWithdrawn

func (_Assetholder *AssetholderFilterer) FilterWithdrawn(opts *bind.FilterOpts, fundingID [][32]byte) (*AssetholderWithdrawnIterator, error)

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

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

func (*AssetholderFilterer) ParseDeposited

func (_Assetholder *AssetholderFilterer) ParseDeposited(log types.Log) (*AssetholderDeposited, error)

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

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

func (*AssetholderFilterer) ParseOutcomeSet

func (_Assetholder *AssetholderFilterer) ParseOutcomeSet(log types.Log) (*AssetholderOutcomeSet, error)

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

Solidity: event OutcomeSet(bytes32 indexed channelID)

func (*AssetholderFilterer) ParseWithdrawn

func (_Assetholder *AssetholderFilterer) ParseWithdrawn(log types.Log) (*AssetholderWithdrawn, error)

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

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

func (*AssetholderFilterer) WatchDeposited

func (_Assetholder *AssetholderFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *AssetholderDeposited, 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 (*AssetholderFilterer) WatchOutcomeSet

func (_Assetholder *AssetholderFilterer) WatchOutcomeSet(opts *bind.WatchOpts, sink chan<- *AssetholderOutcomeSet, 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 (*AssetholderFilterer) WatchWithdrawn

func (_Assetholder *AssetholderFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *AssetholderWithdrawn, 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 AssetholderOutcomeSet

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

AssetholderOutcomeSet represents a OutcomeSet event raised by the Assetholder contract.

type AssetholderOutcomeSetIterator

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

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

func (*AssetholderOutcomeSetIterator) Close

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

func (*AssetholderOutcomeSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetholderOutcomeSetIterator) 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 AssetholderRaw

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

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

func (*AssetholderRaw) Call

func (_Assetholder *AssetholderRaw) 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 (*AssetholderRaw) Transact

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

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

func (*AssetholderRaw) Transfer

func (_Assetholder *AssetholderRaw) 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 AssetholderSession

type AssetholderSession struct {
	Contract     *Assetholder      // 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
}

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

func (*AssetholderSession) Adjudicator

func (_Assetholder *AssetholderSession) Adjudicator() (common.Address, error)

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

Solidity: function adjudicator() view returns(address)

func (*AssetholderSession) Deposit

func (_Assetholder *AssetholderSession) 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 (*AssetholderSession) Holdings

func (_Assetholder *AssetholderSession) 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 (*AssetholderSession) SetOutcome

func (_Assetholder *AssetholderSession) 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 (*AssetholderSession) Settled

func (_Assetholder *AssetholderSession) 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 (*AssetholderSession) Withdraw

func (_Assetholder *AssetholderSession) 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 AssetholderTransactor

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

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

func NewAssetholderTransactor

func NewAssetholderTransactor(address common.Address, transactor bind.ContractTransactor) (*AssetholderTransactor, error)

NewAssetholderTransactor creates a new write-only instance of Assetholder, bound to a specific deployed contract.

func (*AssetholderTransactor) Deposit

func (_Assetholder *AssetholderTransactor) 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 (*AssetholderTransactor) SetOutcome

func (_Assetholder *AssetholderTransactor) 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 (*AssetholderTransactor) Withdraw

func (_Assetholder *AssetholderTransactor) 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 AssetholderTransactorRaw

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

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

func (*AssetholderTransactorRaw) Transact

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

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

func (*AssetholderTransactorRaw) Transfer

func (_Assetholder *AssetholderTransactorRaw) 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 AssetholderTransactorSession

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

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

func (*AssetholderTransactorSession) Deposit

func (_Assetholder *AssetholderTransactorSession) 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 (*AssetholderTransactorSession) SetOutcome

func (_Assetholder *AssetholderTransactorSession) 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 (*AssetholderTransactorSession) Withdraw

func (_Assetholder *AssetholderTransactorSession) 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 AssetholderWithdrawn

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

AssetholderWithdrawn represents a Withdrawn event raised by the Assetholder contract.

type AssetholderWithdrawnIterator

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

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

func (*AssetholderWithdrawnIterator) Close

func (it *AssetholderWithdrawnIterator) Close() error

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

func (*AssetholderWithdrawnIterator) Error

func (it *AssetholderWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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