634604d0b5
- fetches logs from all three price feeds in one query - assumes eth/usd price feed will be updated to include LogValue event - updates transformers to run separate from header sync
12 lines
401 B
SQL
12 lines
401 B
SQL
CREATE TABLE maker.price_feeds (
|
|
id SERIAL PRIMARY KEY,
|
|
block_number BIGINT NOT NULL,
|
|
header_id INTEGER NOT NULL,
|
|
medianizer_address bytea,
|
|
tx_idx INTEGER NOT NULL,
|
|
usd_value NUMERIC,
|
|
UNIQUE (header_id, medianizer_address, tx_idx),
|
|
CONSTRAINT headers_fk FOREIGN KEY (header_id)
|
|
REFERENCES headers (id)
|
|
ON DELETE CASCADE
|
|
); |