import { NftStats, ShopStats, SingleBase } from 'solana-candy-shop-schema/dist'; import { AxiosInstance } from 'axios'; export async function fetchStatsById( axiosInstance: AxiosInstance, storeId: string ): Promise { return axiosInstance .get>(`/stats/${storeId}`) .then((response) => response.data.result); } export async function fetchStatsMintById( axiosInstance: AxiosInstance, storeId: string, mint: string ): Promise { return await axiosInstance .get>(`/stats/${storeId}/${mint}`) .then((response) => response.data.result); }