export declare const findCurrentEpoch = "\nSELECT\n MAX(no) AS epoch_no\nFROM epoch\n"; export declare const findFirstUpdateAfterBlock = "\nSELECT\n active_epoch_no\nFROM pool_update\nJOIN tx ON\n tx.id = registered_tx_id\nJOIN block ON\n block_id = block.id AND\n block_no > $2\nWHERE hash_id = $1\nORDER BY block_no DESC\nLIMIT 1\n"; export declare const findLastRetire = "\nSELECT\n block_no,\n retiring_epoch\nFROM pool_retire\nJOIN tx ON\n tx.id = announced_tx_id\nJOIN block ON\n block_id = block.id\nWHERE hash_id = $1\nORDER BY block_no DESC\nLIMIT 1\n"; export declare const findPools = "\nSELECT\n id,\n view\nFROM pool_hash\nLEFT JOIN blockfrost.pool_metric ON\n id = pool_hash_id\nWHERE\n COALESCE(cache_time, 0) < $1\n"; export declare const setPoolMetric = "\nINSERT INTO blockfrost.pool_metric\nVALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12)\nON CONFLICT (pool_hash_id)\nDO UPDATE SET\n last_reward_epoch = $2,\n cache_time = $3,\n blocks_created = $4,\n delegators = $5,\n active_stake = $6,\n live_stake = $7,\n live_pledge = $8,\n saturation = $9,\n reward_address = $10,\n extra = $11,\n status = $12\n"; //# sourceMappingURL=queries.d.ts.map