diff --git a/apps/indexer/lit/lit.ts b/apps/indexer/lit/lit.ts index e7b90e1..f3e1c01 100644 --- a/apps/indexer/lit/lit.ts +++ b/apps/indexer/lit/lit.ts @@ -7,14 +7,12 @@ 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" +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({ @@ -65,8 +63,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 +76,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) }