bridgehub

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IBridgehubABI = IBridgehubMetaData.ABI

IBridgehubABI is the input ABI used to generate the binding from. Deprecated: Use IBridgehubMetaData.ABI instead.

View Source
var IBridgehubMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAdmin\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"NewAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"stateTransitionManager\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"chainGovernance\",\"type\":\"address\"}],\"name\":\"NewChain\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldPendingAdmin\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newPendingAdmin\",\"type\":\"address\"}],\"name\":\"NewPendingAdmin\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stateTransitionManager\",\"type\":\"address\"}],\"name\":\"addStateTransitionManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"addToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"}],\"name\":\"baseToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_stateTransitionManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_baseToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_admin\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_initData\",\"type\":\"bytes\"}],\"name\":\"createNewChain\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"}],\"name\":\"getHyperchain\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2GasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2GasPerPubdataByteLimit\",\"type\":\"uint256\"}],\"name\":\"l2TransactionBaseCost\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_l2TxHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_l2BatchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_l2TxNumberInBatch\",\"type\":\"uint16\"},{\"internalType\":\"bytes32[]\",\"name\":\"_merkleProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"enumTxStatus\",\"name\":\"_status\",\"type\":\"uint8\"}],\"name\":\"proveL1ToL2TransactionStatus\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"l2ShardId\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"isService\",\"type\":\"bool\"},{\"internalType\":\"uint16\",\"name\":\"txNumberInBatch\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"}],\"internalType\":\"structL2Log\",\"name\":\"_log\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"_proof\",\"type\":\"bytes32[]\"}],\"name\":\"proveL2LogInclusion\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_batchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint16\",\"name\":\"txNumberInBatch\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structL2Message\",\"name\":\"_message\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"_proof\",\"type\":\"bytes32[]\"}],\"name\":\"proveL2MessageInclusion\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stateTransitionManager\",\"type\":\"address\"}],\"name\":\"removeStateTransitionManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintValue\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"l2Contract\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"l2Value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"l2Calldata\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"l2GasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2GasPerPubdataByteLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"factoryDeps\",\"type\":\"bytes[]\"},{\"internalType\":\"address\",\"name\":\"refundRecipient\",\"type\":\"address\"}],\"internalType\":\"structL2TransactionRequestDirect\",\"name\":\"_request\",\"type\":\"tuple\"}],\"name\":\"requestL2TransactionDirect\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"canonicalTxHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2Value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2GasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2GasPerPubdataByteLimit\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"refundRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"secondBridgeAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"secondBridgeValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"secondBridgeCalldata\",\"type\":\"bytes\"}],\"internalType\":\"structL2TransactionRequestTwoBridgesOuter\",\"name\":\"_request\",\"type\":\"tuple\"}],\"name\":\"requestL2TransactionTwoBridges\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"canonicalTxHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newPendingAdmin\",\"type\":\"address\"}],\"name\":\"setPendingAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sharedBridge\",\"type\":\"address\"}],\"name\":\"setSharedBridge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sharedBridge\",\"outputs\":[{\"internalType\":\"contractIL1SharedBridge\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainId\",\"type\":\"uint256\"}],\"name\":\"stateTransitionManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stateTransitionManager\",\"type\":\"address\"}],\"name\":\"stateTransitionManagerIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_baseToken\",\"type\":\"address\"}],\"name\":\"tokenIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

IBridgehubMetaData contains all meta data concerning the IBridgehub contract.

Functions

This section is empty.

Types

type IBridgehub

type IBridgehub struct {
	IBridgehubCaller     // Read-only binding to the contract
	IBridgehubTransactor // Write-only binding to the contract
	IBridgehubFilterer   // Log filterer for contract events
}

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

func NewIBridgehub

func NewIBridgehub(address common.Address, backend bind.ContractBackend) (*IBridgehub, error)

NewIBridgehub creates a new instance of IBridgehub, bound to a specific deployed contract.

type IBridgehubCaller

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

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

func NewIBridgehubCaller

func NewIBridgehubCaller(address common.Address, caller bind.ContractCaller) (*IBridgehubCaller, error)

NewIBridgehubCaller creates a new read-only instance of IBridgehub, bound to a specific deployed contract.

func (*IBridgehubCaller) BaseToken

func (_IBridgehub *IBridgehubCaller) BaseToken(opts *bind.CallOpts, _chainId *big.Int) (common.Address, error)

BaseToken is a free data retrieval call binding the contract method 0x59ec65a2.

Solidity: function baseToken(uint256 _chainId) view returns(address)

func (*IBridgehubCaller) GetHyperchain

func (_IBridgehub *IBridgehubCaller) GetHyperchain(opts *bind.CallOpts, _chainId *big.Int) (common.Address, error)

