Options
All
  • Public
  • Public/Protected
  • All
Menu

Class L2Bridge

L2 side only of Bridge

Hierarchy

  • L2Bridge

Index

Constructors

Methods

Constructors

constructor

  • new L2Bridge(l2GatewayRouterAddress: string, l2Signer: Signer): L2Bridge
  • Parameters

    • l2GatewayRouterAddress: string
    • l2Signer: Signer

    Returns L2Bridge

Methods

withdrawERC20

  • withdrawERC20(erc20l1Address: string, amount: BigNumber, destinationAddress?: string, overrides?: PayableOverrides): Promise<ContractTransaction>
  • Initiate token withdrawal (via l2ERC20Gateway)

    Parameters

    • erc20l1Address: string
    • amount: BigNumber
    • Optional destinationAddress: string
    • overrides: PayableOverrides = {}

    Returns Promise<ContractTransaction>

withdrawETH

  • withdrawETH(value: BigNumber, destinationAddress?: string, overrides?: PayableOverrides): Promise<ContractTransaction>
  • Initiate Ether withdrawal (via ArbSys)

    Parameters

    • value: BigNumber
    • Optional destinationAddress: string
    • Optional overrides: PayableOverrides

    Returns Promise<ContractTransaction>

Generated using TypeDoc