Creates a StandardBridgeAdapter instance.
Options for the adapter.
L1 bridge contract.
L2 bridge contract.
Provider used to make queries related to cross-chain interactions.
Object that holds the functions that estimates the gas required for a given transaction. Follows the pattern used by ethers.js.
L1 bridge contract.
L2 bridge contract.
Provider used to make queries related to cross-chain interactions.
Object that holds the functions that generate transactions to be signed by the user. Follows the pattern used by ethers.js.
Queries the account's approval amount for a given L1 token.
Amount of tokens approved for deposits from the account.
Approves a deposit into the L2 chain.
Transaction response for the approval transaction.
Deposits some tokens into the L2 chain.
Transaction response for the deposit transaction.
Gets all deposits for a given address.
All deposit token bridge messages sent by the given address.
Gets all withdrawals for a given address.
All withdrawal token bridge messages sent by the given address.
Checks whether the given token pair is supported by the bridge.
Whether the given token pair is supported by the bridge.
Withdraws some tokens back to the L1 chain.
Transaction response for the withdraw transaction.
Generated using TypeDoc
Bridge adapter for the ETH bridge.