diff --git a/Dockerfile.sink b/Dockerfile.sink index 8e2313e..5ee3138 100644 --- a/Dockerfile.sink +++ b/Dockerfile.sink @@ -50,7 +50,7 @@ ENV SUBSTREAMS_ENDPOINTS_CONFIG_TRON="mainnet.tron.streamingfast.io:443" ENV ON_MODULE_HASH_MISMATCH="warn" # Create entrypoint script - dynamically find the .spkg file -RUN printf '#!/bin/bash\nset -e\n\nSPKG=$(ls /app/request-network-tron-*.spkg 2>/dev/null | head -1)\nif [ -z "$SPKG" ]; then\n echo "ERROR: No .spkg file found in /app/"\n exit 1\nfi\necho "Using package: $SPKG"\n\n# Setup the database schema first\necho "Setting up database schema..."\nsubstreams-sink-sql setup "$DSN" "$SPKG" || true\n\n# Run the sink\necho "Starting sink..."\nexec substreams-sink-sql run --on-module-hash-mismatch=${ON_MODULE_HASH_MISMATCH:-warn} "$DSN" "$SPKG"\n' > /entrypoint.sh && \ +RUN printf '#!/bin/bash\nset -e\n\nSPKG=$(ls /app/request-network-tron-*.spkg 2>/dev/null | head -1)\nif [ -z "$SPKG" ]; then\n echo "ERROR: No .spkg file found in /app/"\n exit 1\nfi\necho "Using package: $SPKG"\n\n# Setup the database schema first\necho "Setting up database schema..."\nsubstreams-sink-sql setup "$DSN" "$SPKG" || true\n\n# Run the sink\necho "Starting sink..."\nexec substreams-sink-sql run --on-module-hash-mistmatch=${ON_MODULE_HASH_MISMATCH:-warn} "$DSN" "$SPKG"\n' > /entrypoint.sh && \ chmod +x /entrypoint.sh # Health check diff --git a/tron/Cargo.lock b/tron/Cargo.lock index 6f80cd4..cc36d74 100644 --- a/tron/Cargo.lock +++ b/tron/Cargo.lock @@ -476,7 +476,7 @@ checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c" [[package]] name = "request-network-tron" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "bs58", diff --git a/tron/Cargo.toml b/tron/Cargo.toml index 4b89e20..9a6b9a2 100644 --- a/tron/Cargo.toml +++ b/tron/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "request-network-tron" -version = "0.1.0" +version = "0.1.1" edition = "2021" repository = "https://github.com/RequestNetwork/payments-substream" license = "MIT" diff --git a/tron/substreams.yaml b/tron/substreams.yaml index 5cd9c56..4310059 100644 --- a/tron/substreams.yaml +++ b/tron/substreams.yaml @@ -1,7 +1,7 @@ specVersion: v0.1.0 package: name: request_network_tron - version: v0.1.0 + version: v0.1.1 url: https://github.com/RequestNetwork/payments-substream doc: | Request Network TRON Substreams module for indexing ERC20FeeProxy payment events.