networks
Functions
addDefaultLocalNetwork()
function addDefaultLocalNetwork(): object
Registers a custom network that matches the one created by a Nitro local node. Useful in development.
Returns
object
Member | Type |
---|---|
l1Network | L1Network |
l2Network | L2Network |
See
https://github.com/OffchainLabs/nitro
Source
getEthBridgeInformation()
function getEthBridgeInformation(rollupContractAddress: string, l1SignerOrProvider: SignerOrProvider): Promise<EthBridge>
Returns the addresses of all contracts that make up the ETH bridge
Parameters
Parameter | Type | Description |
---|---|---|
rollupContractAddress | string | Address of the Rollup contract |
l1SignerOrProvider | SignerOrProvider | An L1 signer or provider |
Returns
Promise
<EthBridge
>
EthBridge object with all information about the ETH bridge