everscale-client-ruby 1.1.63 → 1.1.67

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,6 +45,12 @@ class CodeGenerator
45
45
  content = %{
46
46
  # Ruby Client for Free TON SDK
47
47
 
48
+ <p align="center">
49
+ <a href="https://github.com/venom-blockchain/developer-program">
50
+ <img src="https://raw.githubusercontent.com/venom-blockchain/developer-program/main/vf-dev-program.png" alt="Logo" width="366.8" height="146.4">
51
+ </a>
52
+ </p>
53
+
48
54
  [![GEM](https://img.shields.io/badge/ruby-gem-orange)](https://rubygems.org/gems/everscale-client-ruby)
49
55
  [![SPM](https://img.shields.io/badge/SDK%20VERSION-#{types.version}-green)](https://github.com/tonlabs/TON-SDK)
50
56
 
@@ -103,7 +109,7 @@ p response['result']['parsed']['src']
103
109
  p response['result']['parsed']['dst']
104
110
 
105
111
  # Async
106
- client.boc.parse_message_sync(payload) do |response|
112
+ client.boc.parse_message(payload) do |response|
107
113
  p response.result['parsed']['id']
108
114
  p response.result['parsed']['src']
109
115
  p response.result['parsed']['dst']
@@ -24,6 +24,7 @@ module TonClient
24
24
  # Expiration timeouts will grow with every retry.
25
25
  # Default value is 0.
26
26
  # address: String<Optional> - # # Destination address of the message # # Since ABI version 2.3 destination address of external inbound message is used in messagebody signature calculation. Should be provided when signed external inbound message body iscreated. Otherwise can be omitted.
27
+ # signature_id: Number<Optional> - # # Signature ID to be used in data to sign preparing when CapSignatureWithId capability is enabled
27
28
  # RESPONSE: ResultOfEncodeMessageBody
28
29
  # body: String - # # Message body BOC encoded with `base64`.
29
30
  # data_to_sign: String<Optional> - # # Optional data to sign. # # Encoded with `base64`.
@@ -67,6 +68,7 @@ module TonClient
67
68
  # Expiration timeouts will grow with every retry.
68
69
  # Retry grow factor is set in Client config:
69
70
  # <.....add config parameter with default value here>Default value is 0.
71
+ # signature_id: Number<Optional> - # # Signature ID to be used in data to sign preparing when CapSignatureWithId capability is enabled
70
72
  # RESPONSE: ResultOfEncodeMessage
71
73
  # message: String - # # Message BOC encoded with `base64`.
72
74
  # data_to_sign: String<Optional> - # # Optional data to be signed encoded in `base64`. # # Returned in case of `Signer::External`. Can be used for externalmessage signing. Is this case you need to use this data to create signature andthen produce signed message using `abi.attach_signature`.
@@ -305,9 +307,10 @@ module TonClient
305
307
  # INPUT: ParamsOfGetSignatureData
306
308
  # abi: Value - # # Contract ABI used to decode.
307
309
  # message: String - # # Message BOC encoded in `base64`.
310
+ # signature_id: Number<Optional> - # # Signature ID to be used in unsigned data preparing when CapSignatureWithId capability is enabled
308
311
  # RESPONSE: ResultOfGetSignatureData
309
312
  # signature: String - # # Signature from the message in `hex`.
310
- # hash: String - # # Hash to verify the signature in `base64`.
313
+ # unsigned: String - # # Data to verify the signature in `base64`.
311
314
  # Async
312
315
  def get_signature_data(payload, &block)
313
316
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
@@ -88,6 +88,7 @@ module TonClient
88
88
  end
89
89
 
90
90
  # RESPONSE: ClientConfig
91
+ # binding: BindingConfig<Optional> -
91
92
  # network: NetworkConfig<Optional> -
92
93
  # crypto: CryptoConfig<Optional> -
93
94
  # abi: Value -
@@ -368,6 +368,18 @@ module TonClient
368
368
  TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
369
369
  end
370
370
 
371
+ # RESPONSE: ResultOfGetSignatureId
372
+ # signature_id: Number<Optional> - # # Signature ID for configured network if it should be used in messages signature
373
+ # Async
374
+ def get_signature_id(&block)
375
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
376
+ end
377
+
378
+ # Sync
379
+ def get_signature_id_sync()
380
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
381
+ end
382
+
371
383
  end
372
384
  end
373
385
 
@@ -13,6 +13,76 @@ module TonClient
13
13
  @monitor = monitor
14
14
  end
15
15
 
16
+ # INPUT: ParamsOfMonitorMessages
17
+ # queue: String - # # Name of the monitoring queue.
18
+ # messages: Array - # # Messages to start monitoring for.
19
+ # Async
20
+ def monitor_messages(payload, &block)
21
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
22
+ end
23
+
24
+ # Sync
25
+ def monitor_messages_sync(payload)
26
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
27
+ end
28
+
29
+ # INPUT: ParamsOfGetMonitorInfo
30
+ # queue: String - # # Name of the monitoring queue.
31
+ # RESPONSE: MonitoringQueueInfo
32
+ # unresolved: Number - # # Count of the unresolved messages.
33
+ # resolved: Number - # # Count of resolved results.
34
+ # Async
35
+ def get_monitor_info(payload, &block)
36
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
37
+ end
38
+
39
+ # Sync
40
+ def get_monitor_info_sync(payload)
41
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
42
+ end
43
+
44
+ # INPUT: ParamsOfFetchNextMonitorResults
45
+ # queue: String - # # Name of the monitoring queue.
46
+ # wait_mode: MonitorFetchWaitMode<Optional> - # # Wait mode. # # Default is `NO_WAIT`.
47
+ # RESPONSE: ResultOfFetchNextMonitorResults
48
+ # results: Array - # # List of the resolved results.
49
+ # Async
50
+ def fetch_next_monitor_results(payload, &block)
51
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
52
+ end
53
+
54
+ # Sync
55
+ def fetch_next_monitor_results_sync(payload)
56
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
57
+ end
58
+
59
+ # INPUT: ParamsOfCancelMonitor
60
+ # queue: String - # # Name of the monitoring queue.
61
+ # Async
62
+ def cancel_monitor(payload, &block)
63
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
64
+ end
65
+
66
+ # Sync
67
+ def cancel_monitor_sync(payload)
68
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
69
+ end
70
+
71
+ # INPUT: ParamsOfSendMessages
72
+ # messages: Array - # # Messages that must be sent to the blockchain.
73
+ # monitor_queue: String<Optional> - # # Optional message monitor queue that starts monitoring for the processing results for sent messages.
74
+ # RESPONSE: ResultOfSendMessages
75
+ # messages: Array - # # Messages that was sent to the blockchain for execution.
76
+ # Async
77
+ def send_messages(payload, &block)
78
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
79
+ end
80
+
81
+ # Sync
82
+ def send_messages_sync(payload)
83
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
84
+ end
85
+
16
86
  # INPUT: ParamsOfSendMessage
17
87
  # message: String - # # Message BOC.
18
88
  # abi: Value<Optional> - # # Optional message ABI. # # If this parameter is specified and the message has the`expire` header then expiration time will be checked againstthe current time to prevent unnecessary sending of already expired message.
@@ -1,4 +1,4 @@
1
1
  module TonClient
2
- VERSION = "1.1.63"
2
+ VERSION = "1.1.67"
3
3
  end
4
4
 
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.63
4
+ version: 1.1.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-06 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -123,7 +123,7 @@ files:
123
123
  - lib/everscale-client-ruby/Client/Utils.rb
124
124
  - lib/everscale-client-ruby/Helpers/CommonHelpers.rb
125
125
  - lib/everscale-client-ruby/version.rb
126
- homepage: https://github.com/bytehubio/everscale-client-ruby
126
+ homepage: https://github.com/nerzh/everscale-client-ruby
127
127
  licenses:
128
128
  - MIT
129
129
  metadata: {}