diff --git a/moonstreamdb-v3/moonstreamdbv3/models.py b/moonstreamdb-v3/moonstreamdbv3/models.py index 781c887f..99a3f3c5 100644 --- a/moonstreamdb-v3/moonstreamdbv3/models.py +++ b/moonstreamdb-v3/moonstreamdbv3/models.py @@ -148,6 +148,19 @@ class EthereumLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_ethereum_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_ethereum_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -180,6 +193,19 @@ class SepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -212,6 +238,19 @@ class PolygonLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_polygon_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_polygon_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -244,6 +283,19 @@ class MumbaiLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_mumbai_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_mumbai_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -276,6 +328,19 @@ class AmoyLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_amoy_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_amoy_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -308,6 +373,19 @@ class XDaiLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_xdai_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_xdai_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -340,6 +418,19 @@ class ZkSyncEraLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_zksync_era_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_zksync_era_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -372,6 +463,19 @@ class ZkSyncEraSepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_zksync_era_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_zksync_era_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -404,6 +508,19 @@ class BaseLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_base_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_base_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -436,6 +553,19 @@ class ArbitrumNovaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_arbitrum_nova_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_arbitrum_nova_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -468,6 +598,19 @@ class ArbitrumOneLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_arbitrum_one_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_arbitrum_one_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -500,6 +643,19 @@ class ArbitrumSepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_arbitrum_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_arbitrum_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -532,6 +688,19 @@ class Game7OrbitArbitrumSepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_g7o_arbitrum_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_g7o_arbitrum_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -564,6 +733,19 @@ class XaiLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_xai_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_xai_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -596,6 +778,19 @@ class XaiSepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_xai_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_xai_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -628,6 +823,19 @@ class AvalancheLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_avalanche_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_avalanche_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -660,6 +868,19 @@ class AvalancheFujiLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_avalanche_fuji_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_avalanche_fuji_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -692,6 +913,19 @@ class BlastLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_blast_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_blast_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -724,6 +958,19 @@ class BlastSepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_blast_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_blast_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -756,6 +1003,19 @@ class ProofOfPlayApexLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_proofofplay_apex_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_proofofplay_apex_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -788,6 +1048,19 @@ class StarknetLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_starknet_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_starknet_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -820,6 +1093,19 @@ class StarknetSepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_starknet_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_starknet_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -852,6 +1138,19 @@ class MantleLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_mantle_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_mantle_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) @@ -884,4 +1183,17 @@ class MantleSepoliaLabel(EvmBasedLabel): # type: ignore unique=True, postgresql_where=text("label='seer' and label_type='event'"), ), + Index( + "uk_mantle_sepolia_labels_tx_hash_tx_call_raw", + "transaction_hash", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='tx_call'"), + ), + Index( + "uk_mantle_sepolia_labels_tx_hash_log_idx_evt_raw", + "transaction_hash", + "log_index", + unique=True, + postgresql_where=text("label='seer-raw' and label_type='event'"), + ), ) diff --git a/moonstreamdb-v3/moonstreamdbv3/version.txt b/moonstreamdb-v3/moonstreamdbv3/version.txt index 43b29618..9789c4cc 100644 --- a/moonstreamdb-v3/moonstreamdbv3/version.txt +++ b/moonstreamdb-v3/moonstreamdbv3/version.txt @@ -1 +1 @@ -0.0.13 +0.0.14