ton-client-ruby 1.0.5 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2394081476d7a5d3ae671572f11c5cdd9e148456f321bbbae5e7ec2900477880
4
- data.tar.gz: c65118ba6f866a1dd115118e7934ee310483ed78558277e4d5b4daf24d6c62a4
3
+ metadata.gz: 7d9f09aaabae6ed86f5adc9a77082f2c94ad685437fb7457e490253086ca80b5
4
+ data.tar.gz: 6e2e1b73de3671c362fbb0ebdb919e9fdc7b94fabe8302b46fc3159ba42100af
5
5
  SHA512:
6
- metadata.gz: 8e30067baea67ce38ab38fa102bf81e52c9ba9fe1cf1b54499ee469ec2b2b6a491f8efa90b863ca10e6a8b1a276ea3b758c77b6aade357fdeaf274df45cfd60d
7
- data.tar.gz: 8e4466153af19cca7b90a8e3864350aae2b73a2ca4109eb1de92064ed794808131ceef050fecd28101ab1f44312e36014195b74413db4c00f74a3f1143f1cfa2
6
+ metadata.gz: 621cc074093d4de7603aa1135dc597681aaf72337f42bab12bb9e3692f58462f7eb7696e04b029945abda6c85dbc584bc8d72804d89882d1d98966a69a139acd
7
+ data.tar.gz: 9cf4d820e210ab28a1a64dbf6474b954de1b35166c692321b648464b3258b88a033678382a222237814a93b206c0f5ce07734399e0bd72774ff5a1f207a856be
data/bin/ton-client-ruby CHANGED
@@ -36,5 +36,7 @@ elsif ARGV[0] == 'setup'
36
36
  system("cd #{GEM_DIR}/TON-SDK && git pull --ff-only")
37
37
  system("cd #{GEM_DIR}/TON-SDK && cargo update")
38
38
  system("cd #{GEM_DIR}/TON-SDK && cargo build --release")
39
+ puts ''
39
40
  puts "PATH TO YOR DYNAMIC LIBRARY IS: #{GEM_DIR}/TON-SDK/target/release/libton_client.dylib"
41
+ puts ''
40
42
  end
@@ -58,6 +58,7 @@ gem install ton-client-ruby
58
58
  Install TON-SDK
59
59
  ```bash
60
60
  ton-client-ruby setup
61
+ # result - path to dylib file for ton-client-ruby configuration
61
62
  ```
62
63
 
63
64
  ### Manual build FreeTON SDK
@@ -162,6 +163,12 @@ giver_amount=10000000000
162
163
  **rspec spec/processing.rb**
163
164
  **rspec spec/tvm.rb**
164
165
  **rspec spec/utils.rb**
166
+
167
+ \n## Update\n\n
168
+ ```\n
169
+ curl https://raw.githubusercontent.com/tonlabs/TON-SDK/master/tools/api.json > api.json\n\n
170
+ ton-client-ruby update api.json\n
171
+ ```\n
165
172
  }
166
173
  content = checkContent(content)
167
174
  if File.exists?(readmePath)
@@ -106,6 +106,13 @@ module TonClient
106
106
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
107
107
  end
108
108
 
109
+ # RESPONSE: ResultOfGetEndpoints
110
+ # query: String - # # Current query endpoint
111
+ # endpoints: Array - # # List of all endpoints used by client
112
+ def get_endpoints(&block)
113
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
114
+ end
115
+
109
116
  # INPUT: ParamsOfQueryCounterparties
110
117
  # account: String - # # Account address
111
118
  # result: String - # # Projection (result) string
@@ -117,6 +124,16 @@ module TonClient
117
124
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
118
125
  end
119
126
 
127
+ # INPUT: ParamsOfQueryTransactionTree
128
+ # in_msg: String - # # Input message id.
129
+ # 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.
130
+ # RESPONSE: ResultOfQueryTransactionTree
131
+ # messages: Array - # # Messages.
132
+ # transactions: Array - # # Transactions.
133
+ def query_transaction_tree(payload, &block)
134
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
135
+ end
136
+
120
137
  end
121
138
  end
122
139
 
@@ -1,3 +1,3 @@
1
1
  module TonClient
2
- VERSION = "1.0.5"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ton-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-22 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi