everscale-client-ruby 1.1.28 → 1.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code_generator/api.json +65 -10
- data/lib/code_generator/code_generator.rb +12 -12
- data/lib/everscale-client-ruby/Client/Client.rb +11 -0
- data/lib/everscale-client-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39e7fd98893db3e2d57d99ef8ccad814a2d88786bc56e21aca122243c822c150
|
4
|
+
data.tar.gz: a20bb3f64abef85aa4b326afef6fc83f560b2a6c773fe79ce42aed3bbfd88630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5e3acf4f0e608a8c75b93ac271f46baf77cb22f1ab6294ece6fe552146c83c350d7b0bd42a45ad3801305b174932724271c4cc70560ead61d2f7bc0301fc67
|
7
|
+
data.tar.gz: 7286a9c549e51c0c6a1a7ade895e546e6129b4283941d84168098d2011102c6b151b506d26aeaabb22fbf76386911d7188fb327a02541dd67a43ecfc188495fa
|
data/lib/code_generator/api.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.
|
2
|
+
"version": "1.34.2",
|
3
3
|
"modules": [
|
4
4
|
{
|
5
5
|
"name": "client",
|
@@ -904,6 +904,37 @@
|
|
904
904
|
},
|
905
905
|
"errors": null
|
906
906
|
},
|
907
|
+
{
|
908
|
+
"name": "config",
|
909
|
+
"summary": "Returns Core Library API reference",
|
910
|
+
"description": null,
|
911
|
+
"params": [
|
912
|
+
{
|
913
|
+
"name": "context",
|
914
|
+
"type": "Generic",
|
915
|
+
"generic_name": "Arc",
|
916
|
+
"generic_args": [
|
917
|
+
{
|
918
|
+
"type": "Ref",
|
919
|
+
"ref_name": "ClientContext"
|
920
|
+
}
|
921
|
+
],
|
922
|
+
"summary": null,
|
923
|
+
"description": null
|
924
|
+
}
|
925
|
+
],
|
926
|
+
"result": {
|
927
|
+
"type": "Generic",
|
928
|
+
"generic_name": "ClientResult",
|
929
|
+
"generic_args": [
|
930
|
+
{
|
931
|
+
"type": "Ref",
|
932
|
+
"ref_name": "client.ClientConfig"
|
933
|
+
}
|
934
|
+
]
|
935
|
+
},
|
936
|
+
"errors": null
|
937
|
+
},
|
907
938
|
{
|
908
939
|
"name": "build_info",
|
909
940
|
"summary": "Returns detailed information about this build.",
|
@@ -10540,15 +10571,15 @@
|
|
10540
10571
|
"type": "BigInt",
|
10541
10572
|
"number_type": "UInt",
|
10542
10573
|
"number_size": 64,
|
10543
|
-
"summary":
|
10544
|
-
"description":
|
10574
|
+
"summary": "Deprecated.",
|
10575
|
+
"description": "Left for backward compatibility. Does not participate in account transaction fees calculation."
|
10545
10576
|
},
|
10546
10577
|
{
|
10547
10578
|
"name": "storage_fee",
|
10548
10579
|
"type": "BigInt",
|
10549
10580
|
"number_type": "UInt",
|
10550
10581
|
"number_size": 64,
|
10551
|
-
"summary":
|
10582
|
+
"summary": "Fee for account storage",
|
10552
10583
|
"description": null
|
10553
10584
|
},
|
10554
10585
|
{
|
@@ -10556,7 +10587,7 @@
|
|
10556
10587
|
"type": "BigInt",
|
10557
10588
|
"number_type": "UInt",
|
10558
10589
|
"number_size": 64,
|
10559
|
-
"summary":
|
10590
|
+
"summary": "Fee for processing",
|
10560
10591
|
"description": null
|
10561
10592
|
},
|
10562
10593
|
{
|
@@ -10564,23 +10595,47 @@
|
|
10564
10595
|
"type": "BigInt",
|
10565
10596
|
"number_type": "UInt",
|
10566
10597
|
"number_size": 64,
|
10567
|
-
"summary":
|
10568
|
-
"description":
|
10598
|
+
"summary": "Deprecated.",
|
10599
|
+
"description": "Contains the same data as total_fwd_fees field. Deprecated because of its confusing name, that is not the same with GraphQL API Transaction type's field."
|
10569
10600
|
},
|
10570
10601
|
{
|
10571
10602
|
"name": "total_account_fees",
|
10572
10603
|
"type": "BigInt",
|
10573
10604
|
"number_type": "UInt",
|
10574
10605
|
"number_size": 64,
|
10575
|
-
"summary":
|
10576
|
-
"description":
|
10606
|
+
"summary": "Deprecated.",
|
10607
|
+
"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."
|
10577
10608
|
},
|
10578
10609
|
{
|
10579
10610
|
"name": "total_output",
|
10580
10611
|
"type": "BigInt",
|
10581
10612
|
"number_type": "UInt",
|
10582
10613
|
"number_size": 64,
|
10583
|
-
"summary":
|
10614
|
+
"summary": "Deprecated because it means total value sent in the transaction, which does not relate to any fees.",
|
10615
|
+
"description": null
|
10616
|
+
},
|
10617
|
+
{
|
10618
|
+
"name": "ext_in_msg_fee",
|
10619
|
+
"type": "BigInt",
|
10620
|
+
"number_type": "UInt",
|
10621
|
+
"number_size": 64,
|
10622
|
+
"summary": "Fee for inbound external message import.",
|
10623
|
+
"description": null
|
10624
|
+
},
|
10625
|
+
{
|
10626
|
+
"name": "total_fwd_fees",
|
10627
|
+
"type": "BigInt",
|
10628
|
+
"number_type": "UInt",
|
10629
|
+
"number_size": 64,
|
10630
|
+
"summary": "Total fees the account pays for message forwarding",
|
10631
|
+
"description": null
|
10632
|
+
},
|
10633
|
+
{
|
10634
|
+
"name": "account_fees",
|
10635
|
+
"type": "BigInt",
|
10636
|
+
"number_type": "UInt",
|
10637
|
+
"number_size": 64,
|
10638
|
+
"summary": "Total account fees for the transaction execution. Compounds of storage_fee + gas_fee + ext_in_msg_fee + total_fwd_fees",
|
10584
10639
|
"description": null
|
10585
10640
|
}
|
10586
10641
|
],
|
@@ -59,13 +59,13 @@ gem install ton-client-ruby
|
|
59
59
|
Install TON-SDK
|
60
60
|
```bash
|
61
61
|
ton-client-ruby setup
|
62
|
-
# result - path to dylib file for
|
62
|
+
# result - path to dylib file for everscale-client-ruby configuration
|
63
63
|
```
|
64
64
|
|
65
65
|
### Manual build FreeTON SDK
|
66
66
|
0. Install Rust to your OS
|
67
|
-
1. git clone https://github.com/tonlabs/
|
68
|
-
2. cd ./
|
67
|
+
1. git clone https://github.com/tonlabs/ever-sdk
|
68
|
+
2. cd ./ever-sdk
|
69
69
|
3. cargo update
|
70
70
|
4. cargo build --release
|
71
71
|
|
@@ -73,11 +73,11 @@ ton-client-ruby setup
|
|
73
73
|
|
74
74
|
```ruby
|
75
75
|
# For MAcOS
|
76
|
-
TonClient.configure { |config| config.ffi_lib(./
|
76
|
+
TonClient.configure { |config| config.ffi_lib(./ever-sdk/target/release/libton_client.dylib) }
|
77
77
|
# For Linux
|
78
|
-
# TonClient.configure { |config| config.ffi_lib(./
|
78
|
+
# TonClient.configure { |config| config.ffi_lib(./ever-sdk/target/release/libton_client.so) }
|
79
79
|
|
80
|
-
client = TonClient.create(config: {network: {
|
80
|
+
client = TonClient.create(config: {network: {endpoints: ["https://eri01.net.everos.dev", "https://rbx01.net.everos.dev"]}})
|
81
81
|
|
82
82
|
# All methods are asynchronous
|
83
83
|
|
@@ -148,7 +148,7 @@ end
|
|
148
148
|
|
149
149
|
example for NodeSE
|
150
150
|
```
|
151
|
-
spec_ffi=./
|
151
|
+
spec_ffi=./ever-sdk/target/release/libton_client.dylib
|
152
152
|
server_address=http://localhost:80
|
153
153
|
giver_abi_name=GiverNodeSE
|
154
154
|
giver_amount=10000000000
|
@@ -167,21 +167,21 @@ giver_amount=10000000000
|
|
167
167
|
|
168
168
|
\n## Update\n\n
|
169
169
|
```\n
|
170
|
-
|
170
|
+
everscale-client-ruby update\n
|
171
171
|
```\n\n
|
172
172
|
or\n\n
|
173
173
|
```\n
|
174
|
-
curl https://raw.githubusercontent.com/tonlabs/
|
174
|
+
curl https://raw.githubusercontent.com/tonlabs/ever-sdk/master/tools/api.json > api.json\n\n
|
175
175
|
```\n\n
|
176
176
|
```\n
|
177
|
-
|
177
|
+
everscale-client-ruby update ./api.json\n
|
178
178
|
```\n
|
179
179
|
or\n\n
|
180
180
|
```\n
|
181
|
-
cd
|
181
|
+
cd everscale-client-ruby\n
|
182
182
|
```\n\n
|
183
183
|
```\n
|
184
|
-
./bin/
|
184
|
+
./bin/everscale-client-ruby update\n
|
185
185
|
```\n
|
186
186
|
}
|
187
187
|
content = checkContent(content)
|
@@ -64,6 +64,17 @@ module TonClient
|
|
64
64
|
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
65
65
|
end
|
66
66
|
|
67
|
+
# RESPONSE: ClientConfig
|
68
|
+
# network: NetworkConfig<Optional> -
|
69
|
+
# crypto: CryptoConfig<Optional> -
|
70
|
+
# abi: Value -
|
71
|
+
# boc: BocConfig<Optional> -
|
72
|
+
# proofs: ProofsConfig<Optional> -
|
73
|
+
# local_storage_path: String<Optional> - # # For file based storage is a folder name where SDK will store its data. For browser based is a browser async storage key prefix. Default (recommended) value is "~/.tonclient" for native environments and ".tonclient" for web-browser.
|
74
|
+
def config(&block)
|
75
|
+
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
76
|
+
end
|
77
|
+
|
67
78
|
# RESPONSE: ResultOfBuildInfo
|
68
79
|
# build_number: Number - # # Build number assigned to this build by the CI.
|
69
80
|
# dependencies: Array - # # Fingerprint of the most important dependencies.
|
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.
|
4
|
+
version: 1.1.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nerzh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
|
-
rubygems_version: 3.3.
|
160
|
+
rubygems_version: 3.3.7
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: This is gem everscale-client-ruby
|