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.
Logics for bridges of various token standards are different, on a high level: ERC20, native: each token contract maintains a mapping of address -> amount ERC721: each token contract maintains a mapping of tokenId -> owner ERC1155: each token contract maintains a mapping of owner -> tokenId -> amount
Checkout contracts(ERC20, ERC721, ERC1155) for more details.
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.
Generated using TypeDoc
Bridge adapter for any token bridge that uses the standard token bridge interface.