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 { createCoin } from '@zoralabs/coins-sdk'; | |
| import { createWalletClient, createPublicClient, http } from 'viem'; | |
| import { baseSepolia } from 'viem/chains'; | |
| import { privateKeyToAccount } from 'viem/accounts'; // Import for private key handling | |
| import { uploadFileToR2 } from '@/lib/file'; | |
| import { v4 as uuidv4 } from "uuid"; | |
| import { validateMetadata } from '@/lib/utils'; | |
| import { ExtractDataFromText } from '../actions/ai'; | |
| import { cast } from '@/lib/cast'; |
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 React, { useEffect, useState } from "react"; | |
| import { Button } from "@/components/ui/button"; | |
| import { | |
| useAccount, | |
| useReadContract, | |
| useSendTransaction, | |
| useSignTypedData, | |
| useSwitchChain, | |
| useWaitForTransactionReceipt, | |
| useWalletClient, |
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 { ReplicateStream, streamToResponse } from "ai"; | |
| import { experimental_buildLlama2Prompt } from "ai/prompts"; | |
| import { prisma } from "@/server/db"; | |
| import { replicate } from "@/utils/replicate"; | |
| import { getServerSession } from "next-auth"; | |
| import { authOptions } from "@/server/auth"; | |
| export default async function handler(req, res) { | |
| const session = await getServerSession(req, res, authOptions); |