GetHyperchain is a free data retrieval call binding the contract method 0xdead6f7f.

Solidity: function getHyperchain(uint256 _chainId) view returns(address)

func (*IBridgehubCaller) L2TransactionBaseCost

func (_IBridgehub *IBridgehubCaller) L2TransactionBaseCost(opts *bind.CallOpts, _chainId *big.Int, _gasPrice *big.Int, _l2GasLimit *big.Int, _l2GasPerPubdataByteLimit *big.Int) (*big.Int, error)

L2TransactionBaseCost is a free data retrieval call binding the contract method 0x71623274.

Solidity: function l2TransactionBaseCost(uint256 _chainId, uint256 _gasPrice, uint256 _l2GasLimit, uint256 _l2GasPerPubdataByteLimit) view returns(uint256)

func (*IBridgehubCaller) ProveL1ToL2TransactionStatus

func (_IBridgehub *IBridgehubCaller) ProveL1ToL2TransactionStatus(opts *bind.CallOpts, _chainId *big.Int, _l2TxHash [32]byte, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _merkleProof [][32]byte, _status uint8) (bool, error)

ProveL1ToL2TransactionStatus is a free data retrieval call binding the contract method 0xb292f5f1.

Solidity: function proveL1ToL2TransactionStatus(uint256 _chainId, bytes32 _l2TxHash, uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes32[] _merkleProof, uint8 _status) view returns(bool)

func (*IBridgehubCaller) ProveL2LogInclusion

func (_IBridgehub *IBridgehubCaller) ProveL2LogInclusion(opts *bind.CallOpts, _chainId *big.Int, _batchNumber *big.Int, _index *big.Int, _log L2Log, _proof [][32]byte) (bool, error)

ProveL2LogInclusion is a free data retrieval call binding the contract method 0xe6d9923b.

Solidity: function proveL2LogInclusion(uint256 _chainId, uint256 _batchNumber, uint256 _index, (uint8,bool,uint16,address,bytes32,bytes32) _log, bytes32[] _proof) view returns(bool)

func (*IBridgehubCaller) ProveL2MessageInclusion

func (_IBridgehub *IBridgehubCaller) ProveL2MessageInclusion(opts *bind.CallOpts, _chainId *big.Int, _batchNumber *big.Int, _index *big.Int, _message L2Message, _proof [][32]byte) (bool, error)

ProveL2MessageInclusion is a free data retrieval call binding the contract method 0x99c16d1a.

Solidity: function proveL2MessageInclusion(uint256 _chainId, uint256 _batchNumber, uint256 _index, (uint16,address,bytes) _message, bytes32[] _proof) view returns(bool)

func (*IBridgehubCaller) SharedBridge

func (_IBridgehub *IBridgehubCaller) SharedBridge(opts *bind.CallOpts) (common.Address, error)

SharedBridge is a free data retrieval call binding the contract method 0x38720778.

Solidity: function sharedBridge() view returns(address)

func (*IBridgehubCaller) StateTransitionManager

func (_IBridgehub *IBridgehubCaller) StateTransitionManager(opts *bind.CallOpts, _chainId *big.Int) (common.Address, error)

StateTransitionManager is a free data retrieval call binding the contract method 0x402efc91.

Solidity: function stateTransitionManager(uint256 _chainId) view returns(address)

func (*IBridgehubCaller) StateTransitionManagerIsRegistered

func (_IBridgehub *IBridgehubCaller) StateTransitionManagerIsRegistered(opts *bind.CallOpts, _stateTransitionManager common.Address) (bool, error)

StateTransitionManagerIsRegistered is a free data retrieval call binding the contract method 0xbb7044b6.

Solidity: function stateTransitionManagerIsRegistered(address _stateTransitionManager) view returns(bool)

func (*IBridgehubCaller) TokenIsRegistered

func (_IBridgehub *IBridgehubCaller) TokenIsRegistered(opts *bind.CallOpts, _baseToken common.Address) (bool, error)

TokenIsRegistered is a free data retrieval call binding the contract method 0x805b5b74.

Solidity: function tokenIsRegistered(address _baseToken) view returns(bool)

type IBridgehubCallerRaw

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

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

func (*IBridgehubCallerRaw) Call

func (_IBridgehub *IBridgehubCallerRaw) 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 IBridgehubCallerSession

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

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

func (*IBridgehubCallerSession) BaseToken

func (_IBridgehub *IBridgehubCallerSession) BaseToken(_chainId *big.Int) (common.Address, error)

BaseToken is a free data retrieval call binding the contract method 0x59ec65a2.

Solidity: function baseToken(uint256 _chainId) view returns(address)

