ton-client-ruby 1.1.20 → 1.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26408aa3b1fb8a4615929d1eb6540cb54f15cea4a51c0a714a68ed4847e367e9
4
- data.tar.gz: 6496e79ac4c5dd6aef8a82b417f9f770b996ec7d94c9a2c2050a4a76601bb0ae
3
+ metadata.gz: 4e65c9882351060ca8f6d38cfbd17fa52ad6f102b86547437d69723c1063fec8
4
+ data.tar.gz: 71696777845b141c5b40657841788fa4ce87a3ab88d7d368b014b76682c326e9
5
5
  SHA512:
6
- metadata.gz: 2cd5de528aa0aec1cfcc1fb5ec25092c1ac9a7708d5f292057a41fc3721aae70c502e67775dffe44836a36bff4e7848fe7c01f1f8c7269ff8e7287f6abcbc9bb
7
- data.tar.gz: c8095b9c9b710db431f43631a30f080fc59dee80e7a48175f83ce968a464dc46a989303098464affb6e8787da5499bf20bfeb4df84bde527e3ef64f9a4b016be
6
+ metadata.gz: 915f47a60e1d2e6b73fe89c31148829a6ee7d416eee347b18ef83201a5f52ffb8eb201061f8f557fe9f7d7fd62cbe90245bdd85d91c8d7d7db6b907b4cecab24
7
+ data.tar.gz: b713b942df5b517a3cece2ac35cb69520ecbd272a920a2090f3ede8c1fd2f2412129d31b16f77c335a2ed2538b280a1181092ad56399967efcbe351e998520df
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.28.1",
2
+ "version": "1.30.0",
3
3
  "modules": [
4
4
  {
5
5
  "name": "client",
@@ -6009,6 +6009,55 @@
6009
6009
  ],
6010
6010
  "summary": null,
6011
6011
  "description": null
6012
+ },
6013
+ {
6014
+ "name": "ParamsOfAbiEncodeBoc",
6015
+ "type": "Struct",
6016
+ "struct_fields": [
6017
+ {
6018
+ "name": "params",
6019
+ "type": "Array",
6020
+ "array_item": {
6021
+ "type": "Ref",
6022
+ "ref_name": "abi.AbiParam"
6023
+ },
6024
+ "summary": "Parameters to encode into BOC",
6025
+ "description": null
6026
+ },
6027
+ {
6028
+ "name": "data",
6029
+ "type": "Ref",
6030
+ "ref_name": "Value",
6031
+ "summary": "Parameters and values as a JSON structure",
6032
+ "description": null
6033
+ },
6034
+ {
6035
+ "name": "boc_cache",
6036
+ "type": "Optional",
6037
+ "optional_inner": {
6038
+ "type": "Ref",
6039
+ "ref_name": "boc.BocCacheType"
6040
+ },
6041
+ "summary": "Cache type to put the result.",
6042
+ "description": "The BOC itself returned if no cache type provided"
6043
+ }
6044
+ ],
6045
+ "summary": null,
6046
+ "description": null
6047
+ },
6048
+ {
6049
+ "name": "ResultOfAbiEncodeBoc",
6050
+ "type": "Struct",
6051
+ "struct_fields": [
6052
+ {
6053
+ "name": "boc",
6054
+ "type": "String",
6055
+ "summary": "BOC encoded as base64",
6056
+ "description": null
6057
+ }
6058
+ ],
6059
+ "summary": null,
6060
+ "description": null
6012
6061
  }
6013
6062
  ],
6014
6063
  "functions": [
@@ -6505,6 +6554,44 @@
6505
6554
  ]
6506
6555
  },
6507
6556
  "errors": null
6557
+ },
6558
+ {
6559
+ "name": "encode_boc",
6560
+ "summary": "Encodes given parameters in JSON into a BOC using param types from ABI.",
6561
+ "description": null,
6562
+ "params": [
6563
+ {
6564
+ "name": "context",
6565
+ "type": "Generic",
6566
+ "generic_name": "Arc",
6567
+ "generic_args": [
6568
+ {
6569
+ "type": "Ref",
6570
+ "ref_name": "ClientContext"
6571
+ }
6572
+ ],
6573
+ "summary": null,
6574
+ "description": null
6575
+ },
6576
+ {
6577
+ "name": "params",
6578
+ "type": "Ref",
6579
+ "ref_name": "abi.ParamsOfAbiEncodeBoc",
6580
+ "summary": null,
6581
+ "description": null
6582
+ }
6583
+ ],
6584
+ "result": {
6585
+ "type": "Generic",
6586
+ "generic_name": "ClientResult",
6587
+ "generic_args": [
6588
+ {
6589
+ "type": "Ref",
6590
+ "ref_name": "abi.ResultOfAbiEncodeBoc"
6591
+ }
6592
+ ]
6593
+ },
6594
+ "errors": null
6508
6595
  }
