Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions apps/indexer/lit/lit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand All @@ -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")
}
Expand Down
2 changes: 0 additions & 2 deletions apps/indexer/lit/pkp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -61,7 +60,6 @@ export async function createPkp() {
createPkp()
.then(() => {
process.exit(0)
console.log("done")
})
.catch((err) => {
console.error(err)
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down