cbridge

package
v0.0.0-...-6adf9c3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IMessageBusABI = IMessageBusMetaData.ABI

IMessageBusABI is the input ABI used to generate the binding from. Deprecated: Use IMessageBusMetaData.ABI instead.

View Source
var IMessageBusMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"calcFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"srcChainId\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"srcTxHash\",\"type\":\"bytes32\"}],\"internalType\":\"structMsgDataTypes.RouteInfo\",\"name\":\"_route\",\"type\":\"tuple\"},{\"internalType\":\"bytes[]\",\"name\":\"_sigs\",\"type\":\"bytes[]\"},{\"internalType\":\"address[]\",\"name\":\"_signers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"}],\"name\":\"executeMessage\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"enumMsgDataTypes.TransferType\",\"name\":\"t\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"wdseq\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"srcChainId\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"refId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"srcTxHash\",\"type\":\"bytes32\"}],\"internalType\":\"structMsgDataTypes.TransferInfo\",\"name\":\"_transfer\",\"type\":\"tuple\"},{\"internalType\":\"bytes[]\",\"name\":\"_sigs\",\"type\":\"bytes[]\"},{\"internalType\":\"address[]\",\"name\":\"_signers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"}],\"name\":\"executeMessageWithTransfer\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"enumMsgDataTypes.TransferType\",\"name\":\"t\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"wdseq\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"srcChainId\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"refId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"srcTxHash\",\"type\":\"bytes32\"}],\"internalType\":\"structMsgDataTypes.TransferInfo\",\"name\":\"_transfer\",\"type\":\"tuple\"},{\"internalType\":\"bytes[]\",\"name\":\"_sigs\",\"type\":\"bytes[]\"},{\"internalType\":\"address[]\",\"name\":\"_signers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"}],\"name\":\"executeMessageWithTransferRefund\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeBase\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feePerByte\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidityBridge\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pegBridge\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pegBridgeV2\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pegVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pegVaultV2\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"sendMessage\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_dstChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_srcBridge\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_srcTransferId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"sendMessageWithTransfer\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_cumulativeFee\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"_sigs\",\"type\":\"bytes[]\"},{\"internalType\":\"address[]\",\"name\":\"_signers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_powers\",\"type\":\"uint256[]\"}],\"name\":\"withdrawFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IMessageBusMetaData contains all meta data concerning the IMessageBus contract.

View Source
var MsgDataTypesABI = MsgDataTypesMetaData.ABI

MsgDataTypesABI is the input ABI used to generate the binding from. Deprecated: Use MsgDataTypesMetaData.ABI instead.

View Source
var MsgDataTypesBin = MsgDataTypesMetaData.Bin

MsgDataTypesBin is the compiled bytecode used for deploying new contracts. Deprecated: Use MsgDataTypesMetaData.Bin instead.

View Source
var MsgDataTypesMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220623342e0418be6ac3b4de01a1763c1d8311a3483683f2a366814784af245669d64736f6c634300080f0033",
}

MsgDataTypesMetaData contains all meta data concerning the MsgDataTypes contract.

Functions

This section is empty.

Types

type IMessageBus

type IMessageBus struct {
	IMessageBusCaller     // Read-only binding to the contract
	IMessageBusTransactor // Write-only binding to the contract
	IMessageBusFilterer   // Log filterer for contract events
}

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

func NewIMessageBus

func NewIMessageBus(address common.Address, backend bind.ContractBackend) (*IMessageBus, error)

NewIMessageBus creates a new instance of IMessageBus, bound to a specific deployed contract.

type IMessageBusCaller

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

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

func NewIMessageBusCaller

func NewIMessageBusCaller(address common.Address, caller bind.ContractCaller) (*IMessageBusCaller, error)

NewIMessageBusCaller creates a new read-only instance of IMessageBus, bound to a specific deployed contract.

func (*IMessageBusCaller) CalcFee

func (_IMessageBus *IMessageBusCaller) CalcFee(opts *bind.CallOpts, _message []byte) (*big.Int, error)