func (*IBridgehubCallerSession) GetHyperchain

func (_IBridgehub *IBridgehubCallerSession) GetHyperchain(_chainId *big.Int) (common.Address, error)

GetHyperchain is a free data retrieval call binding the contract method 0xdead6f7f.

Solidity: function getHyperchain(uint256 _chainId) view returns(address)

func (*IBridgehubCallerSession) L2TransactionBaseCost

func (_IBridgehub *IBridgehubCallerSession) L2TransactionBaseCost(_chainId *big.Int, _gasPrice *big.Int, _l2GasLimit *big.Int, _l2GasPerPubdataByteLimit *big.Int) (*big.Int, error)

L2TransactionBaseCost is a free data retrieval call binding the contract method 0x71623274.

Solidity: function l2TransactionBaseCost(uint256 _chainId, uint256 _gasPrice, uint256 _l2GasLimit, uint256 _l2GasPerPubdataByteLimit) view returns(uint256)

func (*IBridgehubCallerSession) ProveL1ToL2TransactionStatus

func (_IBridgehub *IBridgehubCallerSession) ProveL1ToL2TransactionStatus(_chainId *big.Int, _l2TxHash [32]byte, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _merkleProof [][32]byte, _status uint8) (bool, error)

ProveL1ToL2TransactionStatus is a free data retrieval call binding the contract method 0xb292f5f1.

Solidity: function proveL1ToL2TransactionStatus(uint256 _chainId, bytes32 _l2TxHash, uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes32[] _merkleProof, uint8 _status) view returns(bool)

func (*IBridgehubCallerSession) ProveL2LogInclusion

func (_IBridgehub *IBridgehubCallerSession) ProveL2LogInclusion(_chainId *big.Int, _batchNumber *big.Int, _index *big.Int, _log L2Log, _proof [][32]byte) (bool, error)

ProveL2LogInclusion is a free data retrieval call binding the contract method 0xe6d9923b.

Solidity: function proveL2LogInclusion(uint256 _chainId, uint256 _batchNumber, uint256 _index, (uint8,bool,uint16,address,bytes32,bytes32) _log, bytes32[] _proof) view returns(bool)

func (*IBridgehubCallerSession) ProveL2MessageInclusion

func (_IBridgehub *IBridgehubCallerSession) ProveL2MessageInclusion(_chainId *big.Int, _batchNumber *big.Int, _index *big.Int, _message L2Message, _proof [][32]byte) (bool, error)

ProveL2MessageInclusion is a free data retrieval call binding the contract method 0x99c16d1a.

Solidity: function proveL2MessageInclusion(uint256 _chainId, uint256 _batchNumber, uint256 _index, (uint16,address,bytes) _message, bytes32[] _proof) view returns(bool)

func (*IBridgehubCallerSession) SharedBridge

func (_IBridgehub *IBridgehubCallerSession) SharedBridge() (common.Address, error)

SharedBridge is a free data retrieval call binding the contract method 0x38720778.

Solidity: function sharedBridge() view returns(address)

func (*IBridgehubCallerSession) StateTransitionManager

func (_IBridgehub *IBridgehubCallerSession) StateTransitionManager(_chainId *big.Int) (common.Address, error)

StateTransitionManager is a free data retrieval call binding the contract method 0x402efc91.

Solidity: function stateTransitionManager(uint256 _chainId) view returns(address)

func (*IBridgehubCallerSession) StateTransitionManagerIsRegistered

func (_IBridgehub *IBridgehubCallerSession) StateTransitionManagerIsRegistered(_stateTransitionManager common.Address) (bool, error)

StateTransitionManagerIsRegistered is a free data retrieval call binding the contract method 0xbb7044b6.

Solidity: function stateTransitionManagerIsRegistered(address _stateTransitionManager) view returns(bool)

func (*IBridgehubCallerSession) TokenIsRegistered

func (_IBridgehub *IBridgehubCallerSession) TokenIsRegistered(_baseToken common.Address) (bool, error)

TokenIsRegistered is a free data retrieval call binding the contract method 0x805b5b74.

Solidity: function tokenIsRegistered(address _baseToken) view returns(bool)

type IBridgehubFilterer

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

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

func NewIBridgehubFilterer

func NewIBridgehubFilterer(address common.Address, filterer bind.ContractFilterer) (*IBridgehubFilterer, error)

NewIBridgehubFilterer creates a new log filterer instance of IBridgehub, bound to a specific deployed contract.

func (*IBridgehubFilterer) FilterNewAdmin

func (_IBridgehub *IBridgehubFilterer) FilterNewAdmin(opts *bind.FilterOpts, oldAdmin []common.Address, newAdmin []common.Address) (*IBridgehubNewAdminIterator, error)

FilterNewAdmin is a free log retrieval operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address indexed oldAdmin, address indexed newAdmin)

func (*IBridgehubFilterer) FilterNewChain

func (_IBridgehub *IBridgehubFilterer) FilterNewChain(opts *bind.FilterOpts, chainId []*big.Int, chainGovernance []common.Address) (*IBridgehubNewChainIterator, error)

FilterNewChain is a free log retrieval operation binding the contract event 0x1e9125bc72db22c58abff6821d7333551967e26454b419ffa958e4cb8ef47600.

Solidity: event NewChain(uint256 indexed chainId, address stateTransitionManager, address indexed chainGovernance)

func (*IBridgehubFilterer) FilterNewPendingAdmin

func (_IBridgehub *IBridgehubFilterer) FilterNewPendingAdmin(opts *bind.FilterOpts, oldPendingAdmin []common.Address, newPendingAdmin []common.Address) (*IBridgehubNewPendingAdminIterator, error)

FilterNewPendingAdmin is a free log retrieval operation binding the contract event 0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9.

Solidity: event NewPendingAdmin(address indexed oldPendingAdmin, address indexed newPendingAdmin)

func (*IBridgehubFilterer) ParseNewAdmin

func (_IBridgehub *IBridgehubFilterer) ParseNewAdmin(log types.Log) (*IBridgehubNewAdmin, error)

ParseNewAdmin is a log parse operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address indexed oldAdmin, address indexed newAdmin)

func (*IBridgehubFilterer) ParseNewChain

func (_IBridgehub *IBridgehubFilterer) ParseNewChain(log types.Log) (*IBridgehubNewChain, error)

ParseNewChain is a log parse operation binding the contract event 0x1e9125bc72db22c58abff6821d7333551967e26454b419ffa958e4cb8ef47600.

Solidity: event NewChain(uint256 indexed chainId, address stateTransitionManager, address indexed chainGovernance)

func (*IBridgehubFilterer) ParseNewPendingAdmin

func (_IBridgehub *IBridgehubFilterer) ParseNewPendingAdmin(log types.Log) (*IBridgehubNewPendingAdmin, error)

ParseNewPendingAdmin is a log parse operation binding the contract event 0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9.

Solidity: event NewPendingAdmin(address indexed oldPendingAdmin, address indexed newPendingAdmin)

func (*IBridgehubFilterer) WatchNewAdmin

func (_IBridgehub *IBridgehubFilterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *IBridgehubNewAdmin, oldAdmin []common.Address, newAdmin []common.Address) (event.Subscription, error)

WatchNewAdmin is a free log subscription operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address indexed oldAdmin, address indexed newAdmin)

func (*IBridgehubFilterer) WatchNewChain

func (_IBridgehub *IBridgehubFilterer) WatchNewChain(opts *bind.WatchOpts, sink chan<- *IBridgehubNewChain, chainId []*big.Int, chainGovernance []common.Address) (event.Subscription, error)

WatchNewChain is a free log subscription operation binding the contract event 0x1e9125bc72db22c58abff6821d7333551967e26454b419ffa958e4cb8ef47600.

Solidity: event NewChain(uint256 indexed chainId, address stateTransitionManager, address indexed chainGovernance)

func (*IBridgehubFilterer) WatchNewPendingAdmin

func (_IBridgehub *IBridgehubFilterer) WatchNewPendingAdmin(opts *bind.WatchOpts, sink chan<- *IBridgehubNewPendingAdmin, oldPendingAdmin []common.Address, newPendingAdmin []common.Address) (event.Subscription, error)

WatchNewPendingAdmin is a free log subscription operation binding the contract event 0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9.

Solidity: event NewPendingAdmin(address indexed oldPendingAdmin, address indexed newPendingAdmin)

type IBridgehubNewAdmin

type IBridgehubNewAdmin struct {
	OldAdmin common.Address
	NewAdmin common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

IBridgehubNewAdmin represents a NewAdmin event raised by the IBridgehub contract.

type IBridgehubNewAdminIterator

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

IBridgehubNewAdminIterator is returned from FilterNewAdmin and is used to iterate over the raw logs and unpacked data for NewAdmin events raised by the IBridgehub contract.

func (*IBridgehubNewAdminIterator) Close

func (it *IBridgehubNewAdminIterator) Close() error

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

func (*IBridgehubNewAdminIterator) Error

func (it *IBridgehubNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBridgehubNewAdminIterator) Next

func (it *IBridgehubNewAdminIterator) 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 IBridgehubNewChain

type IBridgehubNewChain struct {
	ChainId                *big.Int
	StateTransitionManager common.Address
	ChainGovernance        common.Address
	Raw                    types.Log // Blockchain specific contextual infos
}

IBridgehubNewChain represents a NewChain event raised by the IBridgehub contract.

type IBridgehubNewChainIterator

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

IBridgehubNewChainIterator is returned from FilterNewChain and is used to iterate over the raw logs and unpacked data for NewChain events raised by the IBridgehub contract.

func (*IBridgehubNewChainIterator) Close

func (it *IBridgehubNewChainIterator) Close() error

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

func (*IBridgehubNewChainIterator) Error

func (it *IBridgehubNewChainIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBridgehubNewChainIterator) Next

func (it *IBridgehubNewChainIterator) 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 IBridgehubNewPendingAdmin

type IBridgehubNewPendingAdmin struct {
	OldPendingAdmin common.Address
	NewPendingAdmin common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

IBridgehubNewPendingAdmin represents a NewPendingAdmin event raised by the IBridgehub contract.

type IBridgehubNewPendingAdminIterator

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

IBridgehubNewPendingAdminIterator is returned from FilterNewPendingAdmin and is used to iterate over the raw logs and unpacked data for NewPendingAdmin events raised by the IBridgehub contract.

func (*IBridgehubNewPendingAdminIterator) Close

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

func (*IBridgehubNewPendingAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBridgehubNewPendingAdminIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IBridgehubRaw

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

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

func (*IBridgehubRaw) Call

func (_IBridgehub *IBridgehubRaw) 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 (*IBridgehubRaw) Transact

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

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

func (*IBridgehubRaw) Transfer

func (_IBridgehub *IBridgehubRaw) 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 IBridgehubSession

type IBridgehubSession struct {
	Contract     *IBridgehub       // 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
}

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

func (*IBridgehubSession) AcceptAdmin

func (_IBridgehub *IBridgehubSession) AcceptAdmin() (*types.Transaction, error)

AcceptAdmin is a paid mutator transaction binding the contract method 0x0e18b681.

Solidity: function acceptAdmin() returns()

func (*IBridgehubSession) AddStateTransitionManager

func (_IBridgehub *IBridgehubSession) AddStateTransitionManager(_stateTransitionManager common.Address) (*types.Transaction, error)

AddStateTransitionManager is a paid mutator transaction binding the contract method 0x74044673.

Solidity: function addStateTransitionManager(address _stateTransitionManager) returns()

func (*IBridgehubSession) AddToken

func (_IBridgehub *IBridgehubSession) AddToken(_token common.Address) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0xd48bfca7.

Solidity: function addToken(address _token) returns()

func (*IBridgehubSession) BaseToken

func (_IBridgehub *IBridgehubSession) BaseToken(_chainId *big.Int) (common.Address, error)

BaseToken is a free data retrieval call binding the contract method 0x59ec65a2.

Solidity: function baseToken(uint256 _chainId) view returns(address)

func (*IBridgehubSession) CreateNewChain

func (_IBridgehub *IBridgehubSession) CreateNewChain(_chainId *big.Int, _stateTransitionManager common.Address, _baseToken common.Address, _salt *big.Int, _admin common.Address, _initData []byte) (*types.Transaction, error)

CreateNewChain is a paid mutator transaction binding the contract method 0x3f58f5b5.

Solidity: function createNewChain(uint256 _chainId, address _stateTransitionManager, address _baseToken, uint256 _salt, address _admin, bytes _initData) returns(uint256 chainId)

func (*IBridgehubSession) GetHyperchain

func (_IBridgehub *IBridgehubSession) GetHyperchain(_chainId *big.Int) (common.Address, error)

GetHyperchain is a free data retrieval call binding the contract method 0xdead6f7f.

Solidity: function getHyperchain(uint256 _chainId) view returns(address)

func (*IBridgehubSession) L2TransactionBaseCost

func (_IBridgehub *IBridgehubSession) L2TransactionBaseCost(_chainId *big.Int, _gasPrice *big.Int, _l2GasLimit *big.Int, _l2GasPerPubdataByteLimit *big.Int) (*big.Int, error)

L2TransactionBaseCost is a free data retrieval call binding the contract method 0x71623274.

Solidity: function l2TransactionBaseCost(uint256 _chainId, uint256 _gasPrice, uint256 _l2GasLimit, uint256 _l2GasPerPubdataByteLimit) view returns(uint256)

func (*IBridgehubSession) ProveL1ToL2TransactionStatus

func (_IBridgehub *IBridgehubSession) ProveL1ToL2TransactionStatus(_chainId *big.Int, _l2TxHash [32]byte, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _merkleProof [][32]byte, _status uint8) (bool, error)

ProveL1ToL2TransactionStatus is a free data retrieval call binding the contract method 0xb292f5f1.

Solidity: function proveL1ToL2TransactionStatus(uint256 _chainId, bytes32 _l2TxHash, uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes32[] _merkleProof, uint8 _status) view returns(bool)

func (*IBridgehubSession) ProveL2LogInclusion

func (_IBridgehub *IBridgehubSession) ProveL2LogInclusion(_chainId *big.Int, _batchNumber *big.Int, _index *big.Int, _log L2Log, _proof [][32]byte) (bool, error)

ProveL2LogInclusion is a free data retrieval call binding the contract method 0xe6d9923b.

Solidity: function proveL2LogInclusion(uint256 _chainId, uint256 _batchNumber, uint256 _index, (uint8,bool,uint16,address,bytes32,bytes32) _log, bytes32[] _proof) view returns(bool)

func (*IBridgehubSession) ProveL2MessageInclusion

func (_IBridgehub *IBridgehubSession) ProveL2MessageInclusion(_chainId *big.Int, _batchNumber *big.Int, _index *big.Int, _message L2Message, _proof [][32]byte) (bool, error)

ProveL2MessageInclusion is a free data retrieval call binding the contract method 0x99c16d1a.

Solidity: function proveL2MessageInclusion(uint256 _chainId, uint256 _batchNumber, uint256 _index, (uint16,address,bytes) _message, bytes32[] _proof) view returns(bool)

func (*IBridgehubSession) RemoveStateTransitionManager

func (_IBridgehub *IBridgehubSession) RemoveStateTransitionManager(_stateTransitionManager common.Address) (*types.Transaction, error)

RemoveStateTransitionManager is a paid mutator transaction binding the contract method 0xf5ba4232.

Solidity: function removeStateTransitionManager(address _stateTransitionManager) returns()

func (*IBridgehubSession) RequestL2TransactionDirect

func (_IBridgehub *IBridgehubSession) RequestL2TransactionDirect(_request L2TransactionRequestDirect) (*types.Transaction, error)

RequestL2TransactionDirect is a paid mutator transaction binding the contract method 0xd52471c1.

Solidity: function requestL2TransactionDirect((uint256,uint256,address,uint256,bytes,uint256,uint256,bytes[],address) _request) payable returns(bytes32 canonicalTxHash)

func (*IBridgehubSession) RequestL2TransactionTwoBridges

func (_IBridgehub *IBridgehubSession) RequestL2TransactionTwoBridges(_request L2TransactionRequestTwoBridgesOuter) (*types.Transaction, error)

RequestL2TransactionTwoBridges is a paid mutator transaction binding the contract method 0x24fd57fb.

Solidity: function requestL2TransactionTwoBridges((uint256,uint256,uint256,uint256,uint256,address,address,uint256,bytes) _request) payable returns(bytes32 canonicalTxHash)

func (*IBridgehubSession) SetPendingAdmin

func (_IBridgehub *IBridgehubSession) SetPendingAdmin(_newPendingAdmin common.Address) (*types.Transaction, error)

SetPendingAdmin is a paid mutator transaction binding the contract method 0x4dd18bf5.

Solidity: function setPendingAdmin(address _newPendingAdmin) returns()

func (*IBridgehubSession) SetSharedBridge

func (_IBridgehub *IBridgehubSession) SetSharedBridge(_sharedBridge common.Address) (*types.Transaction, error)

SetSharedBridge is a paid mutator transaction binding the contract method 0xd0bf6fd4.

Solidity: function setSharedBridge(address _sharedBridge) returns()

func (*IBridgehubSession) SharedBridge

func (_IBridgehub *IBridgehubSession) SharedBridge() (common.Address, error)

SharedBridge is a free data retrieval call binding the contract method 0x38720778.

Solidity: function sharedBridge() view returns(address)

func (*IBridgehubSession) StateTransitionManager

func (_IBridgehub *IBridgehubSession) StateTransitionManager(_chainId *big.Int) (common.Address, error)

StateTransitionManager is a free data retrieval call binding the contract method 0x402efc91.

Solidity: function stateTransitionManager(uint256 _chainId) view returns(address)

func (*IBridgehubSession) StateTransitionManagerIsRegistered

func (_IBridgehub *IBridgehubSession) StateTransitionManagerIsRegistered(_stateTransitionManager common.Address) (bool, error)

StateTransitionManagerIsRegistered is a free data retrieval call binding the contract method 0xbb7044b6.

Solidity: function stateTransitionManagerIsRegistered(address _stateTransitionManager) view returns(bool)

func (*IBridgehubSession) TokenIsRegistered

func (_IBridgehub *IBridgehubSession) TokenIsRegistered(_baseToken common.Address) (bool, error)

TokenIsRegistered is a free data retrieval call binding the contract method 0x805b5b74.

Solidity: function tokenIsRegistered(address _baseToken) view returns(bool)

type IBridgehubTransactor

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

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

func NewIBridgehubTransactor

func NewIBridgehubTransactor(address common.Address, transactor bind.ContractTransactor) (*IBridgehubTransactor, error)

NewIBridgehubTransactor creates a new write-only instance of IBridgehub, bound to a specific deployed contract.

func (*IBridgehubTransactor) AcceptAdmin

func (_IBridgehub *IBridgehubTransactor) AcceptAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptAdmin is a paid mutator transaction binding the contract method 0x0e18b681.

Solidity: function acceptAdmin() returns()

func (*IBridgehubTransactor) AddStateTransitionManager

func (_IBridgehub *IBridgehubTransactor) AddStateTransitionManager(opts *bind.TransactOpts, _stateTransitionManager common.Address) (*types.Transaction, error)

AddStateTransitionManager is a paid mutator transaction binding the contract method 0x74044673.

Solidity: function addStateTransitionManager(address _stateTransitionManager) returns()

func (*IBridgehubTransactor) AddToken

func (_IBridgehub *IBridgehubTransactor) AddToken(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0xd48bfca7.

Solidity: function addToken(address _token) returns()

func (*IBridgehubTransactor) CreateNewChain

func (_IBridgehub *IBridgehubTransactor) CreateNewChain(opts *bind.TransactOpts, _chainId *big.Int, _stateTransitionManager common.Address, _baseToken common.Address, _salt *big.Int, _admin common.Address, _initData []byte) (*types.Transaction, error)

CreateNewChain is a paid mutator transaction binding the contract method 0x3f58f5b5.

Solidity: function createNewChain(uint256 _chainId, address _stateTransitionManager, address _baseToken, uint256 _salt, address _admin, bytes _initData) returns(uint256 chainId)

func (*IBridgehubTransactor) RemoveStateTransitionManager

func (_IBridgehub *IBridgehubTransactor) RemoveStateTransitionManager(opts *bind.TransactOpts, _stateTransitionManager common.Address) (*types.Transaction, error)

RemoveStateTransitionManager is a paid mutator transaction binding the contract method 0xf5ba4232.

Solidity: function removeStateTransitionManager(address _stateTransitionManager) returns()

func (*IBridgehubTransactor) RequestL2TransactionDirect

func (_IBridgehub *IBridgehubTransactor) RequestL2TransactionDirect(opts *bind.TransactOpts, _request L2TransactionRequestDirect) (*types.Transaction, error)

RequestL2TransactionDirect is a paid mutator transaction binding the contract method 0xd52471c1.

Solidity: function requestL2TransactionDirect((uint256,uint256,address,uint256,bytes,uint256,uint256,bytes[],address) _request) payable returns(bytes32 canonicalTxHash)

func (*IBridgehubTransactor) RequestL2TransactionTwoBridges

func (_IBridgehub *IBridgehubTransactor) RequestL2TransactionTwoBridges(opts *bind.TransactOpts, _request L2TransactionRequestTwoBridgesOuter) (*types.Transaction, error)

RequestL2TransactionTwoBridges is a paid mutator transaction binding the contract method 0x24fd57fb.

Solidity: function requestL2TransactionTwoBridges((uint256,uint256,uint256,uint256,uint256,address,address,uint256,bytes) _request) payable returns(bytes32 canonicalTxHash)

func (*IBridgehubTransactor) SetPendingAdmin

func (_IBridgehub *IBridgehubTransactor) SetPendingAdmin(opts *bind.TransactOpts, _newPendingAdmin common.Address) (*types.Transaction, error)

SetPendingAdmin is a paid mutator transaction binding the contract method 0x4dd18bf5.

Solidity: function setPendingAdmin(address _newPendingAdmin) returns()

func (*IBridgehubTransactor) SetSharedBridge

func (_IBridgehub *IBridgehubTransactor) SetSharedBridge(opts *bind.TransactOpts, _sharedBridge common.Address) (*types.Transaction, error)

SetSharedBridge is a paid mutator transaction binding the contract method 0xd0bf6fd4.

Solidity: function setSharedBridge(address _sharedBridge) returns()

type IBridgehubTransactorRaw

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

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

func (*IBridgehubTransactorRaw) Transact

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

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

func (*IBridgehubTransactorRaw) Transfer

func (_IBridgehub *IBridgehubTransactorRaw) 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 IBridgehubTransactorSession

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

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

func (*IBridgehubTransactorSession) AcceptAdmin

func (_IBridgehub *IBridgehubTransactorSession) AcceptAdmin() (*types.Transaction, error)

AcceptAdmin is a paid mutator transaction binding the contract method 0x0e18b681.

Solidity: function acceptAdmin() returns()

func (*IBridgehubTransactorSession) AddStateTransitionManager

func (_IBridgehub *IBridgehubTransactorSession) AddStateTransitionManager(_stateTransitionManager common.Address) (*types.Transaction, error)

AddStateTransitionManager is a paid mutator transaction binding the contract method 0x74044673.

Solidity: function addStateTransitionManager(address _stateTransitionManager) returns()

func (*IBridgehubTransactorSession) AddToken

func (_IBridgehub *IBridgehubTransactorSession) AddToken(_token common.Address) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0xd48bfca7.

Solidity: function addToken(address _token) returns()

func (*IBridgehubTransactorSession) CreateNewChain

func (_IBridgehub *IBridgehubTransactorSession) CreateNewChain(_chainId *big.Int, _stateTransitionManager common.Address, _baseToken common.Address, _salt *big.Int, _admin common.Address, _initData []byte) (*types.Transaction, error)

CreateNewChain is a paid mutator transaction binding the contract method 0x3f58f5b5.

Solidity: function createNewChain(uint256 _chainId, address _stateTransitionManager, address _baseToken, uint256 _salt, address _admin, bytes _initData) returns(uint256 chainId)

func (*IBridgehubTransactorSession) RemoveStateTransitionManager

func (_IBridgehub *IBridgehubTransactorSession) RemoveStateTransitionManager(_stateTransitionManager common.Address) (*types.Transaction, error)

RemoveStateTransitionManager is a paid mutator transaction binding the contract method 0xf5ba4232.

Solidity: function removeStateTransitionManager(address _stateTransitionManager) returns()

func (*IBridgehubTransactorSession) RequestL2TransactionDirect

func (_IBridgehub *IBridgehubTransactorSession) RequestL2TransactionDirect(_request L2TransactionRequestDirect) (*types.Transaction, error)

RequestL2TransactionDirect is a paid mutator transaction binding the contract method 0xd52471c1.

Solidity: function requestL2TransactionDirect((uint256,uint256,address,uint256,bytes,uint256,uint256,bytes[],address) _request) payable returns(bytes32 canonicalTxHash)

func (*IBridgehubTransactorSession) RequestL2TransactionTwoBridges

func (_IBridgehub *IBridgehubTransactorSession) RequestL2TransactionTwoBridges(_request L2TransactionRequestTwoBridgesOuter) (*types.Transaction, error)

RequestL2TransactionTwoBridges is a paid mutator transaction binding the contract method 0x24fd57fb.

Solidity: function requestL2TransactionTwoBridges((uint256,uint256,uint256,uint256,uint256,address,address,uint256,bytes) _request) payable returns(bytes32 canonicalTxHash)

func (*IBridgehubTransactorSession) SetPendingAdmin

func (_IBridgehub *IBridgehubTransactorSession) SetPendingAdmin(_newPendingAdmin common.Address) (*types.Transaction, error)

SetPendingAdmin is a paid mutator transaction binding the contract method 0x4dd18bf5.

Solidity: function setPendingAdmin(address _newPendingAdmin) returns()

func (*IBridgehubTransactorSession) SetSharedBridge

func (_IBridgehub *IBridgehubTransactorSession) SetSharedBridge(_sharedBridge common.Address) (*types.Transaction, error)

SetSharedBridge is a paid mutator transaction binding the contract method 0xd0bf6fd4.

Solidity: function setSharedBridge(address _sharedBridge) returns()

type L2Log

type L2Log struct {
	L2ShardId       uint8
	IsService       bool
	TxNumberInBatch uint16
	Sender          common.Address
	Key             [32]byte
	Value           [32]byte
}

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

type L2Message

type L2Message struct {
	TxNumberInBatch uint16
	Sender          common.Address
	Data            []byte
}

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

type L2TransactionRequestDirect

type L2TransactionRequestDirect struct {
	ChainId                  *big.Int
	MintValue                *big.Int
	L2Contract               common.Address
	L2Value                  *big.Int
	L2Calldata               []byte
	L2GasLimit               *big.Int
	L2GasPerPubdataByteLimit *big.Int
	FactoryDeps              [][]byte
	RefundRecipient          common.Address
}

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

type L2TransactionRequestTwoBridgesOuter

type L2TransactionRequestTwoBridgesOuter struct {
	ChainId                  *big.Int
	MintValue                *big.Int
	L2Value                  *big.Int
	L2GasLimit               *big.Int
	L2GasPerPubdataByteLimit *big.Int
	RefundRecipient          common.Address
	SecondBridgeAddress      common.Address
	SecondBridgeValue        *big.Int
	SecondBridgeCalldata     []byte
}

L2TransactionRequestTwoBridgesOuter 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