everscale-client-ruby 1.1.34 → 1.1.42

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c3239f8d61fc441d260d7dd73259efdf2dd84ea308c6f632f92cc54cef921c4
4
- data.tar.gz: 36d278333f388707c6b27e71fe69917c12e348ec9663554bfa4aa3cf587339b1
3
+ metadata.gz: 7783cddc1db07229987c81c69eb72463475588e0a9400dec911e90ec763fec58
4
+ data.tar.gz: b71007d082e0a73a3ffd1e22fee985eb91e92a50f73e4d92a91f233860de1880
5
5
  SHA512:
6
- metadata.gz: a790b3f45eb1b33d9a911befd1282b9a23fd7c930e804ede883a8ae486eda305971fc1550fc398aba388ab3e7028079357927a078ed12e9ca85766a6f336e557
7
- data.tar.gz: dd0cbe807337748746acc7fc315ec6db0bb34a2843c7a606b592fb18738b8261f7e17063ff78fedd2ca8e8d7282612a7a4d37a99b313cec914c056dadfbf0d6d
6
+ metadata.gz: 80d51a8761a26138d819e028bc4b927f74d04588546b4764e81ef5fb78b92dfba28c9a9d1884806a6376b724e20b3f6b2d4561f2413dc3a0ca11a305073a0bc4
7
+ data.tar.gz: ed653ee71b16363f2cfd47d731b6dbf069fb293df7ba978bdf0e69600a51fc2000d665623107e435bc966bf2257d1a14aebcf2ba6ec7ceefdd42c087e3e68cf0
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.37.0",
2
+ "version": "1.37.1",
3
3
  "modules": [
4
4
  {
5
5
  "name": "client",
@@ -7608,14 +7608,14 @@
7608
7608
  }
7609
7609
  ],
7610
7610
  "summary": "Pin the BOC with `pin` name.",
7611
- "description": "Such BOC will not be removed from cache until it is unpinned"
7611
+ "description": "Such BOC will not be removed from cache until it is unpinned BOCs can have several pins and each of the pins has reference counter indicating how many\ntimes the BOC was pinned with the pin. BOC is removed from cache after all references for all\npins are unpinned with `cache_unpin` function calls."
7612
7612
  },
7613
7613
  {
7614
7614
  "name": "Unpinned",
7615
7615
  "type": "Struct",
7616
7616
  "struct_fields": [],
7617
- "summary": " ",
7618
- "description": null
7617
+ "summary": "BOC is placed into a common BOC pool with limited size regulated by LRU (least recently used) cache lifecycle.",
7618
+ "description": "BOC resides there until it is replaced with other BOCs if it is not used"
7619
7619
  }
7620
7620
  ],
7621
7621
  "summary": null,
@@ -8867,7 +8867,7 @@
8867
8867
  },
8868
8868
  {
8869
8869
  "name": "cache_set",
8870
- "summary": "Save BOC into cache",
8870
+ "summary": "Save BOC into cache or increase pin counter for existing pinned BOC",
8871
8871
  "description": null,
8872
8872
  "params": [
8873
8873
  {
@@ -8905,8 +8905,8 @@
8905
8905
  },
8906
8906
  {
8907
8907
  "name": "cache_unpin",
8908
- "summary": "Unpin BOCs with specified pin.",
8909
- "description": "BOCs which don't have another pins will be removed from cache",
8908
+ "summary": "Unpin BOCs with specified pin defined in the `cache_set`. Decrease pin reference counter for BOCs with specified pin defined in the `cache_set`. BOCs which have only 1 pin and its reference counter become 0 will be removed from cache",
8909
+ "description": null,
8910
8910
  "params": [
8911
8911
  {
8912
8912
  "name": "context",
@@ -10681,7 +10681,7 @@
10681
10681
  "number_type": "UInt",
10682
10682
  "number_size": 64,
10683
10683
  "summary": "Deprecated.",
10684
- "description": "Left for backward compatibility. Does not participate in account transaction fees calculation."
10684
+ "description": "Contains the same data as ext_in_msg_fee field"
10685
10685
  },
10686
10686
  {
10687
10687
  "name": "storage_fee",
@@ -10713,7 +10713,7 @@
10713
10713
  "number_type": "UInt",
10714
10714
  "number_size": 64,
10715
10715
  "summary": "Deprecated.",
10716
- "description": "This is the field that is named as `total_fees` in GraphQL API Transaction type. `total_account_fees` name is misleading, because it does not mean account fees, instead it means\nvalidators total fees received for the transaction execution. It does not include some forward fees that account\nactually pays now, but validators will receive later during value delivery to another account (not even in the receiving\ntransaction).\nBecause of all of this, this field is not interesting for those who wants to understand\nthe real account fees, this is why it is deprecated and left for backward compatibility."
10716
+ "description": "Contains the same data as account_fees field"
10717
10717
  },
10718
10718
  {
10719
10719
  "name": "total_output",
@@ -12554,7 +12554,7 @@
12554
12554
  {
12555
12555
  "name": "subscribe",
12556
12556
  "summary": "Creates a subscription",
12557
- "description": "The subscription is a persistent communication channel between\nclient and Everscale Network.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network brakes down.\nIn this situation the library attempts to reconnect to the network.\nThis reconnection sequence can take significant time.\nAll of this time the client is disconnected from the network.\n\nBad news is that all changes that happened while\nthe client was disconnected are lost.\n\nGood news is that the client report errors to the callback when\nit loses and resumes connection.\n\nSo, if the lost changes are important to the application then\nthe application must handle these error reports.\n\nLibrary reports errors with `responseType` == 101\nand the error object passed via `params`.\n\nWhen the library has successfully reconnected\nthe application receives callback with\n`responseType` == 101 and `params.code` == 614 (NetworkModuleResumed).\n\nApplication can use several ways to handle this situation:\n- If application monitors changes for the single\nobject (for example specific account): application\ncan perform a query for this object and handle actual data as a\nregular data from the subscription.\n- If application monitors sequence of some objects\n(for example transactions of the specific account): application must\nrefresh all cached (or visible to user) lists where this sequences presents.",
12557
+ "description": "The subscription is a persistent communication channel between\nclient and Everscale Network.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network breakes down.\nIn this situation the library attempts to reconnect to the network.\nThis reconnection sequence can take significant time.\nAll of this time the client is disconnected from the network.\n\nBad news is that all changes that happened while\nthe client was disconnected are lost.\n\nGood news is that the client report errors to the callback when\nit loses and resumes connection.\n\nSo, if the lost changes are important to the application then\nthe application must handle these error reports.\n\nLibrary reports errors with `responseType` == 101\nand the error object passed via `params`.\n\nWhen the library has successfully reconnected\nthe application receives callback with\n`responseType` == 101 and `params.code` == 614 (NetworkModuleResumed).\n\nApplication can use several ways to handle this situation:\n- If application monitors changes for the single\nobject (for example specific account): application\ncan perform a query for this object and handle actual data as a\nregular data from the subscription.\n- If application monitors sequence of some objects\n(for example transactions of the specific account): application must\nrefresh all cached (or visible to user) lists where this sequences presents.",
12558
12558
  "params": [
12559
12559
  {
12560
12560
  "name": "context",
@@ -1,5 +1,4 @@
1
1
  require 'json'
2
- require 'byebug'
3
2
  require 'set'
4
3
  require File.dirname(__FILE__) + '/helpers.rb'
5
4
 
@@ -1,4 +1,3 @@
1
- require 'byebug'
2
1
  require 'json'
3
2
  require File.dirname(__FILE__) + '/helpers.rb'
4
3
 
@@ -53,12 +52,12 @@ class CodeGenerator
53
52
 
54
53
  Install gem
55
54
  ```bash
56
- gem install ton-client-ruby
55
+ gem install everscale-client-ruby
57
56
  ```
58
57
 
59
58
  Install TON-SDK
60
59
  ```bash
61
- ton-client-ruby setup
60
+ everscale-client-ruby setup
62
61
  # result - path to dylib file for everscale-client-ruby configuration
63
62
  ```
64
63
 
@@ -194,6 +193,9 @@ cd everscale-client-ruby\n
194
193
  private def checkContent(content)
195
194
  content.gsub!(/^([\s]+)# RESPONSE/, "\n\\1# RESPONSE")
196
195
  content.gsub(/<Optional>/i, '&lt;Optional&gt;')
196
+ content.gsub(/(```ruby[\s\S]+?)&lt;Optional&gt;([\s\S]+?)```/, '\1<Optional>\2```')
197
+ content.gsub!(/ +# +# +/, " ")
198
+ content.gsub!(/ +# +/, '. ')
197
199
  end
198
200
 
199
201
  def customTypes
@@ -1,5 +1,4 @@
1
1
  require 'json'
2
- require 'byebug'
3
2
 
4
3
  module InstanceHelpers
5
4
 
@@ -10,4 +9,4 @@ module InstanceHelpers
10
9
  def lib_enum_postfix
11
10
  ''
12
11
  end
13
- end
12
+ end
@@ -1,4 +1,4 @@
1
1
  module TonClient
2
- VERSION = "1.1.34"
2
+ VERSION = "1.1.42"
3
3
  end
4
4
 
@@ -1,7 +1,6 @@
1
1
  require 'ffi'
2
2
  require "base64"
3
3
  require 'json'
4
- require 'byebug'
5
4
  require 'dotenv'
6
5
  require 'fileutils'
7
6
  require_relative './everscale-client-ruby/Helpers/CommonHelpers.rb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everscale-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.34
4
+ version: 1.1.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-19 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi