Documentation ¶
Index ¶
- Variables
- type CrossChainMessenger
- type CrossChainMessengerCaller
- func (_CrossChainMessenger *CrossChainMessengerCaller) CrossChainSender(opts *bind.CallOpts) (common.Address, error)
- func (_CrossChainMessenger *CrossChainMessengerCaller) EncodeCall(opts *bind.CallOpts, target common.Address, payload []byte) ([]byte, error)
- func (_CrossChainMessenger *CrossChainMessengerCaller) MessageBus(opts *bind.CallOpts) (common.Address, error)
- type CrossChainMessengerCallerRaw
- type CrossChainMessengerCallerSession
- func (_CrossChainMessenger *CrossChainMessengerCallerSession) CrossChainSender() (common.Address, error)
- func (_CrossChainMessenger *CrossChainMessengerCallerSession) EncodeCall(target common.Address, payload []byte) ([]byte, error)
- func (_CrossChainMessenger *CrossChainMessengerCallerSession) MessageBus() (common.Address, error)
- type CrossChainMessengerFilterer
- type CrossChainMessengerRaw
- func (_CrossChainMessenger *CrossChainMessengerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_CrossChainMessenger *CrossChainMessengerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_CrossChainMessenger *CrossChainMessengerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CrossChainMessengerSession
- func (_CrossChainMessenger *CrossChainMessengerSession) CrossChainSender() (common.Address, error)
- func (_CrossChainMessenger *CrossChainMessengerSession) EncodeCall(target common.Address, payload []byte) ([]byte, error)
- func (_CrossChainMessenger *CrossChainMessengerSession) Initialize(messageBusAddr common.Address) (*types.Transaction, error)
- func (_CrossChainMessenger *CrossChainMessengerSession) MessageBus() (common.Address, error)
- func (_CrossChainMessenger *CrossChainMessengerSession) RelayMessage(message StructsCrossChainMessage) (*types.Transaction, error)
- type CrossChainMessengerTransactor
- func (_CrossChainMessenger *CrossChainMessengerTransactor) Initialize(opts *bind.TransactOpts, messageBusAddr common.Address) (*types.Transaction, error)
- func (_CrossChainMessenger *CrossChainMessengerTransactor) RelayMessage(opts *bind.TransactOpts, message StructsCrossChainMessage) (*types.Transaction, error)
- type CrossChainMessengerTransactorRaw
- type CrossChainMessengerTransactorSession
- type StructsCrossChainMessage
Constants ¶
This section is empty.
Variables ¶
var CrossChainMessengerABI = CrossChainMessengerMetaData.ABI
CrossChainMessengerABI is the input ABI used to generate the binding from. Deprecated: Use CrossChainMessengerMetaData.ABI instead.
var CrossChainMessengerBin = CrossChainMessengerMetaData.Bin
CrossChainMessengerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use CrossChainMessengerMetaData.Bin instead.
var CrossChainMessengerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"error\",\"type\":\"bytes\"}],\"name\":\"CallFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"crossChainSender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"}],\"name\":\"encodeCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"messageBusAddr\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"messageBus\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\"}],\"name\":\"relayMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b50610a61806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80639b7cf1ee116100505780639b7cf1ee146100c0578063a1a227fa146100d5578063c4d66de8146100ec57600080fd5b80635b76f28b1461006c57806363012de514610095575b600080fd5b61007f61007a36600461057c565b6100ff565b60405161008c919061065b565b60405180910390f35b6001546100a8906001600160a01b031681565b6040516001600160a01b03909116815260200161008c565b6100d36100ce366004610675565b61017f565b005b6000546201000090046001600160a01b03166100a8565b6100d36100fa3660046106b0565b6102b1565b60606040518060600160405280856001600160a01b0316815260200184848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509385525050506020918201526040516101679291016106cb565b60405160208183030381529060405290509392505050565b610188816103cf565b61019560208201826106b0565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905560006101d16080830183610710565b8101906101de91906107e7565b905060008082600001516001600160a01b03165a846020015160405161020491906108bb565b60006040518083038160008787f1925050503d8060008114610242576040519150601f19603f3d011682016040523d82523d6000602084013e610247565b606091505b50915091508161028e57806040517fa5fa8d2b000000000000000000000000000000000000000000000000000000008152600401610285919061065b565b60405180910390fd5b50506001805473ffffffffffffffffffffffffffffffffffffffff191690555050565b600054610100900460ff166102cc5760005460ff16156102d0565b303b155b6103425760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610285565b600054610100900460ff16158015610364576000805461ffff19166101011790555b600080547fffffffffffffffffffff0000000000000000000000000000000000000000ffff16620100006001600160a01b038516021790556001805473ffffffffffffffffffffffffffffffffffffffff1916905580156103cb576000805461ff00191690555b5050565b6000546040517f33a88c72000000000000000000000000000000000000000000000000000000008152620100009091046001600160a01b0316906333a88c729061041d908490600401610925565b60206040518083038186803b15801561043557600080fd5b505afa158015610449573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046d9190610a09565b6104b95760405162461bcd60e51b815260206004820152601f60248201527f4d657373616765206e6f7420666f756e64206f722066696e616c697a65642e006044820152606401610285565b6000816040516020016104cc9190610925565b60408051601f1981840301815291815281516020928301206000818152600290935291205490915060ff16156105445760405162461bcd60e51b815260206004820152601960248201527f4d65737361676520616c726561647920636f6e73756d65642e000000000000006044820152606401610285565b6000908152600260205260409020805460ff1916600117905550565b80356001600160a01b038116811461057757600080fd5b919050565b60008060006040848603121561059157600080fd5b61059a84610560565b9250602084013567ffffffffffffffff808211156105b757600080fd5b818601915086601f8301126105cb57600080fd5b8135818111156105da57600080fd5b8760208285010111156105ec57600080fd5b6020830194508093505050509250925092565b60005b8381101561061a578181015183820152602001610602565b83811115610629576000848401525b50505050565b600081518084526106478160208601602086016105ff565b601f01601f19169290920160200192915050565b60208152600061066e602083018461062f565b9392505050565b60006020828403121561068757600080fd5b813567ffffffffffffffff81111561069e57600080fd5b820160c0818503121561066e57600080fd5b6000602082840312156106c257600080fd5b61066e82610560565b602081526001600160a01b03825116602082015260006020830151606060408401526106fa608084018261062f565b9050604084015160608401528091505092915050565b6000808335601e1984360301811261072757600080fd5b83018035915067ffffffffffffffff82111561074257600080fd5b60200191503681900382131561075757600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156107b0576107b061075e565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156107df576107df61075e565b604052919050565b600060208083850312156107fa57600080fd5b823567ffffffffffffffff8082111561081257600080fd5b908401906060828703121561082657600080fd5b61082e61078d565b61083783610560565b8152838301358281111561084a57600080fd5b8301601f8101881361085b57600080fd5b80358381111561086d5761086d61075e565b61087f601f8201601f191687016107b6565b9350808452888682840101111561089557600080fd5b808683018786013760009084018601525092830152604090810135908201529392505050565b600082516108cd8184602087016105ff565b9190910192915050565b803563ffffffff8116811461057757600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b803560ff8116811461057757600080fd5b602081526001600160a01b0361093a83610560565b1660208201526000602083013567ffffffffffffffff80821680831461095f57600080fd5b80604086015250610972604086016108d7565b915063ffffffff80831660608601528061098e606088016108d7565b1660808601525060808501359150601e198536030182126109ae57600080fd5b908401908135818111156109c157600080fd5b8036038613156109d057600080fd5b60c060a08601526109e860e0860182602086016108eb565b925050506109f860a08501610914565b60ff811660c0850152509392505050565b600060208284031215610a1b57600080fd5b8151801515811461066e57600080fdfea2646970667358221220bc0279585a1702d1ea9f6fb2a48e0fb555f801bbc52b59154651989fb7dea11364736f6c63430008090033",
}
CrossChainMessengerMetaData contains all meta data concerning the CrossChainMessenger contract.
Functions ¶
This section is empty.
Types ¶
type CrossChainMessenger ¶
type CrossChainMessenger struct { CrossChainMessengerCaller // Read-only binding to the contract CrossChainMessengerTransactor // Write-only binding to the contract CrossChainMessengerFilterer // Log filterer for contract events }
CrossChainMessenger is an auto generated Go binding around an Ethereum contract.
func DeployCrossChainMessenger ¶
func DeployCrossChainMessenger(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *CrossChainMessenger, error)
DeployCrossChainMessenger deploys a new Ethereum contract, binding an instance of CrossChainMessenger to it.
func NewCrossChainMessenger ¶
func NewCrossChainMessenger(address common.Address, backend bind.ContractBackend) (*CrossChainMessenger, error)
NewCrossChainMessenger creates a new instance of CrossChainMessenger, bound to a specific deployed contract.
type CrossChainMessengerCaller ¶
type CrossChainMessengerCaller struct {
// contains filtered or unexported fields
}
CrossChainMessengerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCrossChainMessengerCaller ¶
func NewCrossChainMessengerCaller(address common.Address, caller bind.ContractCaller) (*CrossChainMessengerCaller, error)
NewCrossChainMessengerCaller creates a new read-only instance of CrossChainMessenger, bound to a specific deployed contract.
func (*CrossChainMessengerCaller) CrossChainSender ¶
func (_CrossChainMessenger *CrossChainMessengerCaller) CrossChainSender(opts *bind.CallOpts) (common.Address, error)
CrossChainSender is a free data retrieval call binding the contract method 0x63012de5.
Solidity: function crossChainSender() view returns(address)
func (*CrossChainMessengerCaller) EncodeCall ¶
func (_CrossChainMessenger *CrossChainMessengerCaller) EncodeCall(opts *bind.CallOpts, target common.Address, payload []byte) ([]byte, error)
EncodeCall is a free data retrieval call binding the contract method 0x5b76f28b.
Solidity: function encodeCall(address target, bytes payload) pure returns(bytes)
func (*CrossChainMessengerCaller) MessageBus ¶
func (_CrossChainMessenger *CrossChainMessengerCaller) MessageBus(opts *bind.CallOpts) (common.Address, error)
MessageBus is a free data retrieval call binding the contract method 0xa1a227fa.
Solidity: function messageBus() view returns(address)
type CrossChainMessengerCallerRaw ¶
type CrossChainMessengerCallerRaw struct {
Contract *CrossChainMessengerCaller // Generic read-only contract binding to access the raw methods on
}
CrossChainMessengerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CrossChainMessengerCallerRaw) Call ¶
func (_CrossChainMessenger *CrossChainMessengerCallerRaw) 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 CrossChainMessengerCallerSession ¶
type CrossChainMessengerCallerSession struct { Contract *CrossChainMessengerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CrossChainMessengerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*CrossChainMessengerCallerSession) CrossChainSender ¶
func (_CrossChainMessenger *CrossChainMessengerCallerSession) CrossChainSender() (common.Address, error)
CrossChainSender is a free data retrieval call binding the contract method 0x63012de5.
Solidity: function crossChainSender() view returns(address)
func (*CrossChainMessengerCallerSession) EncodeCall ¶
func (_CrossChainMessenger *CrossChainMessengerCallerSession) EncodeCall(target common.Address, payload []byte) ([]byte, error)
EncodeCall is a free data retrieval call binding the contract method 0x5b76f28b.
Solidity: function encodeCall(address target, bytes payload) pure returns(bytes)
func (*CrossChainMessengerCallerSession) MessageBus ¶
func (_CrossChainMessenger *CrossChainMessengerCallerSession) MessageBus() (common.Address, error)
MessageBus is a free data retrieval call binding the contract method 0xa1a227fa.
Solidity: function messageBus() view returns(address)
type CrossChainMessengerFilterer ¶
type CrossChainMessengerFilterer struct {
// contains filtered or unexported fields
}
CrossChainMessengerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCrossChainMessengerFilterer ¶
func NewCrossChainMessengerFilterer(address common.Address, filterer bind.ContractFilterer) (*CrossChainMessengerFilterer, error)
NewCrossChainMessengerFilterer creates a new log filterer instance of CrossChainMessenger, bound to a specific deployed contract.
type CrossChainMessengerRaw ¶
type CrossChainMessengerRaw struct {
Contract *CrossChainMessenger // Generic contract binding to access the raw methods on
}
CrossChainMessengerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CrossChainMessengerRaw) Call ¶
func (_CrossChainMessenger *CrossChainMessengerRaw) 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 (*CrossChainMessengerRaw) Transact ¶
func (_CrossChainMessenger *CrossChainMessengerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CrossChainMessengerRaw) Transfer ¶
func (_CrossChainMessenger *CrossChainMessengerRaw) 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 CrossChainMessengerSession ¶
type CrossChainMessengerSession struct { Contract *CrossChainMessenger // 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 }
CrossChainMessengerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CrossChainMessengerSession) CrossChainSender ¶
func (_CrossChainMessenger *CrossChainMessengerSession) CrossChainSender() (common.Address, error)
CrossChainSender is a free data retrieval call binding the contract method 0x63012de5.
Solidity: function crossChainSender() view returns(address)
func (*CrossChainMessengerSession) EncodeCall ¶
func (_CrossChainMessenger *CrossChainMessengerSession) EncodeCall(target common.Address, payload []byte) ([]byte, error)
EncodeCall is a free data retrieval call binding the contract method 0x5b76f28b.
Solidity: function encodeCall(address target, bytes payload) pure returns(bytes)
func (*CrossChainMessengerSession) Initialize ¶
func (_CrossChainMessenger *CrossChainMessengerSession) Initialize(messageBusAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address messageBusAddr) returns()
func (*CrossChainMessengerSession) MessageBus ¶
func (_CrossChainMessenger *CrossChainMessengerSession) MessageBus() (common.Address, error)
MessageBus is a free data retrieval call binding the contract method 0xa1a227fa.
Solidity: function messageBus() view returns(address)
func (*CrossChainMessengerSession) RelayMessage ¶
func (_CrossChainMessenger *CrossChainMessengerSession) RelayMessage(message StructsCrossChainMessage) (*types.Transaction, error)
RelayMessage is a paid mutator transaction binding the contract method 0x9b7cf1ee.
Solidity: function relayMessage((address,uint64,uint32,uint32,bytes,uint8) message) returns()
type CrossChainMessengerTransactor ¶
type CrossChainMessengerTransactor struct {
// contains filtered or unexported fields
}
CrossChainMessengerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCrossChainMessengerTransactor ¶
func NewCrossChainMessengerTransactor(address common.Address, transactor bind.ContractTransactor) (*CrossChainMessengerTransactor, error)
NewCrossChainMessengerTransactor creates a new write-only instance of CrossChainMessenger, bound to a specific deployed contract.
func (*CrossChainMessengerTransactor) Initialize ¶
func (_CrossChainMessenger *CrossChainMessengerTransactor) Initialize(opts *bind.TransactOpts, messageBusAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address messageBusAddr) returns()
func (*CrossChainMessengerTransactor) RelayMessage ¶
func (_CrossChainMessenger *CrossChainMessengerTransactor) RelayMessage(opts *bind.TransactOpts, message StructsCrossChainMessage) (*types.Transaction, error)
RelayMessage is a paid mutator transaction binding the contract method 0x9b7cf1ee.
Solidity: function relayMessage((address,uint64,uint32,uint32,bytes,uint8) message) returns()
type CrossChainMessengerTransactorRaw ¶
type CrossChainMessengerTransactorRaw struct {
Contract *CrossChainMessengerTransactor // Generic write-only contract binding to access the raw methods on
}
CrossChainMessengerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CrossChainMessengerTransactorRaw) Transact ¶
func (_CrossChainMessenger *CrossChainMessengerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CrossChainMessengerTransactorRaw) Transfer ¶
func (_CrossChainMessenger *CrossChainMessengerTransactorRaw) 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 CrossChainMessengerTransactorSession ¶
type CrossChainMessengerTransactorSession struct { Contract *CrossChainMessengerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CrossChainMessengerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CrossChainMessengerTransactorSession) Initialize ¶
func (_CrossChainMessenger *CrossChainMessengerTransactorSession) Initialize(messageBusAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address messageBusAddr) returns()
func (*CrossChainMessengerTransactorSession) RelayMessage ¶
func (_CrossChainMessenger *CrossChainMessengerTransactorSession) RelayMessage(message StructsCrossChainMessage) (*types.Transaction, error)
RelayMessage is a paid mutator transaction binding the contract method 0x9b7cf1ee.
Solidity: function relayMessage((address,uint64,uint32,uint32,bytes,uint8) message) returns()