Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #40 from covalenthq/develop
Browse files Browse the repository at this point in the history
Update moonbase (testnet) BRP contract address
  • Loading branch information
tsutsu authored Jul 6, 2023
2 parents 58e2020 + b784e81 commit a269524
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sql/proof_chain_mbase_result.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ session_started_events AS (
JOIN chain_moonbeam_moonbase_alpha.block_transactions trx
ON (trx.block_id = session_started.block_id AND trx.tx_offset = session_started.tx_offset)
WHERE
session_started.sender = '\xeFD84B6F1C04Ad9A7D666E21C9608a2ea2FE4B83'::bytea
session_started.sender = '\x06A38f70c8e245e1cfe1b7d5ACa1B7cd29380343'::bytea
AND session_started.topics @> ARRAY[
'\x8b1f889addbfa41db5227bae3b091bd5c8b9a9122f874dfe54ba2f75aabe1f4c'::bytea
]
Expand All @@ -28,7 +28,7 @@ result_reward_awarded_events AS (
JOIN chain_moonbeam_moonbase_alpha.block_transactions trx_1
ON (trx_1.block_id = fin.block_id AND trx_1.tx_offset = fin.tx_offset)
WHERE
fin.sender = '\xeFD84B6F1C04Ad9A7D666E21C9608a2ea2FE4B83'::bytea
fin.sender = '\x06A38f70c8e245e1cfe1b7d5ACa1B7cd29380343'::bytea
AND fin.topics @> ARRAY['\x93dcf9329a330cb95723152c05719560f2fbd50e215c542854b27acc80c9108d'::bytea]
AND trx_1.successful = TRUE
AND fin.block_id >= '1910104892088990000'::bigint
Expand All @@ -43,7 +43,7 @@ result_quorum_not_reached_events AS (
JOIN chain_moonbeam_moonbase_alpha.block_transactions trx_1
ON (trx_1.block_id = fin.block_id AND trx_1.tx_offset = fin.tx_offset)
WHERE
fin.sender = '\xeFD84B6F1C04Ad9A7D666E21C9608a2ea2FE4B83'::bytea
fin.sender = '\x06A38f70c8e245e1cfe1b7d5ACa1B7cd29380343'::bytea
AND fin.topics @> ARRAY['\x31d16d882c6405d327fa305ecf0d52b45154868e0828822533fd2547f4b21a75'::bytea]
AND trx_1.successful = TRUE
AND fin.block_id >= '1910104892088990000'::bigint
Expand All @@ -67,6 +67,6 @@ LEFT JOIN all_finalization_events afe ON (
sse.origin_chain_id = afe.origin_chain_id
AND sse.origin_chain_block_height = afe.origin_chain_block_height
)
WHERE sse.origin_chain_block_height > 17374020::numeric
WHERE sse.origin_chain_block_height > 17635725::numeric
ORDER BY sse.observer_chain_block_id ASC, sse.observer_chain_tx_offset ASC
;
4 changes: 2 additions & 2 deletions src/dbmanresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __main_loop(self):
# we are catching up. So we only need to grab what we need to attempt for finalizing
if self.chain_table == "chain_moonbeam_moonbase_alpha":
cur.execute(
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL AND origin_chain_block_height > 17388735;',
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL AND origin_chain_block_height > 17635725;',
(self.last_block_id,),
)
else:
Expand All @@ -103,7 +103,7 @@ def __main_loop(self):
# we need everything after last max block number
if self.chain_table == "chain_moonbeam_moonbase_alpha":
cur.execute(
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND origin_chain_block_height > 17388735;',
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND origin_chain_block_height > 17635725;',
(self.last_block_id,),
)
else:
Expand Down

0 comments on commit a269524

Please sign in to comment.