Documentation ¶
Index ¶
- Variables
- type ConduitBatch1155Transfer
- type ConduitInterface
- type ConduitInterfaceCaller
- type ConduitInterfaceCallerRaw
- type ConduitInterfaceCallerSession
- type ConduitInterfaceChannelUpdated
- type ConduitInterfaceChannelUpdatedIterator
- type ConduitInterfaceFilterer
- func (_ConduitInterface *ConduitInterfaceFilterer) FilterChannelUpdated(opts *bind.FilterOpts, channel []common.Address) (*ConduitInterfaceChannelUpdatedIterator, error)
- func (_ConduitInterface *ConduitInterfaceFilterer) ParseChannelUpdated(log types.Log) (*ConduitInterfaceChannelUpdated, error)
- func (_ConduitInterface *ConduitInterfaceFilterer) WatchChannelUpdated(opts *bind.WatchOpts, sink chan<- *ConduitInterfaceChannelUpdated, ...) (event.Subscription, error)
- type ConduitInterfaceRaw
- func (_ConduitInterface *ConduitInterfaceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ConduitInterface *ConduitInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ConduitInterfaceSession
- func (_ConduitInterface *ConduitInterfaceSession) Execute(transfers []ConduitTransfer) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceSession) ExecuteBatch1155(batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceSession) ExecuteWithBatch1155(standardTransfers []ConduitTransfer, ...) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceSession) UpdateChannel(channel common.Address, isOpen bool) (*types.Transaction, error)
- type ConduitInterfaceTransactor
- func (_ConduitInterface *ConduitInterfaceTransactor) Execute(opts *bind.TransactOpts, transfers []ConduitTransfer) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceTransactor) ExecuteBatch1155(opts *bind.TransactOpts, batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceTransactor) ExecuteWithBatch1155(opts *bind.TransactOpts, standardTransfers []ConduitTransfer, ...) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceTransactor) UpdateChannel(opts *bind.TransactOpts, channel common.Address, isOpen bool) (*types.Transaction, error)
- type ConduitInterfaceTransactorRaw
- type ConduitInterfaceTransactorSession
- func (_ConduitInterface *ConduitInterfaceTransactorSession) Execute(transfers []ConduitTransfer) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceTransactorSession) ExecuteBatch1155(batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceTransactorSession) ExecuteWithBatch1155(standardTransfers []ConduitTransfer, ...) (*types.Transaction, error)
- func (_ConduitInterface *ConduitInterfaceTransactorSession) UpdateChannel(channel common.Address, isOpen bool) (*types.Transaction, error)
- type ConduitTransfer
Constants ¶
This section is empty.
Variables ¶
var ConduitInterfaceABI = ConduitInterfaceMetaData.ABI
ConduitInterfaceABI is the input ABI used to generate the binding from. Deprecated: Use ConduitInterfaceMetaData.ABI instead.
var ConduitInterfaceMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"channel\",\"type\":\"address\"}],\"name\":\"ChannelClosed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"channel\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isOpen\",\"type\":\"bool\"}],\"name\":\"ChannelStatusAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidController\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidItemType\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"channel\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"open\",\"type\":\"bool\"}],\"name\":\"ChannelUpdated\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enumConduitItemType\",\"name\":\"itemType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"identifier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structConduitTransfer[]\",\"name\":\"transfers\",\"type\":\"tuple[]\"}],\"name\":\"execute\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"magicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"internalType\":\"structConduitBatch1155Transfer[]\",\"name\":\"batch1155Transfers\",\"type\":\"tuple[]\"}],\"name\":\"executeBatch1155\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"magicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enumConduitItemType\",\"name\":\"itemType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"identifier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structConduitTransfer[]\",\"name\":\"standardTransfers\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"internalType\":\"structConduitBatch1155Transfer[]\",\"name\":\"batch1155Transfers\",\"type\":\"tuple[]\"}],\"name\":\"executeWithBatch1155\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"magicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"channel\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isOpen\",\"type\":\"bool\"}],\"name\":\"updateChannel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
ConduitInterfaceMetaData contains all meta data concerning the ConduitInterface contract.
Functions ¶
This section is empty.
Types ¶
type ConduitBatch1155Transfer ¶
type ConduitBatch1155Transfer struct { Token common.Address From common.Address To common.Address Ids []*big.Int Amounts []*big.Int }
ConduitBatch1155Transfer is an auto generated low-level Go binding around an user-defined struct.
type ConduitInterface ¶
type ConduitInterface struct { ConduitInterfaceCaller // Read-only binding to the contract ConduitInterfaceTransactor // Write-only binding to the contract ConduitInterfaceFilterer // Log filterer for contract events }
ConduitInterface is an auto generated Go binding around an Ethereum contract.
func NewConduitInterface ¶
func NewConduitInterface(address common.Address, backend bind.ContractBackend) (*ConduitInterface, error)
NewConduitInterface creates a new instance of ConduitInterface, bound to a specific deployed contract.
type ConduitInterfaceCaller ¶
type ConduitInterfaceCaller struct {
// contains filtered or unexported fields
}
ConduitInterfaceCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewConduitInterfaceCaller ¶
func NewConduitInterfaceCaller(address common.Address, caller bind.ContractCaller) (*ConduitInterfaceCaller, error)
NewConduitInterfaceCaller creates a new read-only instance of ConduitInterface, bound to a specific deployed contract.
type ConduitInterfaceCallerRaw ¶
type ConduitInterfaceCallerRaw struct {
Contract *ConduitInterfaceCaller // Generic read-only contract binding to access the raw methods on
}
ConduitInterfaceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ConduitInterfaceCallerRaw) Call ¶
func (_ConduitInterface *ConduitInterfaceCallerRaw) 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 ConduitInterfaceCallerSession ¶
type ConduitInterfaceCallerSession struct { Contract *ConduitInterfaceCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ConduitInterfaceCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type ConduitInterfaceChannelUpdated ¶
type ConduitInterfaceChannelUpdated struct { Channel common.Address Open bool Raw types.Log // Blockchain specific contextual infos }
ConduitInterfaceChannelUpdated represents a ChannelUpdated event raised by the ConduitInterface contract.
type ConduitInterfaceChannelUpdatedIterator ¶
type ConduitInterfaceChannelUpdatedIterator struct { Event *ConduitInterfaceChannelUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConduitInterfaceChannelUpdatedIterator is returned from FilterChannelUpdated and is used to iterate over the raw logs and unpacked data for ChannelUpdated events raised by the ConduitInterface contract.
func (*ConduitInterfaceChannelUpdatedIterator) Close ¶
func (it *ConduitInterfaceChannelUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConduitInterfaceChannelUpdatedIterator) Error ¶
func (it *ConduitInterfaceChannelUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConduitInterfaceChannelUpdatedIterator) Next ¶
func (it *ConduitInterfaceChannelUpdatedIterator) 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 ConduitInterfaceFilterer ¶
type ConduitInterfaceFilterer struct {
// contains filtered or unexported fields
}
ConduitInterfaceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewConduitInterfaceFilterer ¶
func NewConduitInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*ConduitInterfaceFilterer, error)
NewConduitInterfaceFilterer creates a new log filterer instance of ConduitInterface, bound to a specific deployed contract.
func (*ConduitInterfaceFilterer) FilterChannelUpdated ¶
func (_ConduitInterface *ConduitInterfaceFilterer) FilterChannelUpdated(opts *bind.FilterOpts, channel []common.Address) (*ConduitInterfaceChannelUpdatedIterator, error)
FilterChannelUpdated is a free log retrieval operation binding the contract event 0xae63067d43ac07563b7eb8db6595635fc77f1578a2a5ea06ba91b63e2afa37e2.
Solidity: event ChannelUpdated(address indexed channel, bool open)
func (*ConduitInterfaceFilterer) ParseChannelUpdated ¶
func (_ConduitInterface *ConduitInterfaceFilterer) ParseChannelUpdated(log types.Log) (*ConduitInterfaceChannelUpdated, error)
ParseChannelUpdated is a log parse operation binding the contract event 0xae63067d43ac07563b7eb8db6595635fc77f1578a2a5ea06ba91b63e2afa37e2.
Solidity: event ChannelUpdated(address indexed channel, bool open)
func (*ConduitInterfaceFilterer) WatchChannelUpdated ¶
func (_ConduitInterface *ConduitInterfaceFilterer) WatchChannelUpdated(opts *bind.WatchOpts, sink chan<- *ConduitInterfaceChannelUpdated, channel []common.Address) (event.Subscription, error)
WatchChannelUpdated is a free log subscription operation binding the contract event 0xae63067d43ac07563b7eb8db6595635fc77f1578a2a5ea06ba91b63e2afa37e2.
Solidity: event ChannelUpdated(address indexed channel, bool open)
type ConduitInterfaceRaw ¶
type ConduitInterfaceRaw struct {
Contract *ConduitInterface // Generic contract binding to access the raw methods on
}
ConduitInterfaceRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ConduitInterfaceRaw) Call ¶
func (_ConduitInterface *ConduitInterfaceRaw) 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 (*ConduitInterfaceRaw) Transact ¶
func (_ConduitInterface *ConduitInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConduitInterfaceRaw) Transfer ¶
func (_ConduitInterface *ConduitInterfaceRaw) 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 ConduitInterfaceSession ¶
type ConduitInterfaceSession struct { Contract *ConduitInterface // 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 }
ConduitInterfaceSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ConduitInterfaceSession) Execute ¶
func (_ConduitInterface *ConduitInterfaceSession) Execute(transfers []ConduitTransfer) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0x4ce34aa2.
Solidity: function execute((uint8,address,address,address,uint256,uint256)[] transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceSession) ExecuteBatch1155 ¶
func (_ConduitInterface *ConduitInterfaceSession) ExecuteBatch1155(batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
ExecuteBatch1155 is a paid mutator transaction binding the contract method 0x8df25d92.
Solidity: function executeBatch1155((address,address,address,uint256[],uint256[])[] batch1155Transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceSession) ExecuteWithBatch1155 ¶
func (_ConduitInterface *ConduitInterfaceSession) ExecuteWithBatch1155(standardTransfers []ConduitTransfer, batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
ExecuteWithBatch1155 is a paid mutator transaction binding the contract method 0x899e104c.
Solidity: function executeWithBatch1155((uint8,address,address,address,uint256,uint256)[] standardTransfers, (address,address,address,uint256[],uint256[])[] batch1155Transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceSession) UpdateChannel ¶
func (_ConduitInterface *ConduitInterfaceSession) UpdateChannel(channel common.Address, isOpen bool) (*types.Transaction, error)
UpdateChannel is a paid mutator transaction binding the contract method 0xc4e8fcb5.
Solidity: function updateChannel(address channel, bool isOpen) returns()
type ConduitInterfaceTransactor ¶
type ConduitInterfaceTransactor struct {
// contains filtered or unexported fields
}
ConduitInterfaceTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewConduitInterfaceTransactor ¶
func NewConduitInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*ConduitInterfaceTransactor, error)
NewConduitInterfaceTransactor creates a new write-only instance of ConduitInterface, bound to a specific deployed contract.
func (*ConduitInterfaceTransactor) Execute ¶
func (_ConduitInterface *ConduitInterfaceTransactor) Execute(opts *bind.TransactOpts, transfers []ConduitTransfer) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0x4ce34aa2.
Solidity: function execute((uint8,address,address,address,uint256,uint256)[] transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceTransactor) ExecuteBatch1155 ¶
func (_ConduitInterface *ConduitInterfaceTransactor) ExecuteBatch1155(opts *bind.TransactOpts, batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
ExecuteBatch1155 is a paid mutator transaction binding the contract method 0x8df25d92.
Solidity: function executeBatch1155((address,address,address,uint256[],uint256[])[] batch1155Transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceTransactor) ExecuteWithBatch1155 ¶
func (_ConduitInterface *ConduitInterfaceTransactor) ExecuteWithBatch1155(opts *bind.TransactOpts, standardTransfers []ConduitTransfer, batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
ExecuteWithBatch1155 is a paid mutator transaction binding the contract method 0x899e104c.
Solidity: function executeWithBatch1155((uint8,address,address,address,uint256,uint256)[] standardTransfers, (address,address,address,uint256[],uint256[])[] batch1155Transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceTransactor) UpdateChannel ¶
func (_ConduitInterface *ConduitInterfaceTransactor) UpdateChannel(opts *bind.TransactOpts, channel common.Address, isOpen bool) (*types.Transaction, error)
UpdateChannel is a paid mutator transaction binding the contract method 0xc4e8fcb5.
Solidity: function updateChannel(address channel, bool isOpen) returns()
type ConduitInterfaceTransactorRaw ¶
type ConduitInterfaceTransactorRaw struct {
Contract *ConduitInterfaceTransactor // Generic write-only contract binding to access the raw methods on
}
ConduitInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ConduitInterfaceTransactorRaw) Transact ¶
func (_ConduitInterface *ConduitInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConduitInterfaceTransactorRaw) Transfer ¶
func (_ConduitInterface *ConduitInterfaceTransactorRaw) 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 ConduitInterfaceTransactorSession ¶
type ConduitInterfaceTransactorSession struct { Contract *ConduitInterfaceTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ConduitInterfaceTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ConduitInterfaceTransactorSession) Execute ¶
func (_ConduitInterface *ConduitInterfaceTransactorSession) Execute(transfers []ConduitTransfer) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0x4ce34aa2.
Solidity: function execute((uint8,address,address,address,uint256,uint256)[] transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceTransactorSession) ExecuteBatch1155 ¶
func (_ConduitInterface *ConduitInterfaceTransactorSession) ExecuteBatch1155(batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
ExecuteBatch1155 is a paid mutator transaction binding the contract method 0x8df25d92.
Solidity: function executeBatch1155((address,address,address,uint256[],uint256[])[] batch1155Transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceTransactorSession) ExecuteWithBatch1155 ¶
func (_ConduitInterface *ConduitInterfaceTransactorSession) ExecuteWithBatch1155(standardTransfers []ConduitTransfer, batch1155Transfers []ConduitBatch1155Transfer) (*types.Transaction, error)
ExecuteWithBatch1155 is a paid mutator transaction binding the contract method 0x899e104c.
Solidity: function executeWithBatch1155((uint8,address,address,address,uint256,uint256)[] standardTransfers, (address,address,address,uint256[],uint256[])[] batch1155Transfers) returns(bytes4 magicValue)
func (*ConduitInterfaceTransactorSession) UpdateChannel ¶
func (_ConduitInterface *ConduitInterfaceTransactorSession) UpdateChannel(channel common.Address, isOpen bool) (*types.Transaction, error)
UpdateChannel is a paid mutator transaction binding the contract method 0xc4e8fcb5.
Solidity: function updateChannel(address channel, bool isOpen) returns()