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

Wyświetl plik

@ -1 +1 @@
0.0.8 0.0.9