MessageBus

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MessageBusABI = MessageBusMetaData.ABI

MessageBusABI is the input ABI used to generate the binding from. Deprecated: Use MessageBusMetaData.ABI instead.

View Source
var MessageBusBin = MessageBusMetaData.Bin

MessageBusBin is the compiled bytecode used for deploying new contracts. Deprecated: Use MessageBusMetaData.Bin instead.

View Source
var MessageBusMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"topic\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"name\":\"LogMessagePublished\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"name\":\"ValueTransfer\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"topic\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.CrossChainMessage\",\"name\":\"crossChainMessage\",\"type\":\"tuple\"}],\"name\":\"getMessageTimeOfFinality\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"topic\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"name\":\"publishMessage\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"receiveValueFromL2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"retrieveAllFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"sendValueToL2\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"topic\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.CrossChainMessage\",\"name\":\"crossChainMessage\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"finalAfterTimestamp\",\"type\":\"uint256\"}],\"name\":\"storeCrossChainMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"topic\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.CrossChainMessage\",\"name\":\"crossChainMessage\",\"type\":\"tuple\"}],\"name\":\"verifyMessageFinalized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x608060405234801561001057600080fd5b5061001a33610027565b610022610098565b61014a565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100e85760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101475780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6116b2806101596000396000f3fe6080604052600436106100c05760003560e01c80638da5cb5b11610074578063b1454caa1161004e578063b1454caa14610285578063c4d66de8146102b2578063f2fde38b146102d257610134565b80638da5cb5b146102005780639730886d1461024557806399a3ad211461026557610134565b8063346633fb116100a5578063346633fb146101b857806336d2da90146101cb578063715018a6146101eb57610134565b80630fcfbd111461015557806333a88c721461018b57610134565b36610134576040517f346633fb000000000000000000000000000000000000000000000000000000008152309063346633fb9034906101059033908390600401610aaa565b6000604051808303818588803b15801561011e57600080fd5b505af1158015610132573d6000803e3d6000fd5b005b60405162461bcd60e51b815260040161014c90610af9565b60405180910390fd5b34801561016157600080fd5b50610175610170366004610b24565b6102f2565b6040516101829190610b5f565b60405180910390f35b34801561019757600080fd5b506101ab6101a6366004610b24565b610351565b6040516101829190610b75565b6101326101c6366004610bb3565b6103a3565b3480156101d757600080fd5b506101326101e6366004610bf0565b61042d565b3480156101f757600080fd5b506101326104ac565b34801561020c57600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166040516101829190610c11565b34801561025157600080fd5b50610132610260366004610c1f565b6104c0565b34801561027157600080fd5b50610132610280366004610bb3565b610635565b34801561029157600080fd5b506102a56102a0366004610cd8565b6106b5565b6040516101829190610d6c565b3480156102be57600080fd5b506101326102cd366004610bf0565b61070e565b3480156102de57600080fd5b506101326102ed366004610bf0565b610850565b600080826040516020016103069190610f19565b60408051601f1981840301815291815281516020928301206000818152928390529120549091508061034a5760405162461bcd60e51b815260040161014c90610f84565b9392505050565b600080826040516020016103659190610f19565b60408051601f198184030181529181528151602092830120600081815292839052912054909150801580159061039b5750428111155b949350505050565b6000341180156103b257508034145b6103ce5760405162461bcd60e51b815260040161014c90610fec565b60006103d9336108a7565b9050826001600160a01b0316336001600160a01b03167f50c536ac33a920f00755865b831d17bf4cff0b2e0345f65b16d52bfc004068b63484604051610420929190610ffc565b60405180910390a3505050565b610435610905565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610482576040519150601f19603f3d011682016040523d82523d6000602084013e610487565b606091505b50509050806104a85760405162461bcd60e51b815260040161014c90611049565b5050565b6104b4610905565b6104be6000610979565b565b60006104cd60013061106f565b90506105007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806105275750336001600160a01b038216145b6105435760405162461bcd60e51b815260040161014c906110c4565b600061054f83426110d4565b90506000846040516020016105649190610f19565b60408051601f198184030181529181528151602092830120600081815292839052912054909150156105a85760405162461bcd60e51b815260040161014c9061113f565b6000818152602081815260408220849055600191906105c990880188610bf0565b6001600160a01b0316815260208101919091526040016000908120906105f5608088016060890161114f565b63ffffffff1681526020808201929092526040016000908120805460018101825590825291902086916004020161062c82826115c9565b50505050505050565b61063d610905565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461068a576040519150601f19603f3d011682016040523d82523d6000602084013e61068f565b606091505b50509050806106b05760405162461bcd60e51b815260040161014c90611049565b505050565b60006106c0336108a7565b90507fb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937338288888888886040516106fd97969594939291906115d3565b60405180910390a195945050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156107595750825b905060008267ffffffffffffffff1660011480156107765750303b155b905081158015610784575080155b156107bb576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156107ef57845468ff00000000000000001916680100000000000000001785555b6107f886610a02565b831561084857845468ff0000000000000000191685556040517fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29061083f9060019061164a565b60405180910390a15b505050505050565b610858610905565b6001600160a01b03811661089b5760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161014c9190610c11565b6108a481610979565b50565b6001600160a01b0381166000908152600260205260408120805467ffffffffffffffff1691600191906108da8385611658565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550919050565b336109377f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146104be57336040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161014c9190610c11565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff000000000000000000000000000000000000000081166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610a0a610a13565b6108a481610a7a565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff166104be576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610858610a13565b60006001600160a01b0382165b92915050565b610a9e81610a82565b82525050565b80610a9e565b60408101610ab88285610a95565b61034a6020830184610aa4565b600b8152602081017f756e737570706f72746564000000000000000000000000000000000000000000815290505b60200190565b60208082528101610a8f81610ac5565b600060c08284031215610b1e57610b1e600080fd5b50919050565b600060208284031215610b3957610b39600080fd5b813567ffffffffffffffff811115610b5357610b53600080fd5b61039b84828501610b09565b60208101610a8f8284610aa4565b801515610a9e565b60208101610a8f8284610b6d565b610b8c81610a82565b81146108a457600080fd5b8035610a8f81610b83565b80610b8c565b8035610a8f81610ba2565b60008060408385031215610bc957610bc9600080fd5b6000610bd58585610b97565b9250506020610be685828601610ba8565b9150509250929050565b600060208284031215610c0557610c05600080fd5b600061039b8484610b97565b60208101610a8f8284610a95565b60008060408385031215610c3557610c35600080fd5b823567ffffffffffffffff811115610c4f57610c4f600080fd5b610bd585828601610b09565b63ffffffff8116610b8c565b8035610a8f81610c5b565b60008083601f840112610c8757610c87600080fd5b50813567ffffffffffffffff811115610ca257610ca2600080fd5b602083019150836001820283011115610cbd57610cbd600080fd5b9250929050565b60ff8116610b8c565b8035610a8f81610cc4565b600080600080600060808688031215610cf357610cf3600080fd5b6000610cff8888610c67565b9550506020610d1088828901610c67565b945050604086013567ffffffffffffffff811115610d3057610d30600080fd5b610d3c88828901610c72565b93509350506060610d4f88828901610ccd565b9150509295509295909350565b67ffffffffffffffff8116610a9e565b60208101610a8f8284610d5c565b506000610a8f6020830183610b97565b67ffffffffffffffff8116610b8c565b8035610a8f81610d8a565b506000610a8f6020830183610d9a565b506000610a8f6020830183610c67565b63ffffffff8116610a9e565b6000808335601e1936859003018112610dec57610dec600080fd5b830160208101925035905067ffffffffffffffff811115610e0f57610e0f600080fd5b36819003821315610cbd57610cbd600080fd5b82818337506000910152565b818352602083019250610e42828483610e22565b50601f01601f19160190565b506000610a8f6020830183610ccd565b60ff8116610a9e565b600060c08301610e778380610d7a565b610e818582610a95565b50610e8f6020840184610da5565b610e9c6020860182610d5c565b50610eaa6040840184610db5565b610eb76040860182610dc5565b50610ec56060840184610db5565b610ed26060860182610dc5565b50610ee06080840184610dd1565b8583036080870152610ef3838284610e2e565b92505050610f0460a0840184610e4e565b610f1160a0860182610e5e565b509392505050565b6020808252810161034a8184610e67565b60218152602081017f54686973206d65737361676520776173206e65766572207375626d697474656481527f2e00000000000000000000000000000000000000000000000000000000000000602082015290505b60400190565b60208082528101610a8f81610f2a565b60308152602081017f417474656d7074696e6720746f2073656e642076616c756520776974686f757481527f2070726f766964696e672045746865720000000000000000000000000000000060208201529050610f7e565b60208082528101610a8f81610f94565b6040810161100a8285610aa4565b61034a6020830184610d5c565b60148152602081017f6661696c65642073656e64696e672076616c756500000000000000000000000081529050610af3565b60208082528101610a8f81611017565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03918216919081169082820390811115610a8f57610a8f611059565b60118152602081017f4e6f74206f776e6572206f722073656c6600000000000000000000000000000081529050610af3565b60208082528101610a8f81611092565b80820180821115610a8f57610a8f611059565b60218152602081017f4d657373616765207375626d6974746564206d6f7265207468616e206f6e636581527f210000000000000000000000000000000000000000000000000000000000000060208201529050610f7e565b60208082528101610a8f816110e7565b60006020828403121561116457611164600080fd5b600061039b8484610c67565b60008135610a8f81610b83565b60006001600160a01b03835b81169019929092169190911792915050565b6000610a8f6001600160a01b0383166111b2565b90565b6001600160a01b031690565b6000610a8f8261119b565b6000610a8f826111be565b6111dd826111c9565b6111e881835461117d565b8255505050565b60008135610a8f81610d8a565b60007bffffffffffffffff00000000000000000000000000000000000000006111898460a01b90565b6000610a8f67ffffffffffffffff83165b67ffffffffffffffff1690565b61124c82611225565b6111e88183546111fc565b60008135610a8f81610c5b565b60007fffffffff000000000000000000000000000000000000000000000000000000006111898460e01b90565b600063ffffffff8216610a8f565b6112a882611291565b6111e8818354611264565b600063ffffffff83611189565b6112c982611291565b6111e88183546112b3565b6000808335601e19368590030181126112ef576112ef600080fd5b8301915050803567ffffffffffffffff81111561130e5761130e600080fd5b602082019150600181023603821315610cbd57610cbd600080fd5b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b60028104600182168061136957607f821691505b602082108103610b1e57610b1e61133f565b6000610a8f6111af8381565b6113908361137b565b815460001960089490940293841b1916921b91909117905550565b60006106b0818484611387565b818110156104a8576113cb6000826113ab565b6001016113b8565b601f8211156106b0576000818152602090206020601f850104810160208510156113fa5750805b61140c6020601f8601048301826113b8565b5050505050565b8267ffffffffffffffff81111561142c5761142c611329565b6114368254611355565b6114418282856113d3565b506000601f821160018114611476576000831561145e5750848201355b600019600885021c1981166002850217855550610848565b600084815260209020601f19841690835b828110156114a75787850135825560209485019460019092019101611487565b50848210156114c457600019601f86166008021c19848801351681555b5050505060020260010190555050565b6106b0838383611413565b60008135610a8f81610cc4565b600060ff83611189565b600060ff8216610a8f565b61150a826114f6565b6111e88183546114ec565b80828061152181611170565b905061152d81846111d4565b5050602083018061153d826111ef565b90506115498184611243565b5050604083018061155982611257565b9050611565818461129f565b50505060018101606083018061157a82611257565b905061158681846112c0565b505050600281016080830161159b81856112d4565b91506115a88282856114d4565b5050506003810160a08301806115bd826114df565b905061140c8184611501565b6104a88282611515565b60c081016115e1828a610a95565b6115ee6020830189610d5c565b6115fb6040830188610dc5565b6116086060830187610dc5565b818103608083015261161b818587610e2e565b905061162a60a0830184610e5e565b98975050505050505050565b6000610a8f82611236565b610a9e81611636565b60208101610a8f8284611641565b67ffffffffffffffff918216919081169082820190811115610a8f57610a8f61105956fea264697066735822122054b3bb8148cdbafe0aca39b986ef2610fd18ea01fc3554d63624fda624c6d21164736f6c63430008150033",
}