CalcFee is a free data retrieval call binding the contract method 0x5335dca2.

Solidity: function calcFee(bytes _message) view returns(uint256)

func (*IMessageBusCaller) FeeBase

func (_IMessageBus *IMessageBusCaller) FeeBase(opts *bind.CallOpts) (*big.Int, error)

FeeBase is a free data retrieval call binding the contract method 0x95e911a8.

Solidity: function feeBase() view returns(uint256)

func (*IMessageBusCaller) FeePerByte

func (_IMessageBus *IMessageBusCaller) FeePerByte(opts *bind.CallOpts) (*big.Int, error)

FeePerByte is a free data retrieval call binding the contract method 0xf60bbe2a.

Solidity: function feePerByte() view returns(uint256)

func (*IMessageBusCaller) LiquidityBridge

func (_IMessageBus *IMessageBusCaller) LiquidityBridge(opts *bind.CallOpts) (common.Address, error)

LiquidityBridge is a free data retrieval call binding the contract method 0x82980dc4.

Solidity: function liquidityBridge() view returns(address)

func (*IMessageBusCaller) PegBridge

func (_IMessageBus *IMessageBusCaller) PegBridge(opts *bind.CallOpts) (common.Address, error)

PegBridge is a free data retrieval call binding the contract method 0xdfa2dbaf.

Solidity: function pegBridge() view returns(address)

func (*IMessageBusCaller) PegBridgeV2

func (_IMessageBus *IMessageBusCaller) PegBridgeV2(opts *bind.CallOpts) (common.Address, error)

PegBridgeV2 is a free data retrieval call binding the contract method 0x95b12c27.

Solidity: function pegBridgeV2() view returns(address)

func (*IMessageBusCaller) PegVault

func (_IMessageBus *IMessageBusCaller) PegVault(opts *bind.CallOpts) (common.Address, error)

PegVault is a free data retrieval call binding the contract method 0xd8257d17.

Solidity: function pegVault() view returns(address)

func (*IMessageBusCaller) PegVaultV2

func (_IMessageBus *IMessageBusCaller) PegVaultV2(opts *bind.CallOpts) (common.Address, error)

PegVaultV2 is a free data retrieval call binding the contract method 0xc66a9c5a.

Solidity: function pegVaultV2() view returns(address)

type IMessageBusCallerRaw

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

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

func (*IMessageBusCallerRaw) Call

func (_IMessageBus *IMessageBusCallerRaw) 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 IMessageBusCallerSession

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

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

func (*IMessageBusCallerSession) CalcFee

func (_IMessageBus *IMessageBusCallerSession) CalcFee(_message []byte) (*big.Int, error)

CalcFee is a free data retrieval call binding the contract method 0x5335dca2.

Solidity: function calcFee(bytes _message) view returns(uint256)

func (*IMessageBusCallerSession) FeeBase

func (_IMessageBus *IMessageBusCallerSession) FeeBase() (*big.Int, error)

FeeBase is a free data retrieval call binding the contract method 0x95e911a8.

Solidity: function feeBase() view returns(uint256)

func (*IMessageBusCallerSession) FeePerByte

func (_IMessageBus *IMessageBusCallerSession) FeePerByte() (*big.Int, error)

FeePerByte is a free data retrieval call binding the contract method 0xf60bbe2a.

Solidity: function feePerByte() view returns(uint256)

func (*IMessageBusCallerSession) LiquidityBridge

func (_IMessageBus *IMessageBusCallerSession) LiquidityBridge() (common.Address, error)

LiquidityBridge is a free data retrieval call binding the contract method 0x82980dc4.

Solidity: function liquidityBridge() view returns(address)

func (*IMessageBusCallerSession) PegBridge

func (_IMessageBus *IMessageBusCallerSession) PegBridge() (common.Address, error)

PegBridge is a free data retrieval call binding the contract method 0xdfa2dbaf.

Solidity: function pegBridge() view returns(address)

func (*IMessageBusCallerSession) PegBridgeV2

func (_IMessageBus *IMessageBusCallerSession) PegBridgeV2() (common.Address, error)

PegBridgeV2 is a free data retrieval call binding the contract method 0x95b12c27.

Solidity: function pegBridgeV2() view returns(address)

func (*IMessageBusCallerSession) PegVault

func (_IMessageBus *IMessageBusCallerSession) PegVault() (common.Address, error)

PegVault is a free data retrieval call binding the contract method 0xd8257d17.

Solidity: function pegVault() view returns(address)

func (*IMessageBusCallerSession) PegVaultV2

func (_IMessageBus *IMessageBusCallerSession) PegVaultV2() (common.Address, error)

PegVaultV2 is a free data retrieval call binding the contract method 0xc66a9c5a.

Solidity: function pegVaultV2() view returns(address)

type IMessageBusFilterer

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

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

func NewIMessageBusFilterer

func NewIMessageBusFilterer(address common.Address, filterer bind.ContractFilterer) (*IMessageBusFilterer, error)

NewIMessageBusFilterer creates a new log filterer instance of IMessageBus, bound to a specific deployed contract.

type IMessageBusRaw

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

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

func (*IMessageBusRaw) Call

func (_IMessageBus *IMessageBusRaw) 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 (*IMessageBusRaw) Transact

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

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

func (*IMessageBusRaw) Transfer

func (_IMessageBus *IMessageBusRaw) 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 IMessageBusSession

type IMessageBusSession struct {
	Contract     *IMessageBus      // 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
}

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

func (*IMessageBusSession) CalcFee

func (_IMessageBus *IMessageBusSession) CalcFee(_message []byte) (*big.Int, error)

CalcFee is a free data retrieval call binding the contract method 0x5335dca2.

Solidity: function calcFee(bytes _message) view returns(uint256)

func (*IMessageBusSession) ExecuteMessage

