Skip to content

Commit

Permalink
Mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Dec 2, 2024
1 parent 2a83aa5 commit 2421491
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 31 deletions.
58 changes: 31 additions & 27 deletions bridge_indexer/dipdup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ datasources:
etherlink_node:
kind: evm.node
url: ${ETHERLINK_NODE_URL}
http:
ratelimit_rate: 1000
ratelimit_period: 60
ratelimit_sleep: 1

etherlink_subsquid:
kind: evm.subsquid
Expand All @@ -61,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:
Expand Down Expand Up @@ -166,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:
Expand Down
1 change: 0 additions & 1 deletion bridge_indexer/handlers/rollup_message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import base64
import threading

from datetime import datetime
Expand Down
6 changes: 3 additions & 3 deletions bridge_indexer/handlers/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2421491

Please sign in to comment.