ton-client-ruby 1.1.7 → 1.1.12

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: '098d205b97000ad1ed735c7dcb50a57f10c745c92471c4062740c7f551742b07'
4
- data.tar.gz: 7ae95c3cf47e8136aaa0bfa0822460fe7df17c1ea35d75681d4de88642d14952
3
+ metadata.gz: 75ecb42739e96bec6c1d10a707132bca2e8ea6d5b9ca4d9c8873377e7fd176cd
4
+ data.tar.gz: a3bce7a17dc09d78a535652118117ee949faf204c0cd1662d5ec41bd11314c27
5
5
  SHA512:
6
- metadata.gz: 88b84c7329d7a4b3b3e33efe4ea0200daf229e1179a88c99eae21c332aba82f51104dea17a4255a86d6304e5baaca863f20d1f814fd1fd348c644206cb795a94
7
- data.tar.gz: c6d0c00f89522a29a1abaa166f246bb82498aed9b66109b9fbd76386432c6395b9982178967365136afadf76c96dc76aedf4ab0fe45bcbfc7243c693d2100142
6
+ metadata.gz: 8cd7ede2622ebf6f50b02c03c30ad40fc341fef27082136310294844d2bf050579f649175e8d4e22557434dcc305bd7615f90384db4e764ae05b766a13af221d
7
+ data.tar.gz: 744a09948f81d6498ecf7d6f17c5f71b55279d00d02663479cbdcea2238c6434bdea5013b083596ca166c9aebf70929a6795f6c664e2bbaaa21fbdbd8789f227
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.22.0",
2
+ "version": "1.23.0",
3
3
  "modules": [
4
4
  {
5
5
  "name": "client",
@@ -4468,6 +4468,13 @@
4468
4468
  "value": "313",
4469
4469
  "summary": null,
4470
4470
  "description": null
4471
+ },
4472
+ {
4473
+ "name": "EncodeInitialDataFailed",
4474
+ "type": "Number",
4475
+ "value": "314",
4476
+ "summary": null,
4477
+ "description": null
4471
4478
  }
4472
4479
  ],
4473
4480
  "summary": null,
@@ -5738,6 +5745,121 @@
5738
5745
  ],
5739
5746
  "summary": null,
5740
5747
  "description": null
5748
+ },
5749
+ {
5750
+ "name": "ParamsOfUpdateInitialData",
5751
+ "type": "Struct",
5752
+ "struct_fields": [
5753
+ {
5754
+ "name": "abi",
5755
+ "type": "Optional",
5756
+ "optional_inner": {
5757
+ "type": "Ref",
5758
+ "ref_name": "abi.Abi"
5759
+ },
5760
+ "summary": "Contract ABI",
5761
+ "description": null
5762
+ },
5763
+ {
5764
+ "name": "data",
5765
+ "type": "String",
5766
+ "summary": "Data BOC or BOC handle",
5767
+ "description": null
5768
+ },
5769
+ {
5770
+ "name": "initial_data",
5771
+ "type": "Optional",
5772
+ "optional_inner": {
5773
+ "type": "Ref",
5774
+ "ref_name": "Value"
5775
+ },
5776
+ "summary": "List of initial values for contract's static variables.",
5777
+ "description": "`abi` parameter should be provided to set initial data"
5778
+ },
5779
+ {
5780
+ "name": "initial_pubkey",
5781
+ "type": "Optional",
5782
+ "optional_inner": {
5783
+ "type": "String"
5784
+ },
5785
+ "summary": "Initial account owner's public key to set into account data",
5786
+ "description": null
5787
+ },
5788
+ {
5789
+ "name": "boc_cache",
5790
+ "type": "Optional",
5791
+ "optional_inner": {
5792
+ "type": "Ref",
5793
+ "ref_name": "boc.BocCacheType"
5794
+ },
5795
+ "summary": "Cache type to put the result. The BOC itself returned if no cache type provided.",
5796
+ "description": null
5797
+ }
5798
+ ],
5799
+ "summary": null,
5800
+ "description": null
5801
+ },
5802
+ {
5803
+ "name": "ResultOfUpdateInitialData",
5804
+ "type": "Struct",
5805
+ "struct_fields": [
5806
+ {
5807
+ "name": "data",
5808
+ "type": "String",
5809
+ "summary": "Updated data BOC or BOC handle",
5810
+ "description": null
5811
+ }
5812
+ ],
5813
+ "summary": null,
5814
+ "description": null
5815
+ },
5816
+ {
5817
+ "name": "ParamsOfDecodeInitialData",
5818
+ "type": "Struct",
5819
+ "struct_fields": [
5820
+ {
5821
+ "name": "abi",
5822
+ "type": "Optional",
5823
+ "optional_inner": {
5824
+ "type": "Ref",
5825
+ "ref_name": "abi.Abi"
5826
+ },
5827
+ "summary": "Contract ABI.",
5828
+ "description": "Initial data is decoded if this parameter is provided"
5829
+ },
5830
+ {
5831
+ "name": "data",
5832
+ "type": "String",
5833
+ "summary": "Data BOC or BOC handle",
5834
+ "description": null
5835
+ }
5836
+ ],
5837
+ "summary": null,
5838
+ "description": null
5839
+ },
5840
+ {
5841
+ "name": "ResultOfDecodeInitialData",
5842
+ "type": "Struct",
5843
+ "struct_fields": [
5844
+ {
5845
+ "name": "initial_data",
5846
+ "type": "Optional",
5847
+ "optional_inner": {
5848
+ "type": "Ref",
5849
+ "ref_name": "Value"
5850
+ },
5851
+ "summary": "List of initial values of contract's public variables.",
5852
+ "description": "Initial data is decoded if `abi` input parameter is provided"
5853
+ },
5854
+ {
5855
+ "name": "initial_pubkey",
5856
+ "type": "String",
5857
+ "summary": "Initial account owner's public key",
5858
+ "description": null
5859
+ }
5860
+ ],
5861
+ "summary": null,
5862
+ "description": null
5741
5863
  }
5742
5864
  ],
5743
5865
  "functions": [
@@ -6082,6 +6204,82 @@
6082
6204
  ]
6083
6205
  },
6084
6206
  "errors": null
6207
+ },
6208
+ {
6209
+ "name": "update_initial_data",
6210
+ "summary": "Updates initial account data with initial values for the contract's static variables and owner's public key. 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.",
6211
+ "description": null,
6212
+ "params": [
6213
+ {
6214
+ "name": "context",
6215
+ "type": "Generic",
6216
+ "generic_name": "Arc",
6217
+ "generic_args": [
6218
+ {
6219
+ "type": "Ref",
6220
+ "ref_name": "ClientContext"
6221
+ }
6222
+ ],
6223
+ "summary": null,
6224
+ "description": null
6225
+ },
6226
+ {
6227
+ "name": "params",
6228
+ "type": "Ref",
6229
+ "ref_name": "abi.ParamsOfUpdateInitialData",
6230
+ "summary": null,
6231
+ "description": null
6232
+ }
6233
+ ],
6234
+ "result": {
6235
+ "type": "Generic",
6236
+ "generic_name": "ClientResult",
6237
+ "generic_args": [
6238
+ {
6239
+ "type": "Ref",
6240
+ "ref_name": "abi.ResultOfUpdateInitialData"
6241
+ }
6242
+ ]
6243
+ },
6244
+ "errors": null
6245
+ },
6246
+ {
6247
+ "name": "decode_initial_data",
6248
+ "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.",
6249
+ "description": null,
6250
+ "params": [
6251
+ {
6252
+ "name": "context",
6253
+ "type": "Generic",
6254
+ "generic_name": "Arc",
6255
+ "generic_args": [
6256
+ {
6257
+ "type": "Ref",
6258
+ "ref_name": "ClientContext"
6259
+ }
6260
+ ],
6261
+ "summary": null,
6262
+ "description": null
6263
+ },
6264
+ {
6265
+ "name": "params",
6266
+ "type": "Ref",
6267
+ "ref_name": "abi.ParamsOfDecodeInitialData",
6268
+ "summary": null,
6269
+ "description": null
6270
+ }
6271
+ ],
6272
+ "result": {
6273
+ "type": "Generic",
6274
+ "generic_name": "ClientResult",
6275
+ "generic_args": [
6276
+ {
6277
+ "type": "Ref",
6278
+ "ref_name": "abi.ResultOfDecodeInitialData"
6279
+ }
6280
+ ]
6281
+ },
6282
+ "errors": null
6085
6283
  }
6086
6284
  ]
6087
6285
  },
@@ -6296,7 +6494,7 @@
6296
6494
  {
6297
6495
  "name": "tvc",
6298
6496
  "type": "String",
6299
- "summary": "Contract TVC image encoded as base64",
6497
+ "summary": "Contract TVC image or image BOC handle",
6300
6498
  "description": null
6301
6499
  }
6302
6500
  ],
@@ -6524,68 +6722,360 @@
6524
6722
  ],
6525
6723
  "summary": null,
6526
6724
  "description": null