func (_IMessageBus *IMessageBusSession) ExecuteMessage(_message []byte, _route MsgDataTypesRouteInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessage is a paid mutator transaction binding the contract method 0x468a2d04.

Solidity: function executeMessage(bytes _message, (address,address,uint64,bytes32) _route, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusSession) ExecuteMessageWithTransfer

func (_IMessageBus *IMessageBusSession) ExecuteMessageWithTransfer(_message []byte, _transfer MsgDataTypesTransferInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessageWithTransfer is a paid mutator transaction binding the contract method 0x3f395aff.

Solidity: function executeMessageWithTransfer(bytes _message, (uint8,address,address,address,uint256,uint64,uint64,bytes32,bytes32) _transfer, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusSession) ExecuteMessageWithTransferRefund

func (_IMessageBus *IMessageBusSession) ExecuteMessageWithTransferRefund(_message []byte, _transfer MsgDataTypesTransferInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessageWithTransferRefund is a paid mutator transaction binding the contract method 0x7b80ab20.

Solidity: function executeMessageWithTransferRefund(bytes _message, (uint8,address,address,address,uint256,uint64,uint64,bytes32,bytes32) _transfer, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusSession) FeeBase

func (_IMessageBus *IMessageBusSession) FeeBase() (*big.Int, error)

FeeBase is a free data retrieval call binding the contract method 0x95e911a8.

Solidity: function feeBase() view returns(uint256)

func (*IMessageBusSession) FeePerByte

func (_IMessageBus *IMessageBusSession) FeePerByte() (*big.Int, error)

FeePerByte is a free data retrieval call binding the contract method 0xf60bbe2a.

Solidity: function feePerByte() view returns(uint256)

func (*IMessageBusSession) LiquidityBridge

func (_IMessageBus *IMessageBusSession) LiquidityBridge() (common.Address, error)

LiquidityBridge is a free data retrieval call binding the contract method 0x82980dc4.

Solidity: function liquidityBridge() view returns(address)

func (*IMessageBusSession) PegBridge

func (_IMessageBus *IMessageBusSession) PegBridge() (common.Address, error)

PegBridge is a free data retrieval call binding the contract method 0xdfa2dbaf.

Solidity: function pegBridge() view returns(address)

func (*IMessageBusSession) PegBridgeV2

func (_IMessageBus *IMessageBusSession) PegBridgeV2() (common.Address, error)

PegBridgeV2 is a free data retrieval call binding the contract method 0x95b12c27.

Solidity: function pegBridgeV2() view returns(address)

func (*IMessageBusSession) PegVault

func (_IMessageBus *IMessageBusSession) PegVault() (common.Address, error)

PegVault is a free data retrieval call binding the contract method 0xd8257d17.

Solidity: function pegVault() view returns(address)

func (*IMessageBusSession) PegVaultV2

func (_IMessageBus *IMessageBusSession) PegVaultV2() (common.Address, error)

PegVaultV2 is a free data retrieval call binding the contract method 0xc66a9c5a.

Solidity: function pegVaultV2() view returns(address)

func (*IMessageBusSession) SendMessage

func (_IMessageBus *IMessageBusSession) SendMessage(_receiver common.Address, _dstChainId *big.Int, _message []byte) (*types.Transaction, error)

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

Solidity: function sendMessage(address _receiver, uint256 _dstChainId, bytes _message) payable returns()

func (*IMessageBusSession) SendMessageWithTransfer

func (_IMessageBus *IMessageBusSession) SendMessageWithTransfer(_receiver common.Address, _dstChainId *big.Int, _srcBridge common.Address, _srcTransferId [32]byte, _message []byte) (*types.Transaction, error)

SendMessageWithTransfer is a paid mutator transaction binding the contract method 0x4289fbb3.

Solidity: function sendMessageWithTransfer(address _receiver, uint256 _dstChainId, address _srcBridge, bytes32 _srcTransferId, bytes _message) payable returns()

func (*IMessageBusSession) WithdrawFee

func (_IMessageBus *IMessageBusSession) WithdrawFee(_account common.Address, _cumulativeFee *big.Int, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

WithdrawFee is a paid mutator transaction binding the contract method 0x2ff4c411.

Solidity: function withdrawFee(address _account, uint256 _cumulativeFee, bytes[] _sigs, address[] _signers, uint256[] _powers) returns()

type IMessageBusTransactor

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

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

func NewIMessageBusTransactor

func NewIMessageBusTransactor(address common.Address, transactor bind.ContractTransactor) (*IMessageBusTransactor, error)

NewIMessageBusTransactor creates a new write-only instance of IMessageBus, bound to a specific deployed contract.

func (*IMessageBusTransactor) ExecuteMessage

func (_IMessageBus *IMessageBusTransactor) ExecuteMessage(opts *bind.TransactOpts, _message []byte, _route MsgDataTypesRouteInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessage is a paid mutator transaction binding the contract method 0x468a2d04.

Solidity: function executeMessage(bytes _message, (address,address,uint64,bytes32) _route, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusTransactor) ExecuteMessageWithTransfer

func (_IMessageBus *IMessageBusTransactor) ExecuteMessageWithTransfer(opts *bind.TransactOpts, _message []byte, _transfer MsgDataTypesTransferInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessageWithTransfer is a paid mutator transaction binding the contract method 0x3f395aff.

Solidity: function executeMessageWithTransfer(bytes _message, (uint8,address,address,address,uint256,uint64,uint64,bytes32,bytes32) _transfer, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusTransactor) ExecuteMessageWithTransferRefund

func (_IMessageBus *IMessageBusTransactor) ExecuteMessageWithTransferRefund(opts *bind.TransactOpts, _message []byte, _transfer MsgDataTypesTransferInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessageWithTransferRefund is a paid mutator transaction binding the contract method 0x7b80ab20.

Solidity: function executeMessageWithTransferRefund(bytes _message, (uint8,address,address,address,uint256,uint64,uint64,bytes32,bytes32) _transfer, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusTransactor) SendMessage

func (_IMessageBus *IMessageBusTransactor) SendMessage(opts *bind.TransactOpts, _receiver common.Address, _dstChainId *big.Int, _message []byte) (*types.Transaction, error)

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

Solidity: function sendMessage(address _receiver, uint256 _dstChainId, bytes _message) payable returns()

func (*IMessageBusTransactor) SendMessageWithTransfer

func (_IMessageBus *IMessageBusTransactor) SendMessageWithTransfer(opts *bind.TransactOpts, _receiver common.Address, _dstChainId *big.Int, _srcBridge common.Address, _srcTransferId [32]byte, _message []byte) (*types.Transaction, error)

SendMessageWithTransfer is a paid mutator transaction binding the contract method 0x4289fbb3.

Solidity: function sendMessageWithTransfer(address _receiver, uint256 _dstChainId, address _srcBridge, bytes32 _srcTransferId, bytes _message) payable returns()

func (*IMessageBusTransactor) WithdrawFee

func (_IMessageBus *IMessageBusTransactor) WithdrawFee(opts *bind.TransactOpts, _account common.Address, _cumulativeFee *big.Int, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

WithdrawFee is a paid mutator transaction binding the contract method 0x2ff4c411.

Solidity: function withdrawFee(address _account, uint256 _cumulativeFee, bytes[] _sigs, address[] _signers, uint256[] _powers) returns()

type IMessageBusTransactorRaw

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

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

func (*IMessageBusTransactorRaw) Transact

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

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

func (*IMessageBusTransactorRaw) Transfer

func (_IMessageBus *IMessageBusTransactorRaw) 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 IMessageBusTransactorSession

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

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

func (*IMessageBusTransactorSession) ExecuteMessage

func (_IMessageBus *IMessageBusTransactorSession) ExecuteMessage(_message []byte, _route MsgDataTypesRouteInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessage is a paid mutator transaction binding the contract method 0x468a2d04.

Solidity: function executeMessage(bytes _message, (address,address,uint64,bytes32) _route, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusTransactorSession) ExecuteMessageWithTransfer

func (_IMessageBus *IMessageBusTransactorSession) ExecuteMessageWithTransfer(_message []byte, _transfer MsgDataTypesTransferInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessageWithTransfer is a paid mutator transaction binding the contract method 0x3f395aff.

Solidity: function executeMessageWithTransfer(bytes _message, (uint8,address,address,address,uint256,uint64,uint64,bytes32,bytes32) _transfer, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusTransactorSession) ExecuteMessageWithTransferRefund

func (_IMessageBus *IMessageBusTransactorSession) ExecuteMessageWithTransferRefund(_message []byte, _transfer MsgDataTypesTransferInfo, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

ExecuteMessageWithTransferRefund is a paid mutator transaction binding the contract method 0x7b80ab20.

Solidity: function executeMessageWithTransferRefund(bytes _message, (uint8,address,address,address,uint256,uint64,uint64,bytes32,bytes32) _transfer, bytes[] _sigs, address[] _signers, uint256[] _powers) payable returns()

func (*IMessageBusTransactorSession) SendMessage

func (_IMessageBus *IMessageBusTransactorSession) SendMessage(_receiver common.Address, _dstChainId *big.Int, _message []byte) (*types.Transaction, error)

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

Solidity: function sendMessage(address _receiver, uint256 _dstChainId, bytes _message) payable returns()

func (*IMessageBusTransactorSession) SendMessageWithTransfer

func (_IMessageBus *IMessageBusTransactorSession) SendMessageWithTransfer(_receiver common.Address, _dstChainId *big.Int, _srcBridge common.Address, _srcTransferId [32]byte, _message []byte) (*types.Transaction, error)

SendMessageWithTransfer is a paid mutator transaction binding the contract method 0x4289fbb3.

Solidity: function sendMessageWithTransfer(address _receiver, uint256 _dstChainId, address _srcBridge, bytes32 _srcTransferId, bytes _message) payable returns()

func (*IMessageBusTransactorSession) WithdrawFee

func (_IMessageBus *IMessageBusTransactorSession) WithdrawFee(_account common.Address, _cumulativeFee *big.Int, _sigs [][]byte, _signers []common.Address, _powers []*big.Int) (*types.Transaction, error)

WithdrawFee is a paid mutator transaction binding the contract method 0x2ff4c411.

Solidity: function withdrawFee(address _account, uint256 _cumulativeFee, bytes[] _sigs, address[] _signers, uint256[] _powers) returns()

type MsgDataTypes

type MsgDataTypes struct {
	MsgDataTypesCaller     // Read-only binding to the contract
	MsgDataTypesTransactor // Write-only binding to the contract
	MsgDataTypesFilterer   // Log filterer for contract events
}

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

func DeployMsgDataTypes

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

DeployMsgDataTypes deploys a new Ethereum contract, binding an instance of MsgDataTypes to it.

func NewMsgDataTypes

func NewMsgDataTypes(address common.Address, backend bind.ContractBackend) (*MsgDataTypes, error)

NewMsgDataTypes creates a new instance of MsgDataTypes, bound to a specific deployed contract.

type MsgDataTypesCaller

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

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

func NewMsgDataTypesCaller

func NewMsgDataTypesCaller(address common.Address, caller bind.ContractCaller) (*MsgDataTypesCaller, error)

NewMsgDataTypesCaller creates a new read-only instance of MsgDataTypes, bound to a specific deployed contract.

type MsgDataTypesCallerRaw

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

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

func (*MsgDataTypesCallerRaw) Call

func (_MsgDataTypes *MsgDataTypesCallerRaw) 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 MsgDataTypesCallerSession

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

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

type MsgDataTypesFilterer

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

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

func NewMsgDataTypesFilterer

func NewMsgDataTypesFilterer(address common.Address, filterer bind.ContractFilterer) (*MsgDataTypesFilterer, error)

NewMsgDataTypesFilterer creates a new log filterer instance of MsgDataTypes, bound to a specific deployed contract.

type MsgDataTypesRaw

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

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

func (*MsgDataTypesRaw) Call

func (_MsgDataTypes *MsgDataTypesRaw) 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 (*MsgDataTypesRaw) Transact

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

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

func (*MsgDataTypesRaw) Transfer

func (_MsgDataTypes *MsgDataTypesRaw) 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 MsgDataTypesRouteInfo

type MsgDataTypesRouteInfo struct {
	Sender     common.Address
	Receiver   common.Address
	SrcChainId uint64
	SrcTxHash  [32]byte
}

MsgDataTypesRouteInfo is an auto generated low-level Go binding around an user-defined struct.

type MsgDataTypesSession

type MsgDataTypesSession struct {
	Contract     *MsgDataTypes     // 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
}

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

type MsgDataTypesTransactor

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

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

func NewMsgDataTypesTransactor

func NewMsgDataTypesTransactor(address common.Address, transactor bind.ContractTransactor) (*MsgDataTypesTransactor, error)

NewMsgDataTypesTransactor creates a new write-only instance of MsgDataTypes, bound to a specific deployed contract.

type MsgDataTypesTransactorRaw

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

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

func (*MsgDataTypesTransactorRaw) Transact

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

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

func (*MsgDataTypesTransactorRaw) Transfer

func (_MsgDataTypes *MsgDataTypesTransactorRaw) 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 MsgDataTypesTransactorSession

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

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

type MsgDataTypesTransferInfo

type MsgDataTypesTransferInfo struct {
	T          uint8
	Sender     common.Address
	Receiver   common.Address
	Token      common.Address
	Amount     *big.Int
	Wdseq      uint64
	SrcChainId uint64
	RefId      [32]byte
	SrcTxHash  [32]byte
}

MsgDataTypesTransferInfo is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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