Skip to content

Instantly share code, notes, and snippets.

View johanneskares's full-sized avatar

Johannes Kares johanneskares

View GitHub Profile
// 1. Current Approach
import { Inngest } from "inngest";
const inngest = new Inngest({ id: "my-app" });
// This function will be invoked by Inngest via HTTP any time
// the "app/user.signup" event is sent to to Inngest
export default inngest.createFunction(
{ id: "user-onboarding-communication" },
{ event: "app/user.signup" },
@johanneskares
johanneskares / index.ts
Created October 29, 2024 10:39
Zerodev: Get AA Wallet Address from Owner Address
import { ENTRYPOINT_ADDRESS_V06, getSenderAddress } from "permissionless";
import { type Address, encodeFunctionData, createPublicClient } from "viem";
import { createPublicClient, http } from 'viem'
import { mainnet } from 'viem/chains'
const publicClient = createPublicClient({
chain: mainnet,
transport: http()
})