Module alloy_zksync::contracts::l1::bridge_hub::Bridgehub
source · Expand description
Bridgehub contract for handling L2 transaction requests and related operations.
contract Bridgehub {
function requestL2TransactionDirect(L2TransactionRequestDirect memory request) external payable returns (bytes32 canonicalTxHash);
function requestL2TransactionTwoBridges(L2TransactionRequestTwoBridges calldata _request) external payable returns (bytes32 canonicalTxHash);
function l2TransactionBaseCost(uint256 _chainId, uint256 _gasPrice, uint256 _l2GasLimit, uint256 _l2GasPerPubdataByteLimit) external view returns (uint256);
event NewPriorityRequest(uint256 txId, bytes32 txHash, uint64 expirationTimestamp, L2CanonicalTransaction transaction, bytes[] factoryDeps);
}
Structs§
- A
Bridgehub
instance. - Emitted when a new priority request is made.
- Calculates the base cost of an L2 transaction.
- Calculates the base cost of an L2 transaction.
- Requests a direct L2 transaction.
- Requests a direct L2 transaction.
- Requests an L2 transaction involving two bridges.
- Requests an L2 transaction involving two bridges.
Enums§
Functions§
- Creates a new wrapper around an on-chain
Bridgehub
contract instance.