Documentation ¶
Index ¶
- Variables
- type Router
- type RouterCaller
- type RouterCallerRaw
- type RouterCallerSession
- type RouterFilterer
- type RouterRaw
- func (_Router *RouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Router *RouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RouterSession
- func (_Router *RouterSession) MessageResult(txHash string) (*types.Transaction, error)
- func (_Router *RouterSession) Query(request []byte, resource string, namespace string) (*types.Transaction, error)
- func (_Router *RouterSession) SendMessage(message []byte, messageID uint64, namespace string) (*types.Transaction, error)
- type RouterTransactor
- func (_Router *RouterTransactor) MessageResult(opts *bind.TransactOpts, txHash string) (*types.Transaction, error)
- func (_Router *RouterTransactor) Query(opts *bind.TransactOpts, request []byte, resource string, namespace string) (*types.Transaction, error)
- func (_Router *RouterTransactor) SendMessage(opts *bind.TransactOpts, message []byte, messageID uint64, namespace string) (*types.Transaction, error)
- type RouterTransactorRaw
- type RouterTransactorSession
- func (_Router *RouterTransactorSession) MessageResult(txHash string) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) Query(request []byte, resource string, namespace string) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SendMessage(message []byte, messageID uint64, namespace string) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var RouterABI = RouterMetaData.ABI
RouterABI is the input ABI used to generate the binding from. Deprecated: Use RouterMetaData.ABI instead.
var RouterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"txHash\",\"type\":\"string\"}],\"name\":\"messageResult\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"request\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"resource\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"namespace\",\"type\":\"string\"}],\"name\":\"query\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"messageID\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"namespace\",\"type\":\"string\"}],\"name\":\"sendMessage\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
RouterMetaData contains all meta data concerning the Router contract.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { RouterCaller // Read-only binding to the contract RouterTransactor // Write-only binding to the contract RouterFilterer // Log filterer for contract events }
Router is an auto generated Go binding around an Ethereum contract.
type RouterCaller ¶
type RouterCaller struct {
// contains filtered or unexported fields
}
RouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRouterCaller ¶
func NewRouterCaller(address common.Address, caller bind.ContractCaller) (*RouterCaller, error)
NewRouterCaller creates a new read-only instance of Router, bound to a specific deployed contract.
type RouterCallerRaw ¶
type RouterCallerRaw struct {
Contract *RouterCaller // Generic read-only contract binding to access the raw methods on
}
RouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RouterCallerRaw) Call ¶
func (_Router *RouterCallerRaw) 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 RouterCallerSession ¶
type RouterCallerSession struct { Contract *RouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type RouterFilterer ¶
type RouterFilterer struct {
// contains filtered or unexported fields
}
RouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewRouterFilterer ¶
func NewRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*RouterFilterer, error)
NewRouterFilterer creates a new log filterer instance of Router, bound to a specific deployed contract.
type RouterRaw ¶
type RouterRaw struct {
Contract *Router // Generic contract binding to access the raw methods on
}
RouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RouterRaw) Call ¶
func (_Router *RouterRaw) 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 (*RouterRaw) Transact ¶
func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterRaw) Transfer ¶
func (_Router *RouterRaw) 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 RouterSession ¶
type RouterSession struct { Contract *Router // 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 }
RouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RouterSession) MessageResult ¶
func (_Router *RouterSession) MessageResult(txHash string) (*types.Transaction, error)
MessageResult is a paid mutator transaction binding the contract method 0xeb8ba34e.
Solidity: function messageResult(string txHash) returns(bytes, string, uint32)
func (*RouterSession) Query ¶
func (_Router *RouterSession) Query(request []byte, resource string, namespace string) (*types.Transaction, error)
Query is a paid mutator transaction binding the contract method 0x41efc36c.
Solidity: function query(bytes request, string resource, string namespace) returns(bytes)
func (*RouterSession) SendMessage ¶
func (_Router *RouterSession) SendMessage(message []byte, messageID uint64, namespace string) (*types.Transaction, error)
SendMessage is a paid mutator transaction binding the contract method 0x8525d650.
Solidity: function sendMessage(bytes message, uint64 messageID, string namespace) returns(bool)
type RouterTransactor ¶
type RouterTransactor struct {
// contains filtered or unexported fields
}
RouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRouterTransactor ¶
func NewRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*RouterTransactor, error)
NewRouterTransactor creates a new write-only instance of Router, bound to a specific deployed contract.
func (*RouterTransactor) MessageResult ¶
func (_Router *RouterTransactor) MessageResult(opts *bind.TransactOpts, txHash string) (*types.Transaction, error)
MessageResult is a paid mutator transaction binding the contract method 0xeb8ba34e.
Solidity: function messageResult(string txHash) returns(bytes, string, uint32)
func (*RouterTransactor) Query ¶
func (_Router *RouterTransactor) Query(opts *bind.TransactOpts, request []byte, resource string, namespace string) (*types.Transaction, error)
Query is a paid mutator transaction binding the contract method 0x41efc36c.
Solidity: function query(bytes request, string resource, string namespace) returns(bytes)
func (*RouterTransactor) SendMessage ¶
func (_Router *RouterTransactor) SendMessage(opts *bind.TransactOpts, message []byte, messageID uint64, namespace string) (*types.Transaction, error)
SendMessage is a paid mutator transaction binding the contract method 0x8525d650.
Solidity: function sendMessage(bytes message, uint64 messageID, string namespace) returns(bool)
type RouterTransactorRaw ¶
type RouterTransactorRaw struct {
Contract *RouterTransactor // Generic write-only contract binding to access the raw methods on
}
RouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RouterTransactorRaw) Transact ¶
func (_Router *RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterTransactorRaw) Transfer ¶
func (_Router *RouterTransactorRaw) 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 RouterTransactorSession ¶
type RouterTransactorSession struct { Contract *RouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RouterTransactorSession) MessageResult ¶
func (_Router *RouterTransactorSession) MessageResult(txHash string) (*types.Transaction, error)
MessageResult is a paid mutator transaction binding the contract method 0xeb8ba34e.
Solidity: function messageResult(string txHash) returns(bytes, string, uint32)
func (*RouterTransactorSession) Query ¶
func (_Router *RouterTransactorSession) Query(request []byte, resource string, namespace string) (*types.Transaction, error)
Query is a paid mutator transaction binding the contract method 0x41efc36c.
Solidity: function query(bytes request, string resource, string namespace) returns(bytes)
func (*RouterTransactorSession) SendMessage ¶
func (_Router *RouterTransactorSession) SendMessage(message []byte, messageID uint64, namespace string) (*types.Transaction, error)
SendMessage is a paid mutator transaction binding the contract method 0x8525d650.
Solidity: function sendMessage(bytes message, uint64 messageID, string namespace) returns(bool)