@dynamic-labs-sdk/client 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +231 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +8 -0
- package/android/gradlew +251 -0
- package/android/gradlew.bat +94 -0
- package/android/settings.gradle +30 -0
- package/android/src/main/java/xyz/dynamic/client/DynamicClientPackage.kt +52 -0
- package/android/src/main/java/xyz/dynamic/client/keychain/KeyStoreKeyManager.kt +147 -0
- package/android/src/main/java/xyz/dynamic/client/keychain/KeychainModule.kt +85 -0
- package/android/src/main/java/xyz/dynamic/client/manifest/ReactNativeManifestModule.kt +25 -0
- package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewClient.kt +83 -0
- package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewHost.kt +518 -0
- package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewModule.kt +147 -0
- package/android/src/test/java/xyz/dynamic/client/keychain/KeyStoreKeyManagerTest.kt +288 -0
- package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewClientTest.kt +196 -0
- package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewHostOpenTest.kt +347 -0
- package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewHostTest.kt +171 -0
- package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewModuleTest.kt +191 -0
- package/dist/{InvalidParamError-Crwntjl7.native.esm.js → InvalidParamError-Bc6OZBog.native.esm.js} +3 -3
- package/dist/{InvalidParamError-Crwntjl7.native.esm.js.map → InvalidParamError-Bc6OZBog.native.esm.js.map} +1 -1
- package/dist/{InvalidParamError-fQLJaGBW.esm.js → InvalidParamError-IHYLdzFd.esm.js} +437 -5
- package/dist/InvalidParamError-IHYLdzFd.esm.js.map +1 -0
- package/dist/{InvalidParamError-CTssOe86.cjs → InvalidParamError-S56rFFDP.cjs} +550 -4
- package/dist/InvalidParamError-S56rFFDP.cjs.map +1 -0
- package/dist/{NotWaasWalletAccountError-BJLGGYmU.native.esm.js → NotWaasWalletAccountError-BP-bODbJ.native.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-BJLGGYmU.native.esm.js.map → NotWaasWalletAccountError-BP-bODbJ.native.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-DF_S7gqo.esm.js → NotWaasWalletAccountError-BYEL2l-W.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-DF_S7gqo.esm.js.map → NotWaasWalletAccountError-BYEL2l-W.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-2RaDipZu.cjs → NotWaasWalletAccountError-CbhIKUDM.cjs} +3 -3
- package/dist/{NotWaasWalletAccountError-2RaDipZu.cjs.map → NotWaasWalletAccountError-CbhIKUDM.cjs.map} +1 -1
- package/dist/core.cjs +23 -23
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +5 -5
- package/dist/core.native.esm.js +7 -7
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/WebViewLoadFailedError.d.ts +1 -1
- package/dist/errors/WebViewLoadFailedError.d.ts.map +1 -1
- package/dist/exports/index.d.ts +2 -0
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-C1p9Rrg3.cjs → getNetworkProviderFromNetworkId-BDdcpGHH.cjs} +11 -317
- package/dist/getNetworkProviderFromNetworkId-BDdcpGHH.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-BWhaD23J.esm.js → getNetworkProviderFromNetworkId-D8rWYXlT.esm.js} +4 -242
- package/dist/getNetworkProviderFromNetworkId-D8rWYXlT.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-BCSmILlH.native.esm.js → getNetworkProviderFromNetworkId-DVmF7pH2.native.esm.js} +6 -6
- package/dist/getNetworkProviderFromNetworkId-DVmF7pH2.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-CxxYNC_8.cjs → getSignedSessionId-BBaBCi9S.cjs} +3 -3
- package/dist/{getSignedSessionId-CxxYNC_8.cjs.map → getSignedSessionId-BBaBCi9S.cjs.map} +1 -1
- package/dist/{getSignedSessionId-c7dS4PQ9.esm.js → getSignedSessionId-CND07Eca.esm.js} +3 -3
- package/dist/{getSignedSessionId-c7dS4PQ9.esm.js.map → getSignedSessionId-CND07Eca.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-DPOXdh6y.native.esm.js → getSignedSessionId-RwV7JPn8.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-DPOXdh6y.native.esm.js.map → getSignedSessionId-RwV7JPn8.native.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-Cahp763h.esm.js → getVerifiedCredentialForWalletAccount-BVrGV8qf.native.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-DuNbORNW.native.esm.js.map → getVerifiedCredentialForWalletAccount-BVrGV8qf.native.esm.js.map} +1 -1
- package/dist/getVerifiedCredentialForWalletAccount-BiOS65Tk.esm.js +269 -0
- package/dist/getVerifiedCredentialForWalletAccount-BiOS65Tk.esm.js.map +1 -0
- package/dist/getVerifiedCredentialForWalletAccount-FrxYWSuD.cjs +347 -0
- package/dist/getVerifiedCredentialForWalletAccount-FrxYWSuD.cjs.map +1 -0
- package/dist/index.cjs +67 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +5 -5
- package/dist/index.native.esm.js.map +1 -1
- package/dist/isMfaRequiredForAction-BPL_dgIM.esm.js +318 -0
- package/dist/isMfaRequiredForAction-BPL_dgIM.esm.js.map +1 -0
- package/dist/isMfaRequiredForAction-BolTrtCO.cjs +405 -0
- package/dist/isMfaRequiredForAction-BolTrtCO.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-D8G5PBAd.native.esm.js → isMfaRequiredForAction-DQDoPsi6.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-D8G5PBAd.native.esm.js.map → isMfaRequiredForAction-DQDoPsi6.native.esm.js.map} +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
- package/dist/modules/waas/createWaasClient/translateNativeOpenError.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts +1 -2
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs +9 -9
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +3 -3
- package/dist/waas.native.esm.js +3 -3
- package/dist/waasCore.cjs +8 -5
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +8 -4
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +8 -7
- package/dist/waasCore.native.esm.js.map +1 -1
- package/dynamic-labs-sdk-client.podspec +27 -0
- package/ios/DynamicClientKeychain.h +4 -0
- package/ios/DynamicClientKeychain.mm +101 -0
- package/ios/DynamicClientManifest.h +4 -0
- package/ios/DynamicClientManifest.mm +45 -0
- package/ios/DynamicClientWebView.h +5 -0
- package/ios/DynamicClientWebView.mm +143 -0
- package/ios/DynamicWebViewImpl.swift +603 -0
- package/ios/LiveSecKeyAPI.swift +86 -0
- package/ios/ReactNativeManifestImpl.swift +20 -0
- package/ios/SecKeyAPI.swift +57 -0
- package/ios/SecureEnclaveKeyManager.swift +191 -0
- package/package.json +14 -5
- package/react-native.config.cjs +14 -0
- package/src/turboModules/NativeDynamicWebView.native.spec.ts +61 -0
- package/src/turboModules/NativeDynamicWebView.ts +40 -0
- package/src/turboModules/NativeKeychain.native.spec.ts +47 -0
- package/src/turboModules/NativeKeychain.ts +19 -0
- package/src/turboModules/NativeReactNativeManifest.native.spec.ts +55 -0
- package/src/turboModules/NativeReactNativeManifest.ts +28 -0
- package/dist/InvalidParamError-CTssOe86.cjs.map +0 -1
- package/dist/InvalidParamError-fQLJaGBW.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-BCSmILlH.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-BWhaD23J.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-C1p9Rrg3.cjs.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-Cahp763h.esm.js.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-Di8dM5Wx.cjs +0 -887
- package/dist/getVerifiedCredentialForWalletAccount-Di8dM5Wx.cjs.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-DuNbORNW.native.esm.js +0 -701
- package/dist/isMfaRequiredForAction-BjRvPrU6.esm.js +0 -79
- package/dist/isMfaRequiredForAction-BjRvPrU6.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-hlhj0qAC.cjs +0 -96
- package/dist/isMfaRequiredForAction-hlhj0qAC.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_InvalidParamError = require('./InvalidParamError-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-BolTrtCO.cjs');
|
|
2
|
+
const require_InvalidParamError = require('./InvalidParamError-S56rFFDP.cjs');
|
|
3
|
+
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-BDdcpGHH.cjs');
|
|
4
|
+
const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-FrxYWSuD.cjs');
|
|
5
|
+
const require_NotWaasWalletAccountError = require('./NotWaasWalletAccountError-CbhIKUDM.cjs');
|
|
6
6
|
let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
|
|
7
7
|
let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
|
|
8
8
|
let zod_mini = require("zod/mini");
|
|
9
|
-
zod_mini =
|
|
9
|
+
zod_mini = require_isMfaRequiredForAction.__toESM(zod_mini);
|
|
10
10
|
let eventemitter3 = require("eventemitter3");
|
|
11
|
-
eventemitter3 =
|
|
11
|
+
eventemitter3 = require_isMfaRequiredForAction.__toESM(eventemitter3);
|
|
12
12
|
let _simplewebauthn_browser = require("@simplewebauthn/browser");
|
|
13
13
|
|
|
14
14
|
//#region src/modules/state/raiseStateEvents/events.ts
|
|
@@ -122,7 +122,7 @@ const initializeAuth = (client) => {
|
|
|
122
122
|
const now = /* @__PURE__ */ new Date();
|
|
123
123
|
const timeUntilExpiration = expiration.getTime() - now.getTime();
|
|
124
124
|
if (timeUntilExpiration <= 0) {
|
|
125
|
-
|
|
125
|
+
require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "token-expired" }, client);
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
clearExpirationTimeout = setLongTimeout({
|
|
@@ -160,7 +160,7 @@ const setupCrossTabEventSync = (client) => {
|
|
|
160
160
|
};
|
|
161
161
|
core.eventEmitter.on("deviceRegistrationCompleted", handleDeviceRegistrationCompleted);
|
|
162
162
|
const handleCrossTabDeviceRegistrationCompleted = () => {
|
|
163
|
-
|
|
163
|
+
require_InvalidParamError.emitEvent({ event: "deviceRegistrationCompletedInAnotherTab" }, client);
|
|
164
164
|
};
|
|
165
165
|
core.crossTabBroadcast.on("deviceRegistrationCompleted", handleCrossTabDeviceRegistrationCompleted);
|
|
166
166
|
};
|
|
@@ -187,7 +187,7 @@ const walletProviderKeyMapSchema = zod_mini.record(zod_mini.string(), zod_mini.s
|
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
189
|
//#region src/modules/storageSync/schema.ts
|
|
190
|
-
const stateStorageKeySchema =
|
|
190
|
+
const stateStorageKeySchema = require_isMfaRequiredForAction.createStorageKeySchema({
|
|
191
191
|
key: "state",
|
|
192
192
|
schema: zod_mini.object({
|
|
193
193
|
apiVersion: zod_mini.string(),
|
|
@@ -199,7 +199,7 @@ const stateStorageKeySchema = require_getNetworkProviderFromNetworkId.createStor
|
|
|
199
199
|
walletProviderKeyMap: walletProviderKeyMapSchema
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
const sessionStorageKeySchema =
|
|
202
|
+
const sessionStorageKeySchema = require_isMfaRequiredForAction.createStorageKeySchema({
|
|
203
203
|
config: { storageTier: "secure" },
|
|
204
204
|
key: "session",
|
|
205
205
|
schema: zod_mini.object({
|
|
@@ -293,7 +293,7 @@ const raiseStateEvents = (client) => {
|
|
|
293
293
|
require_InvalidParamError.getCore(client).state.subscribe((value, previous) => {
|
|
294
294
|
Object.entries(stateChangeEvents).forEach(([key, event]) => {
|
|
295
295
|
if (require_getNetworkProviderFromNetworkId.isEqualShallow(value[key], previous[key])) return;
|
|
296
|
-
|
|
296
|
+
require_InvalidParamError.emitEvent({
|
|
297
297
|
args: { [key]: value[key] },
|
|
298
298
|
event
|
|
299
299
|
}, client);
|
|
@@ -459,10 +459,10 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
|
|
|
459
459
|
logger: core.logger,
|
|
460
460
|
state: core.state,
|
|
461
461
|
storage: core.storage
|
|
462
|
-
}).catch(() =>
|
|
463
|
-
if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await
|
|
462
|
+
}).catch(() => require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "keychain-migration-failed" }, client));
|
|
463
|
+
if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "keychain-key-missing" }, client);
|
|
464
464
|
}).then(async () => {
|
|
465
|
-
if (!core.state.get().projectSettings) await
|
|
465
|
+
if (!core.state.get().projectSettings) await require_isMfaRequiredForAction.fetchProjectSettings(client);
|
|
466
466
|
});
|
|
467
467
|
fetchProjectSettingsPromise.then(() => prefetchNoncesIfNeeded(client)).catch((error) => {
|
|
468
468
|
core.logger.error("Failed to prefetch nonces:", error);
|
|
@@ -471,7 +471,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
|
|
|
471
471
|
* Generate session keys if they don't exist
|
|
472
472
|
*/
|
|
473
473
|
const generateSessionKeysPromise = fetchProjectSettingsPromise.then(async () => {
|
|
474
|
-
if (!core.state.get().sessionKeys) await
|
|
474
|
+
if (!core.state.get().sessionKeys) await require_isMfaRequiredForAction.generateSessionKeys(client);
|
|
475
475
|
});
|
|
476
476
|
/**
|
|
477
477
|
* Refresh user state on initialization when cookie is enabled.
|
|
@@ -496,7 +496,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
|
|
|
496
496
|
if (require_InvalidParamError.isCookieEnabled(client)) await require_NotWaasWalletAccountError.__refreshAuth_wrapped(client).catch(async (error) => {
|
|
497
497
|
if (error.status === 401) {
|
|
498
498
|
core.logger.error("Session expired during initialization", error);
|
|
499
|
-
if (client.user) await
|
|
499
|
+
if (client.user) await require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "session-refresh-unauthorized" }, client);
|
|
500
500
|
} else throw error;
|
|
501
501
|
});
|
|
502
502
|
});
|
|
@@ -507,7 +507,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
|
|
|
507
507
|
*/
|
|
508
508
|
const refreshUserStateFromValidTokenPromise = refreshUserStateFromCookiePromise.then(async () => {
|
|
509
509
|
if (core.state.get().token && !core.state.get().user) await __refreshUser_wrapped(client).catch(async () => {
|
|
510
|
-
await
|
|
510
|
+
await require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "user-refresh-failed" }, client);
|
|
511
511
|
});
|
|
512
512
|
});
|
|
513
513
|
core.initTrack.track({
|
|
@@ -1664,7 +1664,7 @@ const logout = async (client = require_InvalidParamError.getDefaultClient()) =>
|
|
|
1664
1664
|
* `logoutWithReason` — this wrapper is intentionally not instrumented so that
|
|
1665
1665
|
* Datadog sees a single function name per logout regardless of entry point.
|
|
1666
1666
|
*/
|
|
1667
|
-
return
|
|
1667
|
+
return require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "user-intent" }, client);
|
|
1668
1668
|
};
|
|
1669
1669
|
|
|
1670
1670
|
//#endregion
|
|
@@ -1886,7 +1886,7 @@ const removeDynamicOauthParamsFromUrl = (url) => {
|
|
|
1886
1886
|
//#endregion
|
|
1887
1887
|
//#region src/modules/auth/social/oauth/redirectStateStorageSchema/redirectStateStorageSchema.ts
|
|
1888
1888
|
/** The schema to track the state of the OAuth flow. */
|
|
1889
|
-
const redirectStateStorageKeySchema =
|
|
1889
|
+
const redirectStateStorageKeySchema = require_isMfaRequiredForAction.createStorageKeySchema({
|
|
1890
1890
|
key: "redirectState",
|
|
1891
1891
|
schema: zod_mini.object({
|
|
1892
1892
|
codeVerifier: zod_mini.optional(zod_mini.string()),
|
|
@@ -2274,7 +2274,7 @@ const detectOAuthRedirect = (params, client = require_InvalidParamError.getDefau
|
|
|
2274
2274
|
* @not-instrumented
|
|
2275
2275
|
*/
|
|
2276
2276
|
const getPrimaryWalletAccount = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
2277
|
-
const sortedLastSelectedWalletAccounts =
|
|
2277
|
+
const sortedLastSelectedWalletAccounts = require_InvalidParamError.getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
2278
2278
|
if (sortedLastSelectedWalletAccounts.length === 0) return null;
|
|
2279
2279
|
const [primaryWalletAccount] = sortedLastSelectedWalletAccounts;
|
|
2280
2280
|
return primaryWalletAccount;
|
|
@@ -2342,7 +2342,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2342
2342
|
const core = require_InvalidParamError.getCore(client);
|
|
2343
2343
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
2344
2344
|
if (!networkId && !networkIds) {
|
|
2345
|
-
const activeNetworkId = await
|
|
2345
|
+
const activeNetworkId = await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
2346
2346
|
networkId = Number(activeNetworkId.networkId);
|
|
2347
2347
|
}
|
|
2348
2348
|
return await apiClient.getAccountBalances({
|
|
@@ -2387,7 +2387,7 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = require_I
|
|
|
2387
2387
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2388
2388
|
/** @not-instrumented */
|
|
2389
2389
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2390
|
-
return
|
|
2390
|
+
return require_isMfaRequiredForAction.createStorageKeySchema({
|
|
2391
2391
|
key: `checkoutSessionToken:${transactionId}`,
|
|
2392
2392
|
schema: zod_mini.string()
|
|
2393
2393
|
});
|
|
@@ -2792,7 +2792,7 @@ const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider },
|
|
|
2792
2792
|
*/
|
|
2793
2793
|
const executeSwapTransaction = async ({ walletAccount, signingPayload, onStepChange, sponsorshipMode }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2794
2794
|
if (!SWAP_SUPPORTED_CHAINS.includes(walletAccount.chain)) throw new require_InvalidParamError.InvalidParamError(`Chain ${walletAccount.chain} is not supported for swap transactions`);
|
|
2795
|
-
const walletProvider =
|
|
2795
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
2796
2796
|
assertWalletProviderMethodDefined(walletProvider, "executeSwapTransaction");
|
|
2797
2797
|
await ensureCorrectActiveNetwork({
|
|
2798
2798
|
requiredNetworkId: signingPayload.chainId,
|
|
@@ -2921,7 +2921,7 @@ const completeDeviceRegistration = async ({ deviceToken }, client = require_Inva
|
|
|
2921
2921
|
const core = require_InvalidParamError.getCore(client);
|
|
2922
2922
|
const response = await require_InvalidParamError.createApiClient({ headers: { [DEVICE_REGISTRATION_TOKEN_HEADER]: deviceToken } }, client).deviceRegistration({ environmentId: core.environmentId });
|
|
2923
2923
|
require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
|
|
2924
|
-
|
|
2924
|
+
require_InvalidParamError.emitEvent({ event: "deviceRegistrationCompleted" }, client);
|
|
2925
2925
|
return response;
|
|
2926
2926
|
};
|
|
2927
2927
|
const __completeDeviceRegistration_impl = completeDeviceRegistration;
|
|
@@ -3019,7 +3019,7 @@ const isDeviceRegistrationRequired = (user) => Boolean(user.scope?.includes("dev
|
|
|
3019
3019
|
const revokeAllRegisteredDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
3020
3020
|
const core = require_InvalidParamError.getCore(client);
|
|
3021
3021
|
await require_InvalidParamError.createApiClient({}, client).deleteAllDeviceRegistrations({ environmentId: core.environmentId });
|
|
3022
|
-
await
|
|
3022
|
+
await require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "all-devices-revoked" }, client);
|
|
3023
3023
|
};
|
|
3024
3024
|
const __revokeAllRegisteredDevices_impl = revokeAllRegisteredDevices;
|
|
3025
3025
|
const __revokeAllRegisteredDevices_wrapped = require_InvalidParamError.instrumentFunction({
|
|
@@ -3043,7 +3043,7 @@ const revokeRegisteredDevice = async ({ deviceRegistrationId }, client = require
|
|
|
3043
3043
|
if ((await require_InvalidParamError.createApiClient({}, client).deleteDeviceRegistration({
|
|
3044
3044
|
deviceRegistrationId,
|
|
3045
3045
|
environmentId: core.environmentId
|
|
3046
|
-
})).currentDeviceRevoked) await
|
|
3046
|
+
})).currentDeviceRevoked) await require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "device-revoked" }, client);
|
|
3047
3047
|
};
|
|
3048
3048
|
const __revokeRegisteredDevice_impl = revokeRegisteredDevice;
|
|
3049
3049
|
const __revokeRegisteredDevice_wrapped = require_InvalidParamError.instrumentFunction({
|
|
@@ -3542,7 +3542,7 @@ const fetchWithTimeout = async (client) => {
|
|
|
3542
3542
|
/**
|
|
3543
3543
|
* The schema to store the cached wallet book data.
|
|
3544
3544
|
*/
|
|
3545
|
-
const walletBookCacheStorageKeySchema =
|
|
3545
|
+
const walletBookCacheStorageKeySchema = require_isMfaRequiredForAction.createStorageKeySchema({
|
|
3546
3546
|
key: "legacyWalletBookCache",
|
|
3547
3547
|
schema: zod_mini.object({
|
|
3548
3548
|
groups: zod_mini.record(zod_mini.string(), zod_mini.any()),
|
|
@@ -3577,7 +3577,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
3577
3577
|
const core = require_InvalidParamError.getCore(client);
|
|
3578
3578
|
core.logger.debug("[fetchLegacyWalletBook] Fetching wallet book...");
|
|
3579
3579
|
try {
|
|
3580
|
-
const walletBook = await
|
|
3580
|
+
const walletBook = await require_isMfaRequiredForAction.retryOnFail({
|
|
3581
3581
|
delay: RETRY_DELAY_MS,
|
|
3582
3582
|
fn: async () => fetchWithTimeout(client),
|
|
3583
3583
|
maxRetries: MAX_RETRIES
|
|
@@ -3997,7 +3997,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
3997
3997
|
* @not-instrumented
|
|
3998
3998
|
*/
|
|
3999
3999
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4000
|
-
const { normalizedWalletNameWithChain } =
|
|
4000
|
+
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProviderKey);
|
|
4001
4001
|
const chain = extractChainFromNormalizedName({ normalizedWalletNameWithChain });
|
|
4002
4002
|
if (!chain) return;
|
|
4003
4003
|
let walletProviderName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4554,9 +4554,9 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
4554
4554
|
*/
|
|
4555
4555
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
4556
4556
|
const { priority } = entry;
|
|
4557
|
-
if (priority ===
|
|
4558
|
-
if (priority ===
|
|
4559
|
-
if (priority ===
|
|
4557
|
+
if (priority === require_InvalidParamError.WalletProviderPriority.WALLET_SDK) return "sdk";
|
|
4558
|
+
if (priority === require_InvalidParamError.WalletProviderPriority.WALLET_SELF_ANNOUNCEMENT_STANDARD) return "selfAnnounced";
|
|
4559
|
+
if (priority === require_InvalidParamError.WalletProviderPriority.WINDOW_INJECT) return "windowInjected";
|
|
4560
4560
|
};
|
|
4561
4561
|
|
|
4562
4562
|
//#endregion
|
|
@@ -4676,7 +4676,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
4676
4676
|
* @not-instrumented
|
|
4677
4677
|
*/
|
|
4678
4678
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
4679
|
-
const { normalizedWalletNameWithChain } =
|
|
4679
|
+
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProvider.key);
|
|
4680
4680
|
const candidates = [normalizedWalletNameWithChain, stripChainSuffix({
|
|
4681
4681
|
chain,
|
|
4682
4682
|
normalizedName: normalizedWalletNameWithChain
|
|
@@ -5038,7 +5038,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidPa
|
|
|
5038
5038
|
const walletBook = includeMobileOptions ? await fetchLegacyWalletBook(client) : EMPTY_WALLET_BOOK;
|
|
5039
5039
|
const allConnectionOptions = [];
|
|
5040
5040
|
if (!excludedConnectionOptionTypes.has("withWalletProvider")) {
|
|
5041
|
-
const entries =
|
|
5041
|
+
const entries = require_InvalidParamError.getWalletProviderRegistry(client).listProviderEntries();
|
|
5042
5042
|
allConnectionOptions.push(...buildWithWalletProviderOptions({
|
|
5043
5043
|
entries,
|
|
5044
5044
|
walletBook
|
|
@@ -5174,13 +5174,13 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
5174
5174
|
}
|
|
5175
5175
|
});
|
|
5176
5176
|
require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
|
|
5177
|
-
|
|
5177
|
+
require_InvalidParamError.emitEvent({
|
|
5178
5178
|
args: { mfaToken: response.mfaToken },
|
|
5179
5179
|
event: "mfaCompletionSuccess"
|
|
5180
5180
|
}, client);
|
|
5181
5181
|
return response;
|
|
5182
5182
|
} catch (error) {
|
|
5183
|
-
|
|
5183
|
+
require_InvalidParamError.emitEvent({
|
|
5184
5184
|
args: { error },
|
|
5185
5185
|
event: "mfaCompletionFailure"
|
|
5186
5186
|
}, client);
|
|
@@ -5254,13 +5254,13 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
5254
5254
|
requestedScopes
|
|
5255
5255
|
}, client);
|
|
5256
5256
|
require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
|
|
5257
|
-
|
|
5257
|
+
require_InvalidParamError.emitEvent({
|
|
5258
5258
|
args: { mfaToken: response.mfaToken },
|
|
5259
5259
|
event: "mfaCompletionSuccess"
|
|
5260
5260
|
}, client);
|
|
5261
5261
|
return response;
|
|
5262
5262
|
} catch (error) {
|
|
5263
|
-
|
|
5263
|
+
require_InvalidParamError.emitEvent({
|
|
5264
5264
|
args: { error },
|
|
5265
5265
|
event: "mfaCompletionFailure"
|
|
5266
5266
|
}, client);
|
|
@@ -5298,7 +5298,7 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
|
|
|
5298
5298
|
}
|
|
5299
5299
|
});
|
|
5300
5300
|
require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
|
|
5301
|
-
|
|
5301
|
+
require_InvalidParamError.emitEvent({
|
|
5302
5302
|
args: {
|
|
5303
5303
|
deviceId,
|
|
5304
5304
|
mfaToken: response.mfaToken
|
|
@@ -5307,7 +5307,7 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
|
|
|
5307
5307
|
}, client);
|
|
5308
5308
|
return response;
|
|
5309
5309
|
} catch (error) {
|
|
5310
|
-
|
|
5310
|
+
require_InvalidParamError.emitEvent({
|
|
5311
5311
|
args: {
|
|
5312
5312
|
deviceId,
|
|
5313
5313
|
error
|
|
@@ -6697,7 +6697,7 @@ const getSwapStatus = async (params, client = require_InvalidParamError.getDefau
|
|
|
6697
6697
|
const deleteUser = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
6698
6698
|
const core = require_InvalidParamError.getCore(client);
|
|
6699
6699
|
await require_InvalidParamError.createApiClient({ includeMfaToken: true }, client).hardDeleteUser({ environmentId: core.environmentId });
|
|
6700
|
-
await
|
|
6700
|
+
await require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "user-deleted" }, client);
|
|
6701
6701
|
};
|
|
6702
6702
|
const __deleteUser_impl = deleteUser;
|
|
6703
6703
|
const __deleteUser_wrapped = require_InvalidParamError.instrumentFunction({
|
|
@@ -6930,7 +6930,7 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6930
6930
|
* @not-instrumented
|
|
6931
6931
|
*/
|
|
6932
6932
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
6933
|
-
const { addresses } = await
|
|
6933
|
+
const { addresses } = await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
6934
6934
|
if (addresses.length > 0 && !addresses.includes(walletAccount.address)) throw new WalletAccountNotSelectedError({
|
|
6935
6935
|
expectedAddress: walletAccount.address,
|
|
6936
6936
|
selectedAddress: addresses[0]
|
|
@@ -6954,7 +6954,7 @@ const assertWalletAccountSigningAvailability = async ({ walletAccount }, client
|
|
|
6954
6954
|
* @instrumented
|
|
6955
6955
|
*/
|
|
6956
6956
|
const confirmTransaction = async ({ walletAccount, transactionHash }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
6957
|
-
const walletProvider =
|
|
6957
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
6958
6958
|
assertWalletProviderMethodDefined(walletProvider, "confirmTransaction");
|
|
6959
6959
|
await walletProvider.confirmTransaction({
|
|
6960
6960
|
transactionHash,
|
|
@@ -7017,7 +7017,7 @@ const connectWithWalletProvider = async ({ walletProviderKey, addToDynamicWallet
|
|
|
7017
7017
|
addressesWithTypes: getAddressesWithTypesFromConnectionResult({ addresses }),
|
|
7018
7018
|
chain: walletProvider.chain,
|
|
7019
7019
|
hardwareWalletVendor,
|
|
7020
|
-
id:
|
|
7020
|
+
id: require_InvalidParamError.formatWalletAccountId({
|
|
7021
7021
|
address: mainAddress,
|
|
7022
7022
|
chain: walletProvider.chain,
|
|
7023
7023
|
walletProviderKey
|
|
@@ -7079,7 +7079,7 @@ const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client)
|
|
|
7079
7079
|
const url = new URL(appUniversalLink);
|
|
7080
7080
|
const domain = url.host;
|
|
7081
7081
|
const nonce = nonceOverride ?? await require_InvalidParamError.getNonce(client);
|
|
7082
|
-
const walletProvider =
|
|
7082
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
7083
7083
|
if (walletProvider.chain === "STARK")
|
|
7084
7084
|
/**
|
|
7085
7085
|
* Starknet requires the strings to be 31 chars long
|
|
@@ -7118,7 +7118,7 @@ const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client)
|
|
|
7118
7118
|
* @instrumented
|
|
7119
7119
|
*/
|
|
7120
7120
|
const proveWalletAccountOwnership = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7121
|
-
const walletProvider =
|
|
7121
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
7122
7122
|
assertWalletProviderMethodDefined(walletProvider, "signMessage");
|
|
7123
7123
|
const messageToSign = await getSignInMessage({
|
|
7124
7124
|
nonce: walletProvider.getConnectProofNonce?.(),
|
|
@@ -7149,10 +7149,10 @@ const __proveWalletAccountOwnership_wrapped = require_InvalidParamError.instrume
|
|
|
7149
7149
|
//#endregion
|
|
7150
7150
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7151
7151
|
/** @not-instrumented */
|
|
7152
|
-
const isSameAddress = ({ chain, left, right }) =>
|
|
7152
|
+
const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.normalizeAddress({
|
|
7153
7153
|
address: left,
|
|
7154
7154
|
chain
|
|
7155
|
-
}) ===
|
|
7155
|
+
}) === require_InvalidParamError.normalizeAddress({
|
|
7156
7156
|
address: right,
|
|
7157
7157
|
chain
|
|
7158
7158
|
});
|
|
@@ -7162,7 +7162,7 @@ const isSameAddress = ({ chain, left, right }) => require_getVerifiedCredentialF
|
|
|
7162
7162
|
/** @not-instrumented */
|
|
7163
7163
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7164
7164
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7165
|
-
const walletProvider =
|
|
7165
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
7166
7166
|
const { messageToSign, signature } = await __proveWalletAccountOwnership_wrapped({ walletAccount }, client);
|
|
7167
7167
|
const formattedSignature = walletAccount.hardwareWalletVendor ? formatSignatureForHardwareWallet({
|
|
7168
7168
|
hardwareWalletVendor: walletAccount.hardwareWalletVendor,
|
|
@@ -7197,7 +7197,7 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
|
|
|
7197
7197
|
* Remove the now verified wallet account from the unverified wallet accounts
|
|
7198
7198
|
*/
|
|
7199
7199
|
require_getNetworkProviderFromNetworkId.removeUnverifiedWalletAccount({ unverifiedWalletAccount: walletAccount }, client);
|
|
7200
|
-
const verifiedWalletAccount =
|
|
7200
|
+
const verifiedWalletAccount = require_InvalidParamError.getWalletAccounts(client).find(({ address }) => isSameAddress({
|
|
7201
7201
|
chain: walletAccount.chain,
|
|
7202
7202
|
left: address,
|
|
7203
7203
|
right: walletAccount.address
|
|
@@ -7347,7 +7347,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidPa
|
|
|
7347
7347
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7348
7348
|
const smartWalletVerifiedCredential = require_getVerifiedCredentialForWalletAccount.getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7349
7349
|
require_InvalidParamError.assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
7350
|
-
return
|
|
7350
|
+
return require_InvalidParamError.getWalletAccounts(client).find((walletAccount) => walletAccount.verifiedCredentialId === smartWalletVerifiedCredential.signerRefId);
|
|
7351
7351
|
};
|
|
7352
7352
|
|
|
7353
7353
|
//#endregion
|
|
@@ -7392,7 +7392,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_Inva
|
|
|
7392
7392
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7393
7393
|
* @not-instrumented
|
|
7394
7394
|
*/
|
|
7395
|
-
const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefaultClient()) =>
|
|
7395
|
+
const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefaultClient()) => require_InvalidParamError.getWalletAccounts(client).length > 0;
|
|
7396
7396
|
|
|
7397
7397
|
//#endregion
|
|
7398
7398
|
//#region src/modules/wallets/hardwareWallet/canConnectWithHardwareWallet/canConnectWithHardwareWallet.ts
|
|
@@ -7485,7 +7485,7 @@ const __addNetwork_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
7485
7485
|
* @not-instrumented
|
|
7486
7486
|
*/
|
|
7487
7487
|
const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7488
|
-
const walletProvider =
|
|
7488
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
7489
7489
|
const { networkId } = await walletProvider.getActiveNetworkId();
|
|
7490
7490
|
return { networkData: require_getNetworkProviderFromNetworkId.getNetworksData(client).find((data) => data.networkId === networkId && data.chain === walletProvider.chain) };
|
|
7491
7491
|
};
|
|
@@ -7501,7 +7501,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidP
|
|
|
7501
7501
|
* @not-instrumented
|
|
7502
7502
|
*/
|
|
7503
7503
|
const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7504
|
-
return
|
|
7504
|
+
return require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
7505
7505
|
};
|
|
7506
7506
|
|
|
7507
7507
|
//#endregion
|
|
@@ -7522,7 +7522,7 @@ const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamErro
|
|
|
7522
7522
|
* @not-instrumented
|
|
7523
7523
|
*/
|
|
7524
7524
|
const getNativeBalance = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7525
|
-
const walletProvider =
|
|
7525
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
7526
7526
|
const { networkId } = await walletProvider.getActiveNetworkId();
|
|
7527
7527
|
return require_getNetworkProviderFromNetworkId.getNetworkProviderFromNetworkId({
|
|
7528
7528
|
chain: walletProvider.chain,
|
|
@@ -7681,9 +7681,9 @@ const __selectPrimaryWalletAccount_wrapped = require_InvalidParamError.instrumen
|
|
|
7681
7681
|
*/
|
|
7682
7682
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
7683
7683
|
try {
|
|
7684
|
-
await
|
|
7684
|
+
await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).disconnectWalletAccount?.({ walletAccount });
|
|
7685
7685
|
} catch (error) {
|
|
7686
|
-
if (error instanceof
|
|
7686
|
+
if (error instanceof require_InvalidParamError.NoWalletProviderFoundError) return;
|
|
7687
7687
|
throw error;
|
|
7688
7688
|
}
|
|
7689
7689
|
};
|
|
@@ -7743,7 +7743,7 @@ const __removeWalletAccount_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
7743
7743
|
* @instrumented
|
|
7744
7744
|
*/
|
|
7745
7745
|
const signMessage = async ({ walletAccount, message }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7746
|
-
const walletProvider =
|
|
7746
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
7747
7747
|
assertWalletProviderMethodDefined(walletProvider, "signMessage");
|
|
7748
7748
|
const { signature } = await walletProvider.signMessage({
|
|
7749
7749
|
message,
|
|
@@ -7782,7 +7782,7 @@ const __signMessage_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
7782
7782
|
* @instrumented
|
|
7783
7783
|
*/
|
|
7784
7784
|
const transferAmount = async ({ walletAccount, amount, recipient, token }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7785
|
-
const walletProvider =
|
|
7785
|
+
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
7786
7786
|
assertWalletProviderMethodDefined(walletProvider, "transferAmount");
|
|
7787
7787
|
const { transactionHash } = await walletProvider.transferAmount({
|
|
7788
7788
|
amount,
|
|
@@ -7855,7 +7855,7 @@ const __transferWalletAccount_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
7855
7855
|
* @not-instrumented
|
|
7856
7856
|
*/
|
|
7857
7857
|
const getWalletAccountFromAddress = ({ address, chain }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7858
|
-
return
|
|
7858
|
+
return require_InvalidParamError.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
7859
7859
|
};
|
|
7860
7860
|
|
|
7861
7861
|
//#endregion
|
|
@@ -8060,7 +8060,7 @@ exports.detectOAuthRedirect = detectOAuthRedirect;
|
|
|
8060
8060
|
exports.detectSocialRedirectUrl = detectSocialRedirectUrl;
|
|
8061
8061
|
exports.excludeInstalledFromCatalog = excludeInstalledFromCatalog;
|
|
8062
8062
|
exports.executeSwapTransaction = __executeSwapTransaction_wrapped;
|
|
8063
|
-
exports.fetchProjectSettings =
|
|
8063
|
+
exports.fetchProjectSettings = require_isMfaRequiredForAction.fetchProjectSettings;
|
|
8064
8064
|
exports.findMissingGoogleDriveBackupScopes = findMissingGoogleDriveBackupScopes;
|
|
8065
8065
|
exports.getActiveNetworkData = getActiveNetworkData;
|
|
8066
8066
|
exports.getActiveNetworkId = getActiveNetworkId;
|
|
@@ -8100,7 +8100,7 @@ exports.getTransactionHistory = getTransactionHistory;
|
|
|
8100
8100
|
exports.getUserSocialAccounts = getUserSocialAccounts;
|
|
8101
8101
|
exports.getWalletAccountAddressByType = getWalletAccountAddressByType;
|
|
8102
8102
|
exports.getWalletAccountFromAddress = getWalletAccountFromAddress;
|
|
8103
|
-
exports.getWalletAccounts =
|
|
8103
|
+
exports.getWalletAccounts = require_InvalidParamError.getWalletAccounts;
|
|
8104
8104
|
exports.getWalletConnectCatalog = getWalletConnectCatalog;
|
|
8105
8105
|
exports.getWalletConnectCatalogWalletByWalletProviderKey = getWalletConnectCatalogWalletByWalletProviderKey;
|
|
8106
8106
|
exports.getWalletOptionsCatalogue = getWalletOptionsCatalogue;
|
|
@@ -8118,17 +8118,17 @@ exports.isMfaRequiredForAction = require_isMfaRequiredForAction.isMfaRequiredFor
|
|
|
8118
8118
|
exports.isMobile = isMobile;
|
|
8119
8119
|
exports.isPendingRecoveryCodesAcknowledgment = isPendingRecoveryCodesAcknowledgment;
|
|
8120
8120
|
exports.isProgrammaticNetworkSwitchAvailable = isProgrammaticNetworkSwitchAvailable;
|
|
8121
|
-
exports.isSignedIn =
|
|
8121
|
+
exports.isSignedIn = require_isMfaRequiredForAction.isSignedIn;
|
|
8122
8122
|
exports.isUserMissingMfaAuth = require_getVerifiedCredentialForWalletAccount.isUserMissingMfaAuth;
|
|
8123
8123
|
exports.isUserOnboardingComplete = isUserOnboardingComplete;
|
|
8124
8124
|
exports.isWalletAccountVerified = isWalletAccountVerified;
|
|
8125
8125
|
exports.logout = logout;
|
|
8126
8126
|
exports.matchWalletProvidersToCatalogGroup = matchWalletProvidersToCatalogGroup;
|
|
8127
|
-
exports.offEvent =
|
|
8127
|
+
exports.offEvent = require_InvalidParamError.offEvent;
|
|
8128
8128
|
exports.offWalletProviderEvent = offWalletProviderEvent;
|
|
8129
|
-
exports.onEvent =
|
|
8129
|
+
exports.onEvent = require_InvalidParamError.onEvent;
|
|
8130
8130
|
exports.onWalletProviderEvent = onWalletProviderEvent;
|
|
8131
|
-
exports.onceEvent =
|
|
8131
|
+
exports.onceEvent = require_InvalidParamError.onceEvent;
|
|
8132
8132
|
exports.parseUserAgent = parseUserAgent;
|
|
8133
8133
|
exports.prepareCheckoutTransaction = __prepareCheckoutTransaction_wrapped;
|
|
8134
8134
|
exports.proveWalletAccountOwnership = __proveWalletAccountOwnership_wrapped;
|