kopia lustrzana https://github.com/bugout-dev/moonstream
Merge pull request #1150 from moonstream-to/fix-types
Delete unrelated chain from v2.pull/1154/head types/python/v0.0.9
commit
5948335074
|
@ -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")
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.0.8
|
0.0.9
|
||||||
|
|
Ładowanie…
Reference in New Issue