This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
}) |