import { WhitelistNft } from 'solana-candy-shop-schema/dist'; import { ListBase, CandyShop, } from 'solana-candy-shop-schema/src/response/index'; import { AxiosInstance } from 'axios'; export async function fetchShopByWalletAddress( axiosInstance: AxiosInstance, walletAddress: string ): Promise> { return axiosInstance .get>(`/shop/${walletAddress}`) .then((response) => response.data); } export async function fetchShopWhitelistNftByShopId( axiosInstance: AxiosInstance, shopId: string ): Promise> { return axiosInstance .get>(`/shop/wlNfts/${shopId}`) .then((response) => response.data); }