Object that holds the functions that estimates the gas required for a given transaction. Follows the pattern used by ethers.js.
Optional
opts: { Optional
overrides?: CallOverridesOptional
opts: { Optional
l2Optional
overrides?: CallOverridesOptional
recipient?: AddressLikeOptional
opts: { Optional
overrides?: CallOverridesOptional
recipient?: AddressLikeL1 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.
Optional
opts: { Optional
overrides?: OverridesOptional
opts: { Optional
l2Optional
overrides?: OverridesOptional
recipient?: AddressLikeOptional
opts: { Optional
overrides?: OverridesOptional
recipient?: AddressLikeQueries the account's approval amount for a given L1 token.
The L1 token address.
The L2 token address.
Signer to query the approval for.
Amount of tokens approved for deposits from the account.
Approves a deposit into the L2 chain.
The L1 token address.
The L2 token address.
Amount of the token to approve.
Signer used to sign and send the transaction.
Optional
opts: { Additional options.
Optional
overrides?: OverridesTransaction response for the approval transaction.
Deposits some tokens into the L2 chain.
The L1 token address.
The L2 token address.
Amount of the token to deposit.
Signer used to sign and send the transaction.
Optional
opts: { Additional options.
Optional
l2Optional
overrides?: OverridesOptional
recipient?: AddressLikeTransaction response for the deposit transaction.
Gets all deposits for a given address.
Address to search for messages from.
Optional
opts: { Options object.
Optional
fromOptional
toAll deposit token bridge messages sent by the given address.
Gets all withdrawals for a given address.
Address to search for messages from.
Optional
opts: { Options object.
Optional
fromOptional
toAll withdrawal token bridge messages sent by the given address.
Checks whether the given token pair is supported by the bridge.
The L1 token address.
The L2 token address.
Whether the given token pair is supported by the bridge.
Withdraws some tokens back to the L1 chain.
The L1 token address.
The L2 token address.
Amount of the token to withdraw.
Signer used to sign and send the transaction.
Optional
opts: { Additional options.
Optional
overrides?: OverridesOptional
recipient?: AddressLikeTransaction response for the withdraw transaction.
Generated using TypeDoc
Bridge adapter for any token bridge that uses the standard token bridge interface.