6527
- }
6528
- ],
6529
- "functions": [
6725
+ },
6530
6726
  {
6531
- "name": "parse_message",
6532
- "summary": "Parses message boc into a JSON",
6533
- "description": "JSON structure is compatible with GraphQL API message object",
6534
- "params": [
6727
+ "name": "ParamsOfGetCodeSalt",
6728
+ "type": "Struct",
6729
+ "struct_fields": [
6535
6730
  {
6536
- "name": "context",
6537
- "type": "Generic",
6538
- "generic_name": "Arc",
6539
- "generic_args": [
6540
- {
6541
- "type": "Ref",
6542
- "ref_name": "ClientContext"
6543
- }
6544
- ],
6545
- "summary": null,
6731
+ "name": "code",
6732
+ "type": "String",
6733
+ "summary": "Contract code BOC encoded as base64 or code BOC handle",
6546
6734
  "description": null
6547
6735
  },
6548
6736
  {
6549
- "name": "params",
6550
- "type": "Ref",
6551
- "ref_name": "boc.ParamsOfParse",
6552
- "summary": null,
6737
+ "name": "boc_cache",
6738
+ "type": "Optional",
6739
+ "optional_inner": {
6740
+ "type": "Ref",
6741
+ "ref_name": "boc.BocCacheType"
6742
+ },
6743
+ "summary": "Cache type to put the result. The BOC itself returned if no cache type provided.",
6553
6744
  "description": null
6554
6745
  }
6555
6746
  ],
6556
- "result": {
6557
- "type": "Generic",
6558
- "generic_name": "ClientResult",
6559
- "generic_args": [
6560
- {
6561
- "type": "Ref",
6562
- "ref_name": "boc.ResultOfParse"
6563
- }
6564
- ]
6565
- },
6566
- "errors": null
6747
+ "summary": null,
6748
+ "description": null
6567
6749
  },
6568
6750
  {
6569
- "name": "parse_transaction",
6570
- "summary": "Parses transaction boc into a JSON",
6571
- "description": "JSON structure is compatible with GraphQL API transaction object",
6572
- "params": [
6751
+ "name": "ResultOfGetCodeSalt",
6752
+ "type": "Struct",
6753
+ "struct_fields": [
6573
6754
  {
6574
- "name": "context",
6575
- "type": "Generic",
6576
- "generic_name": "Arc",
6577
- "generic_args": [
6578
- {
6579
- "type": "Ref",
6580
- "ref_name": "ClientContext"
6581
- }
6582
- ],
6583
- "summary": null,
6755
+ "name": "salt",
6756
+ "type": "Optional",
6757
+ "optional_inner": {
6758
+ "type": "String"
6759
+ },
6760
+ "summary": "Contract code salt if present.",
6761
+ "description": "BOC encoded as base64 or BOC handle"
6762
+ }
6763
+ ],
6764
+ "summary": null,
6765
+ "description": null
6766
+ },
6767
+ {
6768
+ "name": "ParamsOfSetCodeSalt",
6769
+ "type": "Struct",
6770
+ "struct_fields": [
6771
+ {
6772
+ "name": "code",
6773
+ "type": "String",
6774
+ "summary": "Contract code BOC encoded as base64 or code BOC handle",
6584
6775
  "description": null
6585
6776
  },
6586
6777
  {
6587
- "name": "params",
6588
- "type": "Ref",
6778
+ "name": "salt",
6779
+ "type": "String",
6780
+ "summary": "Code salt to set.",
6781
+ "description": "BOC encoded as base64 or BOC handle"
6782
+ },
6783
+ {
6784
+ "name": "boc_cache",
6785
+ "type": "Optional",
6786
+ "optional_inner": {
6787
+ "type": "Ref",
6788
+ "ref_name": "boc.BocCacheType"
6789
+ },
6790
+ "summary": "Cache type to put the result. The BOC itself returned if no cache type provided.",
6791
+ "description": null
6792
+ }
6793
+ ],
6794
+ "summary": null,
6795
+ "description": null
6796
+ },
6797
+ {
6798
+ "name": "ResultOfSetCodeSalt",
6799
+ "type": "Struct",
6800
+ "struct_fields": [
6801
+ {
6802
+ "name": "code",
6803
+ "type": "String",
6804
+ "summary": "Contract code with salt set.",
6805
+ "description": "BOC encoded as base64 or BOC handle"
6806
+ }
6807
+ ],
6808
+ "summary": null,
6809
+ "description": null
6810
+ },
6811
+ {
6812
+ "name": "ParamsOfDecodeTvc",
6813
+ "type": "Struct",
6814
+ "struct_fields": [
6815
+ {
6816
+ "name": "tvc",
6817
+ "type": "String",
6818
+ "summary": "Contract TVC image BOC encoded as base64 or BOC handle",
6819
+ "description": null
6820
+ },
6821
+ {
6822
+ "name": "boc_cache",
6823
+ "type": "Optional",
6824
+ "optional_inner": {
6825
+ "type": "Ref",
6826
+ "ref_name": "boc.BocCacheType"
6827
+ },
6828
+ "summary": "Cache type to put the result. The BOC itself returned if no cache type provided.",
6829
+ "description": null
6830
+ }
6831
+ ],
6832
+ "summary": null,
6833
+ "description": null
6834
+ },
6835
+ {
6836
+ "name": "ResultOfDecodeTvc",
6837
+ "type": "Struct",
6838
+ "struct_fields": [
6839
+ {
6840
+ "name": "code",
6841
+ "type": "Optional",
6842
+ "optional_inner": {
6843
+ "type": "String"
6844
+ },
6845
+ "summary": "Contract code BOC encoded as base64 or BOC handle",
6846
+ "description": null
6847
+ },
6848
+ {
6849
+ "name": "data",
6850
+ "type": "Optional",
6851
+ "optional_inner": {
6852
+ "type": "String"
6853
+ },
6854
+ "summary": "Contract data BOC encoded as base64 or BOC handle",
6855
+ "description": null
6856
+ },
6857
+ {
6858
+ "name": "library",
6859
+ "type": "Optional",
6860
+ "optional_inner": {
6861
+ "type": "String"
6862
+ },
6863
+ "summary": "Contract library BOC encoded as base64 or BOC handle",
6864
+ "description": null
6865
+ },
6866
+ {
6867
+ "name": "tick",
6868
+ "type": "Optional",
6869
+ "optional_inner": {
6870
+ "type": "Boolean"
6871
+ },
6872
+ "summary": "`special.tick` field.",
6873
+ "description": "Specifies the contract ability to handle tick transactions"
6874
+ },
6875
+ {
6876
+ "name": "tock",
6877
+ "type": "Optional",
6878
+ "optional_inner": {
6879
+ "type": "Boolean"
6880
+ },
6881
+ "summary": "`special.tock` field.",
6882
+ "description": "Specifies the contract ability to handle tock transactions"
6883
+ },
6884
+ {
6885
+ "name": "split_depth",
6886
+ "type": "Optional",
6887
+ "optional_inner": {
6888
+ "type": "Number",
6889
+ "number_type": "UInt",
6890
+ "number_size": 32
6891
+ },
6892
+ "summary": "Is present and non-zero only in instances of large smart contracts",
6893
+ "description": null
6894
+ }
6895
+ ],
6896
+ "summary": null,
6897
+ "description": null
6898
+ },
6899
+ {
6900
+ "name": "ParamsOfEncodeTvc",
6901
+ "type": "Struct",
6902
+ "struct_fields": [
6903
+ {
6904
+ "name": "code",
6905
+ "type": "Optional",
6906
+ "optional_inner": {
6907
+ "type": "String"
6908
+ },
6909
+ "summary": "Contract code BOC encoded as base64 or BOC handle",
6910
+ "description": null
6911
+ },
6912
+ {
6913
+ "name": "data",
6914
+ "type": "Optional",
6915
+ "optional_inner": {
6916
+ "type": "String"
6917
+ },
6918
+ "summary": "Contract data BOC encoded as base64 or BOC handle",
6919
+ "description": null
6920
+ },
6921
+ {
6922
+ "name": "library",
6923
+ "type": "Optional",
6924
+ "optional_inner": {
6925
+ "type": "String"
6926
+ },
6927
+ "summary": "Contract library BOC encoded as base64 or BOC handle",
6928
+ "description": null
6929
+ },
6930
+ {
6931
+ "name": "tick",
6932
+ "type": "Optional",
6933
+ "optional_inner": {
6934
+ "type": "Boolean"
6935
+ },
6936
+ "summary": "`special.tick` field.",
6937
+ "description": "Specifies the contract ability to handle tick transactions"
6938
+ },
6939
+ {
6940
+ "name": "tock",
6941
+ "type": "Optional",
6942
+ "optional_inner": {
6943
+ "type": "Boolean"
6944
+ },
6945
+ "summary": "`special.tock` field.",
6946
+ "description": "Specifies the contract ability to handle tock transactions"
6947
+ },
6948
+ {
6949
+ "name": "split_depth",
6950
+ "type": "Optional",
6951
+ "optional_inner": {
6952
+ "type": "Number",
6953
+ "number_type": "UInt",
6954
+ "number_size": 32
6955
+ },
6956
+ "summary": "Is present and non-zero only in instances of large smart contracts",
6957
+ "description": null
6958
+ },
6959
+ {
6960
+ "name": "boc_cache",
6961
+ "type": "Optional",
6962
+ "optional_inner": {
6963
+ "type": "Ref",
6964
+ "ref_name": "boc.BocCacheType"
6965
+ },
6966
+ "summary": "Cache type to put the result. The BOC itself returned if no cache type provided.",
6967
+ "description": null
6968
+ }
6969
+ ],
6970
+ "summary": null,
6971
+ "description": null
6972
+ },
6973
+ {
6974
+ "name": "ResultOfEncodeTvc",
6975
+ "type": "Struct",
6976
+ "struct_fields": [
6977
+ {
6978
+ "name": "tvc",
6979
+ "type": "String",
6980
+ "summary": "Contract TVC image BOC encoded as base64 or BOC handle of boc_cache parameter was specified",
6981
+ "description": null
6982
+ }
6983
+ ],
6984
+ "summary": null,
6985
+ "description": null
6986
+ },
6987
+ {
6988
+ "name": "ParamsOfGetCompilerVersion",
6989
+ "type": "Struct",
6990
+ "struct_fields": [
6991
+ {
6992
+ "name": "code",
6993
+ "type": "String",
6994
+ "summary": "Contract code BOC encoded as base64 or code BOC handle",
6995
+ "description": null
6996
+ }
6997
+ ],
6998
+ "summary": null,
6999
+ "description": null
7000
+ },
7001
+ {
7002
+ "name": "ResultOfGetCompilerVersion",
7003
+ "type": "Struct",
7004
+ "struct_fields": [
7005
+ {
7006
+ "name": "version",
7007
+ "type": "Optional",
7008
+ "optional_inner": {
7009
+ "type": "String"
7010
+ },
7011
+ "summary": "Compiler version, for example 'sol 0.49.0'",
7012
+ "description": null
7013
+ }
7014
+ ],
7015
+ "summary": null,
7016
+ "description": null
7017
+ }
7018
+ ],
7019
+ "functions": [
7020
+ {
7021
+ "name": "parse_message",
7022
+ "summary": "Parses message boc into a JSON",
7023
+ "description": "JSON structure is compatible with GraphQL API message object",
7024
+ "params": [
7025
+ {
7026
+ "name": "context",
7027
+ "type": "Generic",
7028
+ "generic_name": "Arc",
7029
+ "generic_args": [
7030
+ {
7031
+ "type": "Ref",
7032
+ "ref_name": "ClientContext"
7033
+ }
7034
+ ],
7035
+ "summary": null,
7036
+ "description": null
7037
+ },
7038
+ {
7039
+ "name": "params",
7040
+ "type": "Ref",
7041
+ "ref_name": "boc.ParamsOfParse",
7042
+ "summary": null,
7043
+ "description": null
7044
+ }
7045
+ ],
7046
+ "result": {
7047
+ "type": "Generic",
7048
+ "generic_name": "ClientResult",
7049
+ "generic_args": [
7050
+ {
7051
+ "type": "Ref",
7052
+ "ref_name": "boc.ResultOfParse"
7053
+ }
7054
+ ]
7055
+ },
7056
+ "errors": null
7057
+ },
7058
+ {
7059
+ "name": "parse_transaction",
7060
+ "summary": "Parses transaction boc into a JSON",
7061
+ "description": "JSON structure is compatible with GraphQL API transaction object",
7062
+ "params": [
7063
+ {
7064
+ "name": "context",
7065
+ "type": "Generic",
7066
+ "generic_name": "Arc",
7067
+ "generic_args": [
7068
+ {
7069
+ "type": "Ref",
7070
+ "ref_name": "ClientContext"
7071
+ }
7072
+ ],
7073
+ "summary": null,
7074
+ "description": null
7075
+ },
7076
+ {
7077
+ "name": "params",
7078
+ "type": "Ref",
6589
7079
  "ref_name": "boc.ParamsOfParse",
6590
7080
  "summary": null,
6591
7081
  "description": null
@@ -6981,6 +7471,196 @@
6981
7471
  ]
6982
7472
  },
6983
7473
  "errors": null
7474
+ },
7475
+ {
7476
+ "name": "get_code_salt",
7477
+ "summary": "Returns the contract code's salt if it is present.",
7478
+ "description": null,
7479
+ "params": [
7480
+ {
7481
+ "name": "context",
7482
+ "type": "Generic",
7483
+ "generic_name": "Arc",
7484
+ "generic_args": [
7485
+ {
7486
+ "type": "Ref",
7487
+ "ref_name": "ClientContext"
7488
+ }
7489
+ ],
7490
+ "summary": null,
7491
+ "description": null
7492
+ },
7493
+ {
7494
+ "name": "params",
7495
+ "type": "Ref",
7496
+ "ref_name": "boc.ParamsOfGetCodeSalt",
7497
+ "summary": null,
7498
+ "description": null
7499
+ }
7500
+ ],
7501
+ "result": {
7502
+ "type": "Generic",
7503
+ "generic_name": "ClientResult",
7504
+ "generic_args": [
7505
+ {
7506
+ "type": "Ref",
7507
+ "ref_name": "boc.ResultOfGetCodeSalt"
7508
+ }
7509
+ ]
7510
+ },
7511
+ "errors": null
7512
+ },
7513
+ {
7514
+ "name": "set_code_salt",
7515
+ "summary": "Sets new salt to contract code.",
7516
+ "description": "Returns the new contract code with salt.",
7517
+ "params": [
7518
+ {
7519
+ "name": "context",
7520
+ "type": "Generic",
7521
+ "generic_name": "Arc",
7522
+ "generic_args": [
7523
+ {
7524
+ "type": "Ref",
7525
+ "ref_name": "ClientContext"
7526
+ }
7527
+ ],
7528
+ "summary": null,
7529
+ "description": null
7530
+ },
7531
+ {
7532
+ "name": "params",
7533
+ "type": "Ref",
7534
+ "ref_name": "boc.ParamsOfSetCodeSalt",
7535
+ "summary": null,
7536
+ "description": null
7537
+ }
7538
+ ],
7539
+ "result": {
7540
+ "type": "Generic",
7541
+ "generic_name": "ClientResult",
7542
+ "generic_args": [
7543
+ {
7544
+ "type": "Ref",
7545
+ "ref_name": "boc.ResultOfSetCodeSalt"
7546
+ }
7547
+ ]
7548
+ },
7549
+ "errors": null
7550
+ },
7551
+ {
7552
+ "name": "decode_tvc",
7553
+ "summary": "Decodes tvc into code, data, libraries and special options.",
7554
+ "description": null,
7555
+ "params": [
7556
+ {
7557
+ "name": "context",
7558
+ "type": "Generic",
7559
+ "generic_name": "Arc",
7560
+ "generic_args": [
7561
+ {
7562
+ "type": "Ref",
7563
+ "ref_name": "ClientContext"
7564
+ }
7565
+ ],
7566
+ "summary": null,
7567
+ "description": null
7568
+ },
7569
+ {
7570
+ "name": "params",
7571
+ "type": "Ref",
7572
+ "ref_name": "boc.ParamsOfDecodeTvc",
7573
+ "summary": null,
7574
+ "description": null
7575
+ }
7576
+ ],
7577
+ "result": {
7578
+ "type": "Generic",
7579
+ "generic_name": "ClientResult",
7580
+ "generic_args": [
7581
+ {
7582
+ "type": "Ref",
7583
+ "ref_name": "boc.ResultOfDecodeTvc"
7584
+ }
7585
+ ]
7586
+ },
7587
+ "errors": null
7588
+ },
7589
+ {
7590
+ "name": "encode_tvc",
7591
+ "summary": "Encodes tvc from code, data, libraries ans special options (see input params)",
7592
+ "description": null,
7593
+ "params": [
7594
+ {
7595
+ "name": "context",
7596
+ "type": "Generic",
7597
+ "generic_name": "Arc",
7598
+ "generic_args": [
7599
+ {
7600
+ "type": "Ref",
7601
+ "ref_name": "ClientContext"
7602
+ }
7603
+ ],
7604
+ "summary": null,
7605
+ "description": null
7606
+ },
7607
+ {
7608
+ "name": "params",
7609
+ "type": "Ref",
7610
+ "ref_name": "boc.ParamsOfEncodeTvc",
7611
+ "summary": null,
7612
+ "description": null
7613
+ }
7614
+ ],
7615
+ "result": {
7616
+ "type": "Generic",
7617
+ "generic_name": "ClientResult",
7618
+ "generic_args": [
7619
+ {
7620
+ "type": "Ref",
7621
+ "ref_name": "boc.ResultOfEncodeTvc"
7622
+ }
7623
+ ]
7624
+ },
7625
+ "errors": null
7626
+ },
7627
+ {
7628
+ "name": "get_compiler_version",
7629
+ "summary": "Returns the compiler version used to compile the code.",
7630
+ "description": null,
7631
+ "params": [
7632
+ {
7633
+ "name": "context",
7634
+ "type": "Generic",
7635
+ "generic_name": "Arc",
7636
+ "generic_args": [
7637
+ {
7638
+ "type": "Ref",
7639
+ "ref_name": "ClientContext"
7640
+ }
7641
+ ],
7642
+ "summary": null,
7643
+ "description": null
7644
+ },
7645
+ {
7646
+ "name": "params",
7647
+ "type": "Ref",
7648
+ "ref_name": "boc.ParamsOfGetCompilerVersion",
7649
+ "summary": null,
7650
+ "description": null
7651
+ }
7652
+ ],
7653
+ "result": {
7654
+ "type": "Generic",
7655
+ "generic_name": "ClientResult",
7656
+ "generic_args": [
7657
+ {
7658
+ "type": "Ref",
7659
+ "ref_name": "boc.ResultOfGetCompilerVersion"
7660
+ }
7661
+ ]
7662
+ },
7663
+ "errors": null
6984
7664
  }
6985
7665
  ]
6986
7666
  },
