@wharfkit/wallet-plugin-anchor - v4.0.2
    Preparing search index...

    Class WalletPluginAnchor

    Hierarchy

    • AbstractWalletPlugin
      • WalletPluginAnchor
    Index
    _data: WalletPluginData
    auth: PermissionLevel | undefined
    buoyUrl: string
    buoyWs: WebSocket | undefined
    chain: Checksum256 | undefined
    channelName: string | undefined
    channelUrl: string | undefined
    config: WalletPluginConfig = ...

    The logic configuration for the wallet plugin.

    id: string = 'anchor'

    The unique identifier for the wallet plugin.

    metadata: WalletPluginMetadata = ...

    The metadata for the wallet plugin to be displayed in the user interface.

    privateKey: PrivateKey | undefined
    requestKey: PublicKey | undefined
    signerKey: PublicKey | undefined
    translations: {
        en: {
            error: {
                cancelled: string;
                expired: string;
                invalid_response: string;
                not_completed: string;
            };
            fallback: { body: string; label: string };
            login: { body: string; link: string; title: string };
            mode: {
                app: { detail: string; label: string };
                body: string;
                switch: { to_app: string; to_web: string };
                title: string;
                web: { detail: string; detail_no_ledger: string; label: string };
            };
            recovery: { body: string; title: string };
            transact: {
                await: string;
                body: string;
                label: string;
                link: string;
                title: string;
            };
            web: {
                blocked: { body: string; label: string; title: string };
                waiting: { body: string; title: string };
            };
        };
        ko: {
            error: {
                cancelled: string;
                expired: string;
                invalid_response: string;
                not_completed: string;
            };
            fallback: { body: string; label: string };
            login: { body: string; link: string; title: string };
            mode: {
                app: { detail: string; label: string };
                body: string;
                switch: { to_app: string; to_web: string };
                title: string;
                web: { detail: string; detail_no_ledger: string; label: string };
            };
            recovery: { body: string; title: string };
            transact: {
                await: string;
                body: string;
                label: string;
                link: string;
                title: string;
            };
            web: {
                blocked: { body: string; label: string; title: string };
                waiting: { body: string; title: string };
            };
        };
        "zh-Hans": {
            error: {
                cancelled: string;
                expired: string;
                invalid_response: string;
                not_completed: string;
            };
            fallback: { body: string; label: string };
            login: { body: string; link: string; title: string };
            mode: {
                app: { detail: string; label: string };
                body: string;
                switch: { to_app: string; to_web: string };
                title: string;
                web: { detail: string; detail_no_ledger: string; label: string };
            };
            recovery: { body: string; title: string };
            transact: {
                await: string;
                body: string;
                label: string;
                link: string;
                title: string;
            };
            web: {
                blocked: { body: string; label: string; title: string };
                waiting: { body: string; title: string };
            };
        };
        "zh-Hant": {
            error: {
                cancelled: string;
                expired: string;
                invalid_response: string;
                not_completed: string;
            };
            fallback: { body: string; label: string };
            login: { body: string; link: string; title: string };
            mode: {
                app: { detail: string; label: string };
                body: string;
                switch: { to_app: string; to_web: string };
                title: string;
                web: { detail: string; detail_no_ledger: string; label: string };
            };
            recovery: { body: string; title: string };
            transact: {
                await: string;
                body: string;
                label: string;
                link: string;
                title: string;
            };
            web: {
                blocked: { body: string; label: string; title: string };
                waiting: { body: string; title: string };
            };
        };
    } = defaultTranslations

    The translations for this plugin

    webAuthenticatorUrls: Record<string, string>
    webFallbackDelayMs: number
    • get data(): WalletPluginData

      A method to return the data that needs to persist for the plguin - Used in serialization

      Returns WalletPluginData

    • set data(data: WalletPluginData): void

      A method to return the data that needs to persist for the plguin - Used in serialization

      Parameters

      • data: WalletPluginData

      Returns void

    • Shallow copy with fresh data and metadata; every other field must be safe to share.

      Returns WalletPlugin

    • Parameters

      • context: LoginContext

      Returns Promise<WalletPluginLoginResponse>

    • Parameters

      • context: LoginContext

      Returns Promise<WalletPluginLoginResponse>

    • Open the chain's web authenticator in a user gesture; unsupported chains return null.

      Parameters

      • Optionalchain: ChainDefinition<AccountObject> | Checksum256Type

      Returns Window | null

    • Serialize the [[WalletPlugin]] ID and data into a plain object.

      Returns SerializedWalletPlugin

    • Parameters

      • resolved: ResolvedSigningRequest
      • context: TransactContext

      Returns Promise<WalletPluginSignResponse>

    • Open a chain's web authenticator with URL overrides; unsupported chains return null.

      Parameters

      • Optionalchain: ChainDefinition<AccountObject> | Checksum256Type
      • OptionalwebAuthenticatorUrls: Record<string, string>

      Returns Window | null