l1messenger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IL1MessengerABI = IL1MessengerMetaData.ABI

IL1MessengerABI is the input ABI used to generate the binding from. Deprecated: Use IL1MessengerMetaData.ABI instead.

View Source
var IL1MessengerMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"_bytecodeHash\",\"type\":\"bytes32\"}],\"name\":\"BytecodeL1PublicationRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"_hash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"L1MessageSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"l2ShardId\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"isService\",\"type\":\"bool\"},{\"internalType\":\"uint16\",\"name\":\"txNumberInBlock\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"}],\"indexed\":false,\"internalType\":\"structL2ToL1Log\",\"name\":\"_l2log\",\"type\":\"tuple\"}],\"name\":\"L2ToL1LogSent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_bytecodeHash\",\"type\":\"bytes32\"}],\"name\":\"requestBytecodeL1Publication\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_isService\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_value\",\"type\":\"bytes32\"}],\"name\":\"sendL2ToL1Log\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"logIdInMerkleTree\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"sendToL1\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IL1MessengerMetaData contains all meta data concerning the IL1Messenger contract.

Functions

This section is empty.

Types

type IL1Messenger

type IL1Messenger struct {
	IL1MessengerCaller     // Read-only binding to the contract
	IL1MessengerTransactor // Write-only binding to the contract
	IL1MessengerFilterer   // Log filterer for contract events
}

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

func NewIL1Messenger

func NewIL1Messenger(address common.Address, backend bind.ContractBackend) (*IL1Messenger, error)

NewIL1Messenger creates a new instance of IL1Messenger, bound to a specific deployed contract.

type IL1MessengerBytecodeL1PublicationRequested added in v0.4.0

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

IL1MessengerBytecodeL1PublicationRequested represents a BytecodeL1PublicationRequested event raised by the IL1Messenger contract.

type IL1MessengerBytecodeL1PublicationRequestedIterator added in v0.4.0

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

IL1MessengerBytecodeL1PublicationRequestedIterator is returned from FilterBytecodeL1PublicationRequested and is used to iterate over the raw logs and unpacked data for BytecodeL1PublicationRequested events raised by the IL1Messenger contract.

func (*IL1MessengerBytecodeL1PublicationRequestedIterator) Close added in v0.4.0

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

func (*IL1MessengerBytecodeL1PublicationRequestedIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1MessengerBytecodeL1PublicationRequestedIterator) Next added in v0.4.0

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 IL1MessengerCaller

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

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

func NewIL1MessengerCaller

func NewIL1MessengerCaller(address common.Address, caller bind.ContractCaller) (*IL1MessengerCaller, error)

NewIL1MessengerCaller creates a new read-only instance of IL1Messenger, bound to a specific deployed contract.

type IL1MessengerCallerRaw

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

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

func (*IL1MessengerCallerRaw) Call

func (_IL1Messenger *IL1MessengerCallerRaw) 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 IL1MessengerCallerSession

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

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

type IL1MessengerFilterer

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

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

func NewIL1MessengerFilterer

func NewIL1MessengerFilterer(address common.Address, filterer bind.ContractFilterer) (*IL1MessengerFilterer, error)

NewIL1MessengerFilterer creates a new log filterer instance of IL1Messenger, bound to a specific deployed contract.

func (*IL1MessengerFilterer) FilterBytecodeL1PublicationRequested added in v0.4.0

func (_IL1Messenger *IL1MessengerFilterer) FilterBytecodeL1PublicationRequested(opts *bind.FilterOpts) (*IL1MessengerBytecodeL1PublicationRequestedIterator, error)

FilterBytecodeL1PublicationRequested is a free log retrieval operation binding the contract event 0x480d3c9f727b5e5c1203d4c61fb185d37f08e6b2dc5e9bbf98591b1a7addf57c.

Solidity: event BytecodeL1PublicationRequested(bytes32 _bytecodeHash)

func (*IL1MessengerFilterer) FilterL1MessageSent

func (_IL1Messenger *IL1MessengerFilterer) FilterL1MessageSent(opts *bind.FilterOpts, _sender []common.Address, _hash [][32]byte) (*IL1MessengerL1MessageSentIterator, error)

FilterL1MessageSent is a free log retrieval operation binding the contract event 0x3a36e47291f4201faf137fab081d92295bce2d53be2c6ca68ba82c7faa9ce241.

Solidity: event L1MessageSent(address indexed _sender, bytes32 indexed _hash, bytes _message)

func (*IL1MessengerFilterer) FilterL2ToL1LogSent added in v0.4.0

func (_IL1Messenger *IL1MessengerFilterer) FilterL2ToL1LogSent(opts *bind.FilterOpts) (*IL1MessengerL2ToL1LogSentIterator, error)

FilterL2ToL1LogSent is a free log retrieval operation binding the contract event 0x27fe8c0b49f49507b9d4fe5968c9f49edfe5c9df277d433a07a0717ede97638d.

Solidity: event L2ToL1LogSent((uint8,bool,uint16,address,bytes32,bytes32) _l2log)

func (*IL1MessengerFilterer) ParseBytecodeL1PublicationRequested added in v0.4.0