MessageBusMetaData contains all meta data concerning the MessageBus contract.

Functions

This section is empty.

Types

type MessageBus

type MessageBus struct {
	MessageBusCaller     // Read-only binding to the contract
	MessageBusTransactor // Write-only binding to the contract
	MessageBusFilterer   // Log filterer for contract events
}

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

func DeployMessageBus

func DeployMessageBus(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *MessageBus, error)

DeployMessageBus deploys a new Ethereum contract, binding an instance of MessageBus to it.

func NewMessageBus

func NewMessageBus(address common.Address, backend bind.ContractBackend) (*MessageBus, error)

NewMessageBus creates a new instance of MessageBus, bound to a specific deployed contract.

type MessageBusCaller

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

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

func NewMessageBusCaller

func NewMessageBusCaller(address common.Address, caller bind.ContractCaller) (*MessageBusCaller, error)

NewMessageBusCaller creates a new read-only instance of MessageBus, bound to a specific deployed contract.

func (*MessageBusCaller) GetMessageTimeOfFinality

func (_MessageBus *MessageBusCaller) GetMessageTimeOfFinality(opts *bind.CallOpts, crossChainMessage StructsCrossChainMessage) (*big.Int, error)

GetMessageTimeOfFinality is a free data retrieval call binding the contract method 0x0fcfbd11.

Solidity: function getMessageTimeOfFinality((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage) view returns(uint256)

func (*MessageBusCaller) Owner

func (_MessageBus *MessageBusCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MessageBusCaller) VerifyMessageFinalized

func (_MessageBus *MessageBusCaller) VerifyMessageFinalized(opts *bind.CallOpts, crossChainMessage StructsCrossChainMessage) (bool, error)

VerifyMessageFinalized is a free data retrieval call binding the contract method 0x33a88c72.

Solidity: function verifyMessageFinalized((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage) view returns(bool)

type MessageBusCallerRaw

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

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

func (*MessageBusCallerRaw) Call

func (_MessageBus *MessageBusCallerRaw) 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 MessageBusCallerSession

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

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

func (*MessageBusCallerSession) GetMessageTimeOfFinality

func (_MessageBus *MessageBusCallerSession) GetMessageTimeOfFinality(crossChainMessage StructsCrossChainMessage) (*big.Int, error)

GetMessageTimeOfFinality is a free data retrieval call binding the contract method 0x0fcfbd11.

Solidity: function getMessageTimeOfFinality((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage) view returns(uint256)

func (*MessageBusCallerSession) Owner

func (_MessageBus *MessageBusCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MessageBusCallerSession) VerifyMessageFinalized

func (_MessageBus *MessageBusCallerSession) VerifyMessageFinalized(crossChainMessage StructsCrossChainMessage) (bool, error)

VerifyMessageFinalized is a free data retrieval call binding the contract method 0x33a88c72.

Solidity: function verifyMessageFinalized((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage) view returns(bool)

type MessageBusFilterer

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

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

func NewMessageBusFilterer

func NewMessageBusFilterer(address common.Address, filterer bind.ContractFilterer) (*MessageBusFilterer, error)

NewMessageBusFilterer creates a new log filterer instance of MessageBus, bound to a specific deployed contract.

func (*MessageBusFilterer) FilterInitialized added in v0.28.0

func (_MessageBus *MessageBusFilterer) FilterInitialized(opts *bind.FilterOpts) (*MessageBusInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*MessageBusFilterer) FilterLogMessagePublished

func (_MessageBus *MessageBusFilterer) FilterLogMessagePublished(opts *bind.FilterOpts) (*MessageBusLogMessagePublishedIterator, error)

FilterLogMessagePublished is a free log retrieval operation binding the contract event 0xb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937.

Solidity: event LogMessagePublished(address sender, uint64 sequence, uint32 nonce, uint32 topic, bytes payload, uint8 consistencyLevel)

func (*MessageBusFilterer) FilterOwnershipTransferred

func (_MessageBus *MessageBusFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MessageBusOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MessageBusFilterer) FilterValueTransfer

func (_MessageBus *MessageBusFilterer) FilterValueTransfer(opts *bind.FilterOpts, sender []common.Address, receiver []common.Address) (*MessageBusValueTransferIterator, error)

FilterValueTransfer is a free log retrieval operation binding the contract event 0x50c536ac33a920f00755865b831d17bf4cff0b2e0345f65b16d52bfc004068b6.

Solidity: event ValueTransfer(address indexed sender, address indexed receiver, uint256 amount, uint64 sequence)

func (*MessageBusFilterer) ParseInitialized added in v0.28.0

func (_MessageBus *MessageBusFilterer) ParseInitialized(log types.Log) (*MessageBusInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*MessageBusFilterer) ParseLogMessagePublished

func (_MessageBus *MessageBusFilterer) ParseLogMessagePublished(log types.Log) (*MessageBusLogMessagePublished, error)

ParseLogMessagePublished is a log parse operation binding the contract event 0xb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937.

Solidity: event LogMessagePublished(address sender, uint64 sequence, uint32 nonce, uint32 topic, bytes payload, uint8 consistencyLevel)

func (*MessageBusFilterer) ParseOwnershipTransferred

func (_MessageBus *MessageBusFilterer) ParseOwnershipTransferred(log types.Log) (*MessageBusOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MessageBusFilterer) ParseValueTransfer

func (_MessageBus *MessageBusFilterer) ParseValueTransfer(log types.Log) (*MessageBusValueTransfer, error)

ParseValueTransfer is a log parse operation binding the contract event 0x50c536ac33a920f00755865b831d17bf4cff0b2e0345f65b16d52bfc004068b6.

Solidity: event ValueTransfer(address indexed sender, address indexed receiver, uint256 amount, uint64 sequence)

func (*MessageBusFilterer) WatchInitialized added in v0.28.0

func (_MessageBus *MessageBusFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *MessageBusInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*MessageBusFilterer) WatchLogMessagePublished

func (_MessageBus *MessageBusFilterer) WatchLogMessagePublished(opts *bind.WatchOpts, sink chan<- *MessageBusLogMessagePublished) (event.Subscription, error)

WatchLogMessagePublished is a free log subscription operation binding the contract event 0xb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937.

Solidity: event LogMessagePublished(address sender, uint64 sequence, uint32 nonce, uint32 topic, bytes payload, uint8 consistencyLevel)

func (*MessageBusFilterer) WatchOwnershipTransferred

func (_MessageBus *MessageBusFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MessageBusOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MessageBusFilterer) WatchValueTransfer

func (_MessageBus *MessageBusFilterer) WatchValueTransfer(opts *bind.WatchOpts, sink chan<- *MessageBusValueTransfer, sender []common.Address, receiver []common.Address) (event.Subscription, error)

WatchValueTransfer is a free log subscription operation binding the contract event 0x50c536ac33a920f00755865b831d17bf4cff0b2e0345f65b16d52bfc004068b6.

Solidity: event ValueTransfer(address indexed sender, address indexed receiver, uint256 amount, uint64 sequence)

type MessageBusInitialized added in v0.28.0

type MessageBusInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

MessageBusInitialized represents a Initialized event raised by the MessageBus contract.

type MessageBusInitializedIterator added in v0.28.0

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

MessageBusInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the MessageBus contract.

func (*MessageBusInitializedIterator) Close added in v0.28.0

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

func (*MessageBusInitializedIterator) Error added in v0.28.0

Error returns any retrieval or parsing error occurred during filtering.

func (*MessageBusInitializedIterator) Next added in v0.28.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 MessageBusLogMessagePublished

type MessageBusLogMessagePublished struct {
	Sender           common.Address
	Sequence         uint64
	Nonce            uint32
	Topic            uint32
	Payload          []byte
	ConsistencyLevel uint8
	Raw              types.Log // Blockchain specific contextual infos
}

MessageBusLogMessagePublished represents a LogMessagePublished event raised by the MessageBus contract.

type MessageBusLogMessagePublishedIterator

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

MessageBusLogMessagePublishedIterator is returned from FilterLogMessagePublished and is used to iterate over the raw logs and unpacked data for LogMessagePublished events raised by the MessageBus contract.

func (*MessageBusLogMessagePublishedIterator) Close

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

func (*MessageBusLogMessagePublishedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type MessageBusOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

MessageBusOwnershipTransferred represents a OwnershipTransferred event raised by the MessageBus contract.

type MessageBusOwnershipTransferredIterator

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

MessageBusOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the MessageBus contract.

func (*MessageBusOwnershipTransferredIterator) Close

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

func (*MessageBusOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*MessageBusRaw) Call

func (_MessageBus *MessageBusRaw) 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 (*MessageBusRaw) Transact

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

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

func (*MessageBusRaw) Transfer

func (_MessageBus *MessageBusRaw) 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 MessageBusSession

type MessageBusSession struct {
	Contract     *MessageBus       // 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
}

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

func (*MessageBusSession) Fallback

func (_MessageBus *MessageBusSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MessageBusSession) GetMessageTimeOfFinality

func (_MessageBus *MessageBusSession) GetMessageTimeOfFinality(crossChainMessage StructsCrossChainMessage) (*big.Int, error)

GetMessageTimeOfFinality is a free data retrieval call binding the contract method 0x0fcfbd11.

Solidity: function getMessageTimeOfFinality((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage) view returns(uint256)

func (*MessageBusSession) Initialize added in v0.28.0

func (_MessageBus *MessageBusSession) Initialize(caller common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address caller) returns()

func (*MessageBusSession) Owner

func (_MessageBus *MessageBusSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MessageBusSession) PublishMessage

func (_MessageBus *MessageBusSession) PublishMessage(nonce uint32, topic uint32, payload []byte, consistencyLevel uint8) (*types.Transaction, error)

PublishMessage is a paid mutator transaction binding the contract method 0xb1454caa.

Solidity: function publishMessage(uint32 nonce, uint32 topic, bytes payload, uint8 consistencyLevel) returns(uint64 sequence)

func (*MessageBusSession) Receive

func (_MessageBus *MessageBusSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MessageBusSession) ReceiveValueFromL2

func (_MessageBus *MessageBusSession) ReceiveValueFromL2(receiver common.Address, amount *big.Int) (*types.Transaction, error)

ReceiveValueFromL2 is a paid mutator transaction binding the contract method 0x99a3ad21.

Solidity: function receiveValueFromL2(address receiver, uint256 amount) returns()

func (*MessageBusSession) RenounceOwnership

func (_MessageBus *MessageBusSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*MessageBusSession) RetrieveAllFunds

func (_MessageBus *MessageBusSession) RetrieveAllFunds(receiver common.Address) (*types.Transaction, error)

RetrieveAllFunds is a paid mutator transaction binding the contract method 0x36d2da90.

Solidity: function retrieveAllFunds(address receiver) returns()

func (*MessageBusSession) SendValueToL2

func (_MessageBus *MessageBusSession) SendValueToL2(receiver common.Address, amount *big.Int) (*types.Transaction, error)

SendValueToL2 is a paid mutator transaction binding the contract method 0x346633fb.

Solidity: function sendValueToL2(address receiver, uint256 amount) payable returns()

func (*MessageBusSession) StoreCrossChainMessage

func (_MessageBus *MessageBusSession) StoreCrossChainMessage(crossChainMessage StructsCrossChainMessage, finalAfterTimestamp *big.Int) (*types.Transaction, error)

StoreCrossChainMessage is a paid mutator transaction binding the contract method 0x9730886d.

Solidity: function storeCrossChainMessage((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage, uint256 finalAfterTimestamp) returns()

func (*MessageBusSession) TransferOwnership

func (_MessageBus *MessageBusSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*MessageBusSession) VerifyMessageFinalized

func (_MessageBus *MessageBusSession) VerifyMessageFinalized(crossChainMessage StructsCrossChainMessage) (bool, error)

VerifyMessageFinalized is a free data retrieval call binding the contract method 0x33a88c72.

Solidity: function verifyMessageFinalized((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage) view returns(bool)

type MessageBusTransactor

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

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

func NewMessageBusTransactor

func NewMessageBusTransactor(address common.Address, transactor bind.ContractTransactor) (*MessageBusTransactor, error)

NewMessageBusTransactor creates a new write-only instance of MessageBus, bound to a specific deployed contract.

func (*MessageBusTransactor) Fallback

func (_MessageBus *MessageBusTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MessageBusTransactor) Initialize added in v0.28.0

func (_MessageBus *MessageBusTransactor) Initialize(opts *bind.TransactOpts, caller common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address caller) returns()

func (*MessageBusTransactor) PublishMessage

func (_MessageBus *MessageBusTransactor) PublishMessage(opts *bind.TransactOpts, nonce uint32, topic uint32, payload []byte, consistencyLevel uint8) (*types.Transaction, error)

PublishMessage is a paid mutator transaction binding the contract method 0xb1454caa.

Solidity: function publishMessage(uint32 nonce, uint32 topic, bytes payload, uint8 consistencyLevel) returns(uint64 sequence)

func (*MessageBusTransactor) Receive

func (_MessageBus *MessageBusTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MessageBusTransactor) ReceiveValueFromL2

func (_MessageBus *MessageBusTransactor) ReceiveValueFromL2(opts *bind.TransactOpts, receiver common.Address, amount *big.Int) (*types.Transaction, error)

ReceiveValueFromL2 is a paid mutator transaction binding the contract method 0x99a3ad21.

Solidity: function receiveValueFromL2(address receiver, uint256 amount) returns()

func (*MessageBusTransactor) RenounceOwnership

func (_MessageBus *MessageBusTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*MessageBusTransactor) RetrieveAllFunds

func (_MessageBus *MessageBusTransactor) RetrieveAllFunds(opts *bind.TransactOpts, receiver common.Address) (*types.Transaction, error)

RetrieveAllFunds is a paid mutator transaction binding the contract method 0x36d2da90.

Solidity: function retrieveAllFunds(address receiver) returns()

func (*MessageBusTransactor) SendValueToL2

func (_MessageBus *MessageBusTransactor) SendValueToL2(opts *bind.TransactOpts, receiver common.Address, amount *big.Int) (*types.Transaction, error)

SendValueToL2 is a paid mutator transaction binding the contract method 0x346633fb.

Solidity: function sendValueToL2(address receiver, uint256 amount) payable returns()

func (*MessageBusTransactor) StoreCrossChainMessage

func (_MessageBus *MessageBusTransactor) StoreCrossChainMessage(opts *bind.TransactOpts, crossChainMessage StructsCrossChainMessage, finalAfterTimestamp *big.Int) (*types.Transaction, error)

StoreCrossChainMessage is a paid mutator transaction binding the contract method 0x9730886d.

Solidity: function storeCrossChainMessage((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage, uint256 finalAfterTimestamp) returns()

func (*MessageBusTransactor) TransferOwnership

func (_MessageBus *MessageBusTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type MessageBusTransactorRaw

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

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

func (*MessageBusTransactorRaw) Transact

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

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

func (*MessageBusTransactorRaw) Transfer

func (_MessageBus *MessageBusTransactorRaw) 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 MessageBusTransactorSession

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

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

func (*MessageBusTransactorSession) Fallback

func (_MessageBus *MessageBusTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MessageBusTransactorSession) Initialize added in v0.28.0

func (_MessageBus *MessageBusTransactorSession) Initialize(caller common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address caller) returns()

func (*MessageBusTransactorSession) PublishMessage

func (_MessageBus *MessageBusTransactorSession) PublishMessage(nonce uint32, topic uint32, payload []byte, consistencyLevel uint8) (*types.Transaction, error)

PublishMessage is a paid mutator transaction binding the contract method 0xb1454caa.

Solidity: function publishMessage(uint32 nonce, uint32 topic, bytes payload, uint8 consistencyLevel) returns(uint64 sequence)

func (*MessageBusTransactorSession) Receive

func (_MessageBus *MessageBusTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MessageBusTransactorSession) ReceiveValueFromL2

func (_MessageBus *MessageBusTransactorSession) ReceiveValueFromL2(receiver common.Address, amount *big.Int) (*types.Transaction, error)

ReceiveValueFromL2 is a paid mutator transaction binding the contract method 0x99a3ad21.

Solidity: function receiveValueFromL2(address receiver, uint256 amount) returns()

func (*MessageBusTransactorSession) RenounceOwnership

func (_MessageBus *MessageBusTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*MessageBusTransactorSession) RetrieveAllFunds

func (_MessageBus *MessageBusTransactorSession) RetrieveAllFunds(receiver common.Address) (*types.Transaction, error)

RetrieveAllFunds is a paid mutator transaction binding the contract method 0x36d2da90.

Solidity: function retrieveAllFunds(address receiver) returns()

func (*MessageBusTransactorSession) SendValueToL2

func (_MessageBus *MessageBusTransactorSession) SendValueToL2(receiver common.Address, amount *big.Int) (*types.Transaction, error)

SendValueToL2 is a paid mutator transaction binding the contract method 0x346633fb.

Solidity: function sendValueToL2(address receiver, uint256 amount) payable returns()

func (*MessageBusTransactorSession) StoreCrossChainMessage

func (_MessageBus *MessageBusTransactorSession) StoreCrossChainMessage(crossChainMessage StructsCrossChainMessage, finalAfterTimestamp *big.Int) (*types.Transaction, error)

StoreCrossChainMessage is a paid mutator transaction binding the contract method 0x9730886d.

Solidity: function storeCrossChainMessage((address,uint64,uint32,uint32,bytes,uint8) crossChainMessage, uint256 finalAfterTimestamp) returns()

func (*MessageBusTransactorSession) TransferOwnership

func (_MessageBus *MessageBusTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type MessageBusValueTransfer

type MessageBusValueTransfer struct {
	Sender   common.Address
	Receiver common.Address
	Amount   *big.Int
	Sequence uint64
	Raw      types.Log // Blockchain specific contextual infos
}

MessageBusValueTransfer represents a ValueTransfer event raised by the MessageBus contract.

type MessageBusValueTransferIterator

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

MessageBusValueTransferIterator is returned from FilterValueTransfer and is used to iterate over the raw logs and unpacked data for ValueTransfer events raised by the MessageBus contract.

func (*MessageBusValueTransferIterator) Close

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

func (*MessageBusValueTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StructsCrossChainMessage struct {
	Sender           common.Address
	Sequence         uint64
	Nonce            uint32
	Topic            uint32
	Payload          []byte
	ConsistencyLevel uint8
}

StructsCrossChainMessage 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