From 3fa2e9db70267e728b193893af18a522035bbe55 Mon Sep 17 00:00:00 2001 From: Alissa Crane Date: Fri, 23 Aug 2024 14:58:11 -0700 Subject: [PATCH] update contract and upgrade onchainkit version --- bun.lockb | Bin 511644 -> 511628 bytes package.json | 2 +- src/components/TransactionWrapper.tsx | 10 ++++---- src/constants.ts | 32 +++----------------------- 4 files changed, 9 insertions(+), 35 deletions(-) diff --git a/bun.lockb b/bun.lockb index 01c92f567b522b055439d295bac4436a4d9f7655..1493d631724b22a35d5d026e047f63896c560be1 100755 GIT binary patch delta 4890 zcmXY!33!fI8iv1L{)A}LGUzBOvBpqJt)rBLiCUAGR?${EIs~y*l-T-*lu$vK@Rc@} zN`z5MLj4r2C8#9{iUzTywTHTN^cr(b$2IqxJm>1`Jl}nubH4X%-`{+Z8JdzD4;Gfu>ASQ+GR*Rj^B8ckokRN=-||X2Ogr5zu-YYP?=|=d#>2quX=>naXgOWyg*oq zaNAt;*61238~_>19U%288)v1ei1#RiClz@8V2b{kw`h!{0JPg4?MC048&I<%ZP&OlfY zx;inQRBWPy-4AVuA+py1^{B)@l%ZlZ(Y?jq5vv6Y6MNS^XhXcGra#hDNAn&gRvR{w zq%HY4n0a0##%dx{-0GLTHGETLuS?Sy%Z`#HRuA1o!%lcw#b(G?ANGX(s6#zd z%ogAUI{}ngVqxg(}#w#V&I;(e}bGxUojW=Sv5IDbOdQ?d)yr#Wl_EQ~r$z83E6 z61L)H&?4>55;e7iEf!k}v*m3?tQ5=8u&=mhY>3u0tya?t+1tS4l*LNfUxn=_tgM1r zm$q($E9_=Fp|FQ!8cBTt zW=X$8r2Dkg#p?VnaGbSLF01o<=t*KFV#8pk3EP@0VsYr3gq5pe@1v8I%r&vU!6IO` zy1wgz!+D4lEQML04~U*(cVL#o--#%(dtxJCeXIlJzSu}~U$I|cwsrADf3bhTn7hvz z1sovw7|4IlXd+tdNrllF1B(&+56qHDAlks}O#D~AvFKODeur6?aYTLf4ImTSrt!ov zyNPyqf`GOY6NnR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)Pb04wibORl6#s}J#YJTH)YbK&t|;|q?=`-HM!csGtAbb zud)bZxz2>?4%y_NX0z@45~jWrxXv-#fWCxpqK16WFbdRw?{b~%0XL#GpxAu-Hla13 z&hh(ZU!mWC=`2RfHlusN6d#!7pet}DbUqgpF&=3PFLJnvVj+;fqVK4BpPh+b0?^Za zLq4GcMJzSjihdHNGrJ6?$;>77AUd<3*tZR>2N7Ft-?!+=DO9LKyTWigdMrkr&y{97 z(4$~Fi>u7OL%#vjAzTepfji0Gk)>x@)mAhqzOem!bQ!ZXWcdIfKih0CT0i`>{l7HZht`ibu?;Xi zk3PU=F`%~pM*Dt3&x0v8nH@mSx9_W>zO3rczz#qilN_M>93=IYsD1iPk&$m>=*!H4 z_GGRH{1q*qw%<1U4x#%}ptjX^`wmOfS378j*>C6{!k*Ue4D*4>RPZ&|on}YSjk$@o z)xXS+qIF|!m+xVkg=6G6#@o*INBfSW`@?o}-DO_^dVud6&a?3ZFdwM3-eYzWtx?MezaTdxa7YQ|5J;?h}qFa jwc=03+_Y66tVAd;I<0nmsoRUZlNU9Mk1lGKa5??|=r%_m diff --git a/package.json b/package.json index ee5d614..e5181d3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test:coverage": "vitest run --coverage" }, "dependencies": { - "@coinbase/onchainkit": "^0.29.5", + "@coinbase/onchainkit": "^0.30.0", "next": "^14.2.5", "permissionless": "^0.1.26", "react": "^18", diff --git a/src/components/TransactionWrapper.tsx b/src/components/TransactionWrapper.tsx index 1bf8aa9..850faff 100644 --- a/src/components/TransactionWrapper.tsx +++ b/src/components/TransactionWrapper.tsx @@ -13,16 +13,16 @@ import type { import type { ContractFunctionParameters } from 'viem'; import { BASE_SEPOLIA_CHAIN_ID, - clickContractABI, - clickContractAddress, + mintABI, + mintContractAddress, } from '../constants'; export default function TransactionWrapper() { const contracts = [ { - address: clickContractAddress, - abi: clickContractABI, - functionName: 'click', + address: mintContractAddress, + abi: mintABI, + functionName: 'mint', args: [], }, ] as unknown as ContractFunctionParameters[]; diff --git a/src/constants.ts b/src/constants.ts index f902513..090b20d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,37 +1,11 @@ export const BASE_SEPOLIA_CHAIN_ID = 84532; - -export const clickContractAddress = - '0x67c97D1FB8184F038592b2109F854dfb09C77C75'; - -export const clickContractABI = [ - { - type: 'function', - name: 'click', - inputs: [], - outputs: [], - stateMutability: 'nonpayable', - }, -] as const; - -export const collectionAddress = '0xd6915560d3bb24aec04dc42ef409921ed1931510'; -export const comment = 'testing'; -export const mintContractAddress = '0x777777722D078c97c6ad07d9f36801e653E356Ae'; +export const mintContractAddress = '0x11b4128A343d9aB02bED83050c952f383EAb6B24'; export const mintABI = [ { - inputs: [ - { internalType: 'address', name: 'mintTo', type: 'address' }, - { internalType: 'uint256', name: 'quantity', type: 'uint256' }, - { internalType: 'address', name: 'collection', type: 'address' }, - { internalType: 'uint256', name: 'tokenId', type: 'uint256' }, - { internalType: 'address', name: 'mintReferral', type: 'address' }, - { internalType: 'string', name: 'comment', type: 'string' }, - ], + inputs: [], name: 'mint', outputs: [], - stateMutability: 'payable', + stateMutability: 'nonpayable', type: 'function', }, ] as const; -export const mintReferral = '0x0000000000000000000000000000000000000000'; -export const quantity = '1'; -export const tokenId = '1';