Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DebotModule

UNSTABLE DEPRECATED Module for working with debot.

Hierarchy

  • DebotModule

Index

Constructors

Properties

client: IClient

Methods

  • UNSTABLE DEPRECATED Executes debot action.

    remarks

    Calls debot engine referenced by debot handle to execute input action. Calls Debot Browser Callbacks if needed.

    Remarks

    Chain of actions can be executed if input action generates a list of subactions.

    Parameters

    Returns Promise<void>

  • UNSTABLE DEPRECATED Executes debot action.

    remarks

    Calls debot engine referenced by debot handle to execute input action. Calls Debot Browser Callbacks if needed.

    Remarks

    Chain of actions can be executed if input action generates a list of subactions.

    NOTE: Available only for lib-node binding.

    Parameters

    Returns void

  • UNSTABLE DEPRECATED Creates and instance of DeBot.

    remarks

    Downloads debot smart contract (code and data) from blockchain and creates an instance of Debot Engine for it.

    Remarks

    It does not switch debot to context 0. Browser Callbacks are not called.

    NOTE: Available only for lib-node binding.

    Parameters

    Returns RegisteredDebot

    RegisteredDebot

  • UNSTABLE DEPRECATED Destroys debot handle.

    remarks

    Removes handle from Client Context and drops debot engine referenced by that handle.

    NOTE: Available only for lib-node binding.

    Parameters

    Returns void

  • UNSTABLE DEPRECATED Sends message to Debot.

    remarks

    Used by Debot Browser to send response on Dinterface call or from other Debots.

    NOTE: Available only for lib-node binding.

    Parameters

    Returns void

  • UNSTABLE DEPRECATED Starts the DeBot.

    remarks

    Downloads debot smart contract from blockchain and switches it to context zero.

    This function must be used by Debot Browser to start a dialog with debot. While the function is executing, several Browser Callbacks can be called, since the debot tries to display all actions from the context 0 to the user.

    When the debot starts SDK registers BrowserCallbacks AppObject. Therefore when debote.remove is called the debot is being deleted and the callback is called with finish=true which indicates that it will never be used again.

    Parameters

    Returns Promise<void>

  • UNSTABLE DEPRECATED Starts the DeBot.

    remarks

    Downloads debot smart contract from blockchain and switches it to context zero.

    This function must be used by Debot Browser to start a dialog with debot. While the function is executing, several Browser Callbacks can be called, since the debot tries to display all actions from the context 0 to the user.

    When the debot starts SDK registers BrowserCallbacks AppObject. Therefore when debote.remove is called the debot is being deleted and the callback is called with finish=true which indicates that it will never be used again.

    NOTE: Available only for lib-node binding.

    Parameters

    Returns void

Generated using TypeDoc