UNPKG

@0xfacet/sdk

Version:

A toolkit for Facet blockchain integration.

18 lines (17 loc) 723 B
import { Address } from "viem"; /** * Converts the address in L1 that submitted a transaction to the inbox * to the corresponding L2 address viewed in msg.sender. * * @param l1Address The address in L1 that triggered the transaction to L2. * @returns The corresponding L2 address as viewed in msg.sender. */ export declare function applyL1ToL2Alias(l1Address: Address): Address; /** * Converts the L2 address viewed in msg.sender to the original L1 address * that submitted the transaction to the inbox. * * @param l2Address The L2 address as viewed in msg.sender. * @returns The original L1 address that triggered the transaction to L2. */ export declare function undoL1ToL2Alias(l2Address: Address): Address;