6509
6596
  ]
6510
6597
  },
@@ -6911,11 +6998,11 @@
6911
6998
  "type": "Ref",
6912
6999
  "ref_name": "boc.BuilderOp"
6913
7000
  },
6914
- "summary": "Nested cell builder",
7001
+ "summary": "Nested cell builder.",
6915
7002
  "description": null
6916
7003
  }
6917
7004
  ],
6918
- "summary": "Append ref to nested cells",
7005
+ "summary": "Append ref to nested cells.",
6919
7006
  "description": null
6920
7007
  },
6921
7008
  {
@@ -6929,7 +7016,21 @@
6929
7016
  "description": null
6930
7017
  }
6931
7018
  ],
6932
- "summary": "Append ref to nested cell",
7019
+ "summary": "Append ref to nested cell.",
7020
+ "description": null
7021
+ },
7022
+ {
7023
+ "name": "Address",
7024
+ "type": "Struct",
7025
+ "struct_fields": [
7026
+ {
7027
+ "name": "address",
7028
+ "type": "String",
7029
+ "summary": "Address in a common `workchain:account` or base64 format.",
7030
+ "description": null
7031
+ }
7032
+ ],
7033
+ "summary": "Address.",
6933
7034
  "description": null
6934
7035
  }
6935
7036
  ],
@@ -7288,6 +7389,77 @@
7288
7389
  "summary": null,
7289
7390
  "description": null
7290
7391
  },
7392
+ {
7393
+ "name": "ParamsOfEncodeExternalInMessage",
7394
+ "type": "Struct",
7395
+ "struct_fields": [
7396
+ {
7397
+ "name": "src",
7398
+ "type": "Optional",
7399
+ "optional_inner": {
7400
+ "type": "String"
7401
+ },
7402
+ "summary": "Source address.",
7403
+ "description": null
7404
+ },
7405
+ {
7406
+ "name": "dst",
7407
+ "type": "String",
7408
+ "summary": "Destination address.",
7409
+ "description": null
7410
+ },
7411
+ {
7412
+ "name": "init",
7413
+ "type": "Optional",
7414
+ "optional_inner": {
7415
+ "type": "String"
7416
+ },
7417
+ "summary": "Bag of cells with state init (used in deploy messages).",
7418
+ "description": null
7419
+ },
7420
+ {
7421
+ "name": "body",
7422
+ "type": "Optional",
7423
+ "optional_inner": {
7424
+ "type": "String"
7425
+ },
7426
+ "summary": "Bag of cells with the message body encoded as base64.",
7427
+ "description": null
7428
+ },
7429
+ {
7430
+ "name": "boc_cache",
7431
+ "type": "Optional",
7432
+ "optional_inner": {
7433
+ "type": "Ref",
7434
+ "ref_name": "boc.BocCacheType"
7435
+ },
7436
+ "summary": "Cache type to put the result.",
7437
+ "description": "The BOC itself returned if no cache type provided"
7438
+ }
7439
+ ],
7440
+ "summary": null,
7441
+ "description": null
7442
+ },
7443
+ {
7444
+ "name": "ResultOfEncodeExternalInMessage",
7445
+ "type": "Struct",
7446
+ "struct_fields": [
7447
+ {
7448
+ "name": "message",
7449
+ "type": "String",
7450
+ "summary": "Message BOC encoded with `base64`.",
7451
+ "description": null
7452
+ },
7453
+ {
7454
+ "name": "message_id",
7455
+ "type": "String",
7456
+ "summary": "Message id.",
7457
+ "description": null
7458
+ }
7459
+ ],
7460
+ "summary": null,
7461
+ "description": null
7462
+ },
7291
7463
  {
7292
7464
  "name": "ParamsOfGetCompilerVersion",
7293
7465
  "type": "Struct",
@@ -7778,7 +7950,7 @@
7778
7950
  },
