ton-client-ruby 1.1.14 → 1.1.22
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 +456 -7
- data/lib/ton-client-ruby/Client/Abi.rb +21 -0
- data/lib/ton-client-ruby/Client/Boc.rb +13 -0
- data/lib/ton-client-ruby/Client/Net.rb +9 -0
- data/lib/ton-client-ruby/Client/Proofs.rb +6 -0
- data/lib/ton-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: 4e65c9882351060ca8f6d38cfbd17fa52ad6f102b86547437d69723c1063fec8
|
4
|
+
data.tar.gz: 71696777845b141c5b40657841788fa4ce87a3ab88d7d368b014b76682c326e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915f47a60e1d2e6b73fe89c31148829a6ee7d416eee347b18ef83201a5f52ffb8eb201061f8f557fe9f7d7fd62cbe90245bdd85d91c8d7d7db6b907b4cecab24
|
7
|
+
data.tar.gz: b713b942df5b517a3cece2ac35cb69520ecbd272a920a2090f3ede8c1fd2f2412129d31b16f77c335a2ed2538b280a1181092ad56399967efcbe351e998520df
|
data/lib/code_generator/api.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.
|
2
|
+
"version": "1.30.0",
|
3
3
|
"modules": [
|
4
4
|
{
|
5
5
|
"name": "client",
|
@@ -5856,6 +5856,67 @@
|
|
5856
5856
|
"summary": null,
|
5857
5857
|
"description": null
|
5858
5858
|
},
|
5859
|
+
{
|
5860
|
+
"name": "ParamsOfEncodeInitialData",
|
5861
|
+
"type": "Struct",
|
5862
|
+
"struct_fields": [
|
5863
|
+
{
|
5864
|
+
"name": "abi",
|
5865
|
+
"type": "Optional",
|
5866
|
+
"optional_inner": {
|
5867
|
+
"type": "Ref",
|
5868
|
+
"ref_name": "abi.Abi"
|
5869
|
+
},
|
5870
|
+
"summary": "Contract ABI",
|
5871
|
+
"description": null
|
5872
|
+
},
|
5873
|
+
{
|
5874
|
+
"name": "initial_data",
|
5875
|
+
"type": "Optional",
|
5876
|
+
"optional_inner": {
|
5877
|
+
"type": "Ref",
|
5878
|
+
"ref_name": "Value"
|
5879
|
+
},
|
5880
|
+
"summary": "List of initial values for contract's static variables.",
|
5881
|
+
"description": "`abi` parameter should be provided to set initial data"
|
5882
|
+
},
|
5883
|
+
{
|
5884
|
+
"name": "initial_pubkey",
|
5885
|
+
"type": "Optional",
|
5886
|
+
"optional_inner": {
|
5887
|
+
"type": "String"
|
5888
|
+
},
|
5889
|
+
"summary": "Initial account owner's public key to set into account data",
|
5890
|
+
"description": null
|
5891
|
+
},
|
5892
|
+
{
|
5893
|
+
"name": "boc_cache",
|
5894
|
+
"type": "Optional",
|
5895
|
+
"optional_inner": {
|
5896
|
+
"type": "Ref",
|
5897
|
+
"ref_name": "boc.BocCacheType"
|
5898
|
+
},
|
5899
|
+
"summary": "Cache type to put the result. The BOC itself returned if no cache type provided.",
|
5900
|
+
"description": null
|
5901
|
+
}
|
5902
|
+
],
|
5903
|
+
"summary": null,
|
5904
|
+
"description": null
|
5905
|
+
},
|
5906
|
+
{
|
5907
|
+
"name": "ResultOfEncodeInitialData",
|
5908
|
+
"type": "Struct",
|
5909
|
+
"struct_fields": [
|
5910
|
+
{
|
5911
|
+
"name": "data",
|
5912
|
+
"type": "String",
|
5913
|
+
"summary": "Updated data BOC or BOC handle",
|
5914
|
+
"description": null
|
5915
|
+
}
|
5916
|
+
],
|
5917
|
+
"summary": null,
|
5918
|
+
"description": null
|
5919
|
+
},
|
5859
5920
|
{
|
5860
5921
|
"name": "ParamsOfDecodeInitialData",
|
5861
5922
|
"type": "Struct",
|
@@ -5948,6 +6009,55 @@
|
|
5948
6009
|
],
|
5949
6010
|
"summary": null,
|
5950
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
|
5951
6061
|
}
|
5952
6062
|
],
|
5953
6063
|
"functions": [
|
@@ -6331,6 +6441,44 @@
|
|
6331
6441
|
},
|
6332
6442
|
"errors": null
|
6333
6443
|
},
|
6444
|
+
{
|
6445
|
+
"name": "encode_initial_data",
|
6446
|
+
"summary": "Encodes initial account data with initial values for the contract's static variables and owner's public key into a data BOC that can be passed to `encode_tvc` function afterwards.",
|
6447
|
+
"description": "This function is analogue of `tvm.buildDataInit` function in Solidity.",
|
6448
|
+
"params": [
|
6449
|
+
{
|
6450
|
+
"name": "context",
|
6451
|
+
"type": "Generic",
|
6452
|
+
"generic_name": "Arc",
|
6453
|
+
"generic_args": [
|
6454
|
+
{
|
6455
|
+
"type": "Ref",
|
6456
|
+
"ref_name": "ClientContext"
|
6457
|
+
}
|
6458
|
+
],
|
6459
|
+
"summary": null,
|
6460
|
+
"description": null
|
6461
|
+
},
|
6462
|
+
{
|
6463
|
+
"name": "params",
|
6464
|
+
"type": "Ref",
|
6465
|
+
"ref_name": "abi.ParamsOfEncodeInitialData",
|
6466
|
+
"summary": null,
|
6467
|
+
"description": null
|
6468
|
+
}
|
6469
|
+
],
|
6470
|
+
"result": {
|
6471
|
+
"type": "Generic",
|
6472
|
+
"generic_name": "ClientResult",
|
6473
|
+
"generic_args": [
|
6474
|
+
{
|
6475
|
+
"type": "Ref",
|
6476
|
+
"ref_name": "abi.ResultOfEncodeInitialData"
|
6477
|
+
}
|
6478
|
+
]
|
6479
|
+
},
|
6480
|
+
"errors": null
|
6481
|
+
},
|
6334
6482
|
{
|
6335
6483
|
"name": "decode_initial_data",
|
6336
6484
|
"summary": "Decodes initial values of a contract's static variables and owner's public key from account initial data This operation is applicable only for initial account data (before deploy). If the contract is already deployed, its data doesn't contain this data section any more.",
|
@@ -6406,6 +6554,44 @@
|
|
6406
6554
|
]
|
6407
6555
|
},
|
6408
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
|
6409
6595
|
}
|
6410
6596
|
]
|
6411
6597
|
},
|
@@ -6812,11 +6998,11 @@
|
|
6812
6998
|
"type": "Ref",
|
6813
6999
|
"ref_name": "boc.BuilderOp"
|
6814
7000
|
},
|
6815
|
-
"summary": "Nested cell builder",
|
7001
|
+
"summary": "Nested cell builder.",
|
6816
7002
|
"description": null
|
6817
7003
|
}
|
6818
7004
|
],
|
6819
|
-
"summary": "Append ref to nested cells",
|
7005
|
+
"summary": "Append ref to nested cells.",
|
6820
7006
|
"description": null
|
6821
7007
|
},
|
6822
7008
|
{
|
@@ -6830,7 +7016,21 @@
|
|
6830
7016
|
"description": null
|
6831
7017
|
}
|
6832
7018
|
],
|
6833
|
-
"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.",
|
6834
7034
|
"description": null
|
6835
7035
|
}
|
6836
7036
|
],
|
@@ -7189,6 +7389,77 @@
|
|
7189
7389
|
"summary": null,
|
7190
7390
|
"description": null
|
7191
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
|
+
},
|
7192
7463
|
{
|
7193
7464
|
"name": "ParamsOfGetCompilerVersion",
|
7194
7465
|
"type": "Struct",
|
@@ -7679,7 +7950,7 @@
|
|
7679
7950
|
},
|
7680
7951
|
{
|
7681
7952
|
"name": "encode_boc",
|
7682
|
-
"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.",
|
7683
7954
|
"description": null,
|
7684
7955
|
"params": [
|
7685
7956
|
{
|
@@ -7867,6 +8138,44 @@
|
|
7867
8138
|
},
|
7868
8139
|
"errors": null
|
7869
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
|
+
},
|
7870
8179
|
{
|
7871
8180
|
"name": "get_compiler_version",
|
7872
8181
|
"summary": "Returns the compiler version used to compile the code.",
|
@@ -10336,6 +10645,30 @@
|
|
10336
10645
|
"summary": null,
|
10337
10646
|
"description": null
|
10338
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
|
+
},
|
10339
10672
|
{
|
10340
10673
|
"name": "ParamsOfFindLastShardBlock",
|
10341
10674
|
"type": "Struct",
|
@@ -10992,7 +11325,7 @@
|
|
10992
11325
|
},
|
10993
11326
|
{
|
10994
11327
|
"name": "subscribe_collection",
|
10995
|
-
"summary": "Creates a subscription",
|
11328
|
+
"summary": "Creates a collection subscription",
|
10996
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.",
|
10997
11330
|
"params": [
|
10998
11331
|
{
|
@@ -11041,6 +11374,57 @@
|
|
11041
11374
|
},
|
11042
11375
|
"errors": null
|
11043
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
|
+
},
|
11044
11428
|
{
|
11045
11429
|
"name": "suspend",
|
11046
11430
|
"summary": "Suspends network module to stop any network activity",
|
@@ -11635,6 +12019,13 @@
|
|
11635
12019
|
"value": "812",
|
11636
12020
|
"summary": null,
|
11637
12021
|
"description": null
|
12022
|
+
},
|
12023
|
+
{
|
12024
|
+
"name": "DebotNoCode",
|
12025
|
+
"type": "Number",
|
12026
|
+
"value": "813",
|
12027
|
+
"summary": null,
|
12028
|
+
"description": null
|
11638
12029
|
}
|
11639
12030
|
],
|
11640
12031
|
"summary": null,
|
@@ -11798,6 +12189,12 @@
|
|
11798
12189
|
},
|
11799
12190
|
"summary": "Vector with IDs of DInterfaces used by DeBot.",
|
11800
12191
|
"description": null
|
12192
|
+
},
|
12193
|
+
{
|
12194
|
+
"name": "dabiVersion",
|
12195
|
+
"type": "String",
|
12196
|
+
"summary": "ABI version (\"x.y\") supported by DeBot",
|
12197
|
+
"description": null
|
11801
12198
|
}
|
11802
12199
|
],
|
11803
12200
|
"summary": "[UNSTABLE](UNSTABLE.md) Describes DeBot metadata.",
|
@@ -12539,6 +12936,21 @@
|
|
12539
12936
|
],
|
12540
12937
|
"summary": null,
|
12541
12938
|
"description": null
|
12939
|
+
},
|
12940
|
+
{
|
12941
|
+
"name": "ParamsOfProofMessageData",
|
12942
|
+
"type": "Struct",
|
12943
|
+
"struct_fields": [
|
12944
|
+
{
|
12945
|
+
"name": "message",
|
12946
|
+
"type": "Ref",
|
12947
|
+
"ref_name": "Value",
|
12948
|
+
"summary": "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`.",
|
12949
|
+
"description": null
|
12950
|
+
}
|
12951
|
+
],
|
12952
|
+
"summary": null,
|
12953
|
+
"description": null
|
12542
12954
|
}
|
12543
12955
|
],
|
12544
12956
|
"functions": [
|
@@ -12582,7 +12994,7 @@
|
|
12582
12994
|
{
|
12583
12995
|
"name": "proof_transaction_data",
|
12584
12996
|
"summary": "Proves that a given transaction's data, which is queried from TONOS API, can be trusted.",
|
12585
|
-
"description": "This function requests the corresponding block, checks block proofs, ensures that given
|
12997
|
+
"description": "This function requests the corresponding block, checks block proofs, ensures that given\ntransaction exists in the proven block and compares given data with the proven.\nIf the given data differs from the proven, the exception will be thrown.\nThe input parameter is a single transaction's JSON object (see params description),\nwhich was queried from TONOS API using functions such as `net.query`, `net.query_collection`\nor `net.wait_for_collection`.\n\nIf transaction's BOC and/or `block_id` are not provided in the JSON, they will be queried from\nTONOS API.\n\nPlease note, that joins (like `account`, `in_message`, `out_messages`, etc. in `Transaction`\nentity) are separated entities and not supported, so function will throw an exception in a case\nif JSON being checked has such entities in it.\n\nFor more information about proofs checking, see description of `proof_block_data` function.",
|
12586
12998
|
"params": [
|
12587
12999
|
{
|
12588
13000
|
"name": "context",
|
@@ -12615,6 +13027,43 @@
|
|
12615
13027
|
]
|
12616
13028
|
},
|
12617
13029
|
"errors": null
|
13030
|
+
},
|
13031
|
+
{
|
13032
|
+
"name": "proof_message_data",
|
13033
|
+
"summary": "Proves that a given message's data, which is queried from TONOS API, can be trusted.",
|
13034
|
+
"description": "This function first proves the corresponding transaction, ensures that the proven transaction\nrefers to the given message and compares given data with the proven.\nIf the given data differs from the proven, the exception will be thrown.\nThe input parameter is a single message's JSON object (see params description),\nwhich was queried from TONOS API using functions such as `net.query`, `net.query_collection`\nor `net.wait_for_collection`.\n\nIf message's BOC and/or non-null `src_transaction.id` or `dst_transaction.id` are not provided\nin the JSON, they will be queried from TONOS API.\n\nPlease note, that joins (like `block`, `dst_account`, `dst_transaction`, `src_account`,\n`src_transaction`, etc. in `Message` entity) are separated entities and not supported,\nso function will throw an exception in a case if JSON being checked has such entities in it.\n\nFor more information about proofs checking, see description of `proof_block_data` function.",
|
13035
|
+
"params": [
|
13036
|
+
{
|
13037
|
+
"name": "context",
|
13038
|
+
"type": "Generic",
|
13039
|
+
"generic_name": "Arc",
|
13040
|
+
"generic_args": [
|
13041
|
+
{
|
13042
|
+
"type": "Ref",
|
13043
|
+
"ref_name": "ClientContext"
|
13044
|
+
}
|
13045
|
+
],
|
13046
|
+
"summary": null,
|
13047
|
+
"description": null
|
13048
|
+
},
|
13049
|
+
{
|
13050
|
+
"name": "params",
|
13051
|
+
"type": "Ref",
|
13052
|
+
"ref_name": "proofs.ParamsOfProofMessageData",
|
13053
|
+
"summary": null,
|
13054
|
+
"description": null
|
13055
|
+
}
|
13056
|
+
],
|
13057
|
+
"result": {
|
13058
|
+
"type": "Generic",
|
13059
|
+
"generic_name": "ClientResult",
|
13060
|
+
"generic_args": [
|
13061
|
+
{
|
13062
|
+
"type": "None"
|
13063
|
+
}
|
13064
|
+
]
|
13065
|
+
},
|
13066
|
+
"errors": null
|
12618
13067
|
}
|
12619
13068
|
]
|
12620
13069
|
}
|
@@ -150,6 +150,17 @@ module TonClient
|
|
150
150
|
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
151
151
|
end
|
152
152
|
|
153
|
+
# INPUT: ParamsOfEncodeInitialData
|
154
|
+
# abi: Value<Optional> - # # Contract ABI
|
155
|
+
# initial_data: Value - # # List of initial values for contract's static variables. # # `abi` parameter should be provided to set initial data
|
156
|
+
# initial_pubkey: String<Optional> - # # Initial account owner's public key to set into account data
|
157
|
+
# boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided.
|
158
|
+
# RESPONSE: ResultOfEncodeInitialData
|
159
|
+
# data: String - # # Updated data BOC or BOC handle
|
160
|
+
def encode_initial_data(payload, &block)
|
161
|
+
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
162
|
+
end
|
163
|
+
|
153
164
|
# INPUT: ParamsOfDecodeInitialData
|
154
165
|
# abi: Value<Optional> - # # Contract ABI. # # Initial data is decoded if this parameter is provided
|
155
166
|
# data: String - # # Data BOC or BOC handle
|
@@ -170,6 +181,16 @@ module TonClient
|
|
170
181
|
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
171
182
|
end
|
172
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
|
+
|
173
194
|
end
|
174
195
|
end
|
175
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
|
@@ -23,6 +23,12 @@ module TonClient
|
|
23
23
|
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
24
24
|
end
|
25
25
|
|
26
|
+
# INPUT: ParamsOfProofMessageData
|
27
|
+
# 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
|
+
def proof_message_data(payload, &block)
|
29
|
+
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
30
|
+
end
|
31
|
+
|
26
32
|
end
|
27
33
|
end
|
28
34
|
|
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.
|
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:
|
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.
|
160
|
+
rubygems_version: 3.3.3
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: This is gem ton-client-ruby
|