From 0791d497d78fdf8df2d45301f021b1bad6ad2208 Mon Sep 17 00:00:00 2001 From: varasev <33550681+varasev@users.noreply.github.com> Date: Thu, 15 Dec 2022 15:11:39 +0300 Subject: [PATCH 1/4] Update env-variables.md Relates to https://github.com/blockscout/blockscout/pull/6582 --- for-developers/information-and-settings/env-variables.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/for-developers/information-and-settings/env-variables.md b/for-developers/information-and-settings/env-variables.md index 800c1d9e..752cf804 100644 --- a/for-developers/information-and-settings/env-variables.md +++ b/for-developers/information-and-settings/env-variables.md @@ -141,6 +141,10 @@ This table is horizontally scrollable, version information is located in the las | `INDEXER_RECEIPTS_CONCURRENCY` | | Concurrency for transaction receipts fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 10 | master | | `INDEXER_COIN_BALANCES_BATCH_SIZE` | | Batch size for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 500 | master | | `INDEXER_COIN_BALANCES_CONCURRENCY` | | Concurrency for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 4 | master | +| `INDEXER_TX_ACTIONS_MAX_TOKEN_CACHE_SIZE` | | Maximum number of items in an internal cache of tx actions indexing process (to limit memory consumption). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | 100000 | master | +| `INDEXER_TX_ACTIONS_REINDEX_FIRST_BLOCK` | | The first block of a block range for historical indexing or reindexing of tx actions. If not defined, indexing only runs in realtime. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | +| `INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK` | | The last block of a block range for historical indexing or reindexing of tx actions. If not defined, indexing only runs in realtime. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | +| `INDEXER_TX_ACTIONS_REINDEX_PROTOCOLS` | | Comma-separated names of protocols which should be indexed or reindexed on historical blocks defined by the range. Example: `uniswap_v3,zkbob` - only these protocols will be indexed or reindexed for the defined block range. If the value is empty string (or not defined), all supported protocols will be indexed/reindexed. This option is not applicable to `realtime` and `catchup` fetchers (it always indexes all supported protocols). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | ### Exchange rates management From b5b5d20885496e2c18030d14426f0f529cf9b9f5 Mon Sep 17 00:00:00 2001 From: varasev <33550681+varasev@users.noreply.github.com> Date: Sun, 22 Jan 2023 16:10:13 +0300 Subject: [PATCH 2/4] Update env-variables.md --- for-developers/information-and-settings/env-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/for-developers/information-and-settings/env-variables.md b/for-developers/information-and-settings/env-variables.md index 752cf804..8bbbbe51 100644 --- a/for-developers/information-and-settings/env-variables.md +++ b/for-developers/information-and-settings/env-variables.md @@ -142,8 +142,8 @@ This table is horizontally scrollable, version information is located in the las | `INDEXER_COIN_BALANCES_BATCH_SIZE` | | Batch size for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 500 | master | | `INDEXER_COIN_BALANCES_CONCURRENCY` | | Concurrency for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 4 | master | | `INDEXER_TX_ACTIONS_MAX_TOKEN_CACHE_SIZE` | | Maximum number of items in an internal cache of tx actions indexing process (to limit memory consumption). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | 100000 | master | -| `INDEXER_TX_ACTIONS_REINDEX_FIRST_BLOCK` | | The first block of a block range for historical indexing or reindexing of tx actions. If not defined, indexing only runs in realtime. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | -| `INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK` | | The last block of a block range for historical indexing or reindexing of tx actions. If not defined, indexing only runs in realtime. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | +| `INDEXER_TX_ACTIONS_REINDEX_FIRST_BLOCK` | | The first block of a block range for historical indexing or reindexing of tx actions. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | +| `INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK` | | The last block of a block range for historical indexing or reindexing of tx actions. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | | `INDEXER_TX_ACTIONS_REINDEX_PROTOCOLS` | | Comma-separated names of protocols which should be indexed or reindexed on historical blocks defined by the range. Example: `uniswap_v3,zkbob` - only these protocols will be indexed or reindexed for the defined block range. If the value is empty string (or not defined), all supported protocols will be indexed/reindexed. This option is not applicable to `realtime` and `catchup` fetchers (it always indexes all supported protocols). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | ### Exchange rates management From 2b7b456c55274bbef777e01484e3296e31819a19 Mon Sep 17 00:00:00 2001 From: varasev <33550681+varasev@users.noreply.github.com> Date: Mon, 23 Jan 2023 18:27:08 +0300 Subject: [PATCH 3/4] Update sharelock.md --- for-developers/information-and-settings/sharelock.md | 1 + 1 file changed, 1 insertion(+) diff --git a/for-developers/information-and-settings/sharelock.md b/for-developers/information-and-settings/sharelock.md index fb3b4f3d..79a1c6ca 100644 --- a/for-developers/information-and-settings/sharelock.md +++ b/for-developers/information-and-settings/sharelock.md @@ -115,6 +115,7 @@ Note that this should always be enforced because as long as there is one DB tran | Explorer.Chain.InternalTransaction | internal\_transactions | \[asc: :transaction\_hash, asc: :index\] | | Explorer.Chain.Token | tokens | asc: :contract\_address\_hash | | Explorer.Chain.TokenTransfer | token\_transfers | \[asc: :transaction\_hash, asc: :log\_index\] | +| Explorer.Chain.TransactionAction | transaction\_actions | \[asc: :hash, asc: :log\_index\] | | Explorer.Chain.Address.TokenBalance | address\_token\_balances | \[asc: :address\_hash, asc: :token\_contract\_address\_hash, asc: :block\_number\] | | Explorer.Chain.Address.CurrentTokenBalance | address\_current\_token\_balances | \[asc: :address\_hash, asc: :token\_contract\_address\_hash\] | | Explorer.Chain.StakingPool | staking\_pools | :staking\_address\_hash | From a9f808a9b1212809120ce00e185d52cfe88b06c1 Mon Sep 17 00:00:00 2001 From: varasev <33550681+varasev@users.noreply.github.com> Date: Tue, 31 Jan 2023 20:52:58 +0300 Subject: [PATCH 4/4] Update env-variables.md --- for-developers/information-and-settings/env-variables.md | 1 + 1 file changed, 1 insertion(+) diff --git a/for-developers/information-and-settings/env-variables.md b/for-developers/information-and-settings/env-variables.md index fc678572..57d38f27 100644 --- a/for-developers/information-and-settings/env-variables.md +++ b/for-developers/information-and-settings/env-variables.md @@ -141,6 +141,7 @@ This table is horizontally scrollable, version information is located in the las | `INDEXER_RECEIPTS_CONCURRENCY` | | Concurrency for transaction receipts fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 10 | v5.0.0+ | | `INDEXER_COIN_BALANCES_BATCH_SIZE` | | Batch size for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 500 | v5.0.0+ | | `INDEXER_COIN_BALANCES_CONCURRENCY` | | Concurrency for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 4 | v5.0.0+ | +| `INDEXER_TX_ACTIONS_ENABLE` | | If `true`, transaction action indexer is active. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | false | master | | `INDEXER_TX_ACTIONS_MAX_TOKEN_CACHE_SIZE` | | Maximum number of items in an internal cache of tx actions indexing process (to limit memory consumption). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | 100000 | master | | `INDEXER_TX_ACTIONS_REINDEX_FIRST_BLOCK` | | The first block of a block range for historical indexing or reindexing of tx actions. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master | | `INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK` | | The last block of a block range for historical indexing or reindexing of tx actions. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master |