@funded-labs/dab-js
Version:
JS adapter for DAB
37 lines (36 loc) • 1.24 kB
TypeScript
import { Principal } from '@dfinity/principal';
import DepartureLabs from '../standard_wrappers/nft_standards/departure_labs';
import DIP721 from '../standard_wrappers/nft_standards/dip_721';
import EXT from '../standard_wrappers/nft_standards/ext';
import CCC from '../standard_wrappers/nft_standards/ccc';
import ICPunks from '../standard_wrappers/nft_standards/ic_punks';
import NFTOrigyn from '../standard_wrappers/nft_standards/nft_origyn';
import ICRC7 from '../standard_wrappers/nft_standards/icrc_7';
export declare type NFTStandards = typeof EXT | typeof ICPunks | typeof DepartureLabs | typeof NFTOrigyn | typeof DIP721 | typeof CCC | typeof ICRC7;
export interface DABCollection {
icon: string;
name: string;
description: string;
principal_id: Principal;
standard: string;
}
export interface NFTCollection {
name: string;
canisterId: string;
standard: string;
tokens: NFTDetails<bigint | string>[];
icon?: string;
description?: string;
}
export interface NFTDetails<idT = bigint> {
index: idT;
canister: string;
id?: string;
name?: string;
url: string;
metadata: any;
standard: string;
collection?: string;
owner?: string;
operator?: string;
}