module TonSdk::Debot

NOTE as of 28 apr 2021, in the main repository this module is still unstable

Constants

DebotAction
DebotInfo
ParamsOfExecute
ParamsOfFetch
ParamsOfInit
ParamsOfSend
ParamsOfStart
RegisteredDebot
ResultOfFetch
Spending

Public Class Methods

execute(ctx, params) { |native_lib_responset_result( result: nil| ... } click to toggle source
# File lib/ton_sdk_client/debot.rb, line 331
def self.execute(ctx, params)
  Interop::request_to_native_lib(ctx, "debot.execute", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: nil
      )
    else
      yield resp
    end
  end
end
fetch(ctx, params) { |native_lib_responset_result( result: result_of_fetch| ... } click to toggle source
# File lib/ton_sdk_client/debot.rb, line 313
def self.fetch(ctx, params)
  Interop::request_to_native_lib(
    ctx,
    "debot.fetch",
    params,
    is_single_thread_only: false
  ) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        # TODO: parse DebotInfo
        result: ResultOfFetch.new(resp.result["info"])
      )
    else
      yield resp
    end
  end
end
init(ctx, params, app_browser_obj) { |native_lib_responset_result( result: nil| ... } click to toggle source

functions

# File lib/ton_sdk_client/debot.rb, line 284
def self.init(ctx, params, app_browser_obj)
  Interop::request_to_native_lib(ctx, "debot.init", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: nil
      )
    else
      yield resp
    end
  end
end
remove(ctx, params) { |native_lib_responset_result( result: nil| ... } click to toggle source
# File lib/ton_sdk_client/debot.rb, line 343
def self.remove(ctx, params)
  Interop::request_to_native_lib(ctx, "debot.remove", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: nil
      )
    else
      yield resp
    end
  end
end
send(ctx, params) { |native_lib_responset_result( result: nil| ... } click to toggle source
# File lib/ton_sdk_client/debot.rb, line 355
def self.send(ctx, params)
  Interop::request_to_native_lib(ctx, "debot.send", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: nil
      )
    else
      yield resp
    end
  end
end
start(ctx, params) { |native_lib_responset_result( result: nil| ... } click to toggle source
# File lib/ton_sdk_client/debot.rb, line 296
def self.start(ctx, params)
  Interop::request_to_native_lib(
    ctx,
    "debot.start",
    params,
    is_single_thread_only: false
  ) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: nil
      )
    else
      yield resp
    end
  end
end