[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 |
||||
) |
||||
|
||||
from .blockchain import ( |
||||
get_sharding_structure |
||||
) |
||||
|
||||
from .exceptions import ( |
||||
from .rpc.exceptions import ( |
||||
RPCError, |
||||
InvalidRPCReplyError, |
||||
JSONDecodeError, |
||||
RequestsError, |
||||
RequestsTimeoutError |
||||
RequestsTimeoutError, |
||||
JSONDecodeError |
||||
) |
||||
|
||||
from .blockchain import ( |
||||
get_sharding_structure |
||||
) |
||||
|
||||
_default_endpoint = 'http://localhost:9500' |
@ -1,9 +1,9 @@ |
||||
from .request import ( |
||||
from .rpc.request import ( |
||||
rpc_request |
||||
) |
||||
|
||||
from .exceptions import ( |
||||
InvalidRPCReplyError |
||||
from .rpc.exceptions import ( |
||||
InvalidRPCReplyError, |
||||
) |
||||
|
||||
_default_endpoint = 'http://localhost:9500' |
@ -1,8 +1,7 @@ |
||||
from .request import ( |
||||
from .rpc.request import ( |
||||
rpc_request |
||||
) |
||||
|
||||
|
||||
_default_endpoint = 'http://localhost:9500' |
||||
_default_timeout = 30 |
||||
|
@ -1,4 +1,4 @@ |
||||
from .request import ( |
||||
from .rpc.request import ( |
||||
rpc_request |
||||
) |
||||
|
Loading…
Reference in new issue