Skip to content

Commit

Permalink
chore: update contract and upgrade onchainkit version (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Alissa Crane <alissa.crane@coinbase.com>
  • Loading branch information
abcrane123 and alissacrane-cb authored Sep 1, 2024
1 parent 33702ac commit ea0370f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 35 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/components/TransactionWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
32 changes: 3 additions & 29 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit ea0370f

Please sign in to comment.