func (_IL1Messenger *IL1MessengerFilterer) ParseBytecodeL1PublicationRequested(log types.Log) (*IL1MessengerBytecodeL1PublicationRequested, error)

ParseBytecodeL1PublicationRequested is a log parse operation binding the contract event 0x480d3c9f727b5e5c1203d4c61fb185d37f08e6b2dc5e9bbf98591b1a7addf57c.

Solidity: event BytecodeL1PublicationRequested(bytes32 _bytecodeHash)

func (*IL1MessengerFilterer) ParseL1MessageSent

func (_IL1Messenger *IL1MessengerFilterer) ParseL1MessageSent(log types.Log) (*IL1MessengerL1MessageSent, error)

ParseL1MessageSent is a log parse operation binding the contract event 0x3a36e47291f4201faf137fab081d92295bce2d53be2c6ca68ba82c7faa9ce241.

Solidity: event L1MessageSent(address indexed _sender, bytes32 indexed _hash, bytes _message)

func (*IL1MessengerFilterer) ParseL2ToL1LogSent added in v0.4.0

func (_IL1Messenger *IL1MessengerFilterer) ParseL2ToL1LogSent(log types.Log) (*IL1MessengerL2ToL1LogSent, error)

ParseL2ToL1LogSent is a log parse operation binding the contract event 0x27fe8c0b49f49507b9d4fe5968c9f49edfe5c9df277d433a07a0717ede97638d.

Solidity: event L2ToL1LogSent((uint8,bool,uint16,address,bytes32,bytes32) _l2log)

func (*IL1MessengerFilterer) WatchBytecodeL1PublicationRequested added in v0.4.0

func (_IL1Messenger *IL1MessengerFilterer) WatchBytecodeL1PublicationRequested(opts *bind.WatchOpts, sink chan<- *IL1MessengerBytecodeL1PublicationRequested) (event.Subscription, error)

WatchBytecodeL1PublicationRequested is a free log subscription operation binding the contract event 0x480d3c9f727b5e5c1203d4c61fb185d37f08e6b2dc5e9bbf98591b1a7addf57c.

Solidity: event BytecodeL1PublicationRequested(bytes32 _bytecodeHash)

func (*IL1MessengerFilterer) WatchL1MessageSent

func (_IL1Messenger *IL1MessengerFilterer) WatchL1MessageSent(opts *bind.WatchOpts, sink chan<- *IL1MessengerL1MessageSent, _sender []common.Address, _hash [][32]byte) (event.Subscription, error)

WatchL1MessageSent is a free log subscription operation binding the contract event 0x3a36e47291f4201faf137fab081d92295bce2d53be2c6ca68ba82c7faa9ce241.

Solidity: event L1MessageSent(address indexed _sender, bytes32 indexed _hash, bytes _message)

func (*IL1MessengerFilterer) WatchL2ToL1LogSent added in v0.4.0

func (_IL1Messenger *IL1MessengerFilterer) WatchL2ToL1LogSent(opts *bind.WatchOpts, sink chan<- *IL1MessengerL2ToL1LogSent) (event.Subscription, error)

WatchL2ToL1LogSent is a free log subscription operation binding the contract event 0x27fe8c0b49f49507b9d4fe5968c9f49edfe5c9df277d433a07a0717ede97638d.

Solidity: event L2ToL1LogSent((uint8,bool,uint16,address,bytes32,bytes32) _l2log)

type IL1MessengerL1MessageSent

type IL1MessengerL1MessageSent struct {
	Sender  common.Address
	Hash    [32]byte
	Message []byte
	Raw     types.Log // Blockchain specific contextual infos
}

IL1MessengerL1MessageSent represents a L1MessageSent event raised by the IL1Messenger contract.

type IL1MessengerL1MessageSentIterator

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

IL1MessengerL1MessageSentIterator is returned from FilterL1MessageSent and is used to iterate over the raw logs and unpacked data for L1MessageSent events raised by the IL1Messenger contract.

func (*IL1MessengerL1MessageSentIterator) Close

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

func (*IL1MessengerL1MessageSentIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1MessengerL1MessageSentIterator) 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 IL1MessengerL2ToL1LogSent added in v0.4.0

type IL1MessengerL2ToL1LogSent struct {
	L2log L2ToL1Log
	Raw   types.Log // Blockchain specific contextual infos
}

IL1MessengerL2ToL1LogSent represents a L2ToL1LogSent event raised by the IL1Messenger contract.

type IL1MessengerL2ToL1LogSentIterator added in v0.4.0

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

IL1MessengerL2ToL1LogSentIterator is returned from FilterL2ToL1LogSent and is used to iterate over the raw logs and unpacked data for L2ToL1LogSent events raised by the IL1Messenger contract.

func (*IL1MessengerL2ToL1LogSentIterator) Close added in v0.4.0

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

func (*IL1MessengerL2ToL1LogSentIterator) Error added in v0.4.0

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1MessengerL2ToL1LogSentIterator) Next added in v0.4.0

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 IL1MessengerRaw

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

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

func (*IL1MessengerRaw) Call

func (_IL1Messenger *IL1MessengerRaw) 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 (*IL1MessengerRaw) Transact

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

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

func (*IL1MessengerRaw) Transfer

func (_IL1Messenger *IL1MessengerRaw) 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 IL1MessengerSession

type IL1MessengerSession struct {
	Contract     *IL1Messenger     // 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
}

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

func (*IL1MessengerSession) RequestBytecodeL1Publication added in v0.4.0

func (_IL1Messenger *IL1MessengerSession) RequestBytecodeL1Publication(_bytecodeHash [32]byte) (*types.Transaction, error)

RequestBytecodeL1Publication is a paid mutator transaction binding the contract method 0x39b34c6e.

Solidity: function requestBytecodeL1Publication(bytes32 _bytecodeHash) returns()

func (*IL1MessengerSession) SendL2ToL1Log added in v0.4.0

func (_IL1Messenger *IL1MessengerSession) SendL2ToL1Log(_isService bool, _key [32]byte, _value [32]byte) (*types.Transaction, error)

SendL2ToL1Log is a paid mutator transaction binding the contract method 0x56079ac8.

Solidity: function sendL2ToL1Log(bool _isService, bytes32 _key, bytes32 _value) returns(uint256 logIdInMerkleTree)

func (*IL1MessengerSession) SendToL1

func (_IL1Messenger *IL1MessengerSession) SendToL1(_message []byte) (*types.Transaction, error)

SendToL1 is a paid mutator transaction binding the contract method 0x62f84b24.

Solidity: function sendToL1(bytes _message) returns(bytes32)

type IL1MessengerTransactor

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

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

func NewIL1MessengerTransactor

func NewIL1MessengerTransactor(address common.Address, transactor bind.ContractTransactor) (*IL1MessengerTransactor, error)

NewIL1MessengerTransactor creates a new write-only instance of IL1Messenger, bound to a specific deployed contract.

func (*IL1MessengerTransactor) RequestBytecodeL1Publication added in v0.4.0

func (_IL1Messenger *IL1MessengerTransactor) RequestBytecodeL1Publication(opts *bind.TransactOpts, _bytecodeHash [32]byte) (*types.Transaction, error)

RequestBytecodeL1Publication is a paid mutator transaction binding the contract method 0x39b34c6e.

Solidity: function requestBytecodeL1Publication(bytes32 _bytecodeHash) returns()

func (*IL1MessengerTransactor) SendL2ToL1Log added in v0.4.0

func (_IL1Messenger *IL1MessengerTransactor) SendL2ToL1Log(opts *bind.TransactOpts, _isService bool, _key [32]byte, _value [32]byte) (*types.Transaction, error)

SendL2ToL1Log is a paid mutator transaction binding the contract method 0x56079ac8.

Solidity: function sendL2ToL1Log(bool _isService, bytes32 _key, bytes32 _value) returns(uint256 logIdInMerkleTree)

func (*IL1MessengerTransactor) SendToL1

func (_IL1Messenger *IL1MessengerTransactor) SendToL1(opts *bind.TransactOpts, _message []byte) (*types.Transaction, error)

SendToL1 is a paid mutator transaction binding the contract method 0x62f84b24.

Solidity: function sendToL1(bytes _message) returns(bytes32)

type IL1MessengerTransactorRaw

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

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

func (*IL1MessengerTransactorRaw) Transact

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

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

func (*IL1MessengerTransactorRaw) Transfer

func (_IL1Messenger *IL1MessengerTransactorRaw) 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 IL1MessengerTransactorSession

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

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

func (*IL1MessengerTransactorSession) RequestBytecodeL1Publication added in v0.4.0

func (_IL1Messenger *IL1MessengerTransactorSession) RequestBytecodeL1Publication(_bytecodeHash [32]byte) (*types.Transaction, error)

RequestBytecodeL1Publication is a paid mutator transaction binding the contract method 0x39b34c6e.

Solidity: function requestBytecodeL1Publication(bytes32 _bytecodeHash) returns()

func (*IL1MessengerTransactorSession) SendL2ToL1Log added in v0.4.0

func (_IL1Messenger *IL1MessengerTransactorSession) SendL2ToL1Log(_isService bool, _key [32]byte, _value [32]byte) (*types.Transaction, error)

SendL2ToL1Log is a paid mutator transaction binding the contract method 0x56079ac8.

Solidity: function sendL2ToL1Log(bool _isService, bytes32 _key, bytes32 _value) returns(uint256 logIdInMerkleTree)

func (*IL1MessengerTransactorSession) SendToL1

func (_IL1Messenger *IL1MessengerTransactorSession) SendToL1(_message []byte) (*types.Transaction, error)

SendToL1 is a paid mutator transaction binding the contract method 0x62f84b24.

Solidity: function sendToL1(bytes _message) returns(bytes32)

type L2ToL1Log added in v0.4.0

type L2ToL1Log struct {
	L2ShardId       uint8
	IsService       bool
	TxNumberInBlock uint16
	Sender          common.Address
	Key             [32]byte
	Value           [32]byte
}

L2ToL1Log is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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