@axiom-crypto/keystore-sdk
Version:
Keystore Rollup SDK
12 lines • 476 B
JavaScript
import { parseEventLogs } from "viem";
import AxiomKeystoreRollupAbi from "./abi/AxiomKeystoreRollup.json";
const abi = AxiomKeystoreRollupAbi.abi;
export function getL2TransactionHashes({ logs }) {
const decodedEvents = parseEventLogs({
abi,
eventName: "L1TransactionInitiated",
logs,
}); // eslint-disable-line @typescript-eslint/no-explicit-any
return decodedEvents.map((event) => event.args.txHash);
}
//# sourceMappingURL=common.js.map