abi

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionABI = ConnectionMetaData.ABI

ConnectionABI is the input ABI used to generate the binding from. Deprecated: Use ConnectionMetaData.ABI instead.

View Source
var ConnectionMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"admin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"claimFees\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"connSn\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFee\",\"inputs\":[{\"name\":\"to\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"response\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"fee\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getReceipt\",\"inputs\":[{\"name\":\"srcNetwork\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_connSn\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_relayer\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_xCall\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"recvMessage\",\"inputs\":[{\"name\":\"srcNetwork\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_connSn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_msg\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"revertMessage\",\"inputs\":[{\"name\":\"sn\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"sendMessage\",\"inputs\":[{\"name\":\"to\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"svc\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"sn\",\"type\":\"int256\",\"internalType\":\"int256\"},{\"name\":\"_msg\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"setAdmin\",\"inputs\":[{\"name\":\"_address\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setFee\",\"inputs\":[{\"name\":\"networkId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"messageFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"responseFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Message\",\"inputs\":[{\"name\":\"targetNetwork\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"sn\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"_msg\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"anonymous\":false}]",
}

ConnectionMetaData contains all meta data concerning the Connection contract.

View Source
var XcallABI = XcallMetaData.ABI

XcallABI is the input ABI used to generate the binding from. Deprecated: Use XcallMetaData.ABI instead.

View Source
var XcallMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"admin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"executeCall\",\"inputs\":[{\"name\":\"_reqId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeRollback\",\"inputs\":[{\"name\":\"_sn\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getDefaultConnection\",\"inputs\":[{\"name\":\"_nid\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFee\",\"inputs\":[{\"name\":\"_net\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_rollback\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_sources\",\"type\":\"string[]\",\"internalType\":\"string[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFee\",\"inputs\":[{\"name\":\"_net\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_rollback\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNetworkAddress\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNetworkId\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProtocolFee\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getProtocolFeeHandler\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"handleBTPError\",\"inputs\":[{\"name\":\"_src\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_svc\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_sn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_code\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_msg\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"handleBTPMessage\",\"inputs\":[{\"name\":\"_from\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_svc\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_sn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_msg\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"handleError\",\"inputs\":[{\"name\":\"_sn\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"handleMessage\",\"inputs\":[{\"name\":\"_from\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_msg\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_nid\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"sendCallMessage\",\"inputs\":[{\"name\":\"_to\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"_rollback\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"sendCallMessage\",\"inputs\":[{\"name\":\"_to\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"_rollback\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"sources\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"destinations\",\"type\":\"string[]\",\"internalType\":\"string[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"setAdmin\",\"inputs\":[{\"name\":\"_address\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setDefaultConnection\",\"inputs\":[{\"name\":\"_nid\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"connection\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setProtocolFee\",\"inputs\":[{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setProtocolFeeHandler\",\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"tryHandleCallMessage\",\"inputs\":[{\"name\":\"toAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"from\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"protocols\",\"type\":\"string[]\",\"internalType\":\"string[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"verifySuccess\",\"inputs\":[{\"name\":\"_sn\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"CallExecuted\",\"inputs\":[{\"name\":\"_reqId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"_code\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"},{\"name\":\"_msg\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CallMessage\",\"inputs\":[{\"name\":\"_from\",\"type\":\"string\",\"indexed\":true,\"internalType\":\"string\"},{\"name\":\"_to\",\"type\":\"string\",\"indexed\":true,\"internalType\":\"string\"},{\"name\":\"_sn\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"_reqId\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"_data\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CallMessageSent\",\"inputs\":[{\"name\":\"_from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"_to\",\"type\":\"string\",\"indexed\":true,\"internalType\":\"string\"},{\"name\":\"_sn\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ResponseMessage\",\"inputs\":[{\"name\":\"_sn\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"_code\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RollbackExecuted\",\"inputs\":[{\"name\":\"_sn\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RollbackMessage\",\"inputs\":[{\"name\":\"_sn\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}

XcallMetaData contains all meta data concerning the Xcall contract.

Functions

This section is empty.

Types

type Connection added in v1.1.0

type Connection struct {
	ConnectionCaller     // Read-only binding to the contract
	ConnectionTransactor // Write-only binding to the contract
	ConnectionFilterer   // Log filterer for contract events
}

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

func NewConnection added in v1.1.0

func NewConnection(address common.Address, backend bind.ContractBackend) (*Connection, error)

NewConnection creates a new instance of Connection, bound to a specific deployed contract.

type ConnectionCaller added in v1.1.0

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

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

func NewConnectionCaller added in v1.1.0

func NewConnectionCaller(address common.Address, caller bind.ContractCaller) (*ConnectionCaller, error)

NewConnectionCaller creates a new read-only instance of Connection, bound to a specific deployed contract.

func (*ConnectionCaller) Admin added in v1.1.0

func (_Connection *ConnectionCaller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*ConnectionCaller) ConnSn added in v1.1.0

func (_Connection *ConnectionCaller) ConnSn(opts *bind.CallOpts) (*big.Int, error)

ConnSn is a free data retrieval call binding the contract method 0x99f1fca7.

Solidity: function connSn() view returns(uint256)

func (*ConnectionCaller) GetFee added in v1.1.0

func (_Connection *ConnectionCaller) GetFee(opts *bind.CallOpts, to string, response bool) (*big.Int, error)

GetFee is a free data retrieval call binding the contract method 0x7d4c4f4a.

Solidity: function getFee(string to, bool response) view returns(uint256 fee)

func (*ConnectionCaller) GetReceipt added in v1.1.0

func (_Connection *ConnectionCaller) GetReceipt(opts *bind.CallOpts, srcNetwork string, _connSn *big.Int) (bool, error)

GetReceipt is a free data retrieval call binding the contract method 0x9664da0e.

Solidity: function getReceipt(string srcNetwork, uint256 _connSn) view returns(bool)

type ConnectionCallerRaw added in v1.1.0

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

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

func (*ConnectionCallerRaw) Call added in v1.1.0

func (_Connection *ConnectionCallerRaw) 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 ConnectionCallerSession added in v1.1.0

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

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

func (*ConnectionCallerSession) Admin added in v1.1.0

func (_Connection *ConnectionCallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*ConnectionCallerSession) ConnSn added in v1.1.0

func (_Connection *ConnectionCallerSession) ConnSn() (*big.Int, error)

ConnSn is a free data retrieval call binding the contract method 0x99f1fca7.

Solidity: function connSn() view returns(uint256)

func (*ConnectionCallerSession) GetFee added in v1.1.0

func (_Connection *ConnectionCallerSession) GetFee(to string, response bool) (*big.Int, error)

GetFee is a free data retrieval call binding the contract method 0x7d4c4f4a.

Solidity: function getFee(string to, bool response) view returns(uint256 fee)

func (*ConnectionCallerSession) GetReceipt added in v1.1.0

func (_Connection *ConnectionCallerSession) GetReceipt(srcNetwork string, _connSn *big.Int) (bool, error)

GetReceipt is a free data retrieval call binding the contract method 0x9664da0e.

Solidity: function getReceipt(string srcNetwork, uint256 _connSn) view returns(bool)

type ConnectionFilterer added in v1.1.0

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

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

func NewConnectionFilterer added in v1.1.0

func NewConnectionFilterer(address common.Address, filterer bind.ContractFilterer) (*ConnectionFilterer, error)

NewConnectionFilterer creates a new log filterer instance of Connection, bound to a specific deployed contract.

func (*ConnectionFilterer) FilterInitialized added in v1.1.0

func (_Connection *ConnectionFilterer) FilterInitialized(opts *bind.FilterOpts) (*ConnectionInitializedIterator, error)

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

Solidity: event Initialized(uint8 version)

func (*ConnectionFilterer) FilterMessage added in v1.1.0

func (_Connection *ConnectionFilterer) FilterMessage(opts *bind.FilterOpts) (*ConnectionMessageIterator, error)

FilterMessage is a free log retrieval operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.

Solidity: event Message(string targetNetwork, uint256 sn, bytes _msg)

func (*ConnectionFilterer) ParseInitialized added in v1.1.0

func (_Connection *ConnectionFilterer) ParseInitialized(log types.Log) (*ConnectionInitialized, error)

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

Solidity: event Initialized(uint8 version)

func (*ConnectionFilterer) ParseMessage added in v1.1.0

func (_Connection *ConnectionFilterer) ParseMessage(log types.Log) (*ConnectionMessage, error)

ParseMessage is a log parse operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.

Solidity: event Message(string targetNetwork, uint256 sn, bytes _msg)

func (*ConnectionFilterer) WatchInitialized added in v1.1.0

func (_Connection *ConnectionFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ConnectionInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint8 version)

func (*ConnectionFilterer) WatchMessage added in v1.1.0

func (_Connection *ConnectionFilterer) WatchMessage(opts *bind.WatchOpts, sink chan<- *ConnectionMessage) (event.Subscription, error)

WatchMessage is a free log subscription operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.

Solidity: event Message(string targetNetwork, uint256 sn, bytes _msg)

type ConnectionInitialized added in v1.1.0

type ConnectionInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

ConnectionInitialized represents a Initialized event raised by the Connection contract.

type ConnectionInitializedIterator added in v1.1.0

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

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

func (*ConnectionInitializedIterator) Close added in v1.1.0

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

func (*ConnectionInitializedIterator) Error added in v1.1.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ConnectionInitializedIterator) Next added in v1.1.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 ConnectionMessage added in v1.1.0

type ConnectionMessage struct {
	TargetNetwork string
	Sn            *big.Int
	Msg           []byte
	Raw           types.Log // Blockchain specific contextual infos
}

ConnectionMessage represents a Message event raised by the Connection contract.

type ConnectionMessageIterator added in v1.1.0

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

ConnectionMessageIterator is returned from FilterMessage and is used to iterate over the raw logs and unpacked data for Message events raised by the Connection contract.

func (*ConnectionMessageIterator) Close added in v1.1.0

func (it *ConnectionMessageIterator) Close() error

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

func (*ConnectionMessageIterator) Error added in v1.1.0

func (it *ConnectionMessageIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConnectionMessageIterator) Next added in v1.1.0

func (it *ConnectionMessageIterator) Next() bool

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 ConnectionRaw added in v1.1.0

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

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

func (*ConnectionRaw) Call added in v1.1.0

func (_Connection *ConnectionRaw) 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 (*ConnectionRaw) Transact added in v1.1.0

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

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

func (*ConnectionRaw) Transfer added in v1.1.0

func (_Connection *ConnectionRaw) 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 ConnectionSession added in v1.1.0

type ConnectionSession struct {
	Contract     *Connection       // 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
}

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

func (*ConnectionSession) Admin added in v1.1.0

func (_Connection *ConnectionSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*ConnectionSession) ClaimFees added in v1.1.0

func (_Connection *ConnectionSession) ClaimFees() (*types.Transaction, error)

ClaimFees is a paid mutator transaction binding the contract method 0xd294f093.

Solidity: function claimFees() returns()

func (*ConnectionSession) ConnSn added in v1.1.0

func (_Connection *ConnectionSession) ConnSn() (*big.Int, error)

ConnSn is a free data retrieval call binding the contract method 0x99f1fca7.

Solidity: function connSn() view returns(uint256)

func (*ConnectionSession) GetFee added in v1.1.0

func (_Connection *ConnectionSession) GetFee(to string, response bool) (*big.Int, error)

GetFee is a free data retrieval call binding the contract method 0x7d4c4f4a.

Solidity: function getFee(string to, bool response) view returns(uint256 fee)

func (*ConnectionSession) GetReceipt added in v1.1.0

func (_Connection *ConnectionSession) GetReceipt(srcNetwork string, _connSn *big.Int) (bool, error)

GetReceipt is a free data retrieval call binding the contract method 0x9664da0e.

Solidity: function getReceipt(string srcNetwork, uint256 _connSn) view returns(bool)

func (*ConnectionSession) Initialize added in v1.1.0

func (_Connection *ConnectionSession) Initialize(_relayer common.Address, _xCall common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _relayer, address _xCall) returns()

func (*ConnectionSession) RecvMessage added in v1.1.0

func (_Connection *ConnectionSession) RecvMessage(srcNetwork string, _connSn *big.Int, _msg []byte) (*types.Transaction, error)

RecvMessage is a paid mutator transaction binding the contract method 0xb58b4cec.

Solidity: function recvMessage(string srcNetwork, uint256 _connSn, bytes _msg) returns()

func (*ConnectionSession) RevertMessage added in v1.1.0

func (_Connection *ConnectionSession) RevertMessage(sn *big.Int) (*types.Transaction, error)

RevertMessage is a paid mutator transaction binding the contract method 0x2d3fb823.

Solidity: function revertMessage(uint256 sn) returns()

func (*ConnectionSession) SendMessage added in v1.1.0

func (_Connection *ConnectionSession) SendMessage(to string, svc string, sn *big.Int, _msg []byte) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0x522a901e.

Solidity: function sendMessage(string to, string svc, int256 sn, bytes _msg) payable returns()

func (*ConnectionSession) SetAdmin added in v1.1.0

func (_Connection *ConnectionSession) SetAdmin(_address common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _address) returns()

func (*ConnectionSession) SetFee added in v1.1.0

