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§

Enums§

Functions§

  • Creates a new wrapper around an on-chain Bridgehub contract instance.