Merge pull request #1150 from moonstream-to/fix-types

Delete unrelated chain from v2.
pull/1154/head types/python/v0.0.9
Andrey Dolgolev 2024-12-18 16:51:18 +02:00 zatwierdzone przez GitHub
commit 5948335074
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 3 dodań i 13 usunięć

Wyświetl plik

@ -20,8 +20,6 @@ from moonstreamdb.models import (
AvalancheFujiTransaction,
AvalancheLabel,
AvalancheTransaction,
B3Block,
B3SepoliaBlock,
BlastBlock,
BlastLabel,
BlastSepoliaBlock,
@ -164,9 +162,7 @@ def get_block_model(
BlastSepoliaBlock,
ProofOfPlayApexBlock,
MantleBlock,
MantleSepoliaBlock,
B3Block,
B3SepoliaBlock,
MantleSepoliaBlock
]
]:
"""
@ -194,9 +190,7 @@ def get_block_model(
BlastSepoliaBlock,
ProofOfPlayApexBlock,
MantleBlock,
MantleSepoliaBlock,
B3Block,
B3SepoliaBlock,
MantleSepoliaBlock
]
]
if blockchain_type == AvailableBlockchainType.ETHEREUM:
@ -241,10 +235,6 @@ def get_block_model(
block_model = MantleBlock
elif blockchain_type == AvailableBlockchainType.MANTLE_SEPOLIA:
block_model = MantleSepoliaBlock
elif blockchain_type == AvailableBlockchainType.B3:
block_model = B3Block
elif blockchain_type == AvailableBlockchainType.B3_SEPOLIA:
block_model = B3SepoliaBlock
else:
raise Exception("Unsupported blockchain type provided")

Wyświetl plik

@ -1 +1 @@
0.0.8
0.0.9