MerkleTreeMessageBus

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 MerkleTreeMessageBusABI = MerkleTreeMessageBusMetaData.ABI

MerkleTreeMessageBusABI is the input ABI used to generate the binding from. Deprecated: Use MerkleTreeMessageBusMetaData.ABI instead.

View Source
var MerkleTreeMessageBusBin = MerkleTreeMessageBusMetaData.Bin

MerkleTreeMessageBusBin is the compiled bytecode used for deploying new contracts. Deprecated: Use MerkleTreeMessageBusMetaData.Bin instead.

View Source
var MerkleTreeMessageBusMetaData = &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\":[{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"activationTime\",\"type\":\"uint256\"}],\"name\":\"addStateRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"}],\"name\":\"disableStateRoot\",\"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\":\"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\"},{\"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\":\"message\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"verifyMessageInclusion\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"internalType\":\"structStructs.ValueTransferMessage\",\"name\":\"message\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"verifyValueTransferInclusion\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x60806040523480156200001157600080fd5b506200001d336200002d565b620000276200009e565b62000152565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000ef5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146200014f5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b611ff580620001626000396000f3fe6080604052600436106100ec5760003560e01c80639730886d1161008a578063b6aed0cb11610059578063b6aed0cb1461031e578063c4d66de81461033e578063e138a8d21461035e578063f2fde38b1461037e57610160565b80639730886d1461029157806399a3ad21146102b1578063b1454caa146102d1578063b201246f146102fe57610160565b8063346633fb116100c6578063346633fb1461020457806336d2da9014610217578063715018a6146102375780638da5cb5b1461024c57610160565b80630fcfbd11146101815780630fe9188e146101b757806333a88c72146101d757610160565b36610160576040517f346633fb000000000000000000000000000000000000000000000000000000008152309063346633fb9034906101319033908390600401610ebc565b6000604051808303818588803b15801561014a57600080fd5b505af115801561015e573d6000803e3d6000fd5b005b60405162461bcd60e51b815260040161017890610f0b565b60405180910390fd5b34801561018d57600080fd5b506101a161019c366004610f36565b61039e565b6040516101ae9190610f71565b60405180910390f35b3480156101c357600080fd5b5061015e6101d2366004610f97565b6103fd565b3480156101e357600080fd5b506101f76101f2366004610f36565b610443565b6040516101ae9190610fc0565b61015e610212366004610fe2565b610495565b34801561022357600080fd5b5061015e61023236600461101f565b61051f565b34801561024357600080fd5b5061015e61059e565b34801561025857600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166040516101ae9190611040565b34801561029d57600080fd5b5061015e6102ac36600461104e565b6105b2565b3480156102bd57600080fd5b5061015e6102cc366004610fe2565b610727565b3480156102dd57600080fd5b506102f16102ec366004611107565b6107a7565b6040516101ae919061119b565b34801561030a57600080fd5b5061015e610319366004611209565b610800565b34801561032a57600080fd5b5061015e610339366004611279565b610901565b34801561034a57600080fd5b5061015e61035936600461101f565b610947565b34801561036a57600080fd5b5061015e61037936600461129b565b610a89565b34801561038a57600080fd5b5061015e61039936600461101f565b610bcc565b600080826040516020016103b291906114b8565b60408051601f198184030181529181528151602092830120600081815292839052912054909150806103f65760405162461bcd60e51b815260040161017890611507565b9392505050565b610405610c23565b60008181526003602052604081205490036104325760405162461bcd60e51b815260040161017890611549565b600090815260036020526040812055565b6000808260405160200161045791906114b8565b60408051601f198184030181529181528151602092830120600081815292839052912054909150801580159061048d5750428111155b949350505050565b6000341180156104a457508034145b6104c05760405162461bcd60e51b8152600401610178906115b1565b60006104cb33610c97565b9050826001600160a01b0316336001600160a01b03167f50c536ac33a920f00755865b831d17bf4cff0b2e0345f65b16d52bfc004068b634846040516105129291906115c1565b60405180910390a3505050565b610527610c23565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610574576040519150601f19603f3d011682016040523d82523d6000602084013e610579565b606091505b505090508061059a5760405162461bcd60e51b81526004016101789061160e565b5050565b6105a6610c23565b6105b06000610cf5565b565b60006105bf600130611634565b90506105f27f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806106195750336001600160a01b038216145b6106355760405162461bcd60e51b815260040161017890611689565b60006106418342611699565b905060008460405160200161065691906114b8565b60408051601f1981840301815291815281516020928301206000818152928390529120549091501561069a5760405162461bcd60e51b815260040161017890611704565b6000818152602081815260408220849055600191906106bb9088018861101f565b6001600160a01b0316815260208101919091526040016000908120906106e76080880160608901611714565b63ffffffff1681526020808201929092526040016000908120805460018101825590825291902086916004020161071e8282611b87565b50505050505050565b61072f610c23565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461077c576040519150601f19603f3d011682016040523d82523d6000602084013e610781565b606091505b50509050806107a25760405162461bcd60e51b81526004016101789061160e565b505050565b60006107b233610c97565b90507fb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937338288888888886040516107ef9796959493929190611b91565b60405180910390a195945050505050565b600081815260036020526040812054900361082d5760405162461bcd60e51b815260040161017890611c4c565b60008181526003602052604090205442101561085b5760405162461bcd60e51b815260040161017890611c98565b60008460405160200161086e9190611d1d565b604051602081830303815290604052805190602001206040516020016108949190611d5d565b6040516020818303038152906040528051906020012090506108de848484846040516020016108c39190611d7c565b60405160208183030381529060405280519060200120610d7e565b6108fa5760405162461bcd60e51b815260040161017890611de6565b5050505050565b610909610c23565b600082815260036020526040902054156109355760405162461bcd60e51b815260040161017890611e4e565b60009182526003602052604090912055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156109925750825b905060008267ffffffffffffffff1660011480156109af5750303b155b9050811580156109bd575080155b156109f4576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610a2857845468ff00000000000000001916680100000000000000001785555b610a3186610d96565b8315610a8157845468ff0000000000000000191685556040517fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290610a7890600190611e72565b60405180910390a15b505050505050565b6000818152600360205260408120549003610ab65760405162461bcd60e51b815260040161017890611c4c565b600081815260036020526040902054421015610ae45760405162461bcd60e51b815260040161017890611c98565b6000610af3602086018661101f565b610b036040870160208801611e80565b610b136060880160408901611714565b610b236080890160608a01611714565b610b3060808a018a611899565b610b4060c08c0160a08d01611ea1565b604051602001610b569796959493929190611b91565b604051602081830303815290604052805190602001209050600081604051602001610b819190611ef4565b604051602081830303815290604052805190602001209050610bb0858585846040516020016108c39190611d7c565b610a815760405162461bcd60e51b815260040161017890611f5c565b610bd4610c23565b6001600160a01b038116610c175760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101789190611040565b610c2081610cf5565b50565b33610c557f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146105b057336040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016101789190611040565b6001600160a01b0381166000908152600260205260408120805467ffffffffffffffff169160019190610cca8385611f6c565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550919050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff000000000000000000000000000000000000000081166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b600082610d8c868685610da7565b1495945050505050565b610d9e610df3565b610c2081610e5a565b600081815b84811015610dea57610dd682878784818110610dca57610dca611f90565b90506020020135610e62565b915080610de281611fa6565b915050610dac565b50949350505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff166105b0576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bd4610df3565b6000818310610e7e576000828152602084905260409020610e8d565b60008381526020839052604090205b90505b92915050565b60006001600160a01b038216610e90565b610eb081610e96565b82525050565b80610eb0565b60408101610eca8285610ea7565b6103f66020830184610eb6565b600b8152602081017f756e737570706f72746564000000000000000000000000000000000000000000815290505b60200190565b60208082528101610e9081610ed7565b600060c08284031215610f3057610f30600080fd5b50919050565b600060208284031215610f4b57610f4b600080fd5b813567ffffffffffffffff811115610f6557610f65600080fd5b61048d84828501610f1b565b60208101610e908284610eb6565b805b8114610c2057600080fd5b8035610e9081610f7f565b600060208284031215610fac57610fac600080fd5b600061048d8484610f8c565b801515610eb0565b60208101610e908284610fb8565b610f8181610e96565b8035610e9081610fce565b60008060408385031215610ff857610ff8600080fd5b60006110048585610fd7565b925050602061101585828601610f8c565b9150509250929050565b60006020828403121561103457611034600080fd5b600061048d8484610fd7565b60208101610e908284610ea7565b6000806040838503121561106457611064600080fd5b823567ffffffffffffffff81111561107e5761107e600080fd5b61100485828601610f1b565b63ffffffff8116610f81565b8035610e908161108a565b60008083601f8401126110b6576110b6600080fd5b50813567ffffffffffffffff8111156110d1576110d1600080fd5b6020830191508360018202830111156110ec576110ec600080fd5b9250929050565b60ff8116610f81565b8035610e90816110f3565b60008060008060006080868803121561112257611122600080fd5b600061112e8888611096565b955050602061113f88828901611096565b945050604086013567ffffffffffffffff81111561115f5761115f600080fd5b61116b888289016110a1565b9350935050606061117e888289016110fc565b9150509295509295909350565b67ffffffffffffffff8116610eb0565b60208101610e90828461118b565b600060808284031215610f3057610f30600080fd5b60008083601f8401126111d3576111d3600080fd5b50813567ffffffffffffffff8111156111ee576111ee600080fd5b6020830191508360208202830111156110ec576110ec600080fd5b60008060008060c0858703121561122257611222600080fd5b600061122e87876111a9565b945050608085013567ffffffffffffffff81111561124e5761124e600080fd5b61125a878288016111be565b935093505060a061126d87828801610f8c565b91505092959194509250565b6000806040838503121561128f5761128f600080fd5b60006110048585610f8c565b600080600080606085870312156112b4576112b4600080fd5b843567ffffffffffffffff8111156112ce576112ce600080fd5b6112da87828801610f1b565b945050602085013567ffffffffffffffff8111156112fa576112fa600080fd5b611306878288016111be565b9350935050604061126d87828801610f8c565b506000610e906020830183610fd7565b67ffffffffffffffff8116610f81565b8035610e9081611329565b506000610e906020830183611339565b506000610e906020830183611096565b63ffffffff8116610eb0565b6000808335601e193685900301811261138b5761138b600080fd5b830160208101925035905067ffffffffffffffff8111156113ae576113ae600080fd5b368190038213156110ec576110ec600080fd5b82818337506000910152565b8183526020830192506113e18284836113c1565b50601f01601f19160190565b506000610e9060208301836110fc565b60ff8116610eb0565b600060c083016114168380611319565b6114208582610ea7565b5061142e6020840184611344565b61143b602086018261118b565b506114496040840184611354565b6114566040860182611364565b506114646060840184611354565b6114716060860182611364565b5061147f6080840184611370565b85830360808701526114928382846113cd565b925050506114a360a08401846113ed565b6114b060a08601826113fd565b509392505050565b60208082528101610e8d8184611406565b60218152602081017f54686973206d65737361676520776173206e65766572207375626d69747465648152601760f91b602082015290505b60400190565b60208082528101610e90816114c9565b601a8152602081017f537461746520726f6f7420646f6573206e6f742065786973742e00000000000081529050610f05565b60208082528101610e9081611517565b60308152602081017f417474656d7074696e6720746f2073656e642076616c756520776974686f757481527f2070726f766964696e672045746865720000000000000000000000000000000060208201529050611501565b60208082528101610e9081611559565b604081016115cf8285610eb6565b6103f6602083018461118b565b60148152602081017f6661696c65642073656e64696e672076616c756500000000000000000000000081529050610f05565b60208082528101610e90816115dc565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03918216919081169082820390811115610e9057610e9061161e565b60118152602081017f4e6f74206f776e6572206f722073656c6600000000000000000000000000000081529050610f05565b60208082528101610e9081611657565b80820180821115610e9057610e9061161e565b60218152602081017f4d657373616765207375626d6974746564206d6f7265207468616e206f6e636581527f210000000000000000000000000000000000000000000000000000000000000060208201529050611501565b60208082528101610e90816116ac565b60006020828403121561172957611729600080fd5b600061048d8484611096565b60008135610e9081610fce565b60006001600160a01b03835b81169019929092169190911792915050565b6000610e906001600160a01b038316611777565b90565b6001600160a01b031690565b6000610e9082611760565b6000610e9082611783565b6117a28261178e565b6117ad818354611742565b8255505050565b60008135610e9081611329565b60007bffffffffffffffff000000000000000000000000000000000000000061174e8460a01b90565b6000610e9067ffffffffffffffff83165b67ffffffffffffffff1690565b611811826117ea565b6117ad8183546117c1565b60008135610e908161108a565b60007fffffffff0000000000000000000000000000000000000000000000000000000061174e8460e01b90565b600063ffffffff8216610e90565b61186d82611856565b6117ad818354611829565b600063ffffffff8361174e565b61188e82611856565b6117ad818354611878565b6000808335601e19368590030181126118b4576118b4600080fd5b8301915050803567ffffffffffffffff8111156118d3576118d3600080fd5b6020820191506001810236038213156110ec576110ec600080fd5b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b60028104600182168061192e57607f821691505b602082108103610f3057610f30611904565b6000610e906117748381565b61195583611940565b815460001960089490940293841b1916921b91909117905550565b60006107a281848461194c565b8181101561059a57611990600082611970565b60010161197d565b601f8211156107a2576000818152602090206020601f850104810160208510156119bf5750805b6108fa6020601f86010483018261197d565b8267ffffffffffffffff8111156119ea576119ea6118ee565b6119f4825461191a565b6119ff828285611998565b506000601f821160018114611a345760008315611a1c5750848201355b600019600885021c1981166002850217855550610a81565b600084815260209020601f19841690835b82811015611a655787850135825560209485019460019092019101611a45565b5084821015611a8257600019601f86166008021c19848801351681555b5050505060020260010190555050565b6107a28383836119d1565b60008135610e90816110f3565b600060ff8361174e565b600060ff8216610e90565b611ac882611ab4565b6117ad818354611aaa565b808280611adf81611735565b9050611aeb8184611799565b50506020830180611afb826117b4565b9050611b078184611808565b50506040830180611b178261181c565b9050611b238184611864565b505050600181016060830180611b388261181c565b9050611b448184611885565b5050506002810160808301611b598185611899565b9150611b66828285611a92565b5050506003810160a0830180611b7b82611a9d565b90506108fa8184611abf565b61059a8282611ad3565b60c08101611b9f828a610ea7565b611bac602083018961118b565b611bb96040830188611364565b611bc66060830187611364565b8181036080830152611bd98185876113cd565b9050611be860a08301846113fd565b98975050505050505050565b602a8152602081017f526f6f74206973206e6f74207075626c6973686564206f6e2074686973206d6581527f7373616765206275732e0000000000000000000000000000000000000000000060208201529050611501565b60208082528101610e9081611bf4565b60218152602081017f526f6f74206973206e6f7420636f6e736964657265642066696e616c207965748152601760f91b60208201529050611501565b60208082528101610e9081611c5c565b506000610e906020830183610f8c565b611cc28180611319565b611ccc8382610ea7565b50611cda6020820182611319565b611ce76020840182610ea7565b50611cf56040820182611ca8565b611d026040840182610eb6565b50611d106060820182611344565b6107a2606084018261118b565b60808101610e908284611cb8565b60018152602081017f760000000000000000000000000000000000000000000000000000000000000081529050610f05565b60408082528101611d6d81611d2b565b9050610e906020830184610eb6565b611d868183610eb6565b602001919050565b60338152602081017f496e76616c696420696e636c7573696f6e2070726f6f6620666f722076616c7581527f65207472616e73666572206d6573736167652e0000000000000000000000000060208201529050611501565b60208082528101610e9081611d8e565b60258152602081017f526f6f7420616c726561647920616464656420746f20746865206d657373616781527f652062757300000000000000000000000000000000000000000000000000000060208201529050611501565b60208082528101610e9081611df6565b6000610e90826117fb565b610eb081611e5e565b60208101610e908284611e69565b600060208284031215611e9557611e95600080fd5b600061048d8484611339565b600060208284031215611eb657611eb6600080fd5b600061048d84846110fc565b60018152602081017f6d0000000000000000000000000000000000000000000000000000000000000081529050610f05565b60408082528101611d6d81611ec2565b60308152602081017f496e76616c696420696e636c7573696f6e2070726f6f6620666f722063726f7381527f7320636861696e206d6573736167652e0000000000000000000000000000000060208201529050611501565b60208082528101610e9081611f04565b67ffffffffffffffff918216919081169082820190811115610e9057610e9061161e565b634e487b7160e01b600052603260045260246000fd5b600060018201611fb857611fb861161e565b506001019056fea2646970667358221220b765f1dcb71fc1a477b68645e3b185262574a58a520c2f06b8b8758eaac24c8364736f6c63430008150033",
}

MerkleTreeMessageBusMetaData contains all meta data concerning the MerkleTreeMessageBus contract.

Functions

This section is empty.

Types

type MerkleTreeMessageBus

type MerkleTreeMessageBus struct {
	MerkleTreeMessageBusCaller     // Read-only binding to the contract
	MerkleTreeMessageBusTransactor // Write-only binding to the contract
	MerkleTreeMessageBusFilterer   // Log filterer for contract events
}

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

func DeployMerkleTreeMessageBus

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

DeployMerkleTreeMessageBus deploys a new Ethereum contract, binding an instance of MerkleTreeMessageBus to it.

func NewMerkleTreeMessageBus

func NewMerkleTreeMessageBus(address common.Address, backend bind.ContractBackend) (*MerkleTreeMessageBus, error)

NewMerkleTreeMessageBus creates a new instance of MerkleTreeMessageBus, bound to a specific deployed contract.

type MerkleTreeMessageBusCaller

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

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

func NewMerkleTreeMessageBusCaller

func NewMerkleTreeMessageBusCaller(address common.Address, caller bind.ContractCaller) (*MerkleTreeMessageBusCaller, error)

NewMerkleTreeMessageBusCaller creates a new read-only instance of MerkleTreeMessageBus, bound to a specific deployed contract.

