Skip to content

Commit

Permalink
Merge pull request #385 from tonlabs/0.66.0-rc
Browse files Browse the repository at this point in the history
Version 0.66.0
  • Loading branch information
d3p authored Oct 20, 2023
2 parents a4b2924 + 7ffec53 commit 11bbffb
Show file tree
Hide file tree
Showing 20 changed files with 576 additions and 90 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file.

## [0.66.0] - 2023-10-18

### New

- Added fields: `BlockchainMessage { src_code_hash dst_code_hash }`, `BlockchainTransaction { code_hash }`,
`Message { src_code_hash dst_code_hash } `, `Transaction { code_hash }`.
- Added arguments: `blockchain.messages(src_code_hash dst_code_hash)`, `blockchain.transactions(code_hash)`.
- In `TCP_ADNL` request mode Q-Server uses TON LiteServer API as an account provider.

### Fixed

- Account provider JSON RPC terminated a process in case of request timeout.
- GraphQL queries with body more than 100KB was failed with `PayloadTooLargeError: request entity too large`.
The size of the body is increased up to 50MB.

## [0.65.4] - 2023-09-29

### New
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can configure Q Server with command line parameters and/or ENV variables:

```text
Option ENV Default Description
---------------------------------------------- ---------------------------------------------- -------------------------------------- --------------------------------------------------------------------------------------
---------------------------------------------- ---------------------------------------------- -------------------------------------- -------------------------------------------------------------------------------------------------------------------------------
--config Q_CONFIG Path to JSON configuration file
--host Q_HOST {ip} Listening address
--port Q_PORT 4000 Listening port
Expand Down Expand Up @@ -109,14 +109,20 @@ Option ENV
--block-bocs-s3-endpoint Q_BLOCK_BOCS_S3_ENDPOINT block-bocs S3 endpoint
--block-bocs-s3-region Q_BLOCK_BOCS_S3_REGION block-bocs S3 region
--block-bocs-s3-bucket Q_BLOCK_BOCS_S3_BUCKET everblocks block-bocs S3 bucket
--block-bocs-s3-num-buckets Q_BLOCK_BOCS_S3_NUM_BUCKETS 0 block-bocs S3 number of buckets (if specified and > 0, then bucket name will be equal to `{bucket}-{crc32(file) % numBuckets}`)
--block-bocs-s3-access-key Q_BLOCK_BOCS_S3_ACCESS_KEY block-bocs S3 access key
--block-bocs-s3-secret-key Q_BLOCK_BOCS_S3_SECRET_KEY block-bocs S3 secret key
--block-bocs-s3-timeout Q_BLOCK_BOCS_S3_TIMEOUT 300000 block-bocs S3 request timeout in millis
--block-bocs-pattern Q_BLOCK_BOCS_PATTERN block-bocs BOC retrieval url pattern. `{hash} will be replaced with BOC's hash
--block-bocs-arango-database Q_BLOCK_BOCS_ARANGO_DATABASE block-bocs Arango database URL
--block-bocs-arango-database Q_BLOCK_BOCS_ARANGO_DATABASE block-bocs Arango database
--block-bocs-arango-collection Q_BLOCK_BOCS_ARANGO_COLLECTION blocks block-bocs Arango collection
--accounts-evernode-rpc-endpoint Q_ACCOUNTS_EVERNODE_RPC_ENDPOINT Accounts Evernode RPC endpoint
--accounts-evernode-rpc-timeout Q_ACCOUNTS_EVERNODE_RPC_TIMEOUT 300000 Accounts Evernode RPC timeout in millis
--jaeger-endpoint Q_JAEGER_ENDPOINT Jaeger endpoint
--trace-service Q_TRACE_SERVICE Q Server Trace service name
--trace-tags Q_TRACE_TAGS Additional trace tags (comma separated name=value pairs)
--last-key-block-cache-enabled Q_LAST_KEY_BLOCK_CACHE_ENABLED true Last key block cache enabled
--last-key-block-cache-ttl-ms Q_LAST_KEY_BLOCK_CACHE_TTL_MS 300000 Last key block cache TTL in millis
--statsd-server Q_STATSD_SERVER StatsD server (host:port)
--statsd-tags Q_STATSD_TAGS Additional StatsD tags (comma separated name=value pairs)
--statsd-reset-interval Q_STATSD_RESET_INTERVAL 0 Interval between statsd reconnects.
Expand Down
57 changes: 48 additions & 9 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ton-q-server",
"version": "0.65.4",
"version": "0.66.0",
"description": "TON Q Server – realtime queries over TON blockchain.",
"main": "index.js",
"repository": "[email protected]:tonlabs/ton-q-server.git",
Expand Down Expand Up @@ -58,12 +58,13 @@
"md5": "^2.3.0",
"memjs": "1.3.0",
"node-fetch": "2.6.7",
"isomorphic-fetch": "^3.0.0",
"node-statsd": "0.1.1",
"opentracing": "0.14.4",
"subscriptions-transport-ws": "0.9.17",
"ton-core": "^0.48.0",
"ton-crypto": "^3.2.0",
"ton-lite-client": "^2.0.1",
"@ton/core": "^0.49.2",
"@ton/crypto": "3.2.0",
"ton-lite-client": "^2.1.0",
"js-yaml": "^4.1.0",
"ws": "7.4.6",
"crc": "^4.3.2"
Expand Down
7 changes: 5 additions & 2 deletions res/type-defs-blockchain/blockchain.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,12 @@ type BlockchainQuery {
workchain: Int

"Optional filter by min balance_delta (unoptimized, query could be dropped by timeout)"
min_balance_delta: String,
min_balance_delta: String
"Optional filter by max balance_delta (unoptimized, query could be dropped by timeout)"
max_balance_delta: String,
max_balance_delta: String

"Optional filter by code hash of the account before execution"
code_hash: String

"This field is mutually exclusive with 'last'"
first: Int
Expand Down
4 changes: 4 additions & 0 deletions res/type-defs-blockchain/message.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,8 @@ type BlockchainMessage implements Node {
value(format: BigIntFormat): String
"May or may not be present."
value_other: [OtherCurrency]
"Code hash of the transaction that has sent this message."
src_code_hash: String
"Code hash of the transaction that has received this message."
dst_code_hash: String
}
5 changes: 5 additions & 0 deletions res/type-defs-blockchain/transaction.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,9 @@ type BlockchainTransaction implements Node {
tt: String
"Workchain id of the account address (account_addr field)"
workchain_id: Int
"""
Code hash of the account before transaction execution.
If an account was not activated before execution then this field contains code hash after account execution.
"""
code_hash: String
}
Loading

0 comments on commit 11bbffb

Please sign in to comment.