7779
7951
  {
7780
7952
  "name": "encode_boc",
7781
- "summary": "Encodes bag of cells (BOC) with builder operations. This method provides the same functionality as Solidity TvmBuilder. Resulting BOC of this method can be passed into Solidity and C++ contracts as TvmCell type",
7953
+ "summary": "Encodes bag of cells (BOC) with builder operations. This method provides the same functionality as Solidity TvmBuilder. Resulting BOC of this method can be passed into Solidity and C++ contracts as TvmCell type.",
7782
7954
  "description": null,
7783
7955
  "params": [
7784
7956
  {
@@ -7966,6 +8138,44 @@
7966
8138
  },
7967
8139
  "errors": null
7968
8140
  },
8141
+ {
8142
+ "name": "encode_external_in_message",
8143
+ "summary": "Encodes a message",
8144
+ "description": "Allows to encode any external inbound message.",
8145
+ "params": [
8146
+ {
8147
+ "name": "context",
8148
+ "type": "Generic",
8149
+ "generic_name": "Arc",
8150
+ "generic_args": [
8151
+ {
8152
+ "type": "Ref",
8153
+ "ref_name": "ClientContext"
8154
+ }
8155
+ ],
8156
+ "summary": null,
8157
+ "description": null
8158
+ },
8159
+ {
8160
+ "name": "params",
8161
+ "type": "Ref",
8162
+ "ref_name": "boc.ParamsOfEncodeExternalInMessage",
8163
+ "summary": null,
8164
+ "description": null
8165
+ }
8166
+ ],
8167
+ "result": {
8168
+ "type": "Generic",
8169
+ "generic_name": "ClientResult",
8170
+ "generic_args": [
8171
+ {
8172
+ "type": "Ref",
8173
+ "ref_name": "boc.ResultOfEncodeExternalInMessage"
8174
+ }
8175
+ ]
8176
+ },
8177
+ "errors": null
8178
+ },
7969
8179
  {
7970
8180
  "name": "get_compiler_version",
7971
8181
  "summary": "Returns the compiler version used to compile the code.",
@@ -10435,6 +10645,30 @@
10435
10645
  "summary": null,
10436
10646
  "description": null
10437
10647
  },
10648
+ {
10649
+ "name": "ParamsOfSubscribe",
10650
+ "type": "Struct",
10651
+ "struct_fields": [
10652
+ {
10653
+ "name": "subscription",
10654
+ "type": "String",
10655
+ "summary": "GraphQL subscription text.",
10656
+ "description": null
10657
+ },
10658
+ {
10659
+ "name": "variables",
10660
+ "type": "Optional",
10661
+ "optional_inner": {
10662
+ "type": "Ref",
10663
+ "ref_name": "Value"
10664
+ },
10665
+ "summary": "Variables used in subscription.",
10666
+ "description": "Must be a map with named values that can be used in query."
10667
+ }
10668
+ ],
10669
+ "summary": null,
10670
+ "description": null
10671
+ },
10438
10672
  {
10439
10673
  "name": "ParamsOfFindLastShardBlock",
10440
10674
  "type": "Struct",
@@ -11091,7 +11325,7 @@
11091
11325
  },
11092
11326
  {
11093
11327
  "name": "subscribe_collection",
11094
- "summary": "Creates a subscription",
11328
+ "summary": "Creates a collection subscription",
11095
11329
  "description": "Triggers for each insert/update of data that satisfies\nthe `filter` conditions.\nThe projection fields are limited to `result` fields.\n\nThe subscription is a persistent communication channel between\nclient and Free TON Network.\nAll changes in the blockchain will be reflected in realtime.\nChanges means inserts and updates of the blockchain entities.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network brakes down.\nIn this situation the library attempts to reconnect to the network.\nThis reconnection sequence can take significant time.\nAll of this time the client is disconnected from the network.\n\nBad news is that all blockchain changes that happened while\nthe client was disconnected are lost.\n\nGood news is that the client report errors to the callback when\nit loses and resumes connection.\n\nSo, if the lost changes are important to the application then\nthe application must handle these error reports.\n\nLibrary reports errors with `responseType` == 101\nand the error object passed via `params`.\n\nWhen the library has successfully reconnected\nthe application receives callback with\n`responseType` == 101 and `params.code` == 614 (NetworkModuleResumed).\n\nApplication can use several ways to handle this situation:\n- If application monitors changes for the single blockchain\nobject (for example specific account): application\ncan perform a query for this object and handle actual data as a\nregular data from the subscription.\n- If application monitors sequence of some blockchain objects\n(for example transactions of the specific account): application must\nrefresh all cached (or visible to user) lists where this sequences presents.",
11096
11330
  "params": [
11097
11331
  {
@@ -11140,6 +11374,57 @@
11140
11374
  },
11141
11375
  "errors": null
11142
11376
  },
11377
+ {
11378
+ "name": "subscribe",
11379
+ "summary": "Creates a subscription",
11380
+ "description": "The subscription is a persistent communication channel between\nclient and Everscale Network.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network brakes down.\nIn this situation the library attempts to reconnect to the network.\nThis reconnection sequence can take significant time.\nAll of this time the client is disconnected from the network.\n\nBad news is that all changes that happened while\nthe client was disconnected are lost.\n\nGood news is that the client report errors to the callback when\nit loses and resumes connection.\n\nSo, if the lost changes are important to the application then\nthe application must handle these error reports.\n\nLibrary reports errors with `responseType` == 101\nand the error object passed via `params`.\n\nWhen the library has successfully reconnected\nthe application receives callback with\n`responseType` == 101 and `params.code` == 614 (NetworkModuleResumed).\n\nApplication can use several ways to handle this situation:\n- If application monitors changes for the single\nobject (for example specific account): application\ncan perform a query for this object and handle actual data as a\nregular data from the subscription.\n- If application monitors sequence of some objects\n(for example transactions of the specific account): application must\nrefresh all cached (or visible to user) lists where this sequences presents.",
11381
+ "params": [
11382
+ {
11383
+ "name": "context",
11384
+ "type": "Generic",
11385
+ "generic_name": "Arc",
11386
+ "generic_args": [
11387
+ {
11388
+ "type": "Ref",
11389
+ "ref_name": "ClientContext"
11390
+ }
11391
+ ],
11392
+ "summary": null,
11393
+ "description": null
11394
+ },
11395
+ {
11396
+ "name": "params",
11397
+ "type": "Ref",
11398
+ "ref_name": "net.ParamsOfSubscribe",
11399
+ "summary": null,
11400
+ "description": null
11401
+ },
11402
+ {
11403
+ "name": "callback",
11404
+ "type": "Generic",
11405
+ "generic_name": "Arc",
11406
+ "generic_args": [
11407
+ {
11408
+ "type": "Ref",
11409
+ "ref_name": "Request"
11410
+ }
11411
+ ],
11412
+ "summary": null,
11413
+ "description": null
11414
+ }
11415
+ ],
11416
+ "result": {
11417
+ "type": "Generic",
11418
+ "generic_name": "ClientResult",
11419
+ "generic_args": [
11420
+ {
11421
+ "type": "Ref",
11422
+ "ref_name": "net.ResultOfSubscribeCollection"
11423
+ }
11424
+ ]
11425
+ },
11426
+ "errors": null
11427
+ },
11143
11428
  {
11144
11429
  "name": "suspend",
11145
11430
  "summary": "Suspends network module to stop any network activity",
@@ -181,6 +181,16 @@ module TonClient
181
181
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
182
182
  end
183
183
 
184
+ # INPUT: ParamsOfAbiEncodeBoc
185
+ # params: Array - # # Parameters to encode into BOC
186
+ # data: Value - # # Parameters and values as a JSON structure
187
+ # boc_cache: BocCacheType<Optional> - # # Cache type to put the result. # # The BOC itself returned if no cache type provided
188
+ # RESPONSE: ResultOfAbiEncodeBoc
189
+ # boc: String - # # BOC encoded as base64
190
+ def encode_boc(payload, &block)
191
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
192
+ end
193
+
184
194
  end
185
195
  end
186
196
 
@@ -170,6 +170,19 @@ module TonClient
170
170
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
171
171
  end
172
172
 
173
+ # INPUT: ParamsOfEncodeExternalInMessage
174
+ # src: String<Optional> - # # Source address.
175
+ # dst: String - # # Destination address.
176
+ # init: String<Optional> - # # Bag of cells with state init (used in deploy messages).
177
+ # body: String<Optional> - # # Bag of cells with the message body encoded as base64.
178
+ # boc_cache: BocCacheType<Optional> - # # Cache type to put the result. # # The BOC itself returned if no cache type provided
179
+ # RESPONSE: ResultOfEncodeExternalInMessage
180
+ # message: String - # # Message BOC encoded with `base64`.
181
+ # message_id: String - # # Message id.
182
+ def encode_external_in_message(payload, &block)
183
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
184
+ end
185
+
173
186
  # INPUT: ParamsOfGetCompilerVersion
174
187
  # code: String - # # Contract code BOC encoded as base64 or code BOC handle
175
188
  # RESPONSE: ResultOfGetCompilerVersion
@@ -78,6 +78,15 @@ module TonClient
78
78
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
79
79
  end
80
80
 
81
+ # INPUT: ParamsOfSubscribe
82
+ # subscription: String - # # GraphQL subscription text.
83
+ # variables: Value - # # Variables used in subscription. # # Must be a map with named values that can be used in query.
84
+ # RESPONSE: ResultOfSubscribeCollection
85
+ # handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
86
+ def subscribe(payload, &block)
87
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
88
+ end
89
+
81
90
  def suspend(&block)
82
91
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
83
92
  end
@@ -1,4 +1,4 @@
1
1
  module TonClient
2
- VERSION = "1.1.20"
2
+ VERSION = "1.1.22"
3
3
  end
4
4
 
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.1.20
4
+ version: 1.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-28 00:00:00.000000000 Z
11
+ date: 2022-02-10 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.2.33
160
+ rubygems_version: 3.3.3
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: This is gem ton-client-ruby