func (*MerkleTreeMessageBusCaller) GetMessageTimeOfFinality

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCaller) 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 (*MerkleTreeMessageBusCaller) Owner

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCaller) 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 (*MerkleTreeMessageBusCaller) VerifyMessageFinalized

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

func (*MerkleTreeMessageBusCaller) VerifyMessageInclusion

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCaller) VerifyMessageInclusion(opts *bind.CallOpts, message StructsCrossChainMessage, proof [][32]byte, root [32]byte) error

VerifyMessageInclusion is a free data retrieval call binding the contract method 0xe138a8d2.

Solidity: function verifyMessageInclusion((address,uint64,uint32,uint32,bytes,uint8) message, bytes32[] proof, bytes32 root) view returns()

func (*MerkleTreeMessageBusCaller) VerifyValueTransferInclusion

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCaller) VerifyValueTransferInclusion(opts *bind.CallOpts, message StructsValueTransferMessage, proof [][32]byte, root [32]byte) error

VerifyValueTransferInclusion is a free data retrieval call binding the contract method 0xb201246f.

Solidity: function verifyValueTransferInclusion((address,address,uint256,uint64) message, bytes32[] proof, bytes32 root) view returns()

type MerkleTreeMessageBusCallerRaw

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

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

func (*MerkleTreeMessageBusCallerRaw) Call

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCallerRaw) 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 MerkleTreeMessageBusCallerSession

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

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

