ton-client-ruby 1.1.14 → 1.1.17

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: a7e868ce4eb16f47f2accf10dbc163388dfb6bdd597a4994d71b29496fd65a56
4
- data.tar.gz: a3c1c35385c3e0767edb3758da11ec522525bf741a5849985e73901b6e4b373f
3
+ metadata.gz: dff3071b7c8b4b15442ed96bf925af8d9ea1d841696425cb021a469bc35a76c0
4
+ data.tar.gz: 9101ccb3888fd96eb609ef84e0450c9e7e21d73d25be6b9362872f235e7eee34
5
5
  SHA512:
6
- metadata.gz: bd5c88d15df026c37a4b9861e99b02f6dea6cd73ecbaeed23ce4d2c2b5daf139db67eb2f0f35109165c3e0c1479b11dc955cafc91c4df851bc425bd1394b3b32
7
- data.tar.gz: 282357a123d7efc1acabba8e7a6b7a834e9d73149d1b55ad909346781becacd336e917d9c6afd8e25d4f131933af8860f020ac4f0ab8f8d220706befda6fe903
6
+ metadata.gz: 75e71095843b0e1177f6b4fe2126cfed87990850ebcc95b8582c102f9b249a0eb107690fb2cd35a13dafb11fc90e8c55e28644877742247b9c556cf960577041
7
+ data.tar.gz: be00cb1797f1a441da258b7804beabe0f60659af1418541bbb230bc598d85a4c1ef092c47a61e4b7948622d48b13b9e1f33dd7a0a5fa5a4e283e55aa04a7dad9
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.25.0",
2
+ "version": "1.26.1",
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",
@@ -6331,6 +6392,44 @@
6331
6392
  },
6332
6393
  "errors": null
6333
6394
  },
6395
+ {
6396
+ "name": "encode_initial_data",
6397
+ "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.",
6398
+ "description": "This function is analogue of `tvm.buildDataInit` function in Solidity.",
6399
+ "params": [
6400
+ {
6401
+ "name": "context",
6402
+ "type": "Generic",
6403
+ "generic_name": "Arc",
6404
+ "generic_args": [
6405
+ {
6406
+ "type": "Ref",
6407
+ "ref_name": "ClientContext"
6408
+ }
6409
+ ],
6410
+ "summary": null,
6411
+ "description": null
6412
+ },
6413
+ {
6414
+ "name": "params",
6415
+ "type": "Ref",
6416
+ "ref_name": "abi.ParamsOfEncodeInitialData",
6417
+ "summary": null,
6418
+ "description": null
6419
+ }
6420
+ ],
6421
+ "result": {
6422
+ "type": "Generic",
6423
+ "generic_name": "ClientResult",
6424
+ "generic_args": [
6425
+ {
6426
+ "type": "Ref",
6427
+ "ref_name": "abi.ResultOfEncodeInitialData"
6428
+ }
6429
+ ]
6430
+ },
6431
+ "errors": null
6432
+ },
6334
6433
  {
6335
6434
  "name": "decode_initial_data",
6336
6435
  "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.",
@@ -11635,6 +11734,13 @@
11635
11734
  "value": "812",
11636
11735
  "summary": null,
11637
11736
  "description": null
11737
+ },
11738
+ {
11739
+ "name": "DebotNoCode",
11740
+ "type": "Number",
11741
+ "value": "813",
11742
+ "summary": null,
11743
+ "description": null
11638
11744
  }
11639
11745
  ],
11640
11746
  "summary": null,
@@ -11798,6 +11904,12 @@
11798
11904
  },
11799
11905
  "summary": "Vector with IDs of DInterfaces used by DeBot.",
11800
11906
  "description": null
11907
+ },
11908
+ {
11909
+ "name": "dabiVersion",
11910
+ "type": "String",
11911
+ "summary": "ABI version (\"x.y\") supported by DeBot",
11912
+ "description": null
11801
11913
  }
11802
11914
  ],
11803
11915
  "summary": "[UNSTABLE](UNSTABLE.md) Describes DeBot metadata.",
@@ -12539,6 +12651,21 @@
12539
12651
  ],
12540
12652
  "summary": null,
12541
12653
  "description": null
12654
+ },
12655
+ {
12656
+ "name": "ParamsOfProofMessageData",
12657
+ "type": "Struct",
12658
+ "struct_fields": [
12659
+ {
12660
+ "name": "message",
12661
+ "type": "Ref",
12662
+ "ref_name": "Value",
12663
+ "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`.",
12664
+ "description": null
12665
+ }
12666
+ ],
12667
+ "summary": null,
12668
+ "description": null
12542
12669
  }
12543
12670
  ],
12544
12671
  "functions": [
@@ -12582,7 +12709,7 @@
12582
12709
  {
12583
12710
  "name": "proof_transaction_data",
12584
12711
  "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 transaction\nexists 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 (in this case it is required to provide at least `id` of transaction).\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\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\nFor more information about proofs checking, see description of `proof_block_data` function.",
12712
+ "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
12713
  "params": [
12587
12714
  {
12588
12715
  "name": "context",
@@ -12615,6 +12742,43 @@
12615
12742
  ]
12616
12743
  },
12617
12744
  "errors": null
12745
+ },
12746
+ {
12747
+ "name": "proof_message_data",
12748
+ "summary": "Proves that a given message's data, which is queried from TONOS API, can be trusted.",
12749
+ "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.",
12750
+ "params": [
12751
+ {
12752
+ "name": "context",
12753
+ "type": "Generic",
12754
+ "generic_name": "Arc",
12755
+ "generic_args": [
12756
+ {
12757
+ "type": "Ref",
12758
+ "ref_name": "ClientContext"
12759
+ }
12760
+ ],
12761
+ "summary": null,
12762
+ "description": null
12763
+ },
12764
+ {
12765
+ "name": "params",
12766
+ "type": "Ref",
12767
+ "ref_name": "proofs.ParamsOfProofMessageData",
12768
+ "summary": null,
12769
+ "description": null
12770
+ }
12771
+ ],
12772
+ "result": {
12773
+ "type": "Generic",
12774
+ "generic_name": "ClientResult",
12775
+ "generic_args": [
12776
+ {
12777
+ "type": "None"
12778
+ }
12779
+ ]
12780
+ },
12781
+ "errors": null
12618
12782
  }
12619
12783
  ]
12620
12784
  }
@@ -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
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  module TonClient
2
- VERSION = "1.1.14"
2
+ VERSION = "1.1.17"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ton-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.14
4
+ version: 1.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2021-12-09 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.1.6
160
+ rubygems_version: 3.2.33
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: This is gem ton-client-ruby