Skip to content

Commit 20dfe95

Browse files
committed
Fix chain id of Golem Base
Golem Base actions have been tested to work properly with chain id 1337
1 parent 10a209d commit 20dfe95

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

apps/indexer/lib/indexer/transform/transaction_actions.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ defmodule Indexer.Transform.TransactionActions do
2020
@polygon 137
2121
@base_mainnet 8453
2222
@base_goerli 84531
23-
@golembase 4919
23+
# TODO: Figure out the correct Golem Base chain ID.
24+
@golembase 1337
2425
# @gnosis 100
2526

2627
@uniswap_v3_factory_abi [
@@ -494,6 +495,7 @@ defmodule Indexer.Transform.TransactionActions do
494495
end
495496

496497
defp parse_golembase(logs, actions, protocols_to_rewrite, chain_id) do
498+
Logger.info(["GOLEMBASE Transaction action: ", inspect(actions), " chain_id: ", to_string(chain_id)," expected: ", to_string(@golembase)])
497499
if chain_id == @golembase and
498500
(is_nil(protocols_to_rewrite) or Enum.empty?(protocols_to_rewrite) or
499501
Enum.member?(protocols_to_rewrite, "golembase")) do

docker-compose/envs/common-blockscout.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ HEART_BEAT_TIMEOUT=30
106106
RELEASE_LINK=
107107
# BLOCK_TRANSFORMER=base
108108
# BLOCK_RANGES=
109-
FIRST_BLOCK=1
109+
# FIRST_BLOCK=1
110110
# LAST_BLOCK=
111111
# TRACE_BLOCK_RANGES=
112112
# TRACE_FIRST_BLOCK=
@@ -221,11 +221,11 @@ API_V1_WRITE_METHODS_DISABLED=false
221221
# INDEXER_TOKEN_BALANCES_CONCURRENCY=
222222
# INDEXER_TOKEN_BALANCES_MAX_REFETCH_INTERVAL=
223223
# INDEXER_TOKEN_BALANCES_EXPONENTIAL_TIMEOUT_COEFF=
224-
# INDEXER_TX_ACTIONS_ENABLE=
224+
INDEXER_TX_ACTIONS_ENABLE=true
225225
# INDEXER_TX_ACTIONS_MAX_TOKEN_CACHE_SIZE=
226226
# INDEXER_TX_ACTIONS_REINDEX_FIRST_BLOCK=
227227
# INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK=
228-
# INDEXER_TX_ACTIONS_REINDEX_PROTOCOLS=
228+
INDEXER_TX_ACTIONS_REINDEX_PROTOCOLS=golembase
229229
# INDEXER_TX_ACTIONS_AAVE_V3_POOL_CONTRACT=
230230
# INDEXER_POLYGON_EDGE_L1_RPC=
231231
# INDEXER_POLYGON_EDGE_L1_EXIT_HELPER_CONTRACT=
@@ -385,7 +385,7 @@ COIN_BALANCE_HISTORY_DAYS=90
385385
# ADDRESSES_BLACKLIST_RETRY_INTERVAL=
386386
# ADDRESSES_BLACKLIST_PROVIDER=
387387
# CHAIN_ID=
388-
CHAIN_ID=1337
388+
CHAIN_ID=4919
389389
# HIDE_SCAM_ADDRESSES=
390390
# RE_CAPTCHA_SECRET_KEY=
391391
# RE_CAPTCHA_V3_SECRET_KEY=

docker-compose/golembase.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ services:
4040
dockerfile: ./docker/Dockerfile
4141
args:
4242
RELEASE_VERSION: 8.1.0
43+
pull_policy: build
4344
volumes:
4445
- logs:/app/logs/
4546
- dets:/app/dets/
@@ -61,6 +62,7 @@ services:
6162
file: ./services/frontend.yml
6263
service: frontend
6364
build: ../../blockscout-fe
65+
pull_policy: build
6466

6567
stats-db-init:
6668
extends:

0 commit comments

Comments
 (0)