From 7d4409fdf919f71283cf11fdc83f26ae6c4b03ae Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Fri, 27 Feb 2026 21:17:09 +0300 Subject: [PATCH] fix: fix docker builds and runs --- .../indexer/indexer_config.json | 153 +++++++++++++++++- indexer/service/docker-entrypoint.sh | 2 +- indexer/service/rpc/Cargo.toml | 2 +- 3 files changed, 153 insertions(+), 4 deletions(-) diff --git a/configs/docker-all-in-one/indexer/indexer_config.json b/configs/docker-all-in-one/indexer/indexer_config.json index 4c4fe085..610429fb 100644 --- a/configs/docker-all-in-one/indexer/indexer_config.json +++ b/configs/docker-all-in-one/indexer/indexer_config.json @@ -1,5 +1,6 @@ { - "resubscribe_interval": "1s", + "home": "./indexer/service", + "consensus_info_polling_interval": "60s", "bedrock_client_config": { "addr": "http://logos-blockchain-node-0:18080", "backoff": { @@ -7,5 +8,153 @@ "max_retries": 5 } }, - "channel_id": "0101010101010101010101010101010101010101010101010101010101010101" + "channel_id": "0101010101010101010101010101010101010101010101010101010101010101", + "initial_accounts": [ + { + "account_id": "BLgCRDXYdQPMMWVHYRFGQZbgeHx9frkipa8GtpG2Syqy", + "balance": 10000 + }, + { + "account_id": "Gj1mJy5W7J5pfmLRujmQaLfLMWidNxQ6uwnhb666ZwHw", + "balance": 20000 + } + ], + "initial_commitments": [ + { + "npk": [ + 63, + 202, + 178, + 231, + 183, + 82, + 237, + 212, + 216, + 221, + 215, + 255, + 153, + 101, + 177, + 161, + 254, + 210, + 128, + 122, + 54, + 190, + 230, + 151, + 183, + 64, + 225, + 229, + 113, + 1, + 228, + 97 + ], + "account": { + "program_owner": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "balance": 10000, + "data": [], + "nonce": 0 + } + }, + { + "npk": [ + 192, + 251, + 166, + 243, + 167, + 236, + 84, + 249, + 35, + 136, + 130, + 172, + 219, + 225, + 161, + 139, + 229, + 89, + 243, + 125, + 194, + 213, + 209, + 30, + 23, + 174, + 100, + 244, + 124, + 74, + 140, + 47 + ], + "account": { + "program_owner": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "balance": 20000, + "data": [], + "nonce": 0 + } + } + ], + "signing_key": [ + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37, + 37 + ] } diff --git a/indexer/service/docker-entrypoint.sh b/indexer/service/docker-entrypoint.sh index d9408a05..49a5f891 100644 --- a/indexer/service/docker-entrypoint.sh +++ b/indexer/service/docker-entrypoint.sh @@ -5,7 +5,7 @@ set -e -CONFIG="/etc/indexer_service/indexer_service.json" +CONFIG="/etc/indexer_service/indexer_config.json" # Check config file exists if [ ! -f "$CONFIG" ]; then diff --git a/indexer/service/rpc/Cargo.toml b/indexer/service/rpc/Cargo.toml index b2194882..0fa72635 100644 --- a/indexer/service/rpc/Cargo.toml +++ b/indexer/service/rpc/Cargo.toml @@ -5,7 +5,7 @@ edition = "2024" license = { workspace = true } [dependencies] -indexer_service_protocol = { workspace = true, features = ["convert"] } +indexer_service_protocol.workspace = true jsonrpsee = { workspace = true, features = ["macros"] } serde_json.workspace = true