File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1919
2020from typing import Optional , TYPE_CHECKING
2121
22- from substrateinterface .exceptions import SubstrateRequestException
23-
2422if TYPE_CHECKING :
2523 from bittensor .core .synapse import Synapse
2624
2725
26+ class SubstrateRequestException (Exception ):
27+ pass
28+
29+
30+ class BlockNotFound (Exception ):
31+ pass
32+
33+
34+ class ExtrinsicNotFound (Exception ):
35+ pass
36+
37+
2838class ChainError (SubstrateRequestException ):
2939 """Base error for any chain related errors."""
3040
Original file line number Diff line number Diff line change 2222from scalecodec .base import ScaleBytes , ScaleType , RuntimeConfigurationObject
2323from scalecodec .type_registry import load_type_registry_preset
2424from scalecodec .types import GenericCall , GenericRuntimeCallDefinition
25- from substrateinterface .exceptions import (
26- SubstrateRequestException ,
27- ExtrinsicNotFound ,
28- BlockNotFound ,
29- )
3025from substrateinterface .storage import StorageKey
3126from websockets .asyncio .client import connect
3227from websockets .exceptions import ConnectionClosed
3328
29+ from bittensor .core .errors import (
30+ SubstrateRequestException ,
31+ ExtrinsicNotFound ,
32+ BlockNotFound ,
33+ )
3434from bittensor .utils import hex_to_bytes
3535from bittensor .utils .btlogging import logging
3636
You can’t perform that action at this time.
0 commit comments