From 222c9501fbde7d055569ce8491260e30a8461568 Mon Sep 17 00:00:00 2001 From: caleb Date: Wed, 15 Oct 2025 13:12:23 -0500 Subject: [PATCH 1/2] drop logs --- apps/indexer/lit/lit.ts | 9 +++------ apps/indexer/lit/pkp.ts | 2 -- apps/indexer/src/index.ts | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/apps/indexer/lit/lit.ts b/apps/indexer/lit/lit.ts index e7b90e1..bb3e532 100644 --- a/apps/indexer/lit/lit.ts +++ b/apps/indexer/lit/lit.ts @@ -7,14 +7,14 @@ import { import { LIT_ABILITY, LIT_NETWORK, LIT_RPC } from "@lit-protocol/constants" import { LitNodeClient } from "@lit-protocol/lit-node-client" import * as ethers from "ethers" +// @ts-ignore +import Hash from "ipfs-only-hash" +import { LocalStorage } from "node-localstorage" //@ts-ignore import type { Hex } from "viem" import { pacifica, risa } from "../src/utils/chain" import { env } from "../src/utils/env" import { litActionCode } from "./action" -import { LocalStorage } from "node-localstorage" -// @ts-ignore -import Hash from "ipfs-only-hash" export async function getLitBundlerTransaction() { const client = new LitNodeClient({ @@ -66,7 +66,6 @@ export async function getLitBundlerTransaction() { } }) const codeHash = await Hash.of(litActionCode) - console.log("codeHash", codeHash) const { success, response } = await client.executeJs({ sessionSigs, code: litActionCode, @@ -80,8 +79,6 @@ export async function getLitBundlerTransaction() { PKP_PUBLIC_KEY: env.LIT_PKP_PUBLIC_KEY } }) - console.log("response", JSON.stringify(response)) - console.log("success", success) if (!success) { throw new Error("Failed to execute LIT action") } diff --git a/apps/indexer/lit/pkp.ts b/apps/indexer/lit/pkp.ts index fcd7c29..f5d70c7 100644 --- a/apps/indexer/lit/pkp.ts +++ b/apps/indexer/lit/pkp.ts @@ -47,7 +47,6 @@ export async function createPkp() { const pkpPubkeyInfo = await litContracts.pubkeyRouterContract.read.pubkeys( ethers.BigNumber.from(pkpId) ) - // console.log("PKP Info:", pkpPubkeyInfo); const pkpPublicKey = pkpPubkeyInfo.pubkey const pkpEthAddress = ethers.utils.computeAddress(pkpPublicKey) const pkpInfo = { @@ -61,7 +60,6 @@ export async function createPkp() { createPkp() .then(() => { process.exit(0) - console.log("done") }) .catch((err) => { console.error(err) diff --git a/apps/indexer/src/index.ts b/apps/indexer/src/index.ts index 0988a95..f5aab0b 100644 --- a/apps/indexer/src/index.ts +++ b/apps/indexer/src/index.ts @@ -251,7 +251,7 @@ ponder.on("AdriftBundler:MempoolUpdated", async () => { serializedTransaction: bundlerTransaction }) - console.debug("Lit randomness tx sent to bundler", txHash) + console.debug("Randomness tx sent to AdriftBundler on Risa", txHash) } catch (e) { console.error("Error sending bundler tx via Lit", e) } From c550a6c49baaa03cc0bd20160caeda757955c924 Mon Sep 17 00:00:00 2001 From: caleb Date: Wed, 15 Oct 2025 13:13:25 -0500 Subject: [PATCH 2/2] drop hash --- apps/indexer/lit/lit.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/indexer/lit/lit.ts b/apps/indexer/lit/lit.ts index bb3e532..f3e1c01 100644 --- a/apps/indexer/lit/lit.ts +++ b/apps/indexer/lit/lit.ts @@ -7,8 +7,6 @@ import { import { LIT_ABILITY, LIT_NETWORK, LIT_RPC } from "@lit-protocol/constants" import { LitNodeClient } from "@lit-protocol/lit-node-client" import * as ethers from "ethers" -// @ts-ignore -import Hash from "ipfs-only-hash" import { LocalStorage } from "node-localstorage" //@ts-ignore import type { Hex } from "viem" @@ -65,7 +63,6 @@ export async function getLitBundlerTransaction() { }) } }) - const codeHash = await Hash.of(litActionCode) const { success, response } = await client.executeJs({ sessionSigs, code: litActionCode,