everscale-client-ruby 1.1.43 → 1.1.47
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 +4 -4
- data/lib/code_generator/api.json +72 -16
- data/lib/code_generator/code_generator.rb +12 -10
- data/lib/everscale-client-ruby/Binding/binding.rb +51 -56
- data/lib/everscale-client-ruby/Binding/struct.rb +0 -8
- data/lib/everscale-client-ruby/Client/Abi.rb +17 -18
- data/lib/everscale-client-ruby/Client/Boc.rb +21 -22
- data/lib/everscale-client-ruby/Client/Client.rb +12 -10
- data/lib/everscale-client-ruby/Client/Crypto.rb +53 -54
- data/lib/everscale-client-ruby/Client/Debot.rb +8 -9
- data/lib/everscale-client-ruby/Client/Net.rb +24 -25
- data/lib/everscale-client-ruby/Client/Processing.rb +5 -6
- data/lib/everscale-client-ruby/Client/Proofs.rb +5 -6
- data/lib/everscale-client-ruby/Client/Tvm.rb +5 -6
- data/lib/everscale-client-ruby/Client/Utils.rb +7 -8
- data/lib/everscale-client-ruby/version.rb +1 -1
- data/lib/everscale-client-ruby.rb +2 -2
- metadata +7 -8
- data/lib/everscale-client-ruby/Client/Context.rb +0 -34
@@ -3,12 +3,11 @@ module TonClient
|
|
3
3
|
class Net
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :context
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context:
|
9
|
+
def initialize(context: nil)
|
10
10
|
@context = context
|
11
|
-
@core = core
|
12
11
|
end
|
13
12
|
|
14
13
|
# INPUT: ParamsOfQuery
|
@@ -17,7 +16,7 @@ module TonClient
|
|
17
16
|
# RESPONSE: ResultOfQuery
|
18
17
|
# result: Value - # # Result provided by DAppServer.
|
19
18
|
def query(payload, &block)
|
20
|
-
|
19
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
21
20
|
end
|
22
21
|
|
23
22
|
# INPUT: ParamsOfBatchQuery
|
@@ -25,7 +24,7 @@ module TonClient
|
|
25
24
|
# RESPONSE: ResultOfBatchQuery
|
26
25
|
# results: Array - # # Result values for batched queries. # # Returns an array of values. Each value corresponds to `queries` item.
|
27
26
|
def batch_query(payload, &block)
|
28
|
-
|
27
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
28
|
end
|
30
29
|
|
31
30
|
# INPUT: ParamsOfQueryCollection
|
@@ -37,7 +36,7 @@ module TonClient
|
|
37
36
|
# RESPONSE: ResultOfQueryCollection
|
38
37
|
# result: Array - # # Objects that match the provided criteria
|
39
38
|
def query_collection(payload, &block)
|
40
|
-
|
39
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
41
40
|
end
|
42
41
|
|
43
42
|
# INPUT: ParamsOfAggregateCollection
|
@@ -48,7 +47,7 @@ module TonClient
|
|
48
47
|
# values: Value - # # Values for requested fields. # # Returns an array of strings. Each string refers to the corresponding `fields` item.
|
49
48
|
# Numeric value is returned as a decimal string representations.
|
50
49
|
def aggregate_collection(payload, &block)
|
51
|
-
|
50
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
52
51
|
end
|
53
52
|
|
54
53
|
# INPUT: ParamsOfWaitForCollection
|
@@ -59,13 +58,13 @@ module TonClient
|
|
59
58
|
# RESPONSE: ResultOfWaitForCollection
|
60
59
|
# result: Value - # # First found object that matches the provided criteria
|
61
60
|
def wait_for_collection(payload, &block)
|
62
|
-
|
61
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
63
62
|
end
|
64
63
|
|
65
64
|
# INPUT: ResultOfSubscribeCollection
|
66
65
|
# handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
|
67
66
|
def unsubscribe(payload, &block)
|
68
|
-
|
67
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
69
68
|
end
|
70
69
|
|
71
70
|
# INPUT: ParamsOfSubscribeCollection
|
@@ -75,7 +74,7 @@ module TonClient
|
|
75
74
|
# RESPONSE: ResultOfSubscribeCollection
|
76
75
|
# handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
|
77
76
|
def subscribe_collection(payload, &block)
|
78
|
-
|
77
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
79
78
|
end
|
80
79
|
|
81
80
|
# INPUT: ParamsOfSubscribe
|
@@ -84,15 +83,15 @@ module TonClient
|
|
84
83
|
# RESPONSE: ResultOfSubscribeCollection
|
85
84
|
# handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
|
86
85
|
def subscribe(payload, &block)
|
87
|
-
|
86
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
88
87
|
end
|
89
88
|
|
90
89
|
def suspend(&block)
|
91
|
-
|
90
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
92
91
|
end
|
93
92
|
|
94
93
|
def resume(&block)
|
95
|
-
|
94
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
96
95
|
end
|
97
96
|
|
98
97
|
# INPUT: ParamsOfFindLastShardBlock
|
@@ -100,26 +99,26 @@ module TonClient
|
|
100
99
|
# RESPONSE: ResultOfFindLastShardBlock
|
101
100
|
# block_id: String - # # Account shard last block ID
|
102
101
|
def find_last_shard_block(payload, &block)
|
103
|
-
|
102
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
104
103
|
end
|
105
104
|
|
106
105
|
# RESPONSE: EndpointsSet
|
107
106
|
# endpoints: Array - # # List of endpoints provided by server
|
108
107
|
def fetch_endpoints(&block)
|
109
|
-
|
108
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
110
109
|
end
|
111
110
|
|
112
111
|
# INPUT: EndpointsSet
|
113
112
|
# endpoints: Array - # # List of endpoints provided by server
|
114
113
|
def set_endpoints(payload, &block)
|
115
|
-
|
114
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
116
115
|
end
|
117
116
|
|
118
117
|
# RESPONSE: ResultOfGetEndpoints
|
119
118
|
# query: String - # # Current query endpoint
|
120
119
|
# endpoints: Array - # # List of all endpoints used by client
|
121
120
|
def get_endpoints(&block)
|
122
|
-
|
121
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
123
122
|
end
|
124
123
|
|
125
124
|
# INPUT: ParamsOfQueryCounterparties
|
@@ -130,7 +129,7 @@ module TonClient
|
|
130
129
|
# RESPONSE: ResultOfQueryCollection
|
131
130
|
# result: Array - # # Objects that match the provided criteria
|
132
131
|
def query_counterparties(payload, &block)
|
133
|
-
|
132
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
134
133
|
end
|
135
134
|
|
136
135
|
# INPUT: ParamsOfQueryTransactionTree
|
@@ -142,7 +141,7 @@ module TonClient
|
|
142
141
|
# messages: Array - # # Messages.
|
143
142
|
# transactions: Array - # # Transactions.
|
144
143
|
def query_transaction_tree(payload, &block)
|
145
|
-
|
144
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
146
145
|
end
|
147
146
|
|
148
147
|
# INPUT: ParamsOfCreateBlockIterator
|
@@ -162,7 +161,7 @@ module TonClient
|
|
162
161
|
# RESPONSE: RegisteredIterator
|
163
162
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
164
163
|
def create_block_iterator(payload, &block)
|
165
|
-
|
164
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
166
165
|
end
|
167
166
|
|
168
167
|
# INPUT: ParamsOfResumeBlockIterator
|
@@ -170,7 +169,7 @@ module TonClient
|
|
170
169
|
# RESPONSE: RegisteredIterator
|
171
170
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
172
171
|
def resume_block_iterator(payload, &block)
|
173
|
-
|
172
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
174
173
|
end
|
175
174
|
|
176
175
|
# INPUT: ParamsOfCreateTransactionIterator
|
@@ -196,7 +195,7 @@ module TonClient
|
|
196
195
|
# RESPONSE: RegisteredIterator
|
197
196
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
198
197
|
def create_transaction_iterator(payload, &block)
|
199
|
-
|
198
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
200
199
|
end
|
201
200
|
|
202
201
|
# INPUT: ParamsOfResumeTransactionIterator
|
@@ -208,7 +207,7 @@ module TonClient
|
|
208
207
|
# RESPONSE: RegisteredIterator
|
209
208
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
210
209
|
def resume_transaction_iterator(payload, &block)
|
211
|
-
|
210
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
212
211
|
end
|
213
212
|
|
214
213
|
# INPUT: ParamsOfIteratorNext
|
@@ -223,13 +222,13 @@ module TonClient
|
|
223
222
|
# 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.
|
224
223
|
# Note that `resume_state` corresponds to the iteration positionafter the returned items.
|
225
224
|
def iterator_next(payload, &block)
|
226
|
-
|
225
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
227
226
|
end
|
228
227
|
|
229
228
|
# INPUT: RegisteredIterator
|
230
229
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
231
230
|
def remove_iterator(payload, &block)
|
232
|
-
|
231
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
233
232
|
end
|
234
233
|
|
235
234
|
end
|
@@ -3,12 +3,11 @@ module TonClient
|
|
3
3
|
class Processing
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :context
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context:
|
9
|
+
def initialize(context: nil)
|
10
10
|
@context = context
|
11
|
-
@core = core
|
12
11
|
end
|
13
12
|
|
14
13
|
# INPUT: ParamsOfSendMessage
|
@@ -21,7 +20,7 @@ module TonClient
|
|
21
20
|
# shard_block_id: String - # # The last generated shard block of the message destination account before the message was sent. # # This block id must be used as a parameter of the`wait_for_transaction`.
|
22
21
|
# sending_endpoints: Array - # # The list of endpoints to which the message was sent. # # This list id must be used as a parameter of the`wait_for_transaction`.
|
23
22
|
def send_message(payload, &block)
|
24
|
-
|
23
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
25
24
|
end
|
26
25
|
|
27
26
|
# INPUT: ParamsOfWaitForTransaction
|
@@ -39,7 +38,7 @@ module TonClient
|
|
39
38
|
# decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
|
40
39
|
# fees: TransactionFees - # # Transaction fees
|
41
40
|
def wait_for_transaction(payload, &block)
|
42
|
-
|
41
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
43
42
|
end
|
44
43
|
|
45
44
|
# INPUT: ParamsOfProcessMessage
|
@@ -51,7 +50,7 @@ module TonClient
|
|
51
50
|
# decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
|
52
51
|
# fees: TransactionFees - # # Transaction fees
|
53
52
|
def process_message(payload, &block)
|
54
|
-
|
53
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
55
54
|
end
|
56
55
|
|
57
56
|
end
|
@@ -3,30 +3,29 @@ module TonClient
|
|
3
3
|
class Proofs
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :context
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context:
|
9
|
+
def initialize(context: nil)
|
10
10
|
@context = context
|
11
|
-
@core = core
|
12
11
|
end
|
13
12
|
|
14
13
|
# INPUT: ParamsOfProofBlockData
|
15
14
|
# block: Value - # # Single block's data, retrieved from TONOS API, that needs proof. Required fields are `id` and/or top-level `boc` (for block identification), others are optional.
|
16
15
|
def proof_block_data(payload, &block)
|
17
|
-
|
16
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
18
17
|
end
|
19
18
|
|
20
19
|
# INPUT: ParamsOfProofTransactionData
|
21
20
|
# transaction: Value - # # Single transaction's data as queried from DApp server, without modifications. The required fields are `id` and/or top-level `boc`, others are optional. In order to reduce network requests count, it is recommended to provide `block_id` and `boc` of transaction.
|
22
21
|
def proof_transaction_data(payload, &block)
|
23
|
-
|
22
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
24
23
|
end
|
25
24
|
|
26
25
|
# INPUT: ParamsOfProofMessageData
|
27
26
|
# message: Value - # # Single message's data as queried from DApp server, without modifications. The required fields are `id` and/or top-level `boc`, others are optional. In order to reduce network requests count, it is recommended to provide at least `boc` of message and non-null `src_transaction.id` or `dst_transaction.id`.
|
28
27
|
def proof_message_data(payload, &block)
|
29
|
-
|
28
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
30
29
|
end
|
31
30
|
|
32
31
|
end
|
@@ -3,12 +3,11 @@ module TonClient
|
|
3
3
|
class Tvm
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :context
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context:
|
9
|
+
def initialize(context: nil)
|
10
10
|
@context = context
|
11
|
-
@core = core
|
12
11
|
end
|
13
12
|
|
14
13
|
# INPUT: ParamsOfRunExecutor
|
@@ -26,7 +25,7 @@ module TonClient
|
|
26
25
|
# account: String - # # Updated account state BOC. # # Encoded as `base64`
|
27
26
|
# fees: TransactionFees - # # Transaction fees
|
28
27
|
def run_executor(payload, &block)
|
29
|
-
|
28
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
30
29
|
end
|
31
30
|
|
32
31
|
# INPUT: ParamsOfRunTvm
|
@@ -41,7 +40,7 @@ module TonClient
|
|
41
40
|
# decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
|
42
41
|
# account: String - # # Updated account state BOC. # # Encoded as `base64`. Attention! Only `account_state.storage.state.data` part of the BOC is updated.
|
43
42
|
def run_tvm(payload, &block)
|
44
|
-
|
43
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
45
44
|
end
|
46
45
|
|
47
46
|
# INPUT: ParamsOfRunGet
|
@@ -54,7 +53,7 @@ module TonClient
|
|
54
53
|
# RESPONSE: ResultOfRunGet
|
55
54
|
# output: Value - # # Values returned by get-method on stack
|
56
55
|
def run_get(payload, &block)
|
57
|
-
|
56
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
58
57
|
end
|
59
58
|
|
60
59
|
end
|
@@ -3,12 +3,11 @@ module TonClient
|
|
3
3
|
class Utils
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :context
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context:
|
9
|
+
def initialize(context: nil)
|
10
10
|
@context = context
|
11
|
-
@core = core
|
12
11
|
end
|
13
12
|
|
14
13
|
# INPUT: ParamsOfConvertAddress
|
@@ -17,7 +16,7 @@ module TonClient
|
|
17
16
|
# RESPONSE: ResultOfConvertAddress
|
18
17
|
# address: String - # # Address in the specified format
|
19
18
|
def convert_address(payload, &block)
|
20
|
-
|
19
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
21
20
|
end
|
22
21
|
|
23
22
|
# INPUT: ParamsOfGetAddressType
|
@@ -25,7 +24,7 @@ module TonClient
|
|
25
24
|
# RESPONSE: ResultOfGetAddressType
|
26
25
|
# address_type: AccountAddressType - # # Account address type.
|
27
26
|
def get_address_type(payload, &block)
|
28
|
-
|
27
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
28
|
end
|
30
29
|
|
31
30
|
# INPUT: ParamsOfCalcStorageFee
|
@@ -34,7 +33,7 @@ module TonClient
|
|
34
33
|
# RESPONSE: ResultOfCalcStorageFee
|
35
34
|
# fee: String -
|
36
35
|
def calc_storage_fee(payload, &block)
|
37
|
-
|
36
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
38
37
|
end
|
39
38
|
|
40
39
|
# INPUT: ParamsOfCompressZstd
|
@@ -43,7 +42,7 @@ module TonClient
|
|
43
42
|
# RESPONSE: ResultOfCompressZstd
|
44
43
|
# compressed: String - # # Compressed data. # # Must be encoded as base64.
|
45
44
|
def compress_zstd(payload, &block)
|
46
|
-
|
45
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
47
46
|
end
|
48
47
|
|
49
48
|
# INPUT: ParamsOfDecompressZstd
|
@@ -51,7 +50,7 @@ module TonClient
|
|
51
50
|
# RESPONSE: ResultOfDecompressZstd
|
52
51
|
# decompressed: String - # # Decompressed data. # # Must be encoded as base64.
|
53
52
|
def decompress_zstd(payload, &block)
|
54
|
-
|
53
|
+
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
55
54
|
end
|
56
55
|
|
57
56
|
end
|
@@ -3,10 +3,10 @@ require "base64"
|
|
3
3
|
require 'json'
|
4
4
|
require 'dotenv'
|
5
5
|
require 'fileutils'
|
6
|
+
require 'concurrent'
|
6
7
|
require_relative './everscale-client-ruby/Helpers/CommonHelpers.rb'
|
7
8
|
require_relative './everscale-client-ruby/Binding/struct.rb'
|
8
9
|
require_relative './everscale-client-ruby/Binding/binding.rb'
|
9
|
-
require_relative './everscale-client-ruby/Client/Context.rb'
|
10
10
|
require_relative './everscale-client-ruby/Client/Client.rb'
|
11
11
|
require_relative './everscale-client-ruby/Client/Crypto.rb'
|
12
12
|
require_relative './everscale-client-ruby/Client/Abi.rb'
|
@@ -38,6 +38,6 @@ module TonClient
|
|
38
38
|
|
39
39
|
def self.create(config: {})
|
40
40
|
check_configuration
|
41
|
-
Client.new(
|
41
|
+
Client.new(context_config: config)
|
42
42
|
end
|
43
43
|
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
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.47
|
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-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.15.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.15.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.7.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: ruby
|
42
|
+
name: concurrent-ruby
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.1.10
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.1.10
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,7 +128,6 @@ files:
|
|
128
128
|
- lib/everscale-client-ruby/Client/Abi.rb
|
129
129
|
- lib/everscale-client-ruby/Client/Boc.rb
|
130
130
|
- lib/everscale-client-ruby/Client/Client.rb
|
131
|
-
- lib/everscale-client-ruby/Client/Context.rb
|
132
131
|
- lib/everscale-client-ruby/Client/Crypto.rb
|
133
132
|
- lib/everscale-client-ruby/Client/Debot.rb
|
134
133
|
- lib/everscale-client-ruby/Client/Net.rb
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module TonClient
|
2
|
-
class Context
|
3
|
-
|
4
|
-
attr_reader :id
|
5
|
-
|
6
|
-
def initialize(config: {})
|
7
|
-
TonClient.check_configuration
|
8
|
-
@config = TonBinding.make_string(config.to_json)
|
9
|
-
context = TonBinding.tc_create_context(@config)
|
10
|
-
@id = TonBinding.read_string_to_hash(context)['result']
|
11
|
-
ObjectSpace.define_finalizer(self, self.class.finalize(@id))
|
12
|
-
end
|
13
|
-
|
14
|
-
def config=(value = {})
|
15
|
-
@config = TonBinding.make_string(value.to_json)
|
16
|
-
end
|
17
|
-
|
18
|
-
def config
|
19
|
-
TonBinding.read_string_to_hash(@config)
|
20
|
-
end
|
21
|
-
|
22
|
-
def destroy
|
23
|
-
TonBinding.tc_destroy_context(id)
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.finalize(id)
|
27
|
-
Proc.new do
|
28
|
-
if (id != nil) && (id > 0)
|
29
|
-
TonBinding.tc_destroy_context(id)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|