Skip to content

Commit

Permalink
Update docs/proofs/version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Voronezhskii committed Mar 28, 2022
1 parent 3df41c3 commit 6fc4202
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = [ 'TON Labs LTD <[email protected]>' ]
edition = '2018'
name = 'api_derive'
version = '1.31.0'
version = '1.32.0'

[dependencies]
quote = '1.0'
Expand Down
2 changes: 1 addition & 1 deletion api/info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = [ 'TON Labs LTD <[email protected]>' ]
edition = '2018'
name = 'api_info'
version = '1.31.0'
version = '1.32.0'

[dependencies]
serde = '1.0.115'
Expand Down
2 changes: 1 addition & 1 deletion api/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = [ 'TON Labs LTD <[email protected]>' ]
edition = '2018'
name = 'api_test'
version = '1.31.0'
version = '1.32.0'

[dependencies]
serde = '1.0.115'
Expand Down
20 changes: 20 additions & 0 deletions docs/reference/types-and-methods/mod_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Provides information about library.

[NetworkConfig](#networkconfig)

[NetworkQueriesProtocol](#networkqueriesprotocol) – Network protocol used to perform GraphQL queries.

[CryptoConfig](#cryptoconfig) – Crypto config.

[AbiConfig](#abiconfig)
Expand Down Expand Up @@ -248,6 +250,7 @@ type NetworkConfig = {
latency_detection_interval?: number,
max_latency?: number,
query_timeout?: number,
queries_protocol?: NetworkQueriesProtocol,
access_key?: string
}
```
Expand Down Expand Up @@ -275,10 +278,27 @@ type NetworkConfig = {
<br>Must be specified in milliseconds. Default is 60000 (1 min).
- `query_timeout`?: _number_ – Default timeout for http requests.
<br>Is is used when no timeout specified for the request to limit the answer waiting time. If no answer received during the timeout requests ends with<br>error.<br><br>Must be specified in milliseconds. Default is 60000 (1 min).
- `queries_protocol`?: _[NetworkQueriesProtocol](mod_client.md#networkqueriesprotocol)_ – Queries protocol.
<br>`HTTP` or `WS`. <br>Default is `HTTP`.
- `access_key`?: _string_ – Access key to GraphQL API.
<br>At the moment is not used in production.
## NetworkQueriesProtocol
Network protocol used to perform GraphQL queries.
```ts
enum NetworkQueriesProtocol {
HTTP = "HTTP",
WS = "WS"
}
```
One of the following value:

- `HTTP = "HTTP"` – Each GraphQL query uses separate HTTP request.
- `WS = "WS"` – All GraphQL queries will be served using single web socket connection.


## CryptoConfig
Crypto config.

Expand Down
2 changes: 1 addition & 1 deletion ton_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'ton_client'
version = '1.31.0'
version = '1.32.0'
authors = [ 'TON Labs LTD <[email protected]>' ]
edition = '2018'
license = 'Apache-2.0'
Expand Down
Binary file modified ton_client/src/proofs/trusted_key_blocks.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion ton_sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'ton_sdk'
version = '1.31.0'
version = '1.32.0'
edition = '2018'
license = 'Apache-2.0'
authors = [ 'TON Labs LTD <[email protected]>' ]
Expand Down
2 changes: 1 addition & 1 deletion toncli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = 'Apache-2.0'
name = 'toncli'
readme = 'README.md'
repository = 'https://github.com/tonlabs/TON-SDK'
version = '1.31.0'
version = '1.32.0'

[dependencies]
base64 = '0.13.0'
Expand Down
32 changes: 31 additions & 1 deletion tools/api.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.31.0",
"version": "1.32.0",
"modules": [
{
"name": "client",
Expand Down Expand Up @@ -501,6 +501,16 @@
"summary": "Default timeout for http requests.",
"description": "Is is used when no timeout specified for the request to limit the answer waiting time. If no answer received during the timeout requests ends with\nerror.\n\nMust be specified in milliseconds. Default is 60000 (1 min)."
},
{
"name": "queries_protocol",
"type": "Optional",
"optional_inner": {
"type": "Ref",
"ref_name": "client.NetworkQueriesProtocol"
},
"summary": "Queries protocol.",
"description": "`HTTP` or `WS`. \nDefault is `HTTP`."
},
{
"name": "access_key",
"type": "Optional",
Expand All @@ -514,6 +524,26 @@
"summary": null,
"description": null
},
{
"name": "NetworkQueriesProtocol",
"type": "EnumOfConsts",
"enum_consts": [
{
"name": "HTTP",
"type": "None",
"summary": "Each GraphQL query uses separate HTTP request.",
"description": null
},
{
"name": "WS",
"type": "None",
"summary": "All GraphQL queries will be served using single web socket connection.",
"description": null
}
],
"summary": "Network protocol used to perform GraphQL queries.",
"description": null
},
{
"name": "CryptoConfig",
"type": "Struct",
Expand Down

0 comments on commit 6fc4202

Please sign in to comment.