Class: TonClient::Boc
- Includes:
- CommonInstanceHelpers
- Defined in:
- lib/everscale-client-ruby/Client/Boc.rb
Constant Summary collapse
- MODULE =
self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#monitor ⇒ Object
readonly
Returns the value of attribute monitor.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#requests ⇒ Object
readonly
Returns the value of attribute requests.
Instance Method Summary collapse
-
#cache_get(payload, &block) ⇒ Object
INPUT: ParamsOfBocCacheGet boc_ref: String - # # Reference to the cached BOC RESPONSE: ResultOfBocCacheGet boc: String<Optional> - # # BOC encoded as base64.
-
#cache_get_sync(payload) ⇒ Object
Sync.
-
#cache_set(payload, &block) ⇒ Object
INPUT: ParamsOfBocCacheSet boc: String - # # BOC encoded as base64 or BOC reference cache_type: BocCacheType - # # Cache type RESPONSE: ResultOfBocCacheSet boc_ref: String - # # Reference to the cached BOC Async.
-
#cache_set_sync(payload) ⇒ Object
Sync.
-
#cache_unpin(payload, &block) ⇒ Object
INPUT: ParamsOfBocCacheUnpin pin: String - # # Pinned name boc_ref: String<Optional> - # # Reference to the cached BOC.
-
#cache_unpin_sync(payload) ⇒ Object
Sync.
-
#decode_state_init(payload, &block) ⇒ Object
INPUT: ParamsOfDecodeStateInit state_init: String - # # Contract StateInit image BOC encoded as base64 or BOC handle boc_cache: BocCacheType<Optional> - # # Cache type to put the result.
-
#decode_state_init_sync(payload) ⇒ Object
Sync.
-
#decode_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfDecodeTvc tvc: String - # # Contract TVC BOC encoded as base64 or BOC handle RESPONSE: ResultOfDecodeTvc tvc: Tvc - # # Decoded TVC Async.
-
#decode_tvc_sync(payload) ⇒ Object
Sync.
-
#encode_boc(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeBoc builder: Array - # # Cell builder operations.
-
#encode_boc_sync(payload) ⇒ Object
Sync.
-
#encode_external_in_message(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeExternalInMessage src: String<Optional> - # # Source address.
-
#encode_external_in_message_sync(payload) ⇒ Object
Sync.
-
#encode_state_init(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeStateInit code: String<Optional> - # # Contract code BOC encoded as base64 or BOC handle data: String<Optional> - # # Contract data BOC encoded as base64 or BOC handle library: String<Optional> - # # Contract library BOC encoded as base64 or BOC handle tick: Boolean<Optional> - # # ‘special.tick` field.
-
#encode_state_init_sync(payload) ⇒ Object
Sync.
-
#get_blockchain_config(payload, &block) ⇒ Object
INPUT: ParamsOfGetBlockchainConfig block_boc: String - # # Key block BOC or zerostate BOC encoded as base64 RESPONSE: ResultOfGetBlockchainConfig config_boc: String - # # Blockchain config BOC encoded as base64 Async.
-
#get_blockchain_config_sync(payload) ⇒ Object
Sync.
-
#get_boc_depth(payload, &block) ⇒ Object
INPUT: ParamsOfGetBocDepth boc: String - # # BOC encoded as base64 or BOC handle RESPONSE: ResultOfGetBocDepth depth: Number - # # BOC root cell depth Async.
-
#get_boc_depth_sync(payload) ⇒ Object
Sync.
-
#get_boc_hash(payload, &block) ⇒ Object
INPUT: ParamsOfGetBocHash boc: String - # # BOC encoded as base64 or BOC handle RESPONSE: ResultOfGetBocHash hash: String - # # BOC root hash encoded with hex Async.
-
#get_boc_hash_sync(payload) ⇒ Object
Sync.
-
#get_code_from_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfGetCodeFromTvc tvc: String - # # Contract TVC image or image BOC handle RESPONSE: ResultOfGetCodeFromTvc code: String - # # Contract code encoded as base64 Async.
-
#get_code_from_tvc_sync(payload) ⇒ Object
Sync.
-
#get_code_salt(payload, &block) ⇒ Object
INPUT: ParamsOfGetCodeSalt code: String - # # Contract code BOC encoded as base64 or code BOC handle boc_cache: BocCacheType<Optional> - # # Cache type to put the result.
-
#get_code_salt_sync(payload) ⇒ Object
Sync.
-
#get_compiler_version(payload, &block) ⇒ Object
INPUT: ParamsOfGetCompilerVersion code: String - # # Contract code BOC encoded as base64 or code BOC handle RESPONSE: ResultOfGetCompilerVersion version: String<Optional> - # # Compiler version, for example ‘sol 0.49.0’ Async.
-
#get_compiler_version_sync(payload) ⇒ Object
Sync.
-
#initialize(context: nil, request_id: nil, requests: nil, monitor: nil) ⇒ Boc
constructor
A new instance of Boc.
-
#parse_account(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async.
-
#parse_account_sync(payload) ⇒ Object
Sync.
-
#parse_block(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async.
-
#parse_block_sync(payload) ⇒ Object
Sync.
-
#parse_message(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async.
-
#parse_message_sync(payload) ⇒ Object
Sync.
-
#parse_shardstate(payload, &block) ⇒ Object
INPUT: ParamsOfParseShardstate boc: String - # # BOC encoded as base64 id: String - # # Shardstate identifier workchain_id: Number - # # Workchain shardstate belongs to RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async.
-
#parse_shardstate_sync(payload) ⇒ Object
Sync.
-
#parse_transaction(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async.
-
#parse_transaction_sync(payload) ⇒ Object
Sync.
-
#set_code_salt(payload, &block) ⇒ Object
INPUT: ParamsOfSetCodeSalt code: String - # # Contract code BOC encoded as base64 or code BOC handle salt: String - # # Code salt to set.
-
#set_code_salt_sync(payload) ⇒ Object
Sync.
Methods included from CommonInstanceHelpers
#base64?, #encode_to_base64, #full_method_name
Constructor Details
#initialize(context: nil, request_id: nil, requests: nil, monitor: nil) ⇒ Boc
Returns a new instance of Boc.
9 10 11 12 13 14 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 9 def initialize(context: nil, request_id: nil, requests: nil, monitor: nil) @context = context @request_id = request_id @requests = requests @monitor = monitor end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 6 def context @context end |
#monitor ⇒ Object (readonly)
Returns the value of attribute monitor.
6 7 8 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 6 def monitor @monitor end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
6 7 8 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 6 def request_id @request_id end |
#requests ⇒ Object (readonly)
Returns the value of attribute requests.
6 7 8 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 6 def requests @requests end |
Instance Method Details
#cache_get(payload, &block) ⇒ Object
INPUT: ParamsOfBocCacheGet boc_ref: String - # # Reference to the cached BOC RESPONSE: ResultOfBocCacheGet boc: String<Optional> - # # BOC encoded as base64. Async
163 164 165 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 163 def cache_get(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#cache_get_sync(payload) ⇒ Object
Sync
168 169 170 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 168 def cache_get_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#cache_set(payload, &block) ⇒ Object
INPUT: ParamsOfBocCacheSet boc: String - # # BOC encoded as base64 or BOC reference cache_type: BocCacheType - # # Cache type RESPONSE: ResultOfBocCacheSet boc_ref: String - # # Reference to the cached BOC Async
178 179 180 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 178 def cache_set(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#cache_set_sync(payload) ⇒ Object
Sync
183 184 185 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 183 def cache_set_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#cache_unpin(payload, &block) ⇒ Object
INPUT: ParamsOfBocCacheUnpin pin: String - # # Pinned name boc_ref: String<Optional> - # # Reference to the cached BOC. # # If it is provided then only referenced BOC is unpinned Async
191 192 193 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 191 def cache_unpin(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#cache_unpin_sync(payload) ⇒ Object
Sync
196 197 198 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 196 def cache_unpin_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#decode_state_init(payload, &block) ⇒ Object
INPUT: ParamsOfDecodeStateInit state_init: String - # # Contract StateInit image BOC encoded as base64 or BOC handle boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided. RESPONSE: ResultOfDecodeStateInit code: String<Optional> - # # Contract code BOC encoded as base64 or BOC handle code_hash: String<Optional> - # # Contract code hash code_depth: Number<Optional> - # # Contract code depth data: String<Optional> - # # Contract data BOC encoded as base64 or BOC handle data_hash: String<Optional> - # # Contract data hash data_depth: Number<Optional> - # # Contract data depth library: String<Optional> - # # Contract library BOC encoded as base64 or BOC handle tick: Boolean<Optional> - # # ‘special.tick` field. # # Specifies the contract ability to handle tick transactions tock: Boolean<Optional> - # # `special.tock` field. # # Specifies the contract ability to handle tock transactions split_depth: Number<Optional> - # # Is present and non-zero only in instances of large smart contracts compiler_version: String<Optional> - # # Compiler version, for example ’sol 0.49.0’ Async
262 263 264 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 262 def decode_state_init(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#decode_state_init_sync(payload) ⇒ Object
Sync
267 268 269 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 267 def decode_state_init_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#decode_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfDecodeTvc tvc: String - # # Contract TVC BOC encoded as base64 or BOC handle RESPONSE: ResultOfDecodeTvc tvc: Tvc - # # Decoded TVC Async
21 22 23 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 21 def decode_tvc(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#decode_tvc_sync(payload) ⇒ Object
Sync
26 27 28 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 26 def decode_tvc_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#encode_boc(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeBoc builder: Array - # # Cell builder operations. boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided. RESPONSE: ResultOfEncodeBoc boc: String - # # Encoded cell BOC or BOC cache key. Async
206 207 208 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 206 def encode_boc(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#encode_boc_sync(payload) ⇒ Object
Sync
211 212 213 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 211 def encode_boc_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#encode_external_in_message(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeExternalInMessage src: String<Optional> - # # Source address. dst: String - # # Destination address. init: String<Optional> - # # Bag of cells with state init (used in deploy messages). body: String<Optional> - # # Bag of cells with the message body encoded as base64. boc_cache: BocCacheType<Optional> - # # Cache type to put the result. # # The BOC itself returned if no cache type provided RESPONSE: ResultOfEncodeExternalInMessage message: String - # # Message BOC encoded with ‘base64`. message_id: String - # # Message id. Async
301 302 303 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 301 def (payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#encode_external_in_message_sync(payload) ⇒ Object
Sync
306 307 308 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 306 def (payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#encode_state_init(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeStateInit code: String<Optional> - # # Contract code BOC encoded as base64 or BOC handle data: String<Optional> - # # Contract data BOC encoded as base64 or BOC handle library: String<Optional> - # # Contract library BOC encoded as base64 or BOC handle tick: Boolean<Optional> - # # ‘special.tick` field. # # Specifies the contract ability to handle tick transactions tock: Boolean<Optional> - # # `special.tock` field. # # Specifies the contract ability to handle tock transactions split_depth: Number<Optional> - # # Is present and non-zero only in instances of large smart contracts boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided. RESPONSE: ResultOfEncodeStateInit state_init: String - # # Contract StateInit image BOC encoded as base64 or BOC handle of boc_cache parameter was specified Async
282 283 284 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 282 def encode_state_init(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#encode_state_init_sync(payload) ⇒ Object
Sync
287 288 289 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 287 def encode_state_init_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#get_blockchain_config(payload, &block) ⇒ Object
INPUT: ParamsOfGetBlockchainConfig block_boc: String - # # Key block BOC or zerostate BOC encoded as base64 RESPONSE: ResultOfGetBlockchainConfig config_boc: String - # # Blockchain config BOC encoded as base64 Async
107 108 109 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 107 def get_blockchain_config(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#get_blockchain_config_sync(payload) ⇒ Object
Sync
112 113 114 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 112 def get_blockchain_config_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#get_boc_depth(payload, &block) ⇒ Object
INPUT: ParamsOfGetBocDepth boc: String - # # BOC encoded as base64 or BOC handle RESPONSE: ResultOfGetBocDepth depth: Number - # # BOC root cell depth Async
135 136 137 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 135 def get_boc_depth(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#get_boc_depth_sync(payload) ⇒ Object
Sync
140 141 142 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 140 def get_boc_depth_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#get_boc_hash(payload, &block) ⇒ Object
INPUT: ParamsOfGetBocHash boc: String - # # BOC encoded as base64 or BOC handle RESPONSE: ResultOfGetBocHash hash: String - # # BOC root hash encoded with hex Async
121 122 123 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 121 def get_boc_hash(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#get_boc_hash_sync(payload) ⇒ Object
Sync
126 127 128 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 126 def get_boc_hash_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#get_code_from_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfGetCodeFromTvc tvc: String - # # Contract TVC image or image BOC handle RESPONSE: ResultOfGetCodeFromTvc code: String - # # Contract code encoded as base64 Async
149 150 151 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 149 def get_code_from_tvc(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#get_code_from_tvc_sync(payload) ⇒ Object
Sync
154 155 156 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 154 def get_code_from_tvc_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#get_code_salt(payload, &block) ⇒ Object
INPUT: ParamsOfGetCodeSalt code: String - # # Contract code BOC encoded as base64 or code BOC handle boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided. RESPONSE: ResultOfGetCodeSalt salt: String<Optional> - # # Contract code salt if present. # # BOC encoded as base64 or BOC handle Async
221 222 223 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 221 def get_code_salt(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#get_code_salt_sync(payload) ⇒ Object
Sync
226 227 228 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 226 def get_code_salt_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#get_compiler_version(payload, &block) ⇒ Object
INPUT: ParamsOfGetCompilerVersion code: String - # # Contract code BOC encoded as base64 or code BOC handle RESPONSE: ResultOfGetCompilerVersion version: String<Optional> - # # Compiler version, for example ‘sol 0.49.0’ Async
315 316 317 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 315 def get_compiler_version(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#get_compiler_version_sync(payload) ⇒ Object
Sync
320 321 322 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 320 def get_compiler_version_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#parse_account(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async
63 64 65 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 63 def parse_account(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#parse_account_sync(payload) ⇒ Object
Sync
68 69 70 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 68 def parse_account_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#parse_block(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async
77 78 79 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 77 def parse_block(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#parse_block_sync(payload) ⇒ Object
Sync
82 83 84 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 82 def parse_block_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#parse_message(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async
35 36 37 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 35 def (payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#parse_message_sync(payload) ⇒ Object
Sync
40 41 42 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 40 def (payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#parse_shardstate(payload, &block) ⇒ Object
INPUT: ParamsOfParseShardstate boc: String - # # BOC encoded as base64 id: String - # # Shardstate identifier workchain_id: Number - # # Workchain shardstate belongs to RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async
93 94 95 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 93 def parse_shardstate(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#parse_shardstate_sync(payload) ⇒ Object
Sync
98 99 100 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 98 def parse_shardstate_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#parse_transaction(payload, &block) ⇒ Object
INPUT: ParamsOfParse boc: String - # # BOC encoded as base64 RESPONSE: ResultOfParse parsed: Value - # # JSON containing parsed BOC Async
49 50 51 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 49 def parse_transaction(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#parse_transaction_sync(payload) ⇒ Object
Sync
54 55 56 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 54 def parse_transaction_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#set_code_salt(payload, &block) ⇒ Object
INPUT: ParamsOfSetCodeSalt code: String - # # Contract code BOC encoded as base64 or code BOC handle salt: String - # # Code salt to set. # # BOC encoded as base64 or BOC handle boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided. RESPONSE: ResultOfSetCodeSalt code: String - # # Contract code with salt set. # # BOC encoded as base64 or BOC handle Async
237 238 239 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 237 def set_code_salt(payload, &block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block) end |
#set_code_salt_sync(payload) ⇒ Object
Sync
242 243 244 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 242 def set_code_salt_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |