Interface CandidAdapterContextType

interface CandidAdapterContextType {
    agent: types.HttpAgent;
    didjsCanisterId: string;
    unsubscribeAgent: (() => void);
    initializeParser(module?): Promise<void>;
    fetchCandidDefinition(canisterId): Promise<string>;
    getCandidDefinition(canisterId): Promise<types.CandidDefenition>;
    getFromMetadata(canisterId): Promise<undefined | string>;
    getFromTmpHack(canisterId): Promise<string>;
    dynamicEvalJs(data): Promise<types.CandidDefenition>;
    fetchDidTojs(candidSource, didjsCanisterId?): Promise<[string]>;
    parseDidToJs(candidSource): string;
    validateIDL(candidSource): boolean;
}

Hierarchy (view full)

Properties

didjsCanisterId: string
unsubscribeAgent: (() => void)

Type declaration

    • (): void
    • Returns void

Methods

  • Parameters

    Returns Promise<undefined | string>

  • Parameters

    Returns Promise<string>

  • Parameters

    • candidSource: string
    • Optional didjsCanisterId: string

    Returns Promise<[string]>

  • Parameters

    • candidSource: string

    Returns string

  • Parameters

    • candidSource: string

    Returns boolean