Constructors
constructor
- new L2Bridge(l2GatewayRouterAddress: string, l2Signer: Signer): L2Bridge
-
Parameters
-
l2GatewayRouterAddress: string
-
l2Signer: Signer
Methods
withdrawERC20
- withdrawERC20(erc20l1Address: string, amount: BigNumber, destinationAddress?: string, overrides?: PayableOverrides): Promise<ContractTransaction>
-
Parameters
-
erc20l1Address: string
-
amount: BigNumber
-
Optional destinationAddress: string
-
overrides: PayableOverrides = {}
Returns Promise<ContractTransaction>
withdrawETH
- withdrawETH(value: BigNumber, destinationAddress?: string, overrides?: PayableOverrides): Promise<ContractTransaction>
-
Parameters
-
value: BigNumber
-
Optional destinationAddress: string
-
Optional overrides: PayableOverrides
Returns Promise<ContractTransaction>
L2 side only of Bridge