Interface IntegrationPluginDetails<T>

interface IntegrationPluginDetails<T extends ClaimIntegrationPluginType> {
    instanceId: string;
    metadata?: { description: string; image?: string; name: string };
    pluginId: T;
    privateParams: ClaimIntegrationPrivateParamsType<T>;
    privateState?: ClaimIntegrationPrivateStateType<T>;
    publicParams: ClaimIntegrationPublicParamsType<T>;
    publicState: ClaimIntegrationPublicStateType<T>;
    version: string;
}

Type Parameters

Hierarchy (View Summary, Expand)

Properties

instanceId: string

The ID of the plugin instance. This is a unique identifier for referencing this instance of the plugin within this claim (e.g. differentiate between duplicates of the same plugin type).

This is different from the pluginId, which is a unique identifier for the plugin itself. All instances of the same plugin will have the same pluginId.

metadata?: { description: string; image?: string; name: string }

Custom display metadata for the plugin. This will override the default metadata for the plugin.

pluginId: T

The ID of the plugin (e.g. "numUses"). This is the reusable plugin ID. Do not use this as a unique identifier for the plugin instance as there could be duplicate pluginIds. Use instanceId instead.

The parameters of the plugin that are not visible to the public. These are custom per plugin type.

The private state of the plugin. This is the exact state used by BitBadges behind the scenes.

The parameters of the plugin that are visible to the public. These are custom per plugin type.

The current state of the plugin. This is returned by BitBadges for information purposes. This is altered to not reveal sensitive information.

version: string

The version of the plugin

MMNEPVFCICPMFPCPTTAAATR