Skip to content

Commit

Permalink
Change imports to acapy_agent for OWF switch
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Oct 22, 2024
1 parent db1a685 commit 41680b7
Show file tree
Hide file tree
Showing 28 changed files with 146 additions and 146 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import logging


from aries_cloudagent.config.injection_context import InjectionContext
from acapy_agent.config.injection_context import InjectionContext


from aries_cloudagent.core.event_bus import EventBus
from aries_cloudagent.core.plugin_registry import PluginRegistry
from aries_cloudagent.core.protocol_registry import ProtocolRegistry
from acapy_agent.core.event_bus import EventBus
from acapy_agent.core.plugin_registry import PluginRegistry
from acapy_agent.core.protocol_registry import ProtocolRegistry

from . import (
schema_storage,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging

from aries_cloudagent.config.injection_context import InjectionContext
from aries_cloudagent.core.event_bus import EventBus
from aries_cloudagent.core.plugin_registry import PluginRegistry
from aries_cloudagent.core.protocol_registry import ProtocolRegistry
from acapy_agent.config.injection_context import InjectionContext
from acapy_agent.core.event_bus import EventBus
from acapy_agent.core.plugin_registry import PluginRegistry
from acapy_agent.core.protocol_registry import ProtocolRegistry


LOGGER = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from aiohttp import web
from aiohttp_apispec import docs, match_info_schema, response_schema
from aries_cloudagent.admin.decorators.auth import tenant_authentication
from aries_cloudagent.admin.request_context import AdminRequestContext
from aries_cloudagent.connections.models.conn_record import ConnRecord
from aries_cloudagent.messaging.models.base import BaseModelError
from aries_cloudagent.protocols.connections.v1_0.routes import (
from acapy_agent.admin.decorators.auth import tenant_authentication
from acapy_agent.admin.request_context import AdminRequestContext
from acapy_agent.connections.models.conn_record import ConnRecord
from acapy_agent.messaging.models.base import BaseModelError
from acapy_agent.protocols.connections.v1_0.routes import (
ConnectionsConnIdMatchInfoSchema, InvitationResultSchema)
from aries_cloudagent.storage.error import StorageNotFoundError
from acapy_agent.storage.error import StorageNotFoundError

LOGGER = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import logging

from aries_cloudagent.config.injection_context import InjectionContext
from aries_cloudagent.core.event_bus import EventBus
from aries_cloudagent.core.plugin_registry import PluginRegistry
from acapy_agent.config.injection_context import InjectionContext
from acapy_agent.core.event_bus import EventBus
from acapy_agent.core.plugin_registry import PluginRegistry

from aries_cloudagent.core.protocol_registry import ProtocolRegistry
from acapy_agent.core.protocol_registry import ProtocolRegistry

from .creddef_storage_service import CredDefStorageService, subscribe

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import logging
from typing import Optional

from aries_cloudagent.core.event_bus import EventBus, Event
from aries_cloudagent.core.profile import Profile
from aries_cloudagent.storage.error import StorageNotFoundError
from acapy_agent.core.event_bus import EventBus, Event
from acapy_agent.core.profile import Profile
from acapy_agent.storage.error import StorageNotFoundError

from .models import CredDefStorageRecord

from aries_cloudagent.messaging.credential_definitions.util import (
from acapy_agent.messaging.credential_definitions.util import (
EVENT_LISTENER_PATTERN as CREDDEF_EVENT_LISTENER_PATTERN,
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional

from aries_cloudagent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from aries_cloudagent.messaging.valid import (
from acapy_agent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from acapy_agent.messaging.valid import (
INDY_SCHEMA_ID_VALIDATE,
INDY_SCHEMA_ID_EXAMPLE,
INDY_REV_REG_SIZE_VALIDATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

from aiohttp import web
from aiohttp_apispec import docs, response_schema, match_info_schema
from aries_cloudagent.admin.request_context import AdminRequestContext
from acapy_agent.admin.request_context import AdminRequestContext

from aries_cloudagent.messaging.models.base import BaseModelError
from aries_cloudagent.messaging.models.openapi import OpenAPISchema
from acapy_agent.messaging.models.base import BaseModelError
from acapy_agent.messaging.models.openapi import OpenAPISchema

from aries_cloudagent.storage.error import StorageNotFoundError, StorageError
from aries_cloudagent.admin.decorators.auth import tenant_authentication
from acapy_agent.storage.error import StorageNotFoundError, StorageError
from acapy_agent.admin.decorators.auth import tenant_authentication

from marshmallow import fields

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging

from aries_cloudagent.config.injection_context import InjectionContext
from aries_cloudagent.core.event_bus import EventBus
from aries_cloudagent.core.plugin_registry import PluginRegistry
from aries_cloudagent.core.protocol_registry import ProtocolRegistry
from acapy_agent.config.injection_context import InjectionContext
from acapy_agent.core.event_bus import EventBus
from acapy_agent.core.plugin_registry import PluginRegistry
from acapy_agent.core.protocol_registry import ProtocolRegistry

from .endorser_connection_service import (
EndorserConnectionService,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import logging
import re

from aries_cloudagent.config.injector import Injector
from aries_cloudagent.connections.models.conn_record import ConnRecord
from aries_cloudagent.core.event_bus import Event, EventBus
from aries_cloudagent.core.profile import Profile
from aries_cloudagent.protocols.didexchange.v1_0.manager import DIDXManager
from aries_cloudagent.protocols.endorse_transaction.v1_0.manager import (
from acapy_agent.config.injector import Injector
from acapy_agent.connections.models.conn_record import ConnRecord
from acapy_agent.core.event_bus import Event, EventBus
from acapy_agent.core.profile import Profile
from acapy_agent.protocols.didexchange.v1_0.manager import DIDXManager
from acapy_agent.protocols.endorse_transaction.v1_0.manager import (
TransactionManager,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

from aiohttp import web
from aiohttp_apispec import docs, response_schema, request_schema
from aries_cloudagent.admin.request_context import AdminRequestContext
from aries_cloudagent.connections.models.conn_record import ConnRecordSchema
from aries_cloudagent.messaging.models.base import BaseModelError
from aries_cloudagent.messaging.models.openapi import OpenAPISchema
from aries_cloudagent.protocols.didexchange.v1_0.manager import DIDXManagerError
from aries_cloudagent.protocols.endorse_transaction.v1_0.routes import (
from acapy_agent.admin.request_context import AdminRequestContext
from acapy_agent.connections.models.conn_record import ConnRecordSchema
from acapy_agent.messaging.models.base import BaseModelError
from acapy_agent.messaging.models.openapi import OpenAPISchema
from acapy_agent.protocols.didexchange.v1_0.manager import DIDXManagerError
from acapy_agent.protocols.endorse_transaction.v1_0.routes import (
EndorserInfoSchema,
)

from aries_cloudagent.storage.error import StorageNotFoundError, StorageError
from aries_cloudagent.wallet.error import WalletError
from aries_cloudagent.admin.decorators.auth import tenant_authentication
from acapy_agent.storage.error import StorageNotFoundError, StorageError
from acapy_agent.wallet.error import WalletError
from acapy_agent.admin.decorators.auth import tenant_authentication
from marshmallow import fields

from .endorser_connection_service import EndorserConnectionService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import logging
import re

from aries_cloudagent.config.injection_context import InjectionContext
from aries_cloudagent.connections.models.conn_record import ConnRecord

from aries_cloudagent.core.event_bus import EventBus, Event
from aries_cloudagent.core.plugin_registry import PluginRegistry
from aries_cloudagent.core.profile import Profile
from aries_cloudagent.core.protocol_registry import ProtocolRegistry
from aries_cloudagent.core.util import STARTUP_EVENT_PATTERN
from acapy_agent.config.injection_context import InjectionContext
from acapy_agent.connections.models.conn_record import ConnRecord

from acapy_agent.core.event_bus import EventBus, Event
from acapy_agent.core.plugin_registry import PluginRegistry
from acapy_agent.core.profile import Profile
from acapy_agent.core.protocol_registry import ProtocolRegistry
from acapy_agent.core.util import STARTUP_EVENT_PATTERN

from .config import get_config
from .tenant_manager import TenantManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
from datetime import datetime, timezone
from typing import Optional, Union, List

from aries_cloudagent.core.profile import ProfileSession
from aries_cloudagent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from aries_cloudagent.messaging.util import datetime_to_str, str_to_datetime
from aries_cloudagent.messaging.valid import UUIDFour
from aries_cloudagent.storage.error import StorageDuplicateError, StorageNotFoundError
from acapy_agent.core.profile import ProfileSession
from acapy_agent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from acapy_agent.messaging.util import datetime_to_str, str_to_datetime
from acapy_agent.messaging.valid import UUIDFour
from acapy_agent.storage.error import StorageDuplicateError, StorageNotFoundError
from marshmallow import fields, EXCLUDE, validate

ENDORSER_LEDGER_CONFIG_EXAMPLE = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
response_schema,
use_kwargs,
)
from aries_cloudagent.admin.request_context import AdminRequestContext
from aries_cloudagent.admin.routes import AdminConfigSchema
from aries_cloudagent.messaging.models.base import BaseModelError
from aries_cloudagent.messaging.models.openapi import OpenAPISchema
from aries_cloudagent.messaging.valid import JSONWebToken, UUIDFour
from aries_cloudagent.multitenant.admin.routes import (
from acapy_agent.admin.request_context import AdminRequestContext
from acapy_agent.admin.routes import AdminConfigSchema
from acapy_agent.messaging.models.base import BaseModelError
from acapy_agent.messaging.models.openapi import OpenAPISchema
from acapy_agent.messaging.valid import JSONWebToken, UUIDFour
from acapy_agent.multitenant.admin.routes import (
CreateWalletTokenRequestSchema,
CreateWalletTokenResponseSchema,
)
from aries_cloudagent.multitenant.base import BaseMultitenantManager
from aries_cloudagent.multitenant.error import WalletKeyMissingError
from aries_cloudagent.storage.error import StorageError, StorageNotFoundError
from aries_cloudagent.version import __version__
from aries_cloudagent.wallet.error import WalletSettingsError
from aries_cloudagent.wallet.models.wallet_record import WalletRecord
from acapy_agent.multitenant.base import BaseMultitenantManager
from acapy_agent.multitenant.error import WalletKeyMissingError
from acapy_agent.storage.error import StorageError, StorageNotFoundError
from acapy_agent.version import __version__
from acapy_agent.wallet.error import WalletSettingsError
from acapy_agent.wallet.models.wallet_record import WalletRecord
from multitenant_provider.v1_0.routes import plugin_wallet_create_token
from marshmallow import fields, validate

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import logging
from typing import List, Optional

from aries_cloudagent.core.error import BaseError
from aries_cloudagent.core.profile import Profile
from aries_cloudagent.messaging.models.base import BaseModelError
from aries_cloudagent.multitenant.base import BaseMultitenantManager
from acapy_agent.core.error import BaseError
from acapy_agent.core.profile import Profile
from acapy_agent.messaging.models.base import BaseModelError
from acapy_agent.multitenant.base import BaseMultitenantManager

# from aries_cloudagent.ledger.multiple_ledger.base_manager import (
# from acapy_agent.ledger.multiple_ledger.base_manager import (
# BaseMultipleLedgerManager,
# )
from aries_cloudagent.storage.error import StorageError, StorageNotFoundError
from aries_cloudagent.wallet.models.wallet_record import WalletRecord
from acapy_agent.storage.error import StorageError, StorageNotFoundError
from acapy_agent.wallet.models.wallet_record import WalletRecord

from .config import TractionInnkeeperConfig, InnkeeperWalletConfig, ReservationConfig
from .models import TenantAuthenticationApiRecord, TenantRecord, ReservationRecord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import uuid
from datetime import datetime, timedelta

from aries_cloudagent.core.profile import Profile
from aries_cloudagent.messaging.models.openapi import OpenAPISchema
from acapy_agent.core.profile import Profile
from acapy_agent.messaging.models.openapi import OpenAPISchema
from marshmallow import fields

from .models import ReservationRecord, TenantAuthenticationApiRecord, TenantRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import logging

from aries_cloudagent.admin.base_server import BaseAdminServer
from aries_cloudagent.admin.server import AdminServer
from aries_cloudagent.config.injection_context import InjectionContext
from aries_cloudagent.core.event_bus import EventBus, Event
from aries_cloudagent.core.plugin_registry import PluginRegistry
from aries_cloudagent.core.profile import Profile
from aries_cloudagent.core.protocol_registry import ProtocolRegistry
from aries_cloudagent.core.util import STARTUP_EVENT_PATTERN
from acapy_agent.admin.base_server import BaseAdminServer
from acapy_agent.admin.server import AdminServer
from acapy_agent.config.injection_context import InjectionContext
from acapy_agent.core.event_bus import EventBus, Event
from acapy_agent.core.plugin_registry import PluginRegistry
from acapy_agent.core.profile import Profile
from acapy_agent.core.protocol_registry import ProtocolRegistry
from acapy_agent.core.util import STARTUP_EVENT_PATTERN

from .oca_service import OcaService

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional

from aries_cloudagent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from aries_cloudagent.messaging.valid import (
from acapy_agent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from acapy_agent.messaging.valid import (
INDY_SCHEMA_ID_VALIDATE,
INDY_SCHEMA_ID_EXAMPLE,
INDY_CRED_DEF_ID_VALIDATE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import logging
from typing import Optional

from aries_cloudagent.core.error import BaseError
from aries_cloudagent.core.profile import Profile
from aries_cloudagent.storage.error import StorageDuplicateError, StorageNotFoundError
from aries_cloudagent.wallet.base import BaseWallet
from aries_cloudagent.wallet.did_info import DIDInfo
from aries_cloudagent.wallet.error import WalletError
from acapy_agent.core.error import BaseError
from acapy_agent.core.profile import Profile
from acapy_agent.storage.error import StorageDuplicateError, StorageNotFoundError
from acapy_agent.wallet.base import BaseWallet
from acapy_agent.wallet.did_info import DIDInfo
from acapy_agent.wallet.error import WalletError
from marshmallow import ValidationError

from .models import OcaRecord
Expand Down
12 changes: 6 additions & 6 deletions plugins/traction_innkeeper/traction_innkeeper/v1_0/oca/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
querystring_schema,
match_info_schema,
)
from aries_cloudagent.admin.request_context import AdminRequestContext
from aries_cloudagent.messaging.models.base import BaseModelError
from aries_cloudagent.messaging.models.openapi import OpenAPISchema
from aries_cloudagent.messaging.valid import (
from acapy_agent.admin.request_context import AdminRequestContext
from acapy_agent.messaging.models.base import BaseModelError
from acapy_agent.messaging.models.openapi import OpenAPISchema
from acapy_agent.messaging.valid import (
INDY_SCHEMA_ID_EXAMPLE,
INDY_SCHEMA_ID_VALIDATE,
INDY_CRED_DEF_ID_EXAMPLE,
INDY_CRED_DEF_ID_VALIDATE,
UUIDFour,
)
from aries_cloudagent.storage.error import StorageNotFoundError, StorageError
from aries_cloudagent.admin.decorators.auth import tenant_authentication
from acapy_agent.storage.error import StorageNotFoundError, StorageError
from acapy_agent.admin.decorators.auth import tenant_authentication
from marshmallow import fields, ValidationError

from . import OcaService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging

from aiohttp import web
from aries_cloudagent.utils.classloader import ClassLoader
from acapy_agent.utils.classloader import ClassLoader

from . import MODULES

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging

from aries_cloudagent.config.injection_context import InjectionContext
from aries_cloudagent.core.event_bus import EventBus
from aries_cloudagent.core.plugin_registry import PluginRegistry
from aries_cloudagent.core.protocol_registry import ProtocolRegistry
from acapy_agent.config.injection_context import InjectionContext
from acapy_agent.core.event_bus import EventBus
from acapy_agent.core.plugin_registry import PluginRegistry
from acapy_agent.core.protocol_registry import ProtocolRegistry

from .schema_storage_service import SchemaStorageService, subscribe

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional

from aries_cloudagent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from aries_cloudagent.messaging.valid import (
from acapy_agent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from acapy_agent.messaging.valid import (
INDY_SCHEMA_ID_EXAMPLE,
INDY_SCHEMA_ID_VALIDATE,
)
Expand Down
Loading

0 comments on commit 41680b7

Please sign in to comment.