Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the master copies version for pointing to prod #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions safe_transaction_service/history/indexers/erc20_events_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,14 @@ def _do_node_query(
)

if parameter_addresses:
return [
transfer_event
for transfer_event in transfer_events
if transfer_event["blockHash"]
!= transfer_event["transactionHash"] # CELO ERC20 indexing
]
return transfer_events

# Every ERC20/721 event is returned, we need to filter ourselves
addresses_set = set(addresses)
return [
transfer_event
for transfer_event in transfer_events
if transfer_event["blockHash"]
!= transfer_event["transactionHash"] # CELO ERC20 indexing
and (
transfer_event["args"]["to"] in addresses_set
or transfer_event["args"]["from"] in addresses_set
)
if transfer_event["args"]["to"] in addresses_set or transfer_event["args"]["from"] in addresses_set
]

def _process_decoded_element(self, decoded_element: EventData) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@


# Overwrite Keys for Master Copies and Proxy Factories for Ronin Testnet and Mainnet.
# Tuple should be address, block number, and version.
MASTER_COPIES[EthereumNetwork.PUBLICMINT_MAINNET] = [
("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 7938928, "1.3.0"),
("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 7938928, "1.3.0+L2"),
("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 7938928, "1.3.0"),
]

MASTER_COPIES[EthereumNetwork.EDGEWARE_MAINNET] = [
("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 807_225, "1.3.0"),
("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 807_225, "1.3.0+L2"),
("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 807_225, "1.3.0"),
]

Expand Down