Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/webview issues #141

Merged
merged 5 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/verify-credential.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const {createWallet} = require('@docknetwork/wallet-sdk-core/lib/wallet');
const {
credentialServiceRPC,
} = require('@docknetwork/wallet-sdk-wasm/lib/services/credential');
} = require('@docknetwork/wallet-sdk-wasm/src/services/credential');
const {
didServiceRPC,
} = require('@docknetwork/wallet-sdk-wasm/lib/services/dids');
} = require('@docknetwork/wallet-sdk-wasm/src/services/dids');

const {dockService} = require('@docknetwork/wallet-sdk-wasm/lib/services/dock');
const {dockService} = require('@docknetwork/wallet-sdk-wasm/src/services/dock');

const exampleCredential = require('./example-credential.json');
const presentationDefinition = require('./presentation-definition.json');
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/credentials.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import {
UniversityDegreeTestnet,
} from './data/credentials';
import {cleanup, createNewWallet, getWallet, setupEnvironent} from './helpers';
import {credentialService} from '@docknetwork/wallet-sdk-wasm/lib/services/credential/service';
import {credentialService} from '@docknetwork/wallet-sdk-wasm/src/services/credential/service';
import {IWallet} from '@docknetwork/wallet-sdk-core/src/types';
import {WalletEvents} from '@docknetwork/wallet-sdk-wasm/lib/modules/wallet';
import {API_MOCK_DISABLED} from "@docknetwork/wallet-sdk-wasm/lib/services/test-utils";
import {WalletEvents} from '@docknetwork/wallet-sdk-wasm/src/modules/wallet';
import {API_MOCK_DISABLED} from "@docknetwork/wallet-sdk-wasm/src/services/test-utils";

const allCredentials = [
BasicCredential,
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/custom-networks.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {createWallet, IWallet} from '@docknetwork/wallet-sdk-core/src/wallet';
import {Network} from '@docknetwork/wallet-sdk-data-store/lib/types';
import {Network} from '@docknetwork/wallet-sdk-data-store/src/types';

describe('Custom networks', () => {
let wallet: IWallet;
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/helpers/account-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Accounts} from '@docknetwork/wallet-sdk-wasm/lib/modules/accounts';
import {Accounts} from '@docknetwork/wallet-sdk-wasm/src/modules/accounts';
import {
Account2MnemonicDetails,
AccountJSON,
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/helpers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {mockDockService} from '@docknetwork/wallet-sdk-wasm/lib/services/test-utils';
import {mockDockService} from '@docknetwork/wallet-sdk-wasm/src/services/test-utils';
import {DataStoreSnapshotV1} from '../data/data-store';

export async function setupEnvironent() {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/helpers/wallet-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {DataStoreSnapshotV1} from '../data/data-store';
import {WalletBackupJSON, WalletBackupPasssword} from '../data/wallet-backup';
import {IWallet} from '@docknetwork/wallet-sdk-core/lib/types';
import {createWallet} from '@docknetwork/wallet-sdk-core/lib/wallet';
import {Wallet} from '@docknetwork/wallet-sdk-wasm/lib/modules/wallet';
import {setV1LocalStorage} from '@docknetwork/wallet-sdk-data-store/lib/migration/migration1/v1-data-store';
import {Wallet} from '@docknetwork/wallet-sdk-wasm/src/modules/wallet';
import {setV1LocalStorage} from '@docknetwork/wallet-sdk-data-store/src/migration/migration1/v1-data-store';

let wallet: IWallet;

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/transactions.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Accounts} from '@docknetwork/wallet-sdk-wasm/lib/modules/accounts';
import {DOCK_TOKEN_UNIT} from '@docknetwork/wallet-sdk-wasm/lib/core/format-utils';
import {Accounts} from '@docknetwork/wallet-sdk-wasm/src/modules/accounts';
import {DOCK_TOKEN_UNIT} from '@docknetwork/wallet-sdk-wasm/src/core/format-utils';
import {Transactions} from '@docknetwork/wallet-sdk-transactions/lib/transactions';

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/setup-tests.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@docknetwork/wallet-sdk-wasm/lib/setup-tests';
import '@docknetwork/wallet-sdk-wasm/src/setup-tests';
2 changes: 1 addition & 1 deletion packages/core/src/account-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {IWallet} from './types';
import {Accounts} from '@docknetwork/wallet-sdk-wasm/lib/modules/accounts';
import {Accounts} from '@docknetwork/wallet-sdk-wasm/src/modules/accounts';
import {toV1WalletService} from './v1-helpers';

interface ICreateAccountsProvider {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/did-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {IWallet} from './types';
import {createWallet} from './wallet';
import {createDIDock, createDIDProvider, IDIDProvider} from './did-provider';
import {createAccountProvider} from './account-provider';
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/lib/services/dids';
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/src/services/dids';

describe('DID Provider', () => {
let wallet: IWallet;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/did-provider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IWallet} from './types';
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/lib/services/dids/index';
import assert from "assert";
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/src/services/dids/index';
import assert from 'assert';

export async function importDID({
wallet,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/network-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
DocumentResolverProps,
DocumentResolverResult,
WalletDocument,
} from '@docknetwork/wallet-sdk-data-store/lib/types';
import {utilCryptoService} from '@docknetwork/wallet-sdk-wasm/lib/services/util-crypto';
} from '@docknetwork/wallet-sdk-data-store/src/types';
import {utilCryptoService} from '@docknetwork/wallet-sdk-wasm/src/services/util-crypto';

type ResolverResult = string | null;

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
DataStoreConfigs,
DocumentResolverResult,
WalletDocument,
} from '@docknetwork/wallet-sdk-data-store/lib/types';
import {Accounts} from '@docknetwork/wallet-sdk-wasm/lib/modules/accounts';
} from '@docknetwork/wallet-sdk-data-store/src/types';
import {Accounts} from '@docknetwork/wallet-sdk-wasm/src/modules/accounts';
import {EventEmitter} from 'events';

export interface IV1Wallet {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/v1-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// TODO: [wallet-sdk] Cleanup wallet-sdk unnused wasm services https://dock-team.atlassian.net/browse/DCKA-1658
import {IV1Wallet, IWallet} from './types';
import {createAccountProvider} from './account-provider';
import {WalletDocument} from '@docknetwork/wallet-sdk-data-store/lib/types';
import * as walletServiceConfigs from '@docknetwork/wallet-sdk-wasm/lib/services/wallet/configs';
import {keyringService} from '@docknetwork/wallet-sdk-wasm/lib/services/keyring/index';
import {walletService} from '@docknetwork/wallet-sdk-wasm/lib/services/wallet';
import {WalletDocument} from '@docknetwork/wallet-sdk-data-store/src/types';
import * as walletServiceConfigs from '@docknetwork/wallet-sdk-wasm/src/services/wallet/configs';
import {keyringService} from '@docknetwork/wallet-sdk-wasm/src/services/keyring/index';
import {walletService} from '@docknetwork/wallet-sdk-wasm/src/services/wallet';
import {v4 as uuid} from 'uuid';
import {EventEmitter} from 'events';

Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/wallet-wasm.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {keyringService} from '@docknetwork/wallet-sdk-wasm/lib/services/keyring';
import {utilCryptoService} from '@docknetwork/wallet-sdk-wasm/lib/services/util-crypto';
import {dockService} from '@docknetwork/wallet-sdk-wasm/lib/services/dock';
import {keyringService} from '@docknetwork/wallet-sdk-wasm/src/services/keyring';
import {utilCryptoService} from '@docknetwork/wallet-sdk-wasm/src/services/util-crypto';
import {dockService} from '@docknetwork/wallet-sdk-wasm/src/services/dock';

import {IWallet} from './types';
import {Network} from '@docknetwork/wallet-sdk-data-store/lib/types';
import {WalletEvents} from '@docknetwork/wallet-sdk-wasm/lib/modules/wallet';
import {Network} from '@docknetwork/wallet-sdk-data-store/src/types';
import {WalletEvents} from '@docknetwork/wallet-sdk-wasm/src/modules/wallet';

function isSubstrateNetwork(network: Network) {
return !!network.configs.substrateUrl;
Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {createDataStore} from '@docknetwork/wallet-sdk-data-store/lib';
import {createDataStore} from '@docknetwork/wallet-sdk-data-store/src';
import {
DataStore,
DataStoreConfigs,
WalletDocument,
} from '@docknetwork/wallet-sdk-data-store/lib/types';
} from '@docknetwork/wallet-sdk-data-store/src/types';
import {
getDocumentsByType,
getDocumentById,
Expand All @@ -13,14 +13,14 @@ import {
getAllDocuments,
updateDocument,
removeAllDocuments,
} from '@docknetwork/wallet-sdk-data-store/lib/entities/document';
} from '@docknetwork/wallet-sdk-data-store/src/entities/document';
import {CreateWalletProps, IWallet} from './types';
import {toV1Wallet} from './v1-helpers';
import {initWalletWasm} from './wallet-wasm';
import {EventEmitter} from 'events';
import {WalletEvents} from '@docknetwork/wallet-sdk-wasm/lib/modules/wallet';
import {walletService} from '@docknetwork/wallet-sdk-wasm/lib/services/wallet';
import {importUniversalWalletDocuments} from '@docknetwork/wallet-sdk-data-store/lib/migration/migration1/migrate-v1-data';
import {WalletEvents} from '@docknetwork/wallet-sdk-wasm/src/modules/wallet';
import {walletService} from '@docknetwork/wallet-sdk-wasm/src/services/wallet';
import {importUniversalWalletDocuments} from '@docknetwork/wallet-sdk-data-store/src/migration/migration1/migrate-v1-data';
export type {IWallet};

function once(emitter: EventEmitter, eventName: string) {
Expand Down
4 changes: 2 additions & 2 deletions packages/credentials/lib/credentials.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Credentials} from './index';
import {Wallet} from '@docknetwork/wallet-sdk-wasm/lib/modules/wallet';
import {Wallet} from '@docknetwork/wallet-sdk-wasm/src/modules/wallet';
import testCredential from '../fixtures/test-credential.json';
import {getPromiseError} from '@docknetwork/wallet-sdk-wasm/lib/services/test-utils';
import {getPromiseError} from '@docknetwork/wallet-sdk-wasm/src/services/test-utils';
import axios from 'axios';

describe('Credentials module', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/credentials/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Wallet} from '@docknetwork/wallet-sdk-wasm/lib/modules/wallet';
import {assert} from '@docknetwork/wallet-sdk-wasm/lib/core/validation';
import {Wallet} from '@docknetwork/wallet-sdk-wasm/src/modules/wallet';
import {assert} from '@docknetwork/wallet-sdk-wasm/src/core/validation';
import axios from 'axios';
import {samplePresentationDefinition} from './samples';

Expand Down
6 changes: 1 addition & 5 deletions packages/react-native/bundler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

const getWebpackConfig = ({entry, path, filename}) => ({
mode: 'development',
devtool: false,
entry,
output: {
path,
Expand Down Expand Up @@ -47,15 +46,12 @@ const getWebpackConfig = ({entry, path, filename}) => ({
rules: [
{
test: /\.(m|c)?js$/,
exclude: [
/\/node_modules\/(?!@polkadot|@docknetwork|@digitalbazaar|safe-buffer|readable-stream|@noble|lzutf8|@transmute|@bitauth)/,
],
exclude: [/\/node_modules\/(?!@polkadot|@docknetwork|@digitalbazaar)/],
use: {
loader: require.resolve('babel-loader'),
options: {
presets: ['@babel/preset-env'],
plugins: [
require.resolve('../transform-bigint-to-number.js'),
'@babel/plugin-transform-async-to-generator',
'@babel/plugin-syntax-bigint',
'@babel/plugin-transform-modules-commonjs',
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/lib/credentialPresentHooks.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useCallback, useMemo} from 'react';
import {credentialServiceRPC} from '@docknetwork/wallet-sdk-wasm/lib/services/credential';
import {credentialServiceRPC} from '@docknetwork/wallet-sdk-wasm/src/services/credential';

export function usePresentation() {
const presentCredentials = useCallback(
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/lib/credentials/credentialHooks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {useMemo, useCallback, useState, useEffect} from 'react';
import {useWallet} from '../index';
import assert from 'assert';
import {credentialServiceRPC} from '@docknetwork/wallet-sdk-wasm/lib/services/credential';
import {dockService} from '@docknetwork/wallet-sdk-wasm/lib/services/dock';
import {credentialServiceRPC} from '@docknetwork/wallet-sdk-wasm/src/services/credential';
import {dockService} from '@docknetwork/wallet-sdk-wasm/src/services/dock';

export const CREDENTIAL_STATUS = {
INVALID: 1,
Expand Down
8 changes: 4 additions & 4 deletions packages/react-native/lib/credentials/credentialHooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import {
waitFor,
} from './credentialHooks';
import {useWallet} from '../index';
import {credentialServiceRPC} from '@docknetwork/wallet-sdk-wasm/lib/services/credential';
import {dockService} from '@docknetwork/wallet-sdk-wasm/lib/services/dock';
import {credentialServiceRPC} from '@docknetwork/wallet-sdk-wasm/src/services/credential';
import {dockService} from '@docknetwork/wallet-sdk-wasm/src/services/dock';

jest.mock('@docknetwork/wallet-sdk-wasm/lib/services/credential', () => {
jest.mock('@docknetwork/wallet-sdk-wasm/src/services/credential', () => {
const originalModule = jest.requireActual(
'@docknetwork/wallet-sdk-wasm/lib/services/credential',
'@docknetwork/wallet-sdk-wasm/src/services/credential',
);
const mockFunctions = {
verifyCredential: jest.fn(credential => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/lib/didHooks.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useCallback, useMemo} from 'react';
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/lib/services/dids';
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/src/services/dids';
import {createDIDProvider} from '@docknetwork/wallet-sdk-core/src/did-provider';
import {useWallet} from './index';

Expand Down
6 changes: 3 additions & 3 deletions packages/react-native/lib/didHooks.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {renderHook} from '@testing-library/react-hooks';
import {useDIDManagement} from './didHooks';
import {useWallet} from './index';
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/lib/services/dids';
import {didServiceRPC} from '@docknetwork/wallet-sdk-wasm/src/services/dids';

jest.mock('@docknetwork/wallet-sdk-wasm/lib/services/dids', () => {
jest.mock('@docknetwork/wallet-sdk-wasm/src/services/dids', () => {
const originalModule = jest.requireActual(
'@docknetwork/wallet-sdk-wasm/lib/services/dids',
'@docknetwork/wallet-sdk-wasm/src/services/dids',
);
const mockFunctions = {
generateKeyDoc: jest.fn().mockReturnValue({
Expand Down
10 changes: 5 additions & 5 deletions packages/react-native/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {setStorage} from '@docknetwork/wallet-sdk-wasm/lib/core/storage';
import {setStorage} from '@docknetwork/wallet-sdk-wasm/src/core/storage';
import {
Wallet,
WalletEvents,
} from '@docknetwork/wallet-sdk-wasm/lib/modules/wallet';
} from '@docknetwork/wallet-sdk-wasm/src/modules/wallet';
import React, {
useCallback,
useContext,
Expand All @@ -15,8 +15,8 @@ import {Platform, View} from 'react-native';
import WebView from 'react-native-webview';
import {WebviewEventHandler} from './message-handler';
import AsyncStorage from '@react-native-async-storage/async-storage';
import {AccountDetails} from '@docknetwork/wallet-sdk-wasm/lib/modules/account';
import {DocumentType} from '@docknetwork/wallet-sdk-wasm/lib/types';
import {AccountDetails} from '@docknetwork/wallet-sdk-wasm/src/modules/account';
import {DocumentType} from '@docknetwork/wallet-sdk-wasm/src/types';
import './rn-rpc-server';
import {useDIDManagement, useDIDUtils} from './didHooks';
import {usePresentation} from './credentialPresentHooks';
Expand All @@ -29,7 +29,7 @@ import {
} from './credentials/credentialHooks';
import {getOrCreateWallet} from './wallet';
import debounce from 'lodash.debounce';
import {setV1LocalStorage} from '@docknetwork/wallet-sdk-data-store/lib/migration/migration1/v1-data-store';
import {setV1LocalStorage} from '@docknetwork/wallet-sdk-data-store/src/migration/migration1/v1-data-store';
export type WalletSDKContextProps = {
wallet: Wallet,
status: string,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/lib/message-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import assert from 'assert';
import {
getRpcClient,
initRpcClient,
} from '@docknetwork/wallet-sdk-wasm/lib/rpc-client';
} from '@docknetwork/wallet-sdk-wasm/src/rpc-client';

import {Logger} from '@docknetwork/wallet-sdk-wasm/lib/core/logger';
import {Logger} from '@docknetwork/wallet-sdk-wasm/src/core/logger';
import rnRpcServer from './rn-rpc-server';

export class WebviewEventHandler {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/lib/message-handler.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {getRpcClient} from '@docknetwork/wallet-sdk-wasm/lib/rpc-client';
import {getRpcClient} from '@docknetwork/wallet-sdk-wasm/src/rpc-client';
import {WebviewEventHandler} from './message-handler';
import rnRpcServer from './rn-rpc-server';

Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/lib/rn-rpc-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {JSONRPCServer} from 'json-rpc-2.0';
import {
createRpcService,
patchRpcServer,
} from '@docknetwork/wallet-sdk-wasm/lib/rpc-util';
} from '@docknetwork/wallet-sdk-wasm/src/rpc-util';
import {storageService} from './async-storage-service';
import {loggerService} from './logger';

Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/lib/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createWallet, IWallet} from '@docknetwork/wallet-sdk-core/src/wallet';
import {dockDocumentNetworkResolver} from '@docknetwork/wallet-sdk-core/src/network-resolver';
import {DataStoreConfigs} from '@docknetwork/wallet-sdk-data-store/lib/types';
import {DataStoreConfigs} from '@docknetwork/wallet-sdk-data-store/src/types';

let wallet: IWallet;

Expand Down
6 changes: 3 additions & 3 deletions packages/react-native/sdk-setup.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
getRpcClient,
initRpcClient,
} from '@docknetwork/wallet-sdk-wasm/lib/rpc-client';
import rpcServer from '@docknetwork/wallet-sdk-wasm/lib/rpc-server';
import {setStorage} from '@docknetwork/wallet-sdk-wasm/lib/core/storage';
} from '@docknetwork/wallet-sdk-wasm/src/rpc-client';
import rpcServer from '@docknetwork/wallet-sdk-wasm/src/rpc-server';
import {setStorage} from '@docknetwork/wallet-sdk-wasm/src/core/storage';

setStorage(global.localStorage);

Expand Down
2 changes: 1 addition & 1 deletion packages/relay-service/src/did/dids.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {hexDIDToQualified} from '@docknetwork/sdk/utils/did';
import {dockService} from '@docknetwork/wallet-sdk-wasm/lib/services/dock/service';
import {dockService} from '@docknetwork/wallet-sdk-wasm/src/services/dock/service';

export async function resolveDID(did, disableCache = false) {
// Check if string has no qualifier, if so assume its hex format
Expand Down
4 changes: 2 additions & 2 deletions packages/relay-service/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {isBase64} from '@polkadot/util-crypto';
import assert from 'assert';
import axios from 'axios';
import {Logger} from '@docknetwork/wallet-sdk-wasm/lib/core/logger';
import {Logger} from '@docknetwork/wallet-sdk-wasm/src/core/logger';
import {
didcommCreateEncrypted,
didcommDecrypt,
Expand All @@ -16,7 +16,7 @@ import {
toBase64,
} from './payloads';
import jwtDecode from 'jwt-decode';
import {dockService} from '@docknetwork/wallet-sdk-wasm/lib/services/dock/service';
import {dockService} from '@docknetwork/wallet-sdk-wasm/src/services/dock/service';

let serviceURL = process.env.RELAY_SERVICE_URL || 'https://relay.dock.io';

Expand Down
2 changes: 1 addition & 1 deletion packages/relay-service/tests/didcomm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
getDerivedAgreementKey,
} from '../lib/didcomm';
import {ALICE_KEY_PAIR_DOC, BOB_KEY_PAIR_DOC} from './mock-data';
import {dockService} from '@docknetwork/wallet-sdk-wasm/lib/services/dock/service';
import {dockService} from '@docknetwork/wallet-sdk-wasm/src/services/dock/service';
import {
DockResolver,
DIDKeyResolver,
Expand Down
2 changes: 1 addition & 1 deletion packages/request-logger/lib/request-logger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {getRealm} from '@docknetwork/wallet-sdk-wasm/lib/core/realm';
import {getRealm} from '@docknetwork/wallet-sdk-wasm/src/core/realm';
import assert from 'assert';
import {v4 as uuidv4} from 'uuid';
export const RequestLogger = (function () {
Expand Down
Loading
Loading