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_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfDecodeTvc tvc: String - # # Contract TVC image BOC encoded as base64 or BOC handle boc_cache: BocCacheType<Optional> - # # Cache type to put the result.
-
#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_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeTvc 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_tvc_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
149 150 151 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 149 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
154 155 156 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 154 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
164 165 166 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 164 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
169 170 171 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 169 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
177 178 179 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 177 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
182 183 184 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 182 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_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfDecodeTvc tvc: String - # # Contract TVC 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: ResultOfDecodeTvc 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
248 249 250 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 248 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
253 254 255 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 253 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
192 193 194 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 192 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
197 198 199 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 197 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
287 288 289 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 287 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
292 293 294 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 292 def (payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#encode_tvc(payload, &block) ⇒ Object
INPUT: ParamsOfEncodeTvc 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: ResultOfEncodeTvc tvc: String - # # Contract TVC image BOC encoded as base64 or BOC handle of boc_cache parameter was specified Async
268 269 270 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 268 def encode_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 |
#encode_tvc_sync(payload) ⇒ Object
Sync
273 274 275 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 273 def encode_tvc_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
93 94 95 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 93 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
98 99 100 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 98 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
121 122 123 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 121 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
126 127 128 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 126 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
107 108 109 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 107 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
112 113 114 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 112 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
135 136 137 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 135 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
140 141 142 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 140 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
207 208 209 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 207 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
212 213 214 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 212 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
301 302 303 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 301 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
306 307 308 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 306 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
49 50 51 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 49 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
54 55 56 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 54 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
63 64 65 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 63 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
68 69 70 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 68 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
21 22 23 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 21 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
26 27 28 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 26 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
79 80 81 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 79 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
84 85 86 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 84 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
35 36 37 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 35 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
40 41 42 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 40 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
223 224 225 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 223 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
228 229 230 |
# File 'lib/everscale-client-ruby/Client/Boc.rb', line 228 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 |