@@ -64,7 +64,7 @@ CREATE FUNCTION public.check_block_order() RETURNS trigger
6464 NEW .parent_blockhash <> (SELECT blockhash FROM eth_blocks WHERE block_number = NEW .block_number - 1 ) THEN
6565 RAISE EXCEPTION ' Parent block hash does not match the parent' ' s block hash' ;
6666 END IF;
67-
67+
6868 RETURN NEW;
6969 END;
7070 $$;
@@ -603,6 +603,13 @@ CREATE UNIQUE INDEX idx_on_block_number_transaction_index_transfer_inde_8090d24b
603603CREATE UNIQUE INDEX idx_on_block_number_transaction_index_transfer_inde_fc9ee59957 ON public .ethscription_transfers USING btree (block_number, transaction_index, transfer_index);
604604
605605
606+ --
607+ -- Name: idx_on_current_owner_previous_owner_7bb4bbf3cf; Type: INDEX; Schema: public; Owner: -
608+ --
609+
610+ CREATE INDEX idx_on_current_owner_previous_owner_7bb4bbf3cf ON public .ethscription_ownership_versions USING btree (current_owner, previous_owner);
611+
612+
606613--
607614-- Name: idx_on_ethscription_transaction_hash_block_number_t_a807d2b571; Type: INDEX; Schema: public; Owner: -
608615--
@@ -673,6 +680,20 @@ CREATE INDEX index_eth_blocks_on_imported_at_and_block_number ON public.eth_bloc
673680CREATE UNIQUE INDEX index_eth_blocks_on_parent_blockhash ON public .eth_blocks USING btree (parent_blockhash);
674681
675682
683+ --
684+ -- Name: index_eth_blocks_on_parent_state_hash; Type: INDEX; Schema: public; Owner: -
685+ --
686+
687+ CREATE UNIQUE INDEX index_eth_blocks_on_parent_state_hash ON public .eth_blocks USING btree (parent_state_hash);
688+
689+
690+ --
691+ -- Name: index_eth_blocks_on_state_hash; Type: INDEX; Schema: public; Owner: -
692+ --
693+
694+ CREATE UNIQUE INDEX index_eth_blocks_on_state_hash ON public .eth_blocks USING btree (state_hash);
695+
696+
676697--
677698-- Name: index_eth_blocks_on_timestamp; Type: INDEX; Schema: public; Owner: -
678699--
@@ -694,13 +715,27 @@ CREATE INDEX index_eth_transactions_on_block_number ON public.eth_transactions U
694715CREATE UNIQUE INDEX index_eth_transactions_on_block_number_and_transaction_index ON public .eth_transactions USING btree (block_number, transaction_index);
695716
696717
718+ --
719+ -- Name: index_eth_transactions_on_block_timestamp; Type: INDEX; Schema: public; Owner: -
720+ --
721+
722+ CREATE INDEX index_eth_transactions_on_block_timestamp ON public .eth_transactions USING btree (block_timestamp);
723+
724+
697725--
698726-- Name: index_eth_transactions_on_from_address; Type: INDEX; Schema: public; Owner: -
699727--
700728
701729CREATE INDEX index_eth_transactions_on_from_address ON public .eth_transactions USING btree (from_address);
702730
703731
732+ --
733+ -- Name: index_eth_transactions_on_logs; Type: INDEX; Schema: public; Owner: -
734+ --
735+
736+ CREATE INDEX index_eth_transactions_on_logs ON public .eth_transactions USING gin (logs);
737+
738+
704739--
705740-- Name: index_eth_transactions_on_status; Type: INDEX; Schema: public; Owner: -
706741--
@@ -729,6 +764,20 @@ CREATE UNIQUE INDEX index_eth_transactions_on_transaction_hash ON public.eth_tra
729764CREATE INDEX index_ethscription_ownership_versions_on_block_number ON public .ethscription_ownership_versions USING btree (block_number);
730765
731766
767+ --
768+ -- Name: index_ethscription_ownership_versions_on_current_owner; Type: INDEX; Schema: public; Owner: -
769+ --
770+
771+ CREATE INDEX index_ethscription_ownership_versions_on_current_owner ON public .ethscription_ownership_versions USING btree (current_owner);
772+
773+
774+ --
775+ -- Name: index_ethscription_ownership_versions_on_previous_owner; Type: INDEX; Schema: public; Owner: -
776+ --
777+
778+ CREATE INDEX index_ethscription_ownership_versions_on_previous_owner ON public .ethscription_ownership_versions USING btree (previous_owner);
779+
780+
732781--
733782-- Name: index_ethscription_ownership_versions_on_transaction_hash; Type: INDEX; Schema: public; Owner: -
734783--
@@ -743,6 +792,13 @@ CREATE INDEX index_ethscription_ownership_versions_on_transaction_hash ON public
743792CREATE INDEX index_ethscription_transfers_on_block_number ON public .ethscription_transfers USING btree (block_number);
744793
745794
795+ --
796+ -- Name: index_ethscription_transfers_on_ethscription_transaction_hash; Type: INDEX; Schema: public; Owner: -
797+ --
798+
799+ CREATE INDEX index_ethscription_transfers_on_ethscription_transaction_hash ON public .ethscription_transfers USING btree (ethscription_transaction_hash);
800+
801+
746802--
747803-- Name: index_ethscription_transfers_on_from_address; Type: INDEX; Schema: public; Owner: -
748804--
0 commit comments