// Copyright 2017-2025 @pezkuwi/app-nfts authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { AccountId } from '@pezkuwi/types/interfaces';
import type { PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata } from '@pezkuwi/types/lookup';
import type { BN } from '@pezkuwi/util';

export interface CollectionSupportedMetadata {
  name: string | null;
  image: string | null;
}

export interface CollectionInfo {
  details: PalletUniquesCollectionDetails | null;
  id: BN;
  isAdminMe: boolean;
  isIssuerMe: boolean;
  isFreezerMe: boolean;
  isOwnerMe: boolean;
  key: string;
  metadata: PalletUniquesCollectionMetadata | null;
  ipfsData: CollectionSupportedMetadata | null;
}

export interface CollectionInfoComplete extends CollectionInfo {
  details: PalletUniquesCollectionDetails;
  metadata: PalletUniquesCollectionMetadata;
}

export interface AccountItem {
  accountId: AccountId;
  collectionId: BN;
  itemId: BN;
}
