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

    Class WalletPluginCloudWallet

    Hierarchy

    • AbstractWalletPlugin
      • WalletPluginCloudWallet

    Implements

    • WalletPlugin
    Index
    _data: WalletPluginData
    config: WalletPluginConfig = ...

    The logic configuration for the wallet plugin.

    id: string = 'cloudwallet'

    The unique identifier for the wallet plugin.

    loginTimeout: number = 300000
    metadata: WalletPluginMetadata = ...

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

    translations: {
        en: {
            connecting: string;
            error: {
                closed: string;
                endpoint: string;
                exception: string;
                popup: string;
                response: string;
                timeout: string;
            };
            login: { popup: string };
            transact: { popup: string };
        };
        ko: {
            connecting: string;
            error: {
                closed: string;
                endpoint: string;
                exception: string;
                popup: string;
                response: string;
                timeout: string;
            };
            login: { popup: string };
            transact: { popup: string };
        };
        "zh-Hans": {
            connecting: string;
            error: {
                closed: string;
                endpoint: string;
                exception: string;
                popup: string;
                response: string;
                timeout: string;
            };
            login: { popup: string };
            transact: { popup: string };
        };
        "zh-Hant": {
            connecting: string;
            error: {
                closed: string;
                endpoint: string;
                exception: string;
                popup: string;
                response: string;
                timeout: string;
            };
            login: { popup: string };
            transact: { popup: string };
        };
    } = defaultTranslations

    The translations for this plugin

    url: string = 'https://www.mycloudwallet.com'

    Cloud Wallet Configuration

    • 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

      • resolved: ResolvedSigningRequest
      • context: TransactContext
      • t: (key: string, options?: UserInterfaceTranslateOptions) => string
      • timeout: number = 300000

      Returns Promise<WAXCloudWalletSigningResponse>

    • Performs the wallet logic required to login and return the chain and permission level to use.

      Parameters

      • context: LoginContext

      Returns Cancelable<WalletPluginLoginResponse>

      Promise

    • Optional method that is used to signal to the wallet plugin to logout the user.

      Returns Promise<void>

      A promise that resolves when the wallet plugin logout process is complete.

      An error if the logout could not happen.

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

      Returns SerializedWalletPlugin

    • Performs the wallet logic required to sign a transaction and return the signature.

      Parameters

      • resolved: ResolvedSigningRequest

        ResolvedSigningRequest

      • context: TransactContext

      Returns Cancelable<WalletPluginSignResponse>

      Promise

    • Parameters

      • resolved: ResolvedSigningRequest
      • context: TransactContext

      Returns Promise<WalletPluginSignResponse>