everscale-client-ruby 1.1.25 → 1.1.29
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e290afda3f35f3d71062e3fb40c286af66f78cdbd840782e681490c63e97a87c
|
4
|
+
data.tar.gz: ab8e679763070e6a872256ed69f75f09a9888fd0ecb76ec12bb0786502a1fdb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65a3910bdcc290df1282c6e90e151dabe1bc000776a555801e3c23cc804c5bca51dbb54e562edda9543cf4da8618dd14e97341968c8c05f9ebc7f12ceb234c0
|
7
|
+
data.tar.gz: e46552e46894da972afe0a2f0388d9bd4ee041b69090cd97a7ab9dbb1016589626f563c59d5397ca1a61a10a71740beed7b708b0e57ebe62a4c992c572956b71
|
File without changes
|
data/lib/code_generator/api.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.
|
2
|
+
"version": "1.34.0",
|
3
3
|
"modules": [
|
4
4
|
{
|
5
5
|
"name": "client",
|
@@ -365,7 +365,7 @@
|
|
365
365
|
"optional_inner": {
|
366
366
|
"type": "String"
|
367
367
|
},
|
368
|
-
"summary": "
|
368
|
+
"summary": "**This field is deprecated, but left for backward-compatibility.** DApp Server public address.",
|
369
369
|
"description": null
|
370
370
|
},
|
371
371
|
{
|
@@ -378,7 +378,7 @@
|
|
378
378
|
}
|
379
379
|
},
|
380
380
|
"summary": "List of DApp Server addresses.",
|
381
|
-
"description": "Any correct URL format can be specified, including IP addresses This parameter is prevailing over `server_address
|
381
|
+
"description": "Any correct URL format can be specified, including IP addresses. This parameter is prevailing over `server_address`.\nCheck the full list of [supported network endpoints](../ton-os-api/networks.md)."
|
382
382
|
},
|
383
383
|
{
|
384
384
|
"name": "network_retries_count",
|
@@ -466,7 +466,7 @@
|
|
466
466
|
"number_size": 8
|
467
467
|
},
|
468
468
|
"summary": "Maximum number of randomly chosen endpoints the library uses to broadcast a message.",
|
469
|
-
"description": "Default is
|
469
|
+
"description": "Default is 1."
|
470
470
|
},
|
471
471
|
{
|
472
472
|
"name": "latency_detection_interval",
|
@@ -511,6 +511,28 @@
|
|
511
511
|
"summary": "Queries protocol.",
|
512
512
|
"description": "`HTTP` or `WS`. \nDefault is `HTTP`."
|
513
513
|
},
|
514
|
+
{
|
515
|
+
"name": "first_remp_status_timeout",
|
516
|
+
"type": "Optional",
|
517
|
+
"optional_inner": {
|
518
|
+
"type": "Number",
|
519
|
+
"number_type": "UInt",
|
520
|
+
"number_size": 32
|
521
|
+
},
|
522
|
+
"summary": "UNSTABLE.",
|
523
|
+
"description": "First REMP status awaiting timeout. If no status recieved during the timeout than fallback transaction scenario is activated.\n\nMust be specified in milliseconds. Default is 1000 (1 sec)."
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"name": "next_remp_status_timeout",
|
527
|
+
"type": "Optional",
|
528
|
+
"optional_inner": {
|
529
|
+
"type": "Number",
|
530
|
+
"number_type": "UInt",
|
531
|
+
"number_size": 32
|
532
|
+
},
|
533
|
+
"summary": "UNSTABLE.",
|
534
|
+
"description": "Subsequent REMP status awaiting timeout. If no status recieved during the timeout than fallback transaction scenario is activated.\n\nMust be specified in milliseconds. Default is 5000 (5 sec)."
|
535
|
+
},
|
514
536
|
{
|
515
537
|
"name": "access_key",
|
516
538
|
"type": "Optional",
|
@@ -882,6 +904,37 @@
|
|
882
904
|
},
|
883
905
|
"errors": null
|
884
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
|
+
},
|
885
938
|
{
|
886
939
|
"name": "build_info",
|
887
940
|
"summary": "Returns detailed information about this build.",
|
@@ -1177,6 +1230,13 @@
|
|
1177
1230
|
"value": "133",
|
1178
1231
|
"summary": null,
|
1179
1232
|
"description": null
|
1233
|
+
},
|
1234
|
+
{
|
1235
|
+
"name": "InvalidNonceSize",
|
1236
|
+
"type": "Number",
|
1237
|
+
"value": "134",
|
1238
|
+
"summary": null,
|
1239
|
+
"description": null
|
1180
1240
|
}
|
1181
1241
|
],
|
1182
1242
|
"summary": null,
|
@@ -6398,6 +6458,15 @@
|
|
6398
6458
|
"type": "String",
|
6399
6459
|
"summary": "Message BOC",
|
6400
6460
|
"description": null
|
6461
|
+
},
|
6462
|
+
{
|
6463
|
+
"name": "allow_partial",
|
6464
|
+
"type": "Optional",
|
6465
|
+
"optional_inner": {
|
6466
|
+
"type": "Boolean"
|
6467
|
+
},
|
6468
|
+
"summary": "Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)",
|
6469
|
+
"description": null
|
6401
6470
|
}
|
6402
6471
|
],
|
6403
6472
|
"summary": null,
|
@@ -6466,6 +6535,15 @@
|
|
6466
6535
|
"type": "Boolean",
|
6467
6536
|
"summary": "True if the body belongs to the internal message.",
|
6468
6537
|
"description": null
|
6538
|
+
},
|
6539
|
+
{
|
6540
|
+
"name": "allow_partial",
|
6541
|
+
"type": "Optional",
|
6542
|
+
"optional_inner": {
|
6543
|
+
"type": "Boolean"
|
6544
|
+
},
|
6545
|
+
"summary": "Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)",
|
6546
|
+
"description": null
|
6469
6547
|
}
|
6470
6548
|
],
|
6471
6549
|
"summary": null,
|
@@ -6565,6 +6643,15 @@
|
|
6565
6643
|
"type": "String",
|
6566
6644
|
"summary": "Data BOC or BOC handle",
|
6567
6645
|
"description": null
|
6646
|
+
},
|
6647
|
+
{
|
6648
|
+
"name": "allow_partial",
|
6649
|
+
"type": "Optional",
|
6650
|
+
"optional_inner": {
|
6651
|
+
"type": "Boolean"
|
6652
|
+
},
|
6653
|
+
"summary": "Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)",
|
6654
|
+
"description": null
|
6568
6655
|
}
|
6569
6656
|
],
|
6570
6657
|
"summary": null,
|
@@ -6732,6 +6819,15 @@
|
|
6732
6819
|
"type": "String",
|
6733
6820
|
"summary": "Data BOC or BOC handle",
|
6734
6821
|
"description": null
|
6822
|
+
},
|
6823
|
+
{
|
6824
|
+
"name": "allow_partial",
|
6825
|
+
"type": "Optional",
|
6826
|
+
"optional_inner": {
|
6827
|
+
"type": "Boolean"
|
6828
|
+
},
|
6829
|
+
"summary": "Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)",
|
6830
|
+
"description": null
|
6735
6831
|
}
|
6736
6832
|
],
|
6737
6833
|
"summary": null,
|
@@ -9111,6 +9207,27 @@
|
|
9111
9207
|
"value": "513",
|
9112
9208
|
"summary": null,
|
9113
9209
|
"description": null
|
9210
|
+
},
|
9211
|
+
{
|
9212
|
+
"name": "MessageRejected",
|
9213
|
+
"type": "Number",
|
9214
|
+
"value": "514",
|
9215
|
+
"summary": null,
|
9216
|
+
"description": null
|
9217
|
+
},
|
9218
|
+
{
|
9219
|
+
"name": "InvalidRempStatus",
|
9220
|
+
"type": "Number",
|
9221
|
+
"value": "515",
|
9222
|
+
"summary": null,
|
9223
|
+
"description": null
|
9224
|
+
},
|
9225
|
+
{
|
9226
|
+
"name": "NextRempStatusTimeout",
|
9227
|
+
"type": "Number",
|
9228
|
+
"value": "516",
|
9229
|
+
"summary": null,
|
9230
|
+
"description": null
|
9114
9231
|
}
|
9115
9232
|
],
|
9116
9233
|
"summary": null,
|
@@ -9312,6 +9429,137 @@
|
|
9312
9429
|
],
|
9313
9430
|
"summary": "Notifies the app that the message was not executed within expire timeout on-chain and will never be because it is already expired. The expiration timeout can be configured with `AbiConfig` parameters.",
|
9314
9431
|
"description": "This event occurs only for the contracts which ABI includes \"expire\" header.\n\nIf Application specifies `NetworkConfig.message_retries_count` > 0, then `process_message`\nwill perform retries: will create a new message and send it again and repeat it untill it reaches\nthe maximum retries count or receives a successful result. All the processing\nevents will be repeated."
|
9432
|
+
},
|
9433
|
+
{
|
9434
|
+
"name": "RempSentToValidators",
|
9435
|
+
"type": "Struct",
|
9436
|
+
"struct_fields": [
|
9437
|
+
{
|
9438
|
+
"name": "message_id",
|
9439
|
+
"type": "String",
|
9440
|
+
"summary": null,
|
9441
|
+
"description": null
|
9442
|
+
},
|
9443
|
+
{
|
9444
|
+
"name": "timestamp",
|
9445
|
+
"type": "BigInt",
|
9446
|
+
"number_type": "UInt",
|
9447
|
+
"number_size": 64,
|
9448
|
+
"summary": null,
|
9449
|
+
"description": null
|
9450
|
+
},
|
9451
|
+
{
|
9452
|
+
"name": "json",
|
9453
|
+
"type": "Ref",
|
9454
|
+
"ref_name": "Value",
|
9455
|
+
"summary": null,
|
9456
|
+
"description": null
|
9457
|
+
}
|
9458
|
+
],
|
9459
|
+
"summary": "Notifies the app that the message has been delivered to the thread's validators",
|
9460
|
+
"description": null
|
9461
|
+
},
|
9462
|
+
{
|
9463
|
+
"name": "RempIncludedIntoBlock",
|
9464
|
+
"type": "Struct",
|
9465
|
+
"struct_fields": [
|
9466
|
+
{
|
9467
|
+
"name": "message_id",
|
9468
|
+
"type": "String",
|
9469
|
+
"summary": null,
|
9470
|
+
"description": null
|
9471
|
+
},
|
9472
|
+
{
|
9473
|
+
"name": "timestamp",
|
9474
|
+
"type": "BigInt",
|
9475
|
+
"number_type": "UInt",
|
9476
|
+
"number_size": 64,
|
9477
|
+
"summary": null,
|
9478
|
+
"description": null
|
9479
|
+
},
|
9480
|
+
{
|
9481
|
+
"name": "json",
|
9482
|
+
"type": "Ref",
|
9483
|
+
"ref_name": "Value",
|
9484
|
+
"summary": null,
|
9485
|
+
"description": null
|
9486
|
+
}
|
9487
|
+
],
|
9488
|
+
"summary": "Notifies the app that the message has been successfully included into a block candidate by the thread's collator",
|
9489
|
+
"description": null
|
9490
|
+
},
|
9491
|
+
{
|
9492
|
+
"name": "RempIncludedIntoAcceptedBlock",
|
9493
|
+
"type": "Struct",
|
9494
|
+
"struct_fields": [
|
9495
|
+
{
|
9496
|
+
"name": "message_id",
|
9497
|
+
"type": "String",
|
9498
|
+
"summary": null,
|
9499
|
+
"description": null
|
9500
|
+
},
|
9501
|
+
{
|
9502
|
+
"name": "timestamp",
|
9503
|
+
"type": "BigInt",
|
9504
|
+
"number_type": "UInt",
|
9505
|
+
"number_size": 64,
|
9506
|
+
"summary": null,
|
9507
|
+
"description": null
|
9508
|
+
},
|
9509
|
+
{
|
9510
|
+
"name": "json",
|
9511
|
+
"type": "Ref",
|
9512
|
+
"ref_name": "Value",
|
9513
|
+
"summary": null,
|
9514
|
+
"description": null
|
9515
|
+
}
|
9516
|
+
],
|
9517
|
+
"summary": "Notifies the app that the block candicate with the message has been accepted by the thread's validators",
|
9518
|
+
"description": null
|
9519
|
+
},
|
9520
|
+
{
|
9521
|
+
"name": "RempOther",
|
9522
|
+
"type": "Struct",
|
9523
|
+
"struct_fields": [
|
9524
|
+
{
|
9525
|
+
"name": "message_id",
|
9526
|
+
"type": "String",
|
9527
|
+
"summary": null,
|
9528
|
+
"description": null
|
9529
|
+
},
|
9530
|
+
{
|
9531
|
+
"name": "timestamp",
|
9532
|
+
"type": "BigInt",
|
9533
|
+
"number_type": "UInt",
|
9534
|
+
"number_size": 64,
|
9535
|
+
"summary": null,
|
9536
|
+
"description": null
|
9537
|
+
},
|
9538
|
+
{
|
9539
|
+
"name": "json",
|
9540
|
+
"type": "Ref",
|
9541
|
+
"ref_name": "Value",
|
9542
|
+
"summary": null,
|
9543
|
+
"description": null
|
9544
|
+
}
|
9545
|
+
],
|
9546
|
+
"summary": "Notifies the app about some other minor REMP statuses occurring during message processing",
|
9547
|
+
"description": null
|
9548
|
+
},
|
9549
|
+
{
|
9550
|
+
"name": "RempError",
|
9551
|
+
"type": "Struct",
|
9552
|
+
"struct_fields": [
|
9553
|
+
{
|
9554
|
+
"name": "error",
|
9555
|
+
"type": "Ref",
|
9556
|
+
"ref_name": "client.ClientError",
|
9557
|
+
"summary": null,
|
9558
|
+
"description": null
|
9559
|
+
}
|
9560
|
+
],
|
9561
|
+
"summary": "Notifies the app about any problem that has occured in REMP processing - in this case library switches to the fallback transaction awaiting scenario (sequential block reading).",
|
9562
|
+
"description": null
|
9315
9563
|
}
|
9316
9564
|
],
|
9317
9565
|
"summary": null,
|
@@ -10323,15 +10571,15 @@
|
|
10323
10571
|
"type": "BigInt",
|
10324
10572
|
"number_type": "UInt",
|
10325
10573
|
"number_size": 64,
|
10326
|
-
"summary":
|
10327
|
-
"description":
|
10574
|
+
"summary": "Deprecated.",
|
10575
|
+
"description": "Left for backward compatibility. Does not participate in account transaction fees calculation."
|
10328
10576
|
},
|
10329
10577
|
{
|
10330
10578
|
"name": "storage_fee",
|
10331
10579
|
"type": "BigInt",
|
10332
10580
|
"number_type": "UInt",
|
10333
10581
|
"number_size": 64,
|
10334
|
-
"summary":
|
10582
|
+
"summary": "Fee for account storage",
|
10335
10583
|
"description": null
|
10336
10584
|
},
|
10337
10585
|
{
|
@@ -10339,7 +10587,7 @@
|
|
10339
10587
|
"type": "BigInt",
|
10340
10588
|
"number_type": "UInt",
|
10341
10589
|
"number_size": 64,
|
10342
|
-
"summary":
|
10590
|
+
"summary": "Fee for processing",
|
10343
10591
|
"description": null
|
10344
10592
|
},
|
10345
10593
|
{
|
@@ -10347,23 +10595,47 @@
|
|
10347
10595
|
"type": "BigInt",
|
10348
10596
|
"number_type": "UInt",
|
10349
10597
|
"number_size": 64,
|
10350
|
-
"summary":
|
10351
|
-
"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."
|
10352
10600
|
},
|
10353
10601
|
{
|
10354
10602
|
"name": "total_account_fees",
|
10355
10603
|
"type": "BigInt",
|
10356
10604
|
"number_type": "UInt",
|
10357
10605
|
"number_size": 64,
|
10358
|
-
"summary":
|
10359
|
-
"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."
|
10360
10608
|
},
|
10361
10609
|
{
|
10362
10610
|
"name": "total_output",
|
10363
10611
|
"type": "BigInt",
|
10364
10612
|
"number_type": "UInt",
|
10365
10613
|
"number_size": 64,
|
10366
|
-
"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",
|
10367
10639
|
"description": null
|
10368
10640
|
}
|
10369
10641
|
],
|
@@ -12421,7 +12693,7 @@
|
|
12421
12693
|
{
|
12422
12694
|
"name": "query_counterparties",
|
12423
12695
|
"summary": "Allows to query and paginate through the list of accounts that the specified account has interacted with, sorted by the time of the last internal message between accounts",
|
12424
|
-
"description": "*Attention* this query retrieves data from 'Counterparties' service which is not supported in\nthe opensource version of DApp Server (and will not be supported) as well as in
|
12696
|
+
"description": "*Attention* this query retrieves data from 'Counterparties' service which is not supported in\nthe opensource version of DApp Server (and will not be supported) as well as in Evernode SE (will be supported in SE in future),\nbut is always accessible via [EVER OS Clouds](../ton-os-api/networks.md)",
|
12425
12697
|
"params": [
|
12426
12698
|
{
|
12427
12699
|
"name": "context",
|
@@ -13753,7 +14025,7 @@
|
|
13753
14025
|
{
|
13754
14026
|
"name": "proof_block_data",
|
13755
14027
|
"summary": "Proves that a given block's data, which is queried from TONOS API, can be trusted.",
|
13756
|
-
"description": "This function checks block proofs and compares given data with the proven.\nIf the given data differs from the proven, the exception will be thrown.\nThe input param is a single block's JSON object, which was queried from DApp server using\nfunctions such as `net.query`, `net.query_collection` or `net.wait_for_collection`.\nIf block's BOC is not provided in the JSON, it will be queried from DApp server\n(in this case it is required to provide at least `id` of block).\n\nPlease note, that joins (like `signatures` in `Block`) 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\nIf `cache_in_local_storage` in config is set to `true` (default), downloaded proofs and\nmaster-chain BOCs are saved into the persistent local storage (e.g. file system for native\nenvironments or browser's IndexedDB for the web); otherwise all the data is cached only in\nmemory in current client's context and will be lost after destruction of the client.\n\n**Why Proofs are needed**\n\nProofs are needed to ensure that the data downloaded from a DApp server is real blockchain\ndata. Checking proofs can protect from the malicious DApp server which can potentially provide\nfake data, or also from \"Man in the Middle\" attacks class.\n\n**What Proofs are**\n\nSimply, proof is a list of signatures of validators', which have signed this particular master-\nblock.\n\nThe very first validator set's public keys are included in the zero-state. Whe know a root hash\nof the zero-state, because it is stored in the network configuration file, it is our authority\nroot. For proving zero-state it is enough to calculate and compare its root hash.\n\nIn each new validator cycle the validator set is changed. The new one is stored in a key-block,\nwhich is signed by the validator set, which we already trust, the next validator set will be\nstored to the new key-block and signed by the current validator set, and so on.\n\nIn order to prove any block in the master-chain we need to check, that it has been signed by\na trusted validator set. So we need to check all key-blocks' proofs, started from the zero-state\nand until the block, which we want to prove. But it can take a lot of time and traffic to\ndownload and prove all key-blocks on a client. For solving this, special trusted blocks are used\nin
|
14028
|
+
"description": "This function checks block proofs and compares given data with the proven.\nIf the given data differs from the proven, the exception will be thrown.\nThe input param is a single block's JSON object, which was queried from DApp server using\nfunctions such as `net.query`, `net.query_collection` or `net.wait_for_collection`.\nIf block's BOC is not provided in the JSON, it will be queried from DApp server\n(in this case it is required to provide at least `id` of block).\n\nPlease note, that joins (like `signatures` in `Block`) 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\nIf `cache_in_local_storage` in config is set to `true` (default), downloaded proofs and\nmaster-chain BOCs are saved into the persistent local storage (e.g. file system for native\nenvironments or browser's IndexedDB for the web); otherwise all the data is cached only in\nmemory in current client's context and will be lost after destruction of the client.\n\n**Why Proofs are needed**\n\nProofs are needed to ensure that the data downloaded from a DApp server is real blockchain\ndata. Checking proofs can protect from the malicious DApp server which can potentially provide\nfake data, or also from \"Man in the Middle\" attacks class.\n\n**What Proofs are**\n\nSimply, proof is a list of signatures of validators', which have signed this particular master-\nblock.\n\nThe very first validator set's public keys are included in the zero-state. Whe know a root hash\nof the zero-state, because it is stored in the network configuration file, it is our authority\nroot. For proving zero-state it is enough to calculate and compare its root hash.\n\nIn each new validator cycle the validator set is changed. The new one is stored in a key-block,\nwhich is signed by the validator set, which we already trust, the next validator set will be\nstored to the new key-block and signed by the current validator set, and so on.\n\nIn order to prove any block in the master-chain we need to check, that it has been signed by\na trusted validator set. So we need to check all key-blocks' proofs, started from the zero-state\nand until the block, which we want to prove. But it can take a lot of time and traffic to\ndownload and prove all key-blocks on a client. For solving this, special trusted blocks are used\nin Ever-SDK.\n\nThe trusted block is the authority root, as well, as the zero-state. Each trusted block is the\n`id` (e.g. `root_hash`) of the already proven key-block. There can be plenty of trusted\nblocks, so there can be a lot of authority roots. The hashes of trusted blocks for MainNet\nand DevNet are hardcoded in SDK in a separated binary file (trusted_key_blocks.bin) and is\nbeing updated for each release by using `update_trusted_blocks` utility.\n\nSee [update_trusted_blocks](../../../tools/update_trusted_blocks) directory for more info.\n\nIn future SDK releases, one will also be able to provide their hashes of trusted blocks for\nother networks, besides for MainNet and DevNet.\nBy using trusted key-blocks, in order to prove any block, we can prove chain of key-blocks to\nthe closest previous trusted key-block, not only to the zero-state.\n\nBut shard-blocks don't have proofs on DApp server. In this case, in order to prove any shard-\nblock data, we search for a corresponding master-block, which contains the root hash of this\nshard-block, or some shard block which is linked to that block in shard-chain. After proving\nthis master-block, we traverse through each link and calculate and compare hashes with links,\none-by-one. After that we can ensure that this shard-block has also been proven.",
|
13757
14029
|
"params": [
|
13758
14030
|
{
|
13759
14031
|
"name": "context",
|
@@ -94,6 +94,7 @@ module TonClient
|
|
94
94
|
# INPUT: ParamsOfDecodeMessage
|
95
95
|
# abi: Value - # # contract ABI
|
96
96
|
# message: String - # # Message BOC
|
97
|
+
# allow_partial: Boolean<Optional> - # # Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)
|
97
98
|
# RESPONSE: DecodedMessageBody
|
98
99
|
# body_type: MessageBodyType - # # Type of the message body content.
|
99
100
|
# name: String - # # Function or event name.
|
@@ -107,6 +108,7 @@ module TonClient
|
|
107
108
|
# abi: Value - # # Contract ABI used to decode.
|
108
109
|
# body: String - # # Message body BOC encoded in `base64`.
|
109
110
|
# is_internal: Boolean - # # True if the body belongs to the internal message.
|
111
|
+
# allow_partial: Boolean<Optional> - # # Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)
|
110
112
|
# RESPONSE: DecodedMessageBody
|
111
113
|
# body_type: MessageBodyType - # # Type of the message body content.
|
112
114
|
# name: String - # # Function or event name.
|
@@ -132,6 +134,7 @@ module TonClient
|
|
132
134
|
# INPUT: ParamsOfDecodeAccountData
|
133
135
|
# abi: Value - # # Contract ABI
|
134
136
|
# data: String - # # Data BOC or BOC handle
|
137
|
+
# allow_partial: Boolean<Optional> - # # Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)
|
135
138
|
# RESPONSE: ResultOfDecodeAccountData
|
136
139
|
# data: Value - # # Decoded data as a JSON structure.
|
137
140
|
def decode_account_data(payload, &block)
|
@@ -164,6 +167,7 @@ module TonClient
|
|
164
167
|
# INPUT: ParamsOfDecodeInitialData
|
165
168
|
# abi: Value<Optional> - # # Contract ABI. # # Initial data is decoded if this parameter is provided
|
166
169
|
# data: String - # # Data BOC or BOC handle
|
170
|
+
# allow_partial: Boolean<Optional> - # # Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)
|
167
171
|
# RESPONSE: ResultOfDecodeInitialData
|
168
172
|
# initial_data: Value<Optional> - # # List of initial values of contract's public variables. # # Initial data is decoded if `abi` input parameter is provided
|
169
173
|
# initial_pubkey: String - # # Initial account owner's public key
|
@@ -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.29
|
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-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -112,11 +112,11 @@ description: Gem Ton Client Ruby for all ruby projects
|
|
112
112
|
email:
|
113
113
|
- emptystamp@gmail.com
|
114
114
|
executables:
|
115
|
-
-
|
115
|
+
- everscale-client-ruby
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- bin/
|
119
|
+
- bin/everscale-client-ruby
|
120
120
|
- lib/code_generator/api.json
|
121
121
|
- lib/code_generator/api_converter.rb
|
122
122
|
- lib/code_generator/code_generator.rb
|