func (_Connection *ConnectionSession) SetFee(networkId string, messageFee *big.Int, responseFee *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0x43f08a89.

Solidity: function setFee(string networkId, uint256 messageFee, uint256 responseFee) returns()

type ConnectionTransactor added in v1.1.0

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

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

func NewConnectionTransactor added in v1.1.0

func NewConnectionTransactor(address common.Address, transactor bind.ContractTransactor) (*ConnectionTransactor, error)

NewConnectionTransactor creates a new write-only instance of Connection, bound to a specific deployed contract.

func (*ConnectionTransactor) ClaimFees added in v1.1.0

func (_Connection *ConnectionTransactor) ClaimFees(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimFees is a paid mutator transaction binding the contract method 0xd294f093.

Solidity: function claimFees() returns()

func (*ConnectionTransactor) Initialize added in v1.1.0

func (_Connection *ConnectionTransactor) Initialize(opts *bind.TransactOpts, _relayer common.Address, _xCall common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _relayer, address _xCall) returns()

func (*ConnectionTransactor) RecvMessage added in v1.1.0

func (_Connection *ConnectionTransactor) RecvMessage(opts *bind.TransactOpts, srcNetwork string, _connSn *big.Int, _msg []byte) (*types.Transaction, error)

RecvMessage is a paid mutator transaction binding the contract method 0xb58b4cec.

Solidity: function recvMessage(string srcNetwork, uint256 _connSn, bytes _msg) returns()

func (*ConnectionTransactor) RevertMessage added in v1.1.0

func (_Connection *ConnectionTransactor) RevertMessage(opts *bind.TransactOpts, sn *big.Int) (*types.Transaction, error)

RevertMessage is a paid mutator transaction binding the contract method 0x2d3fb823.

Solidity: function revertMessage(uint256 sn) returns()

func (*ConnectionTransactor) SendMessage added in v1.1.0

func (_Connection *ConnectionTransactor) SendMessage(opts *bind.TransactOpts, to string, svc string, sn *big.Int, _msg []byte) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0x522a901e.

Solidity: function sendMessage(string to, string svc, int256 sn, bytes _msg) payable returns()

func (*ConnectionTransactor) SetAdmin added in v1.1.0

func (_Connection *ConnectionTransactor) SetAdmin(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _address) returns()

func (*ConnectionTransactor) SetFee added in v1.1.0

func (_Connection *ConnectionTransactor) SetFee(opts *bind.TransactOpts, networkId string, messageFee *big.Int, responseFee *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0x43f08a89.

Solidity: function setFee(string networkId, uint256 messageFee, uint256 responseFee) returns()

type ConnectionTransactorRaw added in v1.1.0

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

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

func (*ConnectionTransactorRaw) Transact added in v1.1.0

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

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

func (*ConnectionTransactorRaw) Transfer added in v1.1.0

func (_Connection *ConnectionTransactorRaw) 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 ConnectionTransactorSession added in v1.1.0

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

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

func (*ConnectionTransactorSession) ClaimFees added in v1.1.0

func (_Connection *ConnectionTransactorSession) ClaimFees() (*types.Transaction, error)

ClaimFees is a paid mutator transaction binding the contract method 0xd294f093.

Solidity: function claimFees() returns()

func (*ConnectionTransactorSession) Initialize added in v1.1.0

func (_Connection *ConnectionTransactorSession) Initialize(_relayer common.Address, _xCall common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _relayer, address _xCall) returns()

func (*ConnectionTransactorSession) RecvMessage added in v1.1.0

func (_Connection *ConnectionTransactorSession) RecvMessage(srcNetwork string, _connSn *big.Int, _msg []byte) (*types.Transaction, error)

RecvMessage is a paid mutator transaction binding the contract method 0xb58b4cec.

Solidity: function recvMessage(string srcNetwork, uint256 _connSn, bytes _msg) returns()

func (*ConnectionTransactorSession) RevertMessage added in v1.1.0

func (_Connection *ConnectionTransactorSession) RevertMessage(sn *big.Int) (*types.Transaction, error)

RevertMessage is a paid mutator transaction binding the contract method 0x2d3fb823.

Solidity: function revertMessage(uint256 sn) returns()

func (*ConnectionTransactorSession) SendMessage added in v1.1.0

func (_Connection *ConnectionTransactorSession) SendMessage(to string, svc string, sn *big.Int, _msg []byte) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0x522a901e.

Solidity: function sendMessage(string to, string svc, int256 sn, bytes _msg) payable returns()

func (*ConnectionTransactorSession) SetAdmin added in v1.1.0

func (_Connection *ConnectionTransactorSession) SetAdmin(_address common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _address) returns()

func (*ConnectionTransactorSession) SetFee added in v1.1.0

func (_Connection *ConnectionTransactorSession) SetFee(networkId string, messageFee *big.Int, responseFee *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0x43f08a89.

Solidity: function setFee(string networkId, uint256 messageFee, uint256 responseFee) returns()

type Xcall added in v1.1.0

type Xcall struct {
	XcallCaller     // Read-only binding to the contract
	XcallTransactor // Write-only binding to the contract
	XcallFilterer   // Log filterer for contract events
}

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

func NewXcall added in v1.1.0

func NewXcall(address common.Address, backend bind.ContractBackend) (*Xcall, error)

NewXcall creates a new instance of Xcall, bound to a specific deployed contract.

type XcallCallExecuted added in v1.1.0

type XcallCallExecuted struct {
	ReqId *big.Int
	Code  *big.Int
	Msg   string
	Raw   types.Log // Blockchain specific contextual infos
}

XcallCallExecuted represents a CallExecuted event raised by the Xcall contract.

type XcallCallExecutedIterator added in v1.1.0

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

XcallCallExecutedIterator is returned from FilterCallExecuted and is used to iterate over the raw logs and unpacked data for CallExecuted events raised by the Xcall contract.

func (*XcallCallExecutedIterator) Close added in v1.1.0

func (it *XcallCallExecutedIterator) Close() error

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

func (*XcallCallExecutedIterator) Error added in v1.1.0

func (it *XcallCallExecutedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*XcallCallExecutedIterator) Next added in v1.1.0

func (it *XcallCallExecutedIterator) Next() bool

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 XcallCallMessage added in v1.1.0

type XcallCallMessage struct {
	From  common.Hash
	To    common.Hash
	Sn    *big.Int
	ReqId *big.Int
	Data  []byte
	Raw   types.Log // Blockchain specific contextual infos
}

XcallCallMessage represents a CallMessage event raised by the Xcall contract.

type XcallCallMessageIterator added in v1.1.0

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

XcallCallMessageIterator is returned from FilterCallMessage and is used to iterate over the raw logs and unpacked data for CallMessage events raised by the Xcall contract.

func (*XcallCallMessageIterator) Close added in v1.1.0

func (it *XcallCallMessageIterator) Close() error

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

func (*XcallCallMessageIterator) Error added in v1.1.0

func (it *XcallCallMessageIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*XcallCallMessageIterator) Next added in v1.1.0

func (it *XcallCallMessageIterator) Next() bool

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 XcallCallMessageSent added in v1.1.0

type XcallCallMessageSent struct {
	From common.Address
	To   common.Hash
	Sn   *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

XcallCallMessageSent represents a CallMessageSent event raised by the Xcall contract.

type XcallCallMessageSentIterator added in v1.1.0

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

XcallCallMessageSentIterator is returned from FilterCallMessageSent and is used to iterate over the raw logs and unpacked data for CallMessageSent events raised by the Xcall contract.

func (*XcallCallMessageSentIterator) Close added in v1.1.0

func (it *XcallCallMessageSentIterator) Close() error

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

func (*XcallCallMessageSentIterator) Error added in v1.1.0

func (it *XcallCallMessageSentIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*XcallCallMessageSentIterator) Next added in v1.1.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 XcallCaller added in v1.1.0

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

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

func NewXcallCaller added in v1.1.0

func NewXcallCaller(address common.Address, caller bind.ContractCaller) (*XcallCaller, error)

NewXcallCaller creates a new read-only instance of Xcall, bound to a specific deployed contract.

func (*XcallCaller) Admin added in v1.1.0

func (_Xcall *XcallCaller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*XcallCaller) GetDefaultConnection added in v1.1.0

func (_Xcall *XcallCaller) GetDefaultConnection(opts *bind.CallOpts, _nid string) (common.Address, error)

GetDefaultConnection is a free data retrieval call binding the contract method 0x9e553a4f.

Solidity: function getDefaultConnection(string _nid) view returns(address)

func (*XcallCaller) GetFee added in v1.1.0

func (_Xcall *XcallCaller) GetFee(opts *bind.CallOpts, _net string, _rollback bool, _sources []string) (*big.Int, error)

GetFee is a free data retrieval call binding the contract method 0x304a70b5.

Solidity: function getFee(string _net, bool _rollback, string[] _sources) view returns(uint256)

func (*XcallCaller) GetFee0 added in v1.1.0

func (_Xcall *XcallCaller) GetFee0(opts *bind.CallOpts, _net string, _rollback bool) (*big.Int, error)

GetFee0 is a free data retrieval call binding the contract method 0x7d4c4f4a.

Solidity: function getFee(string _net, bool _rollback) view returns(uint256)

func (*XcallCaller) GetNetworkAddress added in v1.1.0

func (_Xcall *XcallCaller) GetNetworkAddress(opts *bind.CallOpts) (string, error)

GetNetworkAddress is a free data retrieval call binding the contract method 0x6bf459cb.

Solidity: function getNetworkAddress() view returns(string)

func (*XcallCaller) GetNetworkId added in v1.1.0

func (_Xcall *XcallCaller) GetNetworkId(opts *bind.CallOpts) (string, error)

GetNetworkId is a free data retrieval call binding the contract method 0x39c5f3fc.

Solidity: function getNetworkId() view returns(string)

func (*XcallCaller) GetProtocolFee added in v1.1.0

func (_Xcall *XcallCaller) GetProtocolFee(opts *bind.CallOpts) (*big.Int, error)

GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.

Solidity: function getProtocolFee() view returns(uint256)

func (*XcallCaller) GetProtocolFeeHandler added in v1.1.0

func (_Xcall *XcallCaller) GetProtocolFeeHandler(opts *bind.CallOpts) (common.Address, error)

GetProtocolFeeHandler is a free data retrieval call binding the contract method 0x2eb71414.

Solidity: function getProtocolFeeHandler() view returns(address)

func (*XcallCaller) VerifySuccess added in v1.1.0

func (_Xcall *XcallCaller) VerifySuccess(opts *bind.CallOpts, _sn *big.Int) (bool, error)

VerifySuccess is a free data retrieval call binding the contract method 0xec05386b.

Solidity: function verifySuccess(uint256 _sn) view returns(bool)

type XcallCallerRaw added in v1.1.0

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

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

func (*XcallCallerRaw) Call added in v1.1.0

func (_Xcall *XcallCallerRaw) 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 XcallCallerSession added in v1.1.0

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

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

func (*XcallCallerSession) Admin added in v1.1.0

func (_Xcall *XcallCallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*XcallCallerSession) GetDefaultConnection added in v1.1.0

func (_Xcall *XcallCallerSession) GetDefaultConnection(_nid string) (common.Address, error)

GetDefaultConnection is a free data retrieval call binding the contract method 0x9e553a4f.

Solidity: function getDefaultConnection(string _nid) view returns(address)

func (*XcallCallerSession) GetFee added in v1.1.0

func (_Xcall *XcallCallerSession) GetFee(_net string, _rollback bool, _sources []string) (*big.Int, error)

GetFee is a free data retrieval call binding the contract method 0x304a70b5.

Solidity: function getFee(string _net, bool _rollback, string[] _sources) view returns(uint256)

func (*XcallCallerSession) GetFee0 added in v1.1.0

func (_Xcall *XcallCallerSession) GetFee0(_net string, _rollback bool) (*big.Int, error)

GetFee0 is a free data retrieval call binding the contract method 0x7d4c4f4a.

Solidity: function getFee(string _net, bool _rollback) view returns(uint256)

func (*XcallCallerSession) GetNetworkAddress added in v1.1.0

func (_Xcall *XcallCallerSession) GetNetworkAddress() (string, error)

GetNetworkAddress is a free data retrieval call binding the contract method 0x6bf459cb.

Solidity: function getNetworkAddress() view returns(string)

func (*XcallCallerSession) GetNetworkId added in v1.1.0

func (_Xcall *XcallCallerSession) GetNetworkId() (string, error)

GetNetworkId is a free data retrieval call binding the contract method 0x39c5f3fc.

Solidity: function getNetworkId() view returns(string)

func (*XcallCallerSession) GetProtocolFee added in v1.1.0

func (_Xcall *XcallCallerSession) GetProtocolFee() (*big.Int, error)

GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.

Solidity: function getProtocolFee() view returns(uint256)

func (*XcallCallerSession) GetProtocolFeeHandler added in v1.1.0

func (_Xcall *XcallCallerSession) GetProtocolFeeHandler() (common.Address, error)

GetProtocolFeeHandler is a free data retrieval call binding the contract method 0x2eb71414.

Solidity: function getProtocolFeeHandler() view returns(address)

func (*XcallCallerSession) VerifySuccess added in v1.1.0

func (_Xcall *XcallCallerSession) VerifySuccess(_sn *big.Int) (bool, error)

VerifySuccess is a free data retrieval call binding the contract method 0xec05386b.

Solidity: function verifySuccess(uint256 _sn) view returns(bool)

type XcallFilterer added in v1.1.0

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

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

func NewXcallFilterer added in v1.1.0

func NewXcallFilterer(address common.Address, filterer bind.ContractFilterer) (*XcallFilterer, error)

NewXcallFilterer creates a new log filterer instance of Xcall, bound to a specific deployed contract.

func (*XcallFilterer) FilterCallExecuted added in v1.1.0

func (_Xcall *XcallFilterer) FilterCallExecuted(opts *bind.FilterOpts, _reqId []*big.Int) (*XcallCallExecutedIterator, error)

FilterCallExecuted is a free log retrieval operation binding the contract event 0xc7391e04887f8b3c16fa20877e028e8163139a478c8447e7d449eba1905caa51.

Solidity: event CallExecuted(uint256 indexed _reqId, int256 _code, string _msg)

func (*XcallFilterer) FilterCallMessage added in v1.1.0

func (_Xcall *XcallFilterer) FilterCallMessage(opts *bind.FilterOpts, _from []string, _to []string, _sn []*big.Int) (*XcallCallMessageIterator, error)

FilterCallMessage is a free log retrieval operation binding the contract event 0x2cbc78425621c181f9f8a25fc06e44a0ac2b67cd6a31f8ed7918934187f8cc59.

Solidity: event CallMessage(string indexed _from, string indexed _to, uint256 indexed _sn, uint256 _reqId, bytes _data)

func (*XcallFilterer) FilterCallMessageSent added in v1.1.0

func (_Xcall *XcallFilterer) FilterCallMessageSent(opts *bind.FilterOpts, _from []common.Address, _to []string, _sn []*big.Int) (*XcallCallMessageSentIterator, error)

FilterCallMessageSent is a free log retrieval operation binding the contract event 0x69e53ea70fdf945f6d035b3979748bc999151691fb1dc69d66f8017f8840ae28.

Solidity: event CallMessageSent(address indexed _from, string indexed _to, uint256 indexed _sn)

func (*XcallFilterer) FilterInitialized added in v1.1.0

func (_Xcall *XcallFilterer) FilterInitialized(opts *bind.FilterOpts) (*XcallInitializedIterator, error)

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

Solidity: event Initialized(uint8 version)

func (*XcallFilterer) FilterResponseMessage added in v1.1.0

func (_Xcall *XcallFilterer) FilterResponseMessage(opts *bind.FilterOpts, _sn []*big.Int) (*XcallResponseMessageIterator, error)

FilterResponseMessage is a free log retrieval operation binding the contract event 0xbeacafd006c5e60667f6f04aec3a498f81c8e94142b4e95b5a5a763de43ca0ab.

Solidity: event ResponseMessage(uint256 indexed _sn, int256 _code)

func (*XcallFilterer) FilterRollbackExecuted added in v1.1.0

func (_Xcall *XcallFilterer) FilterRollbackExecuted(opts *bind.FilterOpts, _sn []*big.Int) (*XcallRollbackExecutedIterator, error)

FilterRollbackExecuted is a free log retrieval operation binding the contract event 0x08f0ac7aef6da8bbe43bee8b1444a1883f1359566618bc379ce5abba44883837.

Solidity: event RollbackExecuted(uint256 indexed _sn)

func (*XcallFilterer) FilterRollbackMessage added in v1.1.0

func (_Xcall *XcallFilterer) FilterRollbackMessage(opts *bind.FilterOpts, _sn []*big.Int) (*XcallRollbackMessageIterator, error)

FilterRollbackMessage is a free log retrieval operation binding the contract event 0x38934ab923f985814047679ba041577b8203ddd15fe9910d3fc6a7aa6001e9c7.

Solidity: event RollbackMessage(uint256 indexed _sn)

func (*XcallFilterer) ParseCallExecuted added in v1.1.0

func (_Xcall *XcallFilterer) ParseCallExecuted(log types.Log) (*XcallCallExecuted, error)

ParseCallExecuted is a log parse operation binding the contract event 0xc7391e04887f8b3c16fa20877e028e8163139a478c8447e7d449eba1905caa51.

Solidity: event CallExecuted(uint256 indexed _reqId, int256 _code, string _msg)

func (*XcallFilterer) ParseCallMessage added in v1.1.0

func (_Xcall *XcallFilterer) ParseCallMessage(log types.Log) (*XcallCallMessage, error)

ParseCallMessage is a log parse operation binding the contract event 0x2cbc78425621c181f9f8a25fc06e44a0ac2b67cd6a31f8ed7918934187f8cc59.

Solidity: event CallMessage(string indexed _from, string indexed _to, uint256 indexed _sn, uint256 _reqId, bytes _data)

func (*XcallFilterer) ParseCallMessageSent added in v1.1.0

func (_Xcall *XcallFilterer) ParseCallMessageSent(log types.Log) (*XcallCallMessageSent, error)

ParseCallMessageSent is a log parse operation binding the contract event 0x69e53ea70fdf945f6d035b3979748bc999151691fb1dc69d66f8017f8840ae28.

Solidity: event CallMessageSent(address indexed _from, string indexed _to, uint256 indexed _sn)

func (*XcallFilterer) ParseInitialized added in v1.1.0

func (_Xcall *XcallFilterer) ParseInitialized(log types.Log) (*XcallInitialized, error)

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

Solidity: event Initialized(uint8 version)

func (*XcallFilterer) ParseResponseMessage added in v1.1.0

func (_Xcall *XcallFilterer) ParseResponseMessage(log types.Log) (*XcallResponseMessage, error)

ParseResponseMessage is a log parse operation binding the contract event 0xbeacafd006c5e60667f6f04aec3a498f81c8e94142b4e95b5a5a763de43ca0ab.

Solidity: event ResponseMessage(uint256 indexed _sn, int256 _code)

func (*XcallFilterer) ParseRollbackExecuted added in v1.1.0

func (_Xcall *XcallFilterer) ParseRollbackExecuted(log types.Log) (*XcallRollbackExecuted, error)

ParseRollbackExecuted is a log parse operation binding the contract event 0x08f0ac7aef6da8bbe43bee8b1444a1883f1359566618bc379ce5abba44883837.

Solidity: event RollbackExecuted(uint256 indexed _sn)

func (*XcallFilterer) ParseRollbackMessage added in v1.1.0

func (_Xcall *XcallFilterer) ParseRollbackMessage(log types.Log) (*XcallRollbackMessage, error)

ParseRollbackMessage is a log parse operation binding the contract event 0x38934ab923f985814047679ba041577b8203ddd15fe9910d3fc6a7aa6001e9c7.

Solidity: event RollbackMessage(uint256 indexed _sn)

func (*XcallFilterer) WatchCallExecuted added in v1.1.0

func (_Xcall *XcallFilterer) WatchCallExecuted(opts *bind.WatchOpts, sink chan<- *XcallCallExecuted, _reqId []*big.Int) (event.Subscription, error)

WatchCallExecuted is a free log subscription operation binding the contract event 0xc7391e04887f8b3c16fa20877e028e8163139a478c8447e7d449eba1905caa51.

Solidity: event CallExecuted(uint256 indexed _reqId, int256 _code, string _msg)

func (*XcallFilterer) WatchCallMessage added in v1.1.0

func (_Xcall *XcallFilterer) WatchCallMessage(opts *bind.WatchOpts, sink chan<- *XcallCallMessage, _from []string, _to []string, _sn []*big.Int) (event.Subscription, error)

WatchCallMessage is a free log subscription operation binding the contract event 0x2cbc78425621c181f9f8a25fc06e44a0ac2b67cd6a31f8ed7918934187f8cc59.

Solidity: event CallMessage(string indexed _from, string indexed _to, uint256 indexed _sn, uint256 _reqId, bytes _data)

func (*XcallFilterer) WatchCallMessageSent added in v1.1.0

func (_Xcall *XcallFilterer) WatchCallMessageSent(opts *bind.WatchOpts, sink chan<- *XcallCallMessageSent, _from []common.Address, _to []string, _sn []*big.Int) (event.Subscription, error)

WatchCallMessageSent is a free log subscription operation binding the contract event 0x69e53ea70fdf945f6d035b3979748bc999151691fb1dc69d66f8017f8840ae28.

Solidity: event CallMessageSent(address indexed _from, string indexed _to, uint256 indexed _sn)

func (*XcallFilterer) WatchInitialized added in v1.1.0

func (_Xcall *XcallFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *XcallInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint8 version)

func (*XcallFilterer) WatchResponseMessage added in v1.1.0

func (_Xcall *XcallFilterer) WatchResponseMessage(opts *bind.WatchOpts, sink chan<- *XcallResponseMessage, _sn []*big.Int) (event.Subscription, error)

WatchResponseMessage is a free log subscription operation binding the contract event 0xbeacafd006c5e60667f6f04aec3a498f81c8e94142b4e95b5a5a763de43ca0ab.

Solidity: event ResponseMessage(uint256 indexed _sn, int256 _code)

func (*XcallFilterer) WatchRollbackExecuted added in v1.1.0

func (_Xcall *XcallFilterer) WatchRollbackExecuted(opts *bind.WatchOpts, sink chan<- *XcallRollbackExecuted, _sn []*big.Int) (event.Subscription, error)

WatchRollbackExecuted is a free log subscription operation binding the contract event 0x08f0ac7aef6da8bbe43bee8b1444a1883f1359566618bc379ce5abba44883837.

Solidity: event RollbackExecuted(uint256 indexed _sn)

func (*XcallFilterer) WatchRollbackMessage added in v1.1.0

func (_Xcall *XcallFilterer) WatchRollbackMessage(opts *bind.WatchOpts, sink chan<- *XcallRollbackMessage, _sn []*big.Int) (event.Subscription, error)

WatchRollbackMessage is a free log subscription operation binding the contract event 0x38934ab923f985814047679ba041577b8203ddd15fe9910d3fc6a7aa6001e9c7.

Solidity: event RollbackMessage(uint256 indexed _sn)

type XcallInitialized added in v1.1.0

type XcallInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

XcallInitialized represents a Initialized event raised by the Xcall contract.

type XcallInitializedIterator added in v1.1.0

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

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

func (*XcallInitializedIterator) Close added in v1.1.0

func (it *XcallInitializedIterator) Close() error

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

func (*XcallInitializedIterator) Error added in v1.1.0

func (it *XcallInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*XcallInitializedIterator) Next added in v1.1.0

func (it *XcallInitializedIterator) Next() bool

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 XcallRaw added in v1.1.0

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

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

func (*XcallRaw) Call added in v1.1.0

func (_Xcall *XcallRaw) 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 (*XcallRaw) Transact added in v1.1.0

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

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

func (*XcallRaw) Transfer added in v1.1.0

func (_Xcall *XcallRaw) 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 XcallResponseMessage added in v1.1.0

type XcallResponseMessage struct {
	Sn   *big.Int
	Code *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

XcallResponseMessage represents a ResponseMessage event raised by the Xcall contract.

type XcallResponseMessageIterator added in v1.1.0

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

XcallResponseMessageIterator is returned from FilterResponseMessage and is used to iterate over the raw logs and unpacked data for ResponseMessage events raised by the Xcall contract.

func (*XcallResponseMessageIterator) Close added in v1.1.0

func (it *XcallResponseMessageIterator) Close() error

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

func (*XcallResponseMessageIterator) Error added in v1.1.0

func (it *XcallResponseMessageIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*XcallResponseMessageIterator) Next added in v1.1.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 XcallRollbackExecuted added in v1.1.0

type XcallRollbackExecuted struct {
	Sn  *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

XcallRollbackExecuted represents a RollbackExecuted event raised by the Xcall contract.

type XcallRollbackExecutedIterator added in v1.1.0

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

XcallRollbackExecutedIterator is returned from FilterRollbackExecuted and is used to iterate over the raw logs and unpacked data for RollbackExecuted events raised by the Xcall contract.

func (*XcallRollbackExecutedIterator) Close added in v1.1.0

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

func (*XcallRollbackExecutedIterator) Error added in v1.1.0

Error returns any retrieval or parsing error occurred during filtering.

func (*XcallRollbackExecutedIterator) Next added in v1.1.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 XcallRollbackMessage added in v1.1.0

type XcallRollbackMessage struct {
	Sn  *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

XcallRollbackMessage represents a RollbackMessage event raised by the Xcall contract.

type XcallRollbackMessageIterator added in v1.1.0

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

XcallRollbackMessageIterator is returned from FilterRollbackMessage and is used to iterate over the raw logs and unpacked data for RollbackMessage events raised by the Xcall contract.

func (*XcallRollbackMessageIterator) Close added in v1.1.0

func (it *XcallRollbackMessageIterator) Close() error

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

func (*XcallRollbackMessageIterator) Error added in v1.1.0

func (it *XcallRollbackMessageIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*XcallRollbackMessageIterator) Next added in v1.1.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 XcallSession added in v1.1.0

type XcallSession struct {
	Contract     *Xcall            // 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
}

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

func (*XcallSession) Admin added in v1.1.0

func (_Xcall *XcallSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*XcallSession) ExecuteCall added in v1.1.0

func (_Xcall *XcallSession) ExecuteCall(_reqId *big.Int, _data []byte) (*types.Transaction, error)

ExecuteCall is a paid mutator transaction binding the contract method 0xbda8ce21.

Solidity: function executeCall(uint256 _reqId, bytes _data) returns()

func (*XcallSession) ExecuteRollback added in v1.1.0

func (_Xcall *XcallSession) ExecuteRollback(_sn *big.Int) (*types.Transaction, error)

ExecuteRollback is a paid mutator transaction binding the contract method 0x2a84e1b0.

Solidity: function executeRollback(uint256 _sn) returns()

func (*XcallSession) GetDefaultConnection added in v1.1.0

func (_Xcall *XcallSession) GetDefaultConnection(_nid string) (common.Address, error)

GetDefaultConnection is a free data retrieval call binding the contract method 0x9e553a4f.

Solidity: function getDefaultConnection(string _nid) view returns(address)

func (*XcallSession) GetFee added in v1.1.0

func (_Xcall *XcallSession) GetFee(_net string, _rollback bool, _sources []string) (*big.Int, error)

GetFee is a free data retrieval call binding the contract method 0x304a70b5.

Solidity: function getFee(string _net, bool _rollback, string[] _sources) view returns(uint256)

func (*XcallSession) GetFee0 added in v1.1.0

func (_Xcall *XcallSession) GetFee0(_net string, _rollback bool) (*big.Int, error)

GetFee0 is a free data retrieval call binding the contract method 0x7d4c4f4a.

Solidity: function getFee(string _net, bool _rollback) view returns(uint256)

func (*XcallSession) GetNetworkAddress added in v1.1.0

func (_Xcall *XcallSession) GetNetworkAddress() (string, error)

GetNetworkAddress is a free data retrieval call binding the contract method 0x6bf459cb.

Solidity: function getNetworkAddress() view returns(string)

func (*XcallSession) GetNetworkId added in v1.1.0

func (_Xcall *XcallSession) GetNetworkId() (string, error)

GetNetworkId is a free data retrieval call binding the contract method 0x39c5f3fc.

Solidity: function getNetworkId() view returns(string)

func (*XcallSession) GetProtocolFee added in v1.1.0

func (_Xcall *XcallSession) GetProtocolFee() (*big.Int, error)

GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.

Solidity: function getProtocolFee() view returns(uint256)

func (*XcallSession) GetProtocolFeeHandler added in v1.1.0

func (_Xcall *XcallSession) GetProtocolFeeHandler() (common.Address, error)

GetProtocolFeeHandler is a free data retrieval call binding the contract method 0x2eb71414.

Solidity: function getProtocolFeeHandler() view returns(address)

func (*XcallSession) HandleBTPError added in v1.1.0

func (_Xcall *XcallSession) HandleBTPError(_src string, _svc string, _sn *big.Int, _code *big.Int, _msg string) (*types.Transaction, error)

HandleBTPError is a paid mutator transaction binding the contract method 0x0a823dea.

Solidity: function handleBTPError(string _src, string _svc, uint256 _sn, uint256 _code, string _msg) returns()

func (*XcallSession) HandleBTPMessage added in v1.1.0

func (_Xcall *XcallSession) HandleBTPMessage(_from string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)

HandleBTPMessage is a paid mutator transaction binding the contract method 0xb70eeb8d.

Solidity: function handleBTPMessage(string _from, string _svc, uint256 _sn, bytes _msg) returns()

func (*XcallSession) HandleError added in v1.1.0

func (_Xcall *XcallSession) HandleError(_sn *big.Int) (*types.Transaction, error)

HandleError is a paid mutator transaction binding the contract method 0xb070f9e5.

Solidity: function handleError(uint256 _sn) returns()

func (*XcallSession) HandleMessage added in v1.1.0

func (_Xcall *XcallSession) HandleMessage(_from string, _msg []byte) (*types.Transaction, error)

HandleMessage is a paid mutator transaction binding the contract method 0xbbc22efd.

Solidity: function handleMessage(string _from, bytes _msg) returns()

func (*XcallSession) Initialize added in v1.1.0

func (_Xcall *XcallSession) Initialize(_nid string) (*types.Transaction, error)

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

Solidity: function initialize(string _nid) returns()

func (*XcallSession) SendCallMessage added in v1.1.0

func (_Xcall *XcallSession) SendCallMessage(_to string, _data []byte, _rollback []byte) (*types.Transaction, error)

SendCallMessage is a paid mutator transaction binding the contract method 0x8ef378b8.

Solidity: function sendCallMessage(string _to, bytes _data, bytes _rollback) payable returns(uint256)

func (*XcallSession) SendCallMessage0 added in v1.1.0

func (_Xcall *XcallSession) SendCallMessage0(_to string, _data []byte, _rollback []byte, sources []string, destinations []string) (*types.Transaction, error)

SendCallMessage0 is a paid mutator transaction binding the contract method 0xedc6afff.

Solidity: function sendCallMessage(string _to, bytes _data, bytes _rollback, string[] sources, string[] destinations) payable returns(uint256)

func (*XcallSession) SetAdmin added in v1.1.0

func (_Xcall *XcallSession) SetAdmin(_address common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _address) returns()

func (*XcallSession) SetDefaultConnection added in v1.1.0

func (_Xcall *XcallSession) SetDefaultConnection(_nid string, connection common.Address) (*types.Transaction, error)

SetDefaultConnection is a paid mutator transaction binding the contract method 0x64f03757.

Solidity: function setDefaultConnection(string _nid, address connection) returns()

func (*XcallSession) SetProtocolFee added in v1.1.0

func (_Xcall *XcallSession) SetProtocolFee(_value *big.Int) (*types.Transaction, error)

SetProtocolFee is a paid mutator transaction binding the contract method 0x787dce3d.

Solidity: function setProtocolFee(uint256 _value) returns()

func (*XcallSession) SetProtocolFeeHandler added in v1.1.0

func (_Xcall *XcallSession) SetProtocolFeeHandler(_addr common.Address) (*types.Transaction, error)

SetProtocolFeeHandler is a paid mutator transaction binding the contract method 0x502bf8e0.

Solidity: function setProtocolFeeHandler(address _addr) returns()

func (*XcallSession) TryHandleCallMessage added in v1.1.0

func (_Xcall *XcallSession) TryHandleCallMessage(toAddr common.Address, to string, from string, data []byte, protocols []string) (*types.Transaction, error)

TryHandleCallMessage is a paid mutator transaction binding the contract method 0x04df28a9.

Solidity: function tryHandleCallMessage(address toAddr, string to, string from, bytes data, string[] protocols) returns()

func (*XcallSession) VerifySuccess added in v1.1.0

func (_Xcall *XcallSession) VerifySuccess(_sn *big.Int) (bool, error)

VerifySuccess is a free data retrieval call binding the contract method 0xec05386b.

Solidity: function verifySuccess(uint256 _sn) view returns(bool)

type XcallTransactor added in v1.1.0

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

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

func NewXcallTransactor added in v1.1.0

func NewXcallTransactor(address common.Address, transactor bind.ContractTransactor) (*XcallTransactor, error)

NewXcallTransactor creates a new write-only instance of Xcall, bound to a specific deployed contract.

func (*XcallTransactor) ExecuteCall added in v1.1.0

func (_Xcall *XcallTransactor) ExecuteCall(opts *bind.TransactOpts, _reqId *big.Int, _data []byte) (*types.Transaction, error)

ExecuteCall is a paid mutator transaction binding the contract method 0xbda8ce21.

Solidity: function executeCall(uint256 _reqId, bytes _data) returns()

func (*XcallTransactor) ExecuteRollback added in v1.1.0

func (_Xcall *XcallTransactor) ExecuteRollback(opts *bind.TransactOpts, _sn *big.Int) (*types.Transaction, error)

ExecuteRollback is a paid mutator transaction binding the contract method 0x2a84e1b0.

Solidity: function executeRollback(uint256 _sn) returns()

func (*XcallTransactor) HandleBTPError added in v1.1.0

func (_Xcall *XcallTransactor) HandleBTPError(opts *bind.TransactOpts, _src string, _svc string, _sn *big.Int, _code *big.Int, _msg string) (*types.Transaction, error)

HandleBTPError is a paid mutator transaction binding the contract method 0x0a823dea.

Solidity: function handleBTPError(string _src, string _svc, uint256 _sn, uint256 _code, string _msg) returns()

func (*XcallTransactor) HandleBTPMessage added in v1.1.0

func (_Xcall *XcallTransactor) HandleBTPMessage(opts *bind.TransactOpts, _from string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)

HandleBTPMessage is a paid mutator transaction binding the contract method 0xb70eeb8d.

Solidity: function handleBTPMessage(string _from, string _svc, uint256 _sn, bytes _msg) returns()

func (*XcallTransactor) HandleError added in v1.1.0

func (_Xcall *XcallTransactor) HandleError(opts *bind.TransactOpts, _sn *big.Int) (*types.Transaction, error)

HandleError is a paid mutator transaction binding the contract method 0xb070f9e5.

Solidity: function handleError(uint256 _sn) returns()

func (*XcallTransactor) HandleMessage added in v1.1.0

func (_Xcall *XcallTransactor) HandleMessage(opts *bind.TransactOpts, _from string, _msg []byte) (*types.Transaction, error)

HandleMessage is a paid mutator transaction binding the contract method 0xbbc22efd.

Solidity: function handleMessage(string _from, bytes _msg) returns()

func (*XcallTransactor) Initialize added in v1.1.0

func (_Xcall *XcallTransactor) Initialize(opts *bind.TransactOpts, _nid string) (*types.Transaction, error)

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

Solidity: function initialize(string _nid) returns()

func (*XcallTransactor) SendCallMessage added in v1.1.0

func (_Xcall *XcallTransactor) SendCallMessage(opts *bind.TransactOpts, _to string, _data []byte, _rollback []byte) (*types.Transaction, error)

SendCallMessage is a paid mutator transaction binding the contract method 0x8ef378b8.

Solidity: function sendCallMessage(string _to, bytes _data, bytes _rollback) payable returns(uint256)

func (*XcallTransactor) SendCallMessage0 added in v1.1.0

func (_Xcall *XcallTransactor) SendCallMessage0(opts *bind.TransactOpts, _to string, _data []byte, _rollback []byte, sources []string, destinations []string) (*types.Transaction, error)

SendCallMessage0 is a paid mutator transaction binding the contract method 0xedc6afff.

Solidity: function sendCallMessage(string _to, bytes _data, bytes _rollback, string[] sources, string[] destinations) payable returns(uint256)

func (*XcallTransactor) SetAdmin added in v1.1.0

func (_Xcall *XcallTransactor) SetAdmin(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _address) returns()

func (*XcallTransactor) SetDefaultConnection added in v1.1.0

func (_Xcall *XcallTransactor) SetDefaultConnection(opts *bind.TransactOpts, _nid string, connection common.Address) (*types.Transaction, error)

SetDefaultConnection is a paid mutator transaction binding the contract method 0x64f03757.

Solidity: function setDefaultConnection(string _nid, address connection) returns()

func (*XcallTransactor) SetProtocolFee added in v1.1.0

func (_Xcall *XcallTransactor) SetProtocolFee(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)

SetProtocolFee is a paid mutator transaction binding the contract method 0x787dce3d.

Solidity: function setProtocolFee(uint256 _value) returns()

func (*XcallTransactor) SetProtocolFeeHandler added in v1.1.0

func (_Xcall *XcallTransactor) SetProtocolFeeHandler(opts *bind.TransactOpts, _addr common.Address) (*types.Transaction, error)

SetProtocolFeeHandler is a paid mutator transaction binding the contract method 0x502bf8e0.

Solidity: function setProtocolFeeHandler(address _addr) returns()

func (*XcallTransactor) TryHandleCallMessage added in v1.1.0

func (_Xcall *XcallTransactor) TryHandleCallMessage(opts *bind.TransactOpts, toAddr common.Address, to string, from string, data []byte, protocols []string) (*types.Transaction, error)

TryHandleCallMessage is a paid mutator transaction binding the contract method 0x04df28a9.

Solidity: function tryHandleCallMessage(address toAddr, string to, string from, bytes data, string[] protocols) returns()

type XcallTransactorRaw added in v1.1.0

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

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

func (*XcallTransactorRaw) Transact added in v1.1.0

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

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

func (*XcallTransactorRaw) Transfer added in v1.1.0

func (_Xcall *XcallTransactorRaw) 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 XcallTransactorSession added in v1.1.0

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

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

func (*XcallTransactorSession) ExecuteCall added in v1.1.0

func (_Xcall *XcallTransactorSession) ExecuteCall(_reqId *big.Int, _data []byte) (*types.Transaction, error)

ExecuteCall is a paid mutator transaction binding the contract method 0xbda8ce21.

Solidity: function executeCall(uint256 _reqId, bytes _data) returns()

func (*XcallTransactorSession) ExecuteRollback added in v1.1.0

func (_Xcall *XcallTransactorSession) ExecuteRollback(_sn *big.Int) (*types.Transaction, error)

ExecuteRollback is a paid mutator transaction binding the contract method 0x2a84e1b0.

Solidity: function executeRollback(uint256 _sn) returns()

func (*XcallTransactorSession) HandleBTPError added in v1.1.0

func (_Xcall *XcallTransactorSession) HandleBTPError(_src string, _svc string, _sn *big.Int, _code *big.Int, _msg string) (*types.Transaction, error)

HandleBTPError is a paid mutator transaction binding the contract method 0x0a823dea.

Solidity: function handleBTPError(string _src, string _svc, uint256 _sn, uint256 _code, string _msg) returns()

func (*XcallTransactorSession) HandleBTPMessage added in v1.1.0

func (_Xcall *XcallTransactorSession) HandleBTPMessage(_from string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)

HandleBTPMessage is a paid mutator transaction binding the contract method 0xb70eeb8d.

Solidity: function handleBTPMessage(string _from, string _svc, uint256 _sn, bytes _msg) returns()

func (*XcallTransactorSession) HandleError added in v1.1.0

func (_Xcall *XcallTransactorSession) HandleError(_sn *big.Int) (*types.Transaction, error)

HandleError is a paid mutator transaction binding the contract method 0xb070f9e5.

Solidity: function handleError(uint256 _sn) returns()

func (*XcallTransactorSession) HandleMessage added in v1.1.0

func (_Xcall *XcallTransactorSession) HandleMessage(_from string, _msg []byte) (*types.Transaction, error)

HandleMessage is a paid mutator transaction binding the contract method 0xbbc22efd.

Solidity: function handleMessage(string _from, bytes _msg) returns()

func (*XcallTransactorSession) Initialize added in v1.1.0

func (_Xcall *XcallTransactorSession) Initialize(_nid string) (*types.Transaction, error)

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

Solidity: function initialize(string _nid) returns()

func (*XcallTransactorSession) SendCallMessage added in v1.1.0

func (_Xcall *XcallTransactorSession) SendCallMessage(_to string, _data []byte, _rollback []byte) (*types.Transaction, error)

SendCallMessage is a paid mutator transaction binding the contract method 0x8ef378b8.

Solidity: function sendCallMessage(string _to, bytes _data, bytes _rollback) payable returns(uint256)

func (*XcallTransactorSession) SendCallMessage0 added in v1.1.0

func (_Xcall *XcallTransactorSession) SendCallMessage0(_to string, _data []byte, _rollback []byte, sources []string, destinations []string) (*types.Transaction, error)

SendCallMessage0 is a paid mutator transaction binding the contract method 0xedc6afff.

Solidity: function sendCallMessage(string _to, bytes _data, bytes _rollback, string[] sources, string[] destinations) payable returns(uint256)

func (*XcallTransactorSession) SetAdmin added in v1.1.0

func (_Xcall *XcallTransactorSession) SetAdmin(_address common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _address) returns()

func (*XcallTransactorSession) SetDefaultConnection added in v1.1.0

func (_Xcall *XcallTransactorSession) SetDefaultConnection(_nid string, connection common.Address) (*types.Transaction, error)

SetDefaultConnection is a paid mutator transaction binding the contract method 0x64f03757.

Solidity: function setDefaultConnection(string _nid, address connection) returns()

func (*XcallTransactorSession) SetProtocolFee added in v1.1.0

func (_Xcall *XcallTransactorSession) SetProtocolFee(_value *big.Int) (*types.Transaction, error)

SetProtocolFee is a paid mutator transaction binding the contract method 0x787dce3d.

Solidity: function setProtocolFee(uint256 _value) returns()

func (*XcallTransactorSession) SetProtocolFeeHandler added in v1.1.0

func (_Xcall *XcallTransactorSession) SetProtocolFeeHandler(_addr common.Address) (*types.Transaction, error)

SetProtocolFeeHandler is a paid mutator transaction binding the contract method 0x502bf8e0.

Solidity: function setProtocolFeeHandler(address _addr) returns()

func (*XcallTransactorSession) TryHandleCallMessage added in v1.1.0

func (_Xcall *XcallTransactorSession) TryHandleCallMessage(toAddr common.Address, to string, from string, data []byte, protocols []string) (*types.Transaction, error)

TryHandleCallMessage is a paid mutator transaction binding the contract method 0x04df28a9.

Solidity: function tryHandleCallMessage(address toAddr, string to, string from, bytes data, string[] protocols) returns()

Jump to

Keyboard shortcuts

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