Rename package to hub #38

Merged
jackrobison merged 13 commits from rename-things into master 2022-05-18 22:18:22 +02:00
10 changed files with 14 additions and 14 deletions
Showing only changes of commit 060e423707 - Show all commits

View file

@ -3,8 +3,8 @@ import logging
import traceback
import argparse
from hub.common import setup_logging
from hub.hub.env import ServerEnv
from hub.hub.service import HubServerService
from hub.herald.env import ServerEnv
from hub.herald.service import HubServerService
def main():

View file

@ -7,7 +7,7 @@ from asyncio import Event
from functools import partial
from numbers import Number
from hub.common import RPCError, CodeMessageError
from hub.hub.common import Notification, Request, Response, Batch, ProtocolError
from hub.herald.common import Notification, Request, Response, Batch, ProtocolError
class JSONRPC:

View file

@ -12,7 +12,7 @@ from hub.db.common import UTXO
from hub.scribe.transaction.deserializer import Deserializer
if typing.TYPE_CHECKING:
from hub.hub.session import SessionManager
from hub.herald.session import SessionManager
from hub.db import HubDB

View file

@ -2,13 +2,13 @@ import time
import typing
import asyncio
from hub.scribe.daemon import LBCDaemon
from hub.hub.session import SessionManager
from hub.hub.mempool import HubMemPool
from hub.hub.udp import StatusServer
from hub.herald.session import SessionManager
from hub.herald.mempool import HubMemPool
from hub.herald.udp import StatusServer
from hub.service import BlockchainReaderService
from hub.elasticsearch import ElasticNotifierClientProtocol
if typing.TYPE_CHECKING:
from hub.hub.env import ServerEnv
from hub.herald.env import ServerEnv
class HubServerService(BlockchainReaderService):

View file

@ -18,19 +18,19 @@ from prometheus_client import Counter, Info, Histogram, Gauge
from hub.schema.result import Outputs
from hub.error import ResolveCensoredError, TooManyClaimSearchParametersError
from hub import __version__, PROMETHEUS_NAMESPACE
from hub.hub import PROTOCOL_MIN, PROTOCOL_MAX, HUB_PROTOCOL_VERSION
from hub.herald import PROTOCOL_MIN, PROTOCOL_MAX, HUB_PROTOCOL_VERSION
from hub.build_info import BUILD, COMMIT_HASH, DOCKER_TAG
from hub.elasticsearch import SearchIndex
from hub.common import sha256, hash_to_hex_str, hex_str_to_hash, HASHX_LEN, version_string, formatted_time
from hub.common import protocol_version, RPCError, DaemonError, TaskGroup, HISTOGRAM_BUCKETS
from hub.hub.jsonrpc import JSONRPCAutoDetect, JSONRPCConnection, JSONRPCv2, JSONRPC
from hub.hub.common import BatchRequest, ProtocolError, Request, Batch, Notification
from hub.hub.framer import NewlineFramer
from hub.herald.jsonrpc import JSONRPCAutoDetect, JSONRPCConnection, JSONRPCv2, JSONRPC
from hub.herald.common import BatchRequest, ProtocolError, Request, Batch, Notification
from hub.herald.framer import NewlineFramer
if typing.TYPE_CHECKING:
from hub.db import HubDB
from hub.hub.env import ServerEnv
from hub.herald.env import ServerEnv
from hub.scribe.daemon import LBCDaemon
from hub.hub.mempool import HubMemPool
from hub.herald.mempool import HubMemPool
BAD_REQUEST = 1
DAEMON_ERROR = 2