Skip to content

Commit

Permalink
Fixing environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Jan 22, 2025
1 parent 29b7fc1 commit e930461
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ services:
condition: service_healthy
indexer-migrations:
condition: service_started
command: ["--network", "base", "--output", "postgres"]
command: ["--network", "base-mainnet", "--output", "postgres"]

indexer-migrations:
container_name: indexer-migrations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
CREATE SCHEMA IF NOT EXISTS base_indexer;
CREATE SCHEMA IF NOT EXISTS base_proxy;

CREATE TYPE base_indexer.method AS ENUM ('eth_call');
CREATE TYPE base_proxy.method AS ENUM ('eth_call');

CREATE TABLE base_indexer.json_rpc_cache(
CREATE TABLE base_proxy.json_rpc_cache(
chain_id BIGINT NOT NULL,
block_number BIGINT NOT NULL,
method base_indexer.method NOT NULL,
method base_proxy.method NOT NULL,
to_address TEXT NOT NULL,
input TEXT NOT NULL,
result TEXT NOT NULL
);

-- Indexes for common query patterns
CREATE INDEX idx_json_rpc_cache_block_number ON base_indexer.json_rpc_cache(block_number);
CREATE INDEX idx_json_rpc_cache_input ON base_indexer.json_rpc_cache(input);
CREATE INDEX idx_json_rpc_cache_method_input ON base_indexer.json_rpc_cache(method, input);
CREATE INDEX idx_json_rpc_cache_block_number ON base_proxy.json_rpc_cache(block_number);
CREATE INDEX idx_json_rpc_cache_input ON base_proxy.json_rpc_cache(input);
CREATE INDEX idx_json_rpc_cache_method_input ON base_proxy.json_rpc_cache(method, input);
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DROP TABLE base_indexer.histoflux_cursor;
DROP TABLE base_proxy.histoflux_cursor;

0 comments on commit e930461

Please sign in to comment.