@funded-labs/plug-controller
Version:
Internet Computer Plug wallet's controller
17 lines (16 loc) • 759 B
TypeScript
import { HttpAgent } from "@dfinity/agent";
import { RecordExt } from '../../../interfaces/icns_registry';
import { NFTCollection } from "@funded-labs/dab-js";
export default class ICNSAdapter {
#private;
constructor(agent: HttpAgent);
resolveName: (name: string, isICP: boolean) => Promise<string | undefined>;
getICNSNames: () => Promise<RecordExt[]>;
getICNSCollection: () => Promise<NFTCollection>;
getICNSReverseResolvedName: (principalId?: string | undefined) => Promise<string | undefined>;
setICNSReverseResolvedName: (name: string) => Promise<string>;
getICNSMappings: (principalIds: string[]) => Promise<{
[key: string]: string | undefined;
}>;
resetNameRecordData: (name: string) => Promise<void>;
}