func (*MerkleTreeMessageBusCallerSession) GetMessageTimeOfFinality

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCallerSession) 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 (*MerkleTreeMessageBusCallerSession) Owner

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*MerkleTreeMessageBusCallerSession) VerifyMessageFinalized

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

func (*MerkleTreeMessageBusCallerSession) VerifyMessageInclusion

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCallerSession) VerifyMessageInclusion(message StructsCrossChainMessage, proof [][32]byte, root [32]byte) error

VerifyMessageInclusion is a free data retrieval call binding the contract method 0xe138a8d2.

Solidity: function verifyMessageInclusion((address,uint64,uint32,uint32,bytes,uint8) message, bytes32[] proof, bytes32 root) view returns()

func (*MerkleTreeMessageBusCallerSession) VerifyValueTransferInclusion

func (_MerkleTreeMessageBus *MerkleTreeMessageBusCallerSession) VerifyValueTransferInclusion(message StructsValueTransferMessage, proof [][32]byte, root [32]byte) error

VerifyValueTransferInclusion is a free data retrieval call binding the contract method 0xb201246f.

Solidity: function verifyValueTransferInclusion((address,address,uint256,uint64) message, bytes32[] proof, bytes32 root) view returns()

type MerkleTreeMessageBusFilterer

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

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

