module TonSdk::Boc

Constants

ParamsOfBocCacheGet
ParamsOfBocCacheSet
ParamsOfBocCacheUnpin
ParamsOfEncodeBoc
ParamsOfGetBlockchainConfig
ParamsOfGetBocHash
ParamsOfGetCodeFromTvc
ParamsOfParse

types

ParamsOfParseShardstate
ResultOfBocCacheGet
ResultOfBocCacheSet
ResultOfEncodeBoc
ResultOfGetBlockchainConfig
ResultOfGetBocHash
ResultOfGetCodeFromTvc
ResultOfParse

Public Class Methods

cache_get(ctx, params) { |native_lib_responset_result( result: result_of_boc_cache_get( boc: result| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 169
def self.cache_get(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.cache_get", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfBocCacheGet.new(
          boc: resp.result["boc"]
        )
      )
    else
      yield resp
    end
  end
end
cache_set(ctx, params) { |native_lib_responset_result( result: result_of_boc_cache_set( boc_ref: result| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 183
def self.cache_set(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.cache_set", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfBocCacheSet.new(
          boc_ref: resp.result["boc_ref"]
        )
      )
    else
      yield resp
    end
  end
end
cache_unpin(ctx, params) { |native_lib_responset_result( result: nil| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 197
def self.cache_unpin(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.cache_unpin", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: nil
      )
    else
      yield resp
    end
  end
end
encode_boc(ctx, params) { |native_lib_responset_result( result: result_of_encode_boc( result| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 209
def self.encode_boc(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.encode_boc", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfEncodeBoc.new(
          resp.result["boc"]
        )
      )
    else
      yield resp
    end
  end
end
get_blockchain_config(ctx, params) { |native_lib_responset_result( result: result_of_get_blockchain_config| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 133
def self.get_blockchain_config(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.get_blockchain_config", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfGetBlockchainConfig.new(resp.result["config_boc"])
      )
    else
      yield resp
    end
  end
end
get_boc_hash(ctx, params) { |native_lib_responset_result( result: result_of_get_boc_hash| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 145
def self.get_boc_hash(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.get_boc_hash", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfGetBocHash.new(resp.result["hash"])
      )
    else
      yield resp
    end
  end
end
get_code_from_tvc(ctx, params) { |native_lib_responset_result( result: result_of_get_code_from_tvc| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 157
def self.get_code_from_tvc(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.get_code_from_tvc", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfGetCodeFromTvc.new(resp.result["code"])
      )
    else
      yield resp
    end
  end
end
parse_account(ctx, params) { |native_lib_responset_result( result: result_of_parse| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 97
def self.parse_account(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.parse_account", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfParse.new(resp.result["parsed"])
      )
    else
      yield resp
    end
  end
end
parse_block(ctx, params) { |native_lib_responset_result( result: result_of_parse| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 109
def self.parse_block(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.parse_block", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfParse.new(resp.result["parsed"])
      )
    else
      yield resp
    end
  end
end
parse_message(ctx, params) { |native_lib_responset_result( result: result_of_parse| ... } click to toggle source

functions

# File lib/ton_sdk_client/boc.rb, line 73
def self.parse_message(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.parse_message", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfParse.new(resp.result["parsed"])
      )
    else
      yield resp
    end
  end
end
parse_shardstate(ctx, params) { |native_lib_responset_result( result: result_of_parse| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 121
def self.parse_shardstate(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.parse_shardstate", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfParse.new(resp.result["parsed"])
      )
    else
      yield resp
    end
  end
end
parse_transaction(ctx, params) { |native_lib_responset_result( result: result_of_parse| ... } click to toggle source
# File lib/ton_sdk_client/boc.rb, line 85
def self.parse_transaction(ctx, params)
  Interop::request_to_native_lib(ctx, "boc.parse_transaction", params) do |resp|
    if resp.success?
      yield NativeLibResponsetResult.new(
        result: ResultOfParse.new(resp.result["parsed"])
      )
    else
      yield resp
    end
  end
end