diff --git a/src/components/TransactionWrapper.tsx b/src/components/TransactionWrapper.tsx index 32f153b..fb3c668 100644 --- a/src/components/TransactionWrapper.tsx +++ b/src/components/TransactionWrapper.tsx @@ -6,19 +6,23 @@ import { TransactionStatusAction, TransactionStatusLabel, } from '@coinbase/onchainkit/transaction'; -import type { TransactionError, TransactionResponse } from '@coinbase/onchainkit/transaction'; -import { mintABI, mintContractAddress } from 'src/constants'; +import type { + TransactionError, + TransactionResponse, +} from '@coinbase/onchainkit/transaction'; +import { + BASE_SEPOLIA_CHAIN_ID, + collectionAddress, + comment, + mintABI, + mintContractAddress, + mintReferral, + quantity, + tokenId, +} from 'src/constants'; import type { Address, ContractFunctionParameters } from 'viem'; import { parseEther } from 'viem'; -const BASE_SEPOLIA_CHAIN_ID = 84532; - -const collectionAddress = '0xd6915560d3bb24aec04dc42ef409921ed1931510'; -const tokenId = '1'; -const quantity = '1'; -const mintReferral = '0x0000000000000000000000000000000000000000'; -const comment = 'testing'; - type TransactionWrapperParams = { address: Address; }; diff --git a/src/constants.ts b/src/constants.ts index 6374293..6970f15 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -28,3 +28,11 @@ export const mintABI = [ type: 'function', }, ] as const; + +export const BASE_SEPOLIA_CHAIN_ID = 84532; + +export const collectionAddress = '0xd6915560d3bb24aec04dc42ef409921ed1931510'; +export const tokenId = '1'; +export const quantity = '1'; +export const mintReferral = '0x0000000000000000000000000000000000000000'; +export const comment = 'testing';