Skip to content

Commit

Permalink
chore: update pkg
Browse files Browse the repository at this point in the history
Zizzamia committed May 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 39cafdf commit 5164ecd
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions app/api/tx/route.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { FrameRequest, getFrameMessage } from '@coinbase/onchainkit/frame';
import { NextRequest, NextResponse } from 'next/server';
import { encodeFunctionData, parseEther } from 'viem';
import { base } from 'viem/chains';
import { baseSepolia } from 'viem/chains';
import BuyMeACoffeeABI from '../../_contracts/BuyMeACoffeeABI';
import { BUY_MY_COFFEE_CONTRACT_ADDR } from '../../config';
import type { FrameTransactionResponse } from '@coinbase/onchainkit/frame';

async function getResponse(req: NextRequest): Promise<NextResponse | Response> {
const body: FrameRequest = await req.json();
// Remember to replace 'NEYNAR_ONCHAIN_KIT' with your own Neynar API key
const { isValid } = await getFrameMessage(body, { neynarApiKey: 'NEYNAR_ONCHAIN_KIT' });

if (!isValid) {
@@ -21,7 +22,7 @@ async function getResponse(req: NextRequest): Promise<NextResponse | Response> {
});

const txData: FrameTransactionResponse = {
chainId: `eip155:${base.id}`, // Remember Base Sepolia might not work on Warpcast yet
chainId: `eip155:${baseSepolia.id}`,
method: 'eth_sendTransaction',
params: {
abi: [],
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
"author": "https://twitter.com/Zizzamia",
"license": "MIT",
"dependencies": {
"@coinbase/onchainkit": "0.13.0",
"@coinbase/onchainkit": "0.14.1",
"next": "13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -7,10 +7,10 @@
resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz#d2a39395c587e092d77cbbc80acf956a54f38bf7"
integrity sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==

"@coinbase/onchainkit@0.13.0":
version "0.13.0"
resolved "https://registry.yarnpkg.com/@coinbase/onchainkit/-/onchainkit-0.13.0.tgz#31e71219b62c86e17ad72262a9d86a3aa128d207"
integrity sha512-P9jpDPNSF8WxehnxooR+d/Ng9xBR1My+rLSa/KTW0IkCEcRBxPm2gesCIsEQurNTBgB4CGBcTJhG+TYiol6aEA==
"@coinbase/onchainkit@0.14.1":
version "0.14.1"
resolved "https://registry.yarnpkg.com/@coinbase/onchainkit/-/onchainkit-0.14.1.tgz#8a05ec3b5f08b62b0328711ebab66e062bcbb5de"
integrity sha512-yVKmhoICJaGCexVu9rFQcz2HPPh6g848kLu4imglTX4879CpEcC6LpwJ7BBdbsVcYML7F04vpvBlzBzvX62iig==

"@next/[email protected]":
version "13.5.6"

0 comments on commit 5164ecd

Please sign in to comment.