func NewMerkleTreeMessageBusFilterer

func NewMerkleTreeMessageBusFilterer(address common.Address, filterer bind.ContractFilterer) (*MerkleTreeMessageBusFilterer, error)

NewMerkleTreeMessageBusFilterer creates a new log filterer instance of MerkleTreeMessageBus, bound to a specific deployed contract.

func (*MerkleTreeMessageBusFilterer) FilterInitialized added in v0.28.0

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) FilterInitialized(opts *bind.FilterOpts) (*MerkleTreeMessageBusInitializedIterator, error)

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

Solidity: event Initialized(uint64 version)

func (*MerkleTreeMessageBusFilterer) FilterLogMessagePublished

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) FilterLogMessagePublished(opts *bind.FilterOpts) (*MerkleTreeMessageBusLogMessagePublishedIterator, 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 (*MerkleTreeMessageBusFilterer) FilterOwnershipTransferred

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MerkleTreeMessageBusOwnershipTransferredIterator, error)

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

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

func (*MerkleTreeMessageBusFilterer) FilterValueTransfer

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) FilterValueTransfer(opts *bind.FilterOpts, sender []common.Address, receiver []common.Address) (*MerkleTreeMessageBusValueTransferIterator, 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 (*MerkleTreeMessageBusFilterer) ParseInitialized added in v0.28.0

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) ParseInitialized(log types.Log) (*MerkleTreeMessageBusInitialized, error)

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

Solidity: event Initialized(uint64 version)

func (*MerkleTreeMessageBusFilterer) ParseLogMessagePublished

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) ParseLogMessagePublished(log types.Log) (*MerkleTreeMessageBusLogMessagePublished, 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 (*MerkleTreeMessageBusFilterer) ParseOwnershipTransferred

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) ParseOwnershipTransferred(log types.Log) (*MerkleTreeMessageBusOwnershipTransferred, error)

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

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

func (*MerkleTreeMessageBusFilterer) ParseValueTransfer

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) ParseValueTransfer(log types.Log) (*MerkleTreeMessageBusValueTransfer, 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 (*MerkleTreeMessageBusFilterer) WatchInitialized added in v0.28.0

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *MerkleTreeMessageBusInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint64 version)

func (*MerkleTreeMessageBusFilterer) WatchLogMessagePublished

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) WatchLogMessagePublished(opts *bind.WatchOpts, sink chan<- *MerkleTreeMessageBusLogMessagePublished) (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 (*MerkleTreeMessageBusFilterer) WatchOwnershipTransferred

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MerkleTreeMessageBusOwnershipTransferred, 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 (*MerkleTreeMessageBusFilterer) WatchValueTransfer

func (_MerkleTreeMessageBus *MerkleTreeMessageBusFilterer) WatchValueTransfer(opts *bind.WatchOpts, sink chan<- *MerkleTreeMessageBusValueTransfer, 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 MerkleTreeMessageBusInitialized added in v0.28.0

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

MerkleTreeMessageBusInitialized represents a Initialized event raised by the MerkleTreeMessageBus contract.

type MerkleTreeMessageBusInitializedIterator added in v0.28.0

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

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

func (*MerkleTreeMessageBusInitializedIterator) Close added in v0.28.0

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

func (*MerkleTreeMessageBusInitializedIterator) Error added in v0.28.0

Error returns any retrieval or parsing error occurred during filtering.

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

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

MerkleTreeMessageBusLogMessagePublished represents a LogMessagePublished event raised by the MerkleTreeMessageBus contract.

type MerkleTreeMessageBusLogMessagePublishedIterator

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

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

func (*MerkleTreeMessageBusLogMessagePublishedIterator) Close

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

func (*MerkleTreeMessageBusLogMessagePublishedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

MerkleTreeMessageBusOwnershipTransferred represents a OwnershipTransferred event raised by the MerkleTreeMessageBus contract.

type MerkleTreeMessageBusOwnershipTransferredIterator

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

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

func (*MerkleTreeMessageBusOwnershipTransferredIterator) Close

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

func (*MerkleTreeMessageBusOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*MerkleTreeMessageBusRaw) Call

func (_MerkleTreeMessageBus *MerkleTreeMessageBusRaw) 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 (*MerkleTreeMessageBusRaw) Transact

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

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

func (*MerkleTreeMessageBusRaw) Transfer

func (_MerkleTreeMessageBus *MerkleTreeMessageBusRaw) 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 MerkleTreeMessageBusSession

type MerkleTreeMessageBusSession struct {
	Contract     *MerkleTreeMessageBus // 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
}

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

func (*MerkleTreeMessageBusSession) AddStateRoot

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) AddStateRoot(stateRoot [32]byte, activationTime *big.Int) (*types.Transaction, error)

AddStateRoot is a paid mutator transaction binding the contract method 0xb6aed0cb.

Solidity: function addStateRoot(bytes32 stateRoot, uint256 activationTime) returns()

func (*MerkleTreeMessageBusSession) DisableStateRoot

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) DisableStateRoot(stateRoot [32]byte) (*types.Transaction, error)

DisableStateRoot is a paid mutator transaction binding the contract method 0x0fe9188e.

Solidity: function disableStateRoot(bytes32 stateRoot) returns()

func (*MerkleTreeMessageBusSession) Fallback

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*MerkleTreeMessageBusSession) GetMessageTimeOfFinality

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) Initialize added in v0.28.0

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) Owner

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*MerkleTreeMessageBusSession) PublishMessage

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) Receive

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*MerkleTreeMessageBusSession) ReceiveValueFromL2

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) RenounceOwnership

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*MerkleTreeMessageBusSession) RetrieveAllFunds

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) SendValueToL2

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) StoreCrossChainMessage

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) TransferOwnership

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) 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 (*MerkleTreeMessageBusSession) VerifyMessageFinalized

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

func (*MerkleTreeMessageBusSession) VerifyMessageInclusion

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) VerifyMessageInclusion(message StructsCrossChainMessage, proof [][32]byte, root [32]byte) error

VerifyMessageInclusion is a free data retrieval call binding the contract method 0xe138a8d2.

Solidity: function verifyMessageInclusion((address,uint64,uint32,uint32,bytes,uint8) message, bytes32[] proof, bytes32 root) view returns()

func (*MerkleTreeMessageBusSession) VerifyValueTransferInclusion

func (_MerkleTreeMessageBus *MerkleTreeMessageBusSession) VerifyValueTransferInclusion(message StructsValueTransferMessage, proof [][32]byte, root [32]byte) error

VerifyValueTransferInclusion is a free data retrieval call binding the contract method 0xb201246f.

Solidity: function verifyValueTransferInclusion((address,address,uint256,uint64) message, bytes32[] proof, bytes32 root) view returns()

type MerkleTreeMessageBusTransactor

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

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

func NewMerkleTreeMessageBusTransactor

func NewMerkleTreeMessageBusTransactor(address common.Address, transactor bind.ContractTransactor) (*MerkleTreeMessageBusTransactor, error)

NewMerkleTreeMessageBusTransactor creates a new write-only instance of MerkleTreeMessageBus, bound to a specific deployed contract.

func (*MerkleTreeMessageBusTransactor) AddStateRoot

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) AddStateRoot(opts *bind.TransactOpts, stateRoot [32]byte, activationTime *big.Int) (*types.Transaction, error)

AddStateRoot is a paid mutator transaction binding the contract method 0xb6aed0cb.

Solidity: function addStateRoot(bytes32 stateRoot, uint256 activationTime) returns()

func (*MerkleTreeMessageBusTransactor) DisableStateRoot

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) DisableStateRoot(opts *bind.TransactOpts, stateRoot [32]byte) (*types.Transaction, error)

DisableStateRoot is a paid mutator transaction binding the contract method 0x0fe9188e.

Solidity: function disableStateRoot(bytes32 stateRoot) returns()

func (*MerkleTreeMessageBusTransactor) Fallback

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 (*MerkleTreeMessageBusTransactor) Initialize added in v0.28.0

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 (*MerkleTreeMessageBusTransactor) PublishMessage

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 (*MerkleTreeMessageBusTransactor) Receive

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*MerkleTreeMessageBusTransactor) ReceiveValueFromL2

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 (*MerkleTreeMessageBusTransactor) RenounceOwnership

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*MerkleTreeMessageBusTransactor) RetrieveAllFunds

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 (*MerkleTreeMessageBusTransactor) SendValueToL2

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 (*MerkleTreeMessageBusTransactor) StoreCrossChainMessage

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 (*MerkleTreeMessageBusTransactor) TransferOwnership

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactor) 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 MerkleTreeMessageBusTransactorRaw

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

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

func (*MerkleTreeMessageBusTransactorRaw) Transact

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

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

func (*MerkleTreeMessageBusTransactorRaw) Transfer

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorRaw) 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 MerkleTreeMessageBusTransactorSession

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

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

func (*MerkleTreeMessageBusTransactorSession) AddStateRoot

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) AddStateRoot(stateRoot [32]byte, activationTime *big.Int) (*types.Transaction, error)

AddStateRoot is a paid mutator transaction binding the contract method 0xb6aed0cb.

Solidity: function addStateRoot(bytes32 stateRoot, uint256 activationTime) returns()

func (*MerkleTreeMessageBusTransactorSession) DisableStateRoot

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) DisableStateRoot(stateRoot [32]byte) (*types.Transaction, error)

DisableStateRoot is a paid mutator transaction binding the contract method 0x0fe9188e.

Solidity: function disableStateRoot(bytes32 stateRoot) returns()

func (*MerkleTreeMessageBusTransactorSession) Fallback

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*MerkleTreeMessageBusTransactorSession) Initialize added in v0.28.0

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) 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 (*MerkleTreeMessageBusTransactorSession) PublishMessage

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) 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 (*MerkleTreeMessageBusTransactorSession) Receive

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*MerkleTreeMessageBusTransactorSession) ReceiveValueFromL2

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) 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 (*MerkleTreeMessageBusTransactorSession) RenounceOwnership

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*MerkleTreeMessageBusTransactorSession) RetrieveAllFunds

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) 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 (*MerkleTreeMessageBusTransactorSession) SendValueToL2

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) 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 (*MerkleTreeMessageBusTransactorSession) StoreCrossChainMessage

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) 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 (*MerkleTreeMessageBusTransactorSession) TransferOwnership

func (_MerkleTreeMessageBus *MerkleTreeMessageBusTransactorSession) 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 MerkleTreeMessageBusValueTransfer

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

MerkleTreeMessageBusValueTransfer represents a ValueTransfer event raised by the MerkleTreeMessageBus contract.

type MerkleTreeMessageBusValueTransferIterator

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

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

func (*MerkleTreeMessageBusValueTransferIterator) Close

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

func (*MerkleTreeMessageBusValueTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StructsValueTransferMessage

type StructsValueTransferMessage struct {
	Sender   common.Address
	Receiver common.Address
	Amount   *big.Int
	Sequence uint64
}

StructsValueTransferMessage 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