Skip to main content

Module: assetBridger/assetBridger

AssetBridger

Base for bridging assets from l1 to l2 and back

Extended By

Type parameters

Parameter
DepositParams
WithdrawParams

Methods

checkL1Network()

protected checkL1Network(sop): Promise< void >

Check the signer/provider matches the l1Network, throws if not

Parameters
ParameterTypeDescription
sopSignerOrProvider
Returns

Promise\< void >

Source

arbitrum-sdk/src/lib/assetBridger/assetBridger.ts:48


checkL2Network()

protected checkL2Network(sop): Promise< void >

Check the signer/provider matches the l2Network, throws if not

Parameters
ParameterTypeDescription
sopSignerOrProvider
Returns

Promise\< void >

Source

arbitrum-sdk/src/lib/assetBridger/assetBridger.ts:56


deposit()

abstract deposit(params): Promise< L1ContractTransaction< L1TransactionReceipt > >

Transfer assets from L1 to L2

Parameters
ParameterTypeDescription
paramsDepositParams
Returns

Promise\< L1ContractTransaction\< L1TransactionReceipt > >

Source

arbitrum-sdk/src/lib/assetBridger/assetBridger.ts:64


withdraw()

abstract withdraw(params): Promise< L2ContractTransaction >

Transfer assets from L2 to L1

Parameters
ParameterTypeDescription
paramsWithdrawParams
Returns

Promise\< L2ContractTransaction >

Source

arbitrum-sdk/src/lib/assetBridger/assetBridger.ts:70