Skip to content

Latest commit

 

History

History
58 lines (32 loc) · 1.6 KB

CrossChainContractsLoader.md

File metadata and controls

58 lines (32 loc) · 1.6 KB

Interface: CrossChainContractsLoader

Interface for loading TBTC cross-chain contracts for a specific L2 chain. It should be implemented for each supported L1 chain tBTC ledger is deployed on.

Table of contents

Properties

Properties

loadChainMapping

loadChainMapping: () => undefined | ChainMapping

Type declaration

▸ (): undefined | ChainMapping

Loads the chain mapping based on underlying L1 chain.

Returns

undefined | ChainMapping

Defined in

src/lib/contracts/cross-chain.ts:38


loadL1Contracts

loadL1Contracts: (l2ChainName: "Base") => Promise<L1CrossChainContracts>

Type declaration

▸ (l2ChainName): Promise<L1CrossChainContracts>

Loads L1-specific TBTC cross-chain contracts for the given L2 chain.

Parameters
Name Type Description
l2ChainName "Base" Name of the L2 chain for which to load L1 contracts.
Returns

Promise<L1CrossChainContracts>

Defined in

src/lib/contracts/cross-chain.ts:43