Class: TonSdkRuby::Provider

Inherits:
Object
  • Object
show all
Extended by:
TonSdkRuby
Includes:
TonSdkRuby
Defined in:
lib/ton-sdk-ruby/providers/provider.rb

Constant Summary

Constants included from TonSdkRuby

DEPTH_BITS, FLAG_BOUNCEABLE, FLAG_NON_BOUNCEABLE, FLAG_TEST_ONLY, HASH_BITS, INT32_MAX, INT32_MIN, LEAN_BOC_MAGIC_PREFIX, LEAN_BOC_MAGIC_PREFIX_CRC, REACH_BOC_MAGIC_PREFIX, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TonSdkRuby

augment, base64_to_bytes, bits_to_big_int, bits_to_big_uint, bits_to_bytes, bits_to_hex, bits_to_int_uint, breadth_first_sort, bytes_compare, bytes_needed_for_words_bip39, bytes_to_base64, bytes_to_bits, bytes_to_data_string, bytes_to_hex, bytes_to_string, bytes_to_uint, crc16, crc16_bytes_be, crc32c, crc32c_bytes_le, depth_first_sort, deserialize, deserialize_cell, deserialize_fift, deserialize_header, generate_words_bip39, get_mapper, hex_to_bits, hex_to_bytes, hex_to_data_string, read_json_from_link, read_post_json_from_link, require_type, rollback, serialize, serialize_cell, sha256, sha512, sign_cell, slice_into_chunks, string_to_bytes, uint_to_hex, validate_library_reference, validate_merkle_proof, validate_merkle_update, validate_ordinary, validate_pruned_branch

Constructor Details

#initialize(provider) ⇒ Provider

Returns a new instance of Provider.



8
9
10
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 8

def initialize(provider)
  @provider = provider
end

Instance Attribute Details

#providerObject

Returns the value of attribute provider.



6
7
8
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 6

def provider
  @provider
end

Instance Method Details

#estimate_fee(address, body, init_code, init_data, ignore_chksig = false) ⇒ Object



40
41
42
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 40

def estimate_fee(address, body, init_code, init_data, ignore_chksig = false)
  provider.estimate_fee(address, body, init_code, init_data, ignore_chksig)
end

#get_address_balance(address) ⇒ Object



20
21
22
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 20

def get_address_balance(address)
  provider.get_address_balance(address)
end

#get_address_information(address) ⇒ Object



12
13
14
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 12

def get_address_information(address)
  provider.get_address_information(address)
end

#get_extended_address_information(address) ⇒ Object



16
17
18
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 16

def get_extended_address_information(address)
  provider.get_extended_address_information(address)
end

#get_token_data(address) ⇒ Object



24
25
26
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 24

def get_token_data(address)
  provider.get_token_data(address)
end

#get_transactions(address, archival, limit, lt, hash, to_lt) ⇒ Object



28
29
30
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 28

def get_transactions(address, archival, limit, lt, hash, to_lt)
  provider.get_transactions(address, archival, limit, lt, hash, to_lt)
end

#run_get_method(address, method, stack = []) ⇒ Object



32
33
34
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 32

def run_get_method(address, method, stack = [])
  provider.run_get_method(address, method, stack)
end

#send_boc(boc) ⇒ Object



36
37
38
# File 'lib/ton-sdk-ruby/providers/provider.rb', line 36

def send_boc(boc)
  provider.send_boc(boc)
end