Title

Global

Methods

# useArbTokenBridge(ethProvider, arbProvider, arbchainAddress, _ethSigneropt, _arbSigneropt, walletIndexopt, autoLoadCacheopt) → {bridge}

Main hook; returns bridge object.
Parameters:
Name Type Attributes Default Description
ethProvider JsonRpcProvider
arbProvider JsonRpcProvider
arbchainAddress string
_ethSigner JsonRpcSigner <optional>
_arbSigner JsonRpcSigner <optional>
walletIndex number <optional>
0
autoLoadCache boolean <optional>
true
See:

View Source useArbTokenBridge.ts, line 92

bridge

Type Definitions

object

# Transaction

Bridge transaction data with up to date status.
Properties:
Name Type Description
type 'deposit' | 'withdraw' | 'lockbox' | 'approve'
status TxnStatus
value string | null
txID string
assetName string
assetType AssetType
sender string

View Source useTransactions.ts, line 93