Class: TonClient::Net
- Includes:
- CommonInstanceHelpers
- Defined in:
- lib/everscale-client-ruby/Client/Net.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
-
#aggregate_collection(payload, &block) ⇒ Object
INPUT: ParamsOfAggregateCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter fields: Array<Optional> - # # Projection (result) string RESPONSE: ResultOfAggregateCollection values: Value - # # Values for requested fields.
-
#aggregate_collection_sync(payload) ⇒ Object
Sync.
-
#batch_query(payload, &block) ⇒ Object
INPUT: ParamsOfBatchQuery operations: Array - # # List of query operations that must be performed per single fetch.
-
#batch_query_sync(payload) ⇒ Object
Sync.
-
#create_block_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfCreateBlockIterator start_time: Number<Optional> - # # Starting time to iterate from.
-
#create_block_iterator_sync(payload) ⇒ Object
Sync.
-
#create_transaction_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfCreateTransactionIterator start_time: Number<Optional> - # # Starting time to iterate from.
-
#create_transaction_iterator_sync(payload) ⇒ Object
Sync.
-
#fetch_endpoints(&block) ⇒ Object
RESPONSE: EndpointsSet endpoints: Array - # # List of endpoints provided by server Async.
-
#fetch_endpoints_sync ⇒ Object
Sync.
-
#find_last_shard_block(payload, &block) ⇒ Object
INPUT: ParamsOfFindLastShardBlock address: String - # # Account address RESPONSE: ResultOfFindLastShardBlock block_id: String - # # Account shard last block ID Async.
-
#find_last_shard_block_sync(payload) ⇒ Object
Sync.
-
#get_endpoints(&block) ⇒ Object
RESPONSE: ResultOfGetEndpoints query: String - # # Current query endpoint endpoints: Array - # # List of all endpoints used by client Async.
-
#get_endpoints_sync ⇒ Object
Sync.
-
#get_signature_id(&block) ⇒ Object
RESPONSE: ResultOfGetSignatureId signature_id: Number<Optional> - # # Signature ID for configured network if it should be used in messages signature Async.
-
#get_signature_id_sync ⇒ Object
Sync.
-
#initialize(context: nil, request_id: nil, requests: nil, monitor: nil) ⇒ Net
constructor
A new instance of Net.
-
#iterator_next(payload, &block) ⇒ Object
INPUT: ParamsOfIteratorNext iterator: Number - # # Iterator handle limit: Number<Optional> - # # Maximum count of the returned items.
-
#iterator_next_sync(payload) ⇒ Object
Sync.
-
#query(payload, &block) ⇒ Object
INPUT: ParamsOfQuery query: String - # # GraphQL query text.
-
#query_collection(payload, &block) ⇒ Object
INPUT: ParamsOfQueryCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter result: String - # # Projection (result) string order: Array<Optional> - # # Sorting order limit: Number<Optional> - # # Number of documents to return RESPONSE: ResultOfQueryCollection result: Array - # # Objects that match the provided criteria Async.
-
#query_collection_sync(payload) ⇒ Object
Sync.
-
#query_counterparties(payload, &block) ⇒ Object
INPUT: ParamsOfQueryCounterparties account: String - # # Account address result: String - # # Projection (result) string first: Number<Optional> - # # Number of counterparties to return after: String<Optional> - # # ‘cursor` field of the last received result RESPONSE: ResultOfQueryCollection result: Array - # # Objects that match the provided criteria Async.
-
#query_counterparties_sync(payload) ⇒ Object
Sync.
-
#query_sync(payload) ⇒ Object
Sync.
-
#query_transaction_tree(payload, &block) ⇒ Object
INPUT: ParamsOfQueryTransactionTree in_msg: String - # # Input message id.
-
#query_transaction_tree_sync(payload) ⇒ Object
Sync.
-
#remove_iterator(payload, &block) ⇒ Object
INPUT: RegisteredIterator handle: Number - # # Iterator handle.
-
#remove_iterator_sync(payload) ⇒ Object
Sync.
-
#resume(&block) ⇒ Object
Async.
-
#resume_block_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfResumeBlockIterator resume_state: Value - # # Iterator state from which to resume.
-
#resume_block_iterator_sync(payload) ⇒ Object
Sync.
-
#resume_sync ⇒ Object
Sync.
-
#resume_transaction_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfResumeTransactionIterator resume_state: Value - # # Iterator state from which to resume.
-
#resume_transaction_iterator_sync(payload) ⇒ Object
Sync.
-
#set_endpoints(payload, &block) ⇒ Object
INPUT: EndpointsSet endpoints: Array - # # List of endpoints provided by server Async.
-
#set_endpoints_sync(payload) ⇒ Object
Sync.
-
#subscribe(payload, &block) ⇒ Object
INPUT: ParamsOfSubscribe subscription: String - # # GraphQL subscription text.
-
#subscribe_collection(payload, &block) ⇒ Object
INPUT: ParamsOfSubscribeCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter result: String - # # Projection (result) string RESPONSE: ResultOfSubscribeCollection handle: Number - # # Subscription handle.
-
#subscribe_collection_sync(payload) ⇒ Object
Sync.
-
#subscribe_sync(payload) ⇒ Object
Sync.
-
#suspend(&block) ⇒ Object
Async.
-
#suspend_sync ⇒ Object
Sync.
-
#unsubscribe(payload, &block) ⇒ Object
INPUT: ResultOfSubscribeCollection handle: Number - # # Subscription handle.
-
#unsubscribe_sync(payload) ⇒ Object
Sync.
-
#wait_for_collection(payload, &block) ⇒ Object
INPUT: ParamsOfWaitForCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter result: String - # # Projection (result) string timeout: Number<Optional> - # # Query timeout RESPONSE: ResultOfWaitForCollection result: Value - # # First found object that matches the provided criteria Async.
-
#wait_for_collection_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) ⇒ Net
Returns a new instance of Net.
9 10 11 12 13 14 |
# File 'lib/everscale-client-ruby/Client/Net.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/Net.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/Net.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/Net.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/Net.rb', line 6 def requests @requests end |
Instance Method Details
#aggregate_collection(payload, &block) ⇒ Object
INPUT: ParamsOfAggregateCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter fields: Array<Optional> - # # Projection (result) string RESPONSE: ResultOfAggregateCollection values: Value - # # Values for requested fields. # # Returns an array of strings. Each string refers to the corresponding ‘fields` item. Numeric value is returned as a decimal string representations. Async
71 72 73 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 71 def aggregate_collection(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 |
#aggregate_collection_sync(payload) ⇒ Object
Sync
76 77 78 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 76 def aggregate_collection_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#batch_query(payload, &block) ⇒ Object
INPUT: ParamsOfBatchQuery operations: Array - # # List of query operations that must be performed per single fetch. RESPONSE: ResultOfBatchQuery results: Array - # # Result values for batched queries. # # Returns an array of values. Each value corresponds to ‘queries` item. Async
36 37 38 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 36 def batch_query(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 |
#batch_query_sync(payload) ⇒ Object
Sync
41 42 43 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 41 def batch_query_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#create_block_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfCreateBlockIterator start_time: Number<Optional> - # # Starting time to iterate from. # # If the application specifies this parameter then the iterationincludes blocks with ‘gen_utime` >= `start_time`. Otherwise the iteration starts from zero state. Must be specified in seconds. end_time: Number<Optional> - # # Optional end time to iterate for. # # If the application specifies this parameter then the iterationincludes blocks with `gen_utime` < `end_time`. Otherwise the iteration never stops. Must be specified in seconds. shard_filter: Array<Optional> - # # Shard prefix filter. # # If the application specifies this parameter and it is not the empty arraythen the iteration will include items related to accounts that belongs tothe specified shard prefixes. Shard prefix must be represented as a string “workchain:prefix”. Where `workchain` is a signed integer and the `prefix` if a hexadecimalrepresentation if the 64-bit unsigned integer with tagged shard prefix. For example: “0:3800000000000000”. result: String<Optional> - # # Projection (result) string. # # List of the fields that must be returned for iterated items. This field is the same as the `result` parameter ofthe `query_collection` function. Note that iterated items can contains additional fields that arenot requested in the `result`. RESPONSE: RegisteredIterator handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application. Async
265 266 267 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 265 def create_block_iterator(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 |
#create_block_iterator_sync(payload) ⇒ Object
Sync
270 271 272 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 270 def create_block_iterator_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#create_transaction_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfCreateTransactionIterator start_time: Number<Optional> - # # Starting time to iterate from. # # If the application specifies this parameter then the iterationincludes blocks with ‘gen_utime` >= `start_time`. Otherwise the iteration starts from zero state. Must be specified in seconds. end_time: Number<Optional> - # # Optional end time to iterate for. # # If the application specifies this parameter then the iterationincludes blocks with `gen_utime` < `end_time`. Otherwise the iteration never stops. Must be specified in seconds. shard_filter: Array<Optional> - # # Shard prefix filters. # # If the application specifies this parameter and it is not an empty arraythen the iteration will include items related to accounts that belongs tothe specified shard prefixes. Shard prefix must be represented as a string “workchain:prefix”. Where `workchain` is a signed integer and the `prefix` if a hexadecimalrepresentation if the 64-bit unsigned integer with tagged shard prefix. For example: “0:3800000000000000”. Account address conforms to the shard filter ifit belongs to the filter workchain and the first bits of address match tothe shard prefix. Only transactions with suitable account addresses are iterated. accounts_filter: Array<Optional> - # # Account address filter. # # Application can specify the list of accounts for whichit wants to iterate transactions. If this parameter is missing or an empty list then the library iteratestransactions for all accounts that pass the shard filter. Note that the library doesn’t detect conflicts between the account filter and the shard filterif both are specified. So it is an application responsibility to specify the correct filter combination. result: String<Optional> - # # Projection (result) string. # # List of the fields that must be returned for iterated items. This field is the same as the ‘result` parameter ofthe `query_collection` function. Note that iterated items can contain additional fields that arenot requested in the `result`. include_transfers: Boolean<Optional> - # # Include `transfers` field in iterated transactions. # # If this parameter is `true` then each transaction contains field`transfers` with list of transfer. See more about this structure in function description. RESPONSE: RegisteredIterator handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application. Async
311 312 313 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 311 def create_transaction_iterator(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 |
#create_transaction_iterator_sync(payload) ⇒ Object
Sync
316 317 318 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 316 def create_transaction_iterator_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#fetch_endpoints(&block) ⇒ Object
RESPONSE: EndpointsSet endpoints: Array - # # List of endpoints provided by server Async
177 178 179 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 177 def fetch_endpoints(&block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block) end |
#fetch_endpoints_sync ⇒ Object
Sync
182 183 184 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 182 def fetch_endpoints_sync() TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {}) end |
#find_last_shard_block(payload, &block) ⇒ Object
INPUT: ParamsOfFindLastShardBlock address: String - # # Account address RESPONSE: ResultOfFindLastShardBlock block_id: String - # # Account shard last block ID Async
165 166 167 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 165 def find_last_shard_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 |
#find_last_shard_block_sync(payload) ⇒ Object
Sync
170 171 172 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 170 def find_last_shard_block_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#get_endpoints(&block) ⇒ Object
RESPONSE: ResultOfGetEndpoints query: String - # # Current query endpoint endpoints: Array - # # List of all endpoints used by client Async
202 203 204 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 202 def get_endpoints(&block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block) end |
#get_endpoints_sync ⇒ Object
Sync
207 208 209 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 207 def get_endpoints_sync() TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {}) end |
#get_signature_id(&block) ⇒ Object
RESPONSE: ResultOfGetSignatureId signature_id: Number<Optional> - # # Signature ID for configured network if it should be used in messages signature Async
374 375 376 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 374 def get_signature_id(&block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block) end |
#get_signature_id_sync ⇒ Object
Sync
379 380 381 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 379 def get_signature_id_sync() TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {}) end |
#iterator_next(payload, &block) ⇒ Object
INPUT: ParamsOfIteratorNext iterator: Number - # # Iterator handle limit: Number<Optional> - # # Maximum count of the returned items. # # If value is missing or is less than 1 the library uses 1. return_resume_state: Boolean<Optional> - # # Indicates that function must return the iterator state that can be used for resuming iteration. RESPONSE: ResultOfIteratorNext items: Array - # # Next available items. # # Note that ‘iterator_next` can return an empty items and `has_more` equals to `true`. In this case the application have to continue iteration. Such situation can take place when there is no data yet butthe requested `end_time` is not reached. has_more: Boolean - # # Indicates that there are more available items in iterated range. resume_state: Value<Optional> - # # Optional iterator state that can be used for resuming iteration. # # This field is returned only if the `return_resume_state` parameteris specified. Note that `resume_state` corresponds to the iteration positionafter the returned items. Async
350 351 352 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 350 def iterator_next(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 |
#iterator_next_sync(payload) ⇒ Object
Sync
355 356 357 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 355 def iterator_next_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#query(payload, &block) ⇒ Object
INPUT: ParamsOfQuery query: String - # # GraphQL query text. variables: Value - # # Variables used in query. # # Must be a map with named values that can be used in query. RESPONSE: ResultOfQuery result: Value - # # Result provided by DAppServer. Async
22 23 24 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 22 def query(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 |
#query_collection(payload, &block) ⇒ Object
INPUT: ParamsOfQueryCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter result: String - # # Projection (result) string order: Array<Optional> - # # Sorting order limit: Number<Optional> - # # Number of documents to return RESPONSE: ResultOfQueryCollection result: Array - # # Objects that match the provided criteria Async
54 55 56 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 54 def query_collection(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 |
#query_collection_sync(payload) ⇒ Object
Sync
59 60 61 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 59 def query_collection_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#query_counterparties(payload, &block) ⇒ Object
INPUT: ParamsOfQueryCounterparties account: String - # # Account address result: String - # # Projection (result) string first: Number<Optional> - # # Number of counterparties to return after: String<Optional> - # # ‘cursor` field of the last received result RESPONSE: ResultOfQueryCollection result: Array - # # Objects that match the provided criteria Async
219 220 221 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 219 def query_counterparties(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 |
#query_counterparties_sync(payload) ⇒ Object
Sync
224 225 226 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 224 def query_counterparties_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#query_sync(payload) ⇒ Object
Sync
27 28 29 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 27 def query_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#query_transaction_tree(payload, &block) ⇒ Object
INPUT: ParamsOfQueryTransactionTree in_msg: String - # # Input message id. abi_registry: Array<Optional> - # # List of contract ABIs that will be used to decode message bodies. Library will try to decode each returned message body using any ABI from the registry. timeout: Number<Optional> - # # Timeout used to limit waiting time for the missing messages and transaction. # # If some of the following messages and transactions are missing yetThe maximum waiting time is regulated by this option. Default value is 60000 (1 min). If ‘timeout` is set to 0 then function will wait infinitelyuntil the whole transaction tree is executed transaction_max_count: Number<Optional> - # # Maximum transaction count to wait. # # If transaction tree contains more transaction then this parameter then only first `transaction_max_count` transaction are awaited and returned. Default value is 50. If `transaction_max_count` is set to 0 then no limitation ontransaction count is used and all transaction are returned. RESPONSE: ResultOfQueryTransactionTree messages: Array - # # Messages. transactions: Array - # # Transactions. Async
239 240 241 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 239 def query_transaction_tree(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 |
#query_transaction_tree_sync(payload) ⇒ Object
Sync
244 245 246 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 244 def query_transaction_tree_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#remove_iterator(payload, &block) ⇒ Object
INPUT: RegisteredIterator handle: Number - # # Iterator handle. # # Must be removed using ‘remove_iterator`when it is no more needed for the application. Async
362 363 364 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 362 def remove_iterator(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 |
#remove_iterator_sync(payload) ⇒ Object
Sync
367 368 369 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 367 def remove_iterator_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#resume(&block) ⇒ Object
Async
151 152 153 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 151 def resume(&block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block) end |
#resume_block_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfResumeBlockIterator resume_state: Value - # # Iterator state from which to resume. # # Same as value returned from ‘iterator_next`. RESPONSE: RegisteredIterator handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application. Async
279 280 281 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 279 def resume_block_iterator(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 |
#resume_block_iterator_sync(payload) ⇒ Object
Sync
284 285 286 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 284 def resume_block_iterator_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#resume_sync ⇒ Object
Sync
156 157 158 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 156 def resume_sync() TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {}) end |
#resume_transaction_iterator(payload, &block) ⇒ Object
INPUT: ParamsOfResumeTransactionIterator resume_state: Value - # # Iterator state from which to resume. # # Same as value returned from ‘iterator_next`. accounts_filter: Array<Optional> - # # Account address filter. # # Application can specify the list of accounts for whichit wants to iterate transactions. If this parameter is missing or an empty list then the library iteratestransactions for all accounts that passes the shard filter. Note that the library doesn’t detect conflicts between the account filter and the shard filterif both are specified. So it is the application’s responsibility to specify the correct filter combination. RESPONSE: RegisteredIterator handle: Number - # # Iterator handle. # # Must be removed using ‘remove_iterator`when it is no more needed for the application. Async
329 330 331 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 329 def resume_transaction_iterator(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 |
#resume_transaction_iterator_sync(payload) ⇒ Object
Sync
334 335 336 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 334 def resume_transaction_iterator_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#set_endpoints(payload, &block) ⇒ Object
INPUT: EndpointsSet endpoints: Array - # # List of endpoints provided by server Async
189 190 191 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 189 def set_endpoints(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_endpoints_sync(payload) ⇒ Object
Sync
194 195 196 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 194 def set_endpoints_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#subscribe(payload, &block) ⇒ Object
INPUT: ParamsOfSubscribe subscription: String - # # GraphQL subscription text. variables: Value - # # Variables used in subscription. # # Must be a map with named values that can be used in query. RESPONSE: ResultOfSubscribeCollection handle: Number - # # Subscription handle. # # Must be closed with ‘unsubscribe` Async
131 132 133 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 131 def subscribe(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 |
#subscribe_collection(payload, &block) ⇒ Object
INPUT: ParamsOfSubscribeCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter result: String - # # Projection (result) string RESPONSE: ResultOfSubscribeCollection handle: Number - # # Subscription handle. # # Must be closed with ‘unsubscribe` Async
116 117 118 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 116 def subscribe_collection(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 |
#subscribe_collection_sync(payload) ⇒ Object
Sync
121 122 123 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 121 def subscribe_collection_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#subscribe_sync(payload) ⇒ Object
Sync
136 137 138 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 136 def subscribe_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#suspend(&block) ⇒ Object
Async
141 142 143 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 141 def suspend(&block) TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block) end |
#suspend_sync ⇒ Object
Sync
146 147 148 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 146 def suspend_sync() TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {}) end |
#unsubscribe(payload, &block) ⇒ Object
INPUT: ResultOfSubscribeCollection handle: Number - # # Subscription handle. # # Must be closed with ‘unsubscribe` Async
100 101 102 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 100 def unsubscribe(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 |
#unsubscribe_sync(payload) ⇒ Object
Sync
105 106 107 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 105 def unsubscribe_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |
#wait_for_collection(payload, &block) ⇒ Object
INPUT: ParamsOfWaitForCollection collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures) filter: Value - # # Collection filter result: String - # # Projection (result) string timeout: Number<Optional> - # # Query timeout RESPONSE: ResultOfWaitForCollection result: Value - # # First found object that matches the provided criteria Async
88 89 90 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 88 def wait_for_collection(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 |
#wait_for_collection_sync(payload) ⇒ Object
Sync
93 94 95 |
# File 'lib/everscale-client-ruby/Client/Net.rb', line 93 def wait_for_collection_sync(payload) TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload) end |