[refactor] Move blockchain interaction methods out of rpc lib (#4)
parent
c137b125d9
commit
b1118b7030
@ -1,17 +1,17 @@ |
|||||||
from .request import ( |
from .rpc.request import ( |
||||||
rpc_request |
rpc_request |
||||||
) |
) |
||||||
|
|
||||||
from .blockchain import ( |
from .rpc.exceptions import ( |
||||||
get_sharding_structure |
|
||||||
) |
|
||||||
|
|
||||||
from .exceptions import ( |
|
||||||
RPCError, |
RPCError, |
||||||
InvalidRPCReplyError, |
InvalidRPCReplyError, |
||||||
JSONDecodeError, |
|
||||||
RequestsError, |
RequestsError, |
||||||
RequestsTimeoutError |
RequestsTimeoutError, |
||||||
|
JSONDecodeError |
||||||
|
) |
||||||
|
|
||||||
|
from .blockchain import ( |
||||||
|
get_sharding_structure |
||||||
) |
) |
||||||
|
|
||||||
_default_endpoint = 'http://localhost:9500' |
_default_endpoint = 'http://localhost:9500' |
@ -1,9 +1,9 @@ |
|||||||
from .request import ( |
from .rpc.request import ( |
||||||
rpc_request |
rpc_request |
||||||
) |
) |
||||||
|
|
||||||
from .exceptions import ( |
from .rpc.exceptions import ( |
||||||
InvalidRPCReplyError |
InvalidRPCReplyError, |
||||||
) |
) |
||||||
|
|
||||||
_default_endpoint = 'http://localhost:9500' |
_default_endpoint = 'http://localhost:9500' |
@ -1,8 +1,7 @@ |
|||||||
from .request import ( |
from .rpc.request import ( |
||||||
rpc_request |
rpc_request |
||||||
) |
) |
||||||
|
|
||||||
|
|
||||||
_default_endpoint = 'http://localhost:9500' |
_default_endpoint = 'http://localhost:9500' |
||||||
_default_timeout = 30 |
_default_timeout = 30 |
||||||
|
|
@ -1,4 +1,4 @@ |
|||||||
from .request import ( |
from .rpc.request import ( |
||||||
rpc_request |
rpc_request |
||||||
) |
) |
||||||
|
|
Loading…
Reference in new issue