@@ -10355,8 +11035,8 @@
10355
11035
  },
10356
11036
  {
10357
11037
  "name": "query_transaction_tree",
10358
- "summary": "Returns transactions tree for specific message.",
10359
- "description": "Performs recursive retrieval of the transactions tree produced by the specific message:\nin_msg -> dst_transaction -> out_messages -> dst_transaction -> ...\n\nAll retrieved messages and transactions will be included\ninto `result.messages` and `result.transactions` respectively.\n\nThe retrieval process will stop when the retrieved transaction count is more than 50.\n\nIt is guaranteed that each message in `result.messages` has the corresponding transaction\nin the `result.transactions`.\n\nBut there are no guaranties that all messages from transactions `out_msgs` are\npresented in `result.messages`.\nSo the application have to continue retrieval for missing messages if it requires.",
11038
+ "summary": "Returns a tree of transactions triggered by a specific message.",
11039
+ "description": "Performs recursive retrieval of a transactions tree produced by a specific message:\nin_msg -> dst_transaction -> out_messages -> dst_transaction -> ...\nIf the chain of transactions execution is in progress while the function is running,\nit will wait for the next transactions to appear until the full tree or more than 50 transactions\nare received.\n\nAll the retrieved messages and transactions are included\ninto `result.messages` and `result.transactions` respectively.\n\nFunction reads transactions layer by layer, by pages of 20 transactions.\n\nThe retrieval prosess goes like this:\nLet's assume we have an infinite chain of transactions and each transaction generates 5 messages.\n1. Retrieve 1st message (input parameter) and corresponding transaction - put it into result.\nIt is the first level of the tree of transactions - its root.\nRetrieve 5 out message ids from the transaction for next steps.\n2. Retrieve 5 messages and corresponding transactions on the 2nd layer. Put them into result.\nRetrieve 5*5 out message ids from these transactions for next steps\n3. Retrieve 20 (size of the page) messages and transactions (3rd layer) and 20*5=100 message ids (4th layer).\n4. Retrieve the last 5 messages and 5 transactions on the 3rd layer + 15 messages and transactions (of 100) from the 4th layer\n+ 25 message ids of the 4th layer + 75 message ids of the 5th layer.\n5. Retrieve 20 more messages and 20 more transactions of the 4th layer + 100 more message ids of the 5th layer.\n6. Now we have 1+5+20+20+20 = 66 transactions, which is more than 50. Function exits with the tree of\n1m->1t->5m->5t->25m->25t->35m->35t. If we see any message ids in the last transactions out_msgs, which don't have\ncorresponding messages in the function result, it means that the full tree was not received and we need to continue iteration.\n\nTo summarize, it is guaranteed that each message in `result.messages` has the corresponding transaction\nin the `result.transactions`.\nBut there is no guarantee that all messages from transactions `out_msgs` are\npresented in `result.messages`.\nSo the application has to continue retrieval for missing messages if it requires.",
10360
11040
  "params": [
10361
11041
  {
10362
11042
  "name": "context",
@@ -175,6 +175,13 @@ curl https://raw.githubusercontent.com/tonlabs/TON-SDK/master/tools/api.json > a
175
175
  ```\n\n
176
176
  ```\n
177
177
  ton-client-ruby update ./api.json\n
178
+ ```\n
179
+ or\n\n
180
+ ```\n
181
+ cd ton-client-ruby\n
182
+ ```\n\n
183
+ ```\n
184
+ ./bin/ton-client-ruby update\n
178
185
  ```\n
179
186
  }
180
187
  content = checkContent(content)
@@ -138,6 +138,28 @@ module TonClient
138
138
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
139
139
  end
140
140
 
141
+ # INPUT: ParamsOfUpdateInitialData
142
+ # abi: Value<Optional> - # # Contract ABI
143
+ # data: String - # # Data BOC or BOC handle
144
+ # initial_data: Value - # # List of initial values for contract's static variables. # # `abi` parameter should be provided to set initial data
145
+ # initial_pubkey: String<Optional> - # # Initial account owner's public key to set into account data
146
+ # boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided.
147
+ # RESPONSE: ResultOfUpdateInitialData
148
+ # data: String - # # Updated data BOC or BOC handle
149
+ def update_initial_data(payload, &block)
150
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
151
+ end
152
+
153
+ # INPUT: ParamsOfDecodeInitialData
154
+ # abi: Value<Optional> - # # Contract ABI. # # Initial data is decoded if this parameter is provided
155
+ # data: String - # # Data BOC or BOC handle
156
+ # RESPONSE: ResultOfDecodeInitialData
157
+ # initial_data: Value<Optional> - # # List of initial values of contract's public variables. # # Initial data is decoded if `abi` input parameter is provided
158
+ # initial_pubkey: String - # # Initial account owner's public key
159
+ def decode_initial_data(payload, &block)
160
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
161
+ end
162
+
141
163
  end
142
164
  end
143
165
 
@@ -70,7 +70,7 @@ module TonClient
70
70
  end
71
71
 
72
72
  # INPUT: ParamsOfGetCodeFromTvc
73
- # tvc: String - # # Contract TVC image encoded as base64
73
+ # tvc: String - # # Contract TVC image or image BOC handle
74
74
  # RESPONSE: ResultOfGetCodeFromTvc
75
75
  # code: String - # # Contract code encoded as base64
76
76
  def get_code_from_tvc(payload, &block)
@@ -110,6 +110,61 @@ module TonClient
110
110
  core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
111
111
  end
112
112
 
113
+ # INPUT: ParamsOfGetCodeSalt
114
+ # code: String - # # Contract code BOC encoded as base64 or code BOC handle
115
+ # boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided.
116
+ # RESPONSE: ResultOfGetCodeSalt
117
+ # salt: String<Optional> - # # Contract code salt if present. # # BOC encoded as base64 or BOC handle
118
+ def get_code_salt(payload, &block)
119
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
120
+ end
121
+
122
+ # INPUT: ParamsOfSetCodeSalt
123
+ # code: String - # # Contract code BOC encoded as base64 or code BOC handle
124
+ # salt: String - # # Code salt to set. # # BOC encoded as base64 or BOC handle
125
+ # boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided.
126
+ # RESPONSE: ResultOfSetCodeSalt
127
+ # code: String - # # Contract code with salt set. # # BOC encoded as base64 or BOC handle
128
+ def set_code_salt(payload, &block)
129
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
130
+ end
131
+
132
+ # INPUT: ParamsOfDecodeTvc
133
+ # tvc: String - # # Contract TVC image BOC encoded as base64 or BOC handle
134
+ # boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided.
135
+ # RESPONSE: ResultOfDecodeTvc
136
+ # code: String<Optional> - # # Contract code BOC encoded as base64 or BOC handle
137
+ # data: String<Optional> - # # Contract data BOC encoded as base64 or BOC handle
138
+ # library: String<Optional> - # # Contract library BOC encoded as base64 or BOC handle
139
+ # tick: Boolean<Optional> - # # `special.tick` field. # # Specifies the contract ability to handle tick transactions
140
+ # tock: Boolean<Optional> - # # `special.tock` field. # # Specifies the contract ability to handle tock transactions
141
+ # split_depth: Number<Optional> - # # Is present and non-zero only in instances of large smart contracts
142
+ def decode_tvc(payload, &block)
143
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
144
+ end
145
+
146
+ # INPUT: ParamsOfEncodeTvc
147
+ # code: String<Optional> - # # Contract code BOC encoded as base64 or BOC handle
148
+ # data: String<Optional> - # # Contract data BOC encoded as base64 or BOC handle
149
+ # library: String<Optional> - # # Contract library BOC encoded as base64 or BOC handle
150
+ # tick: Boolean<Optional> - # # `special.tick` field. # # Specifies the contract ability to handle tick transactions
151
+ # tock: Boolean<Optional> - # # `special.tock` field. # # Specifies the contract ability to handle tock transactions
152
+ # split_depth: Number<Optional> - # # Is present and non-zero only in instances of large smart contracts
153
+ # boc_cache: BocCacheType<Optional> - # # Cache type to put the result. The BOC itself returned if no cache type provided.
154
+ # RESPONSE: ResultOfEncodeTvc
155
+ # tvc: String - # # Contract TVC image BOC encoded as base64 or BOC handle of boc_cache parameter was specified
156
+ def encode_tvc(payload, &block)
157
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
158
+ end
159
+
160
+ # INPUT: ParamsOfGetCompilerVersion
161
+ # code: String - # # Contract code BOC encoded as base64 or code BOC handle
162
+ # RESPONSE: ResultOfGetCompilerVersion
163
+ # version: String<Optional> - # # Compiler version, for example 'sol 0.49.0'
164
+ def get_compiler_version(payload, &block)
165
+ core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
166
+ end
167
+
113
168
  end
114
169
  end
115
170
 
@@ -1,4 +1,4 @@
1
1
  module TonClient
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.12"
3
3
  end
4
4
 
@@ -4,19 +4,20 @@ require 'json'
4
4
  require 'byebug'
5
5
  require 'dotenv'
6
6
  require 'fileutils'
7
- require 'ton-client-ruby/Helpers/CommonHelpers.rb'
8
- require 'ton-client-ruby/Binding/struct.rb'
9
- require 'ton-client-ruby/Binding/binding.rb'
10
- require 'ton-client-ruby/Client/Context.rb'
11
- require 'ton-client-ruby/Client/Client.rb'
12
- require 'ton-client-ruby/Client/Crypto.rb'
13
- require 'ton-client-ruby/Client/Abi.rb'
14
- require 'ton-client-ruby/Client/Boc.rb'
15
- require 'ton-client-ruby/Client/Net.rb'
16
- require 'ton-client-ruby/Client/Processing.rb'
17
- require 'ton-client-ruby/Client/Tvm.rb'
18
- require 'ton-client-ruby/Client/Utils.rb'
19
- require 'ton-client-ruby/version'
7
+ require_relative './ton-client-ruby/Helpers/CommonHelpers.rb'
8
+ require_relative './ton-client-ruby/Binding/struct.rb'
9
+ require_relative './ton-client-ruby/Binding/binding.rb'
10
+ require_relative './ton-client-ruby/Client/Context.rb'
11
+ require_relative './ton-client-ruby/Client/Client.rb'
12
+ require_relative './ton-client-ruby/Client/Crypto.rb'
13
+ require_relative './ton-client-ruby/Client/Abi.rb'
14
+ require_relative './ton-client-ruby/Client/Boc.rb'
15
+ require_relative './ton-client-ruby/Client/Net.rb'
16
+ require_relative './ton-client-ruby/Client/Processing.rb'
17
+ require_relative './ton-client-ruby/Client/Tvm.rb'
18
+ require_relative './ton-client-ruby/Client/Utils.rb'
19
+ require_relative './ton-client-ruby/Client/Debot.rb'
20
+ require_relative './ton-client-ruby/version'
20
21
 
21
22
  module TonClient
22
23
 
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.7
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-25 00:00:00.000000000 Z
11
+ date: 2021-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi