From 19b1d9148027b375a04e49fed95f301b2e252fb4 Mon Sep 17 00:00:00 2001 From: Igor Sereda Date: Fri, 15 Nov 2024 16:09:11 +0300 Subject: [PATCH] Mainnet --- bridge_indexer/dipdup.yaml | 54 +++++++++++++++---------------- bridge_indexer/handlers/ticket.py | 6 ++-- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/bridge_indexer/dipdup.yaml b/bridge_indexer/dipdup.yaml index e5fd34f..20f5ef0 100644 --- a/bridge_indexer/dipdup.yaml +++ b/bridge_indexer/dipdup.yaml @@ -65,18 +65,18 @@ contracts: address: '0x0000000000000000000000000000000000000000' typename: kernel_native - l2_tzbtc_token: - kind: evm - address: 0x87dcbf128677ba36e79d47daf4eb4e51610e0150 - typename: l2_token - l2_sirs_token: - kind: evm - address: 0xcb5d40c6b1bdf5cd51b3801351b0a68d101a561b - typename: l2_token - l2_usdt_token: - kind: evm - address: 0x8554cd57c0c3e5ab9d1782c9063279fa9bfa4680 - typename: l2_token +# l2_tzbtc_token: +# kind: evm +# address: 0x87dcbf128677ba36e79d47daf4eb4e51610e0150 +# typename: l2_token +# l2_sirs_token: +# kind: evm +# address: 0xcb5d40c6b1bdf5cd51b3801351b0a68d101a561b +# typename: l2_token +# l2_usdt_token: +# kind: evm +# address: 0x8554cd57c0c3e5ab9d1782c9063279fa9bfa4680 +# typename: l2_token indexes: @@ -170,21 +170,21 @@ indexes: destination: tezos_smart_rollup - etherlink_token_balance_update_events: - kind: evm.events - datasources: - - etherlink_subsquid - - etherlink_node - handlers: - - callback: etherlink.on_transfer - contract: l2_tzbtc_token - name: Transfer - - callback: etherlink.on_transfer - contract: l2_sirs_token - name: Transfer - - callback: etherlink.on_transfer - contract: l2_usdt_token - name: Transfer +# etherlink_token_balance_update_events: +# kind: evm.events +# datasources: +# - etherlink_subsquid +# - etherlink_node +# handlers: +# - callback: etherlink.on_transfer +# contract: l2_tzbtc_token +# name: Transfer +# - callback: etherlink.on_transfer +# contract: l2_sirs_token +# name: Transfer +# - callback: etherlink.on_transfer +# contract: l2_usdt_token +# name: Transfer advanced: diff --git a/bridge_indexer/handlers/ticket.py b/bridge_indexer/handlers/ticket.py index 9271f2d..e8bbcb6 100644 --- a/bridge_indexer/handlers/ticket.py +++ b/bridge_indexer/handlers/ticket.py @@ -36,9 +36,9 @@ async def register_fa_tickets(self): ) first_levels.append(ticket_data['firstLevel']) - from bridge_indexer.handlers.rollup_message import RollupMessageIndex - - RollupMessageIndex.first_ticket_level = min(first_levels) + if first_levels: + from bridge_indexer.handlers.rollup_message import RollupMessageIndex + RollupMessageIndex.first_ticket_level = min(first_levels) async def fetch_ticket(self, ticketer_address, ticket_content: TicketContent): ticket_hash = self.get_ticket_hash(ticketer_address, ticket_content)