Interface BaseAbilityContext<Policies>

BaseAbilityContext is returned with ability execution results, and contains information about the app, delegation, and policy evaluation results for any policies that the user had enabled for the ability.

interface BaseAbilityContext<Policies> {
    policiesContext: Policies;
    abilityIpfsCid: string;
    appId: number;
    appVersion: number;
    delegation: {
        delegateeAddress: string;
        delegatorPkpInfo: {
            tokenId: string;
            ethAddress: string;
            publicKey: string;
        };
    };
}

Type Parameters

  • Policies

Hierarchy

  • BaseContext
    • BaseAbilityContext

Properties

policiesContext: Policies
abilityIpfsCid: string
appId: number
appVersion: number
delegation: {
    delegateeAddress: string;
    delegatorPkpInfo: {
        tokenId: string;
        ethAddress: string;
        publicKey: string;
    };
}