【问题标题】:What is the difference between debot fetch and debot start?debot fetch 和 debot start 有什么区别?
【发布时间】:2021-06-06 06:38:43
【问题描述】:

我在命令行中有几个不同的选项:获取和启动。它们有什么区别?

【问题讨论】:

    标签: solidity ton


    【解决方案1】:

    这里https://github.com/tonlabs/tonos-cli/pull/162 Free TON 的人说 “添加 debot start 命令作为 fetch 命令的同义词。”

    但是在这里https://github.com/tonlabs/TON-SDK/blob/master/docs/mod_debot.md#start thay 说

    start - 启动 DeBot。

    从区块链下载debot智能合约并将其切换到上下文零。

    Debot 浏览器必须使用此功能来启动与 debot 的对话。在执行函数时,可以调用多个浏览器回调,因为 debot 会尝试将上下文 0 中的所有操作显示给用户。

    当 debot 启动时,SDK 会注册 BrowserCallbacks AppObject。因此,当 debote.remove 被调用时,debot 被删除,回调函数使用 finish=true 调用,这表明它永远不会被再次使用。

    type ParamsOfStart = {
        debot_handle: DebotHandle
    }
    
    function start(
        params: ParamsOfStart,
    ): Promise<void>;
    

    及以下https://github.com/tonlabs/TON-SDK/blob/master/docs/mod_debot.md#fetch

    fetch - 从区块链中获取 DeBot 元数据。

    从区块链下载 DeBot 并创建和获取其元数据。

    type ParamsOfFetch = {
        address: string
    }
    
    type ResultOfFetch = {
        info: DebotInfo
    }
    
    function fetch(
        params: ParamsOfFetch,
    ): Promise<ResultOfFetch>;
    

    在 tg chat https://t.me/freeton_dev_exp 你可以找到 SDK 开发者

    【讨论】:

      猜你喜欢
      • 2016-10-22
      • 2021-12-28
      • 2014-07-26
      • 2017-04-12
      • 2020-01-13
      • 2014-03-31
      • 1970-01-01
      • 1970-01-01
      • 2021-06-11
      相关资源
      最近更新 更多