diff --git a/bun.lockb b/bun.lockb index 01c92f5..1493d63 100755 Binary files a/bun.lockb and b/bun.lockb differ 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';