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

    Class WalletPluginIMToken

    Hierarchy

    • AbstractWalletPlugin
      • WalletPluginIMToken

    Implements

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

    The logic configuration for the wallet plugin.

    id: string = 'imtoken'
    metadata: WalletPluginMetadata = ...

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

    translations: {} = {}
    • 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

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

      Parameters

      • context: LoginContext

        LogoutContext

      Returns Promise<WalletPluginLoginResponse>

      Promise

    • Performs the wallet logic required to logout.

      Parameters

      • context: LogoutContext

      Returns Promise<void>

      Promise

    • 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 Promise<WalletPluginSignResponse>

      Promise