ton-client-ruby 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ton-client-ruby +2 -0
- data/lib/code_generator/code_generator.rb +7 -0
- data/lib/ton-client-ruby/Client/Net.rb +17 -0
- data/lib/ton-client-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d9f09aaabae6ed86f5adc9a77082f2c94ad685437fb7457e490253086ca80b5
|
4
|
+
data.tar.gz: 6e2e1b73de3671c362fbb0ebdb919e9fdc7b94fabe8302b46fc3159ba42100af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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
|
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-
|
11
|
+
date: 2021-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|