@dynamic-labs-sdk/client 0.27.3 → 1.0.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/dist/{InvalidParamError-DldrUncB.esm.js → InvalidParamError-DQ1ABzoy.esm.js} +3 -3
- package/dist/{InvalidParamError-DldrUncB.esm.js.map → InvalidParamError-DQ1ABzoy.esm.js.map} +1 -1
- package/dist/{InvalidParamError-DpWmGrCu.cjs → InvalidParamError-WOyVlLys.cjs} +4 -4
- package/dist/{InvalidParamError-DpWmGrCu.cjs.map → InvalidParamError-WOyVlLys.cjs.map} +1 -1
- package/dist/{InvalidParamError-DNHh0Gh5.native.esm.js → InvalidParamError-p9-9P-lf.native.esm.js} +3 -3
- package/dist/{InvalidParamError-DNHh0Gh5.native.esm.js.map → InvalidParamError-p9-9P-lf.native.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-CWF12nhP.cjs → NotWaasWalletAccountError-CM_mmb18.cjs} +3 -3
- package/dist/{NotWaasWalletAccountError-CWF12nhP.cjs.map → NotWaasWalletAccountError-CM_mmb18.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-gHou4PX3.native.esm.js → NotWaasWalletAccountError-DXS6Quo_.native.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-gHou4PX3.native.esm.js.map → NotWaasWalletAccountError-DXS6Quo_.native.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-DljMKzTQ.esm.js → NotWaasWalletAccountError-PrroboxR.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-DljMKzTQ.esm.js.map → NotWaasWalletAccountError-PrroboxR.esm.js.map} +1 -1
- package/dist/core.cjs +5 -5
- package/dist/core.esm.js +5 -5
- package/dist/core.native.esm.js +5 -5
- package/dist/{getNetworkProviderFromNetworkId-DYEOZZqE.native.esm.js → getNetworkProviderFromNetworkId-CKxfzZDr.native.esm.js} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-DYEOZZqE.native.esm.js.map → getNetworkProviderFromNetworkId-CKxfzZDr.native.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DiRZU_DV.cjs → getNetworkProviderFromNetworkId-CLf4WTzA.cjs} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-DiRZU_DV.cjs.map → getNetworkProviderFromNetworkId-CLf4WTzA.cjs.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DUzOAKmt.esm.js → getNetworkProviderFromNetworkId-D9h1iRX7.esm.js} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-DUzOAKmt.esm.js.map → getNetworkProviderFromNetworkId-D9h1iRX7.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-B3kKx1PA.cjs → getSignedSessionId-Amzjohh4.cjs} +3 -3
- package/dist/{getSignedSessionId-B3kKx1PA.cjs.map → getSignedSessionId-Amzjohh4.cjs.map} +1 -1
- package/dist/{getSignedSessionId-DdLkS7T3.native.esm.js → getSignedSessionId-BfoAvhGi.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-DdLkS7T3.native.esm.js.map → getSignedSessionId-BfoAvhGi.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-CmRrL2kQ.esm.js → getSignedSessionId-C4COaxNK.esm.js} +3 -3
- package/dist/{getSignedSessionId-CmRrL2kQ.esm.js.map → getSignedSessionId-C4COaxNK.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-CVo5S2xM.esm.js → getVerifiedCredentialForWalletAccount-CFLGCivi.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-CVo5S2xM.esm.js.map → getVerifiedCredentialForWalletAccount-CFLGCivi.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-BlrfzkDS.native.esm.js → getVerifiedCredentialForWalletAccount-DUzAvFYd.native.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-BlrfzkDS.native.esm.js.map → getVerifiedCredentialForWalletAccount-DUzAvFYd.native.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-U31FeOcq.cjs → getVerifiedCredentialForWalletAccount-QkdDRxzf.cjs} +3 -3
- package/dist/{getVerifiedCredentialForWalletAccount-U31FeOcq.cjs.map → getVerifiedCredentialForWalletAccount-QkdDRxzf.cjs.map} +1 -1
- package/dist/index.cjs +10 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +10 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +10 -6
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-Dl1ehrjt.native.esm.js → isMfaRequiredForAction-C7PeETG7.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-Dl1ehrjt.native.esm.js.map → isMfaRequiredForAction-C7PeETG7.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-D2nNRTUI.esm.js → isMfaRequiredForAction-DLo5DjM6.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-D2nNRTUI.esm.js.map → isMfaRequiredForAction-DLo5DjM6.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-hjrkCBpk.cjs → isMfaRequiredForAction-zlHmSSKB.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-hjrkCBpk.cjs.map → isMfaRequiredForAction-zlHmSSKB.cjs.map} +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +2 -0
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs +4 -4
- package/dist/waas.esm.js +3 -3
- package/dist/waas.native.esm.js +3 -3
- package/dist/waasCore.cjs +4 -4
- package/dist/waasCore.esm.js +3 -3
- package/dist/waasCore.native.esm.js +3 -3
- package/package.json +3 -3
package/dist/index.native.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as extractSessionId, B as name, C as isCookieEnabled, D as instrumentFunction, E as __getElevatedAccessToken_wrapped, F as getDefaultClient, I as setDefaultClient, O as DEFAULT_PII_FIELDS, P as NONCE_POOL_SIZE, R as BaseError, T as ValueMustBeDefinedError, V as version, _ as MfaRateLimitedError, a as DYNAMIC_ICONIC_SPRITE_URL, b as InvalidExternalAuthError, c as CHAINS_INFO_MAP, d as UnauthorizedError, g as SandboxMaximumThresholdReachedError, h as getNonce, j as randomString, k as getUserAgent, l as fetchAndStoreNonces, o as SDK_API_CORE_VERSION, s as getChainFromVerifiedCredentialChain, t as InvalidParamError, u as createApiClient, v as MfaInvalidOtpError, w as assertDefined, x as APIError, y as LinkCredentialError, z as getCore } from "./InvalidParamError-
|
|
2
|
-
import { A as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, C as createLogger, D as createDeferredPromise, E as CannotTrackError, F as __logoutWithReason_wrapped, G as isEqualShallow, H as isSignedIn, I as generateSessionKeys, L as fetchProjectSettings, M as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, N as isServerSideRendering, O as FETCH_PROJECT_SETTINGS_TRACKER_KEY, P as getBuffer, R as createStorageKeySchema, U as retryOnFail, V as createLocalStorageAdapter, W as subscribeWithSelector, _ as WalletAlreadyLinkedToAnotherUserError, a as updateWalletProviderKeysForVerifiedCredentials, b as createRealtimeService, c as createSignInMessageStatement, d as createVisit, f as hasExtension, g as MethodNotImplementedError, h as isCaptchaRequired, i as getNetworksData, j as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, k as GENERATE_SESSION_KEYS_TRACKER_KEY, l as formatSignInMessage, m as consumeCaptchaToken, o as verifyMessageSignatureOwnership, p as __setCaptchaToken_wrapped, s as removeUnverifiedWalletAccount, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as NoNetworkProvidersError, w as createCrossTabBroadcast, x as createKeychainService, y as getKeychainIndexedDBName, z as createStorage } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { A as onceEvent, C as formatWalletAccountId, D as emitEvent, O as offEvent, T as splitWalletProviderKey, a as parseElevatedAccessToken, b as getWalletAccounts, d as isUserMissingMfaAuth, f as checkAndRaiseWalletAccountsChangedEvent, h as getWalletProviderFromWalletAccount, i as upsertElevatedAccessToken, k as onEvent, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as emitWalletAccountsChangedEvent, r as updateAuthFromVerifyResponse, t as getVerifiedCredentialForWalletAccount, u as getWalletProviders, w as normalizeAddress, y as NoWalletProviderFoundError } from "./getVerifiedCredentialForWalletAccount-
|
|
4
|
-
import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-
|
|
5
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
1
|
+
import { A as extractSessionId, B as name, C as isCookieEnabled, D as instrumentFunction, E as __getElevatedAccessToken_wrapped, F as getDefaultClient, I as setDefaultClient, O as DEFAULT_PII_FIELDS, P as NONCE_POOL_SIZE, R as BaseError, T as ValueMustBeDefinedError, V as version, _ as MfaRateLimitedError, a as DYNAMIC_ICONIC_SPRITE_URL, b as InvalidExternalAuthError, c as CHAINS_INFO_MAP, d as UnauthorizedError, g as SandboxMaximumThresholdReachedError, h as getNonce, j as randomString, k as getUserAgent, l as fetchAndStoreNonces, o as SDK_API_CORE_VERSION, s as getChainFromVerifiedCredentialChain, t as InvalidParamError, u as createApiClient, v as MfaInvalidOtpError, w as assertDefined, x as APIError, y as LinkCredentialError, z as getCore } from "./InvalidParamError-p9-9P-lf.native.esm.js";
|
|
2
|
+
import { A as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, C as createLogger, D as createDeferredPromise, E as CannotTrackError, F as __logoutWithReason_wrapped, G as isEqualShallow, H as isSignedIn, I as generateSessionKeys, L as fetchProjectSettings, M as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, N as isServerSideRendering, O as FETCH_PROJECT_SETTINGS_TRACKER_KEY, P as getBuffer, R as createStorageKeySchema, U as retryOnFail, V as createLocalStorageAdapter, W as subscribeWithSelector, _ as WalletAlreadyLinkedToAnotherUserError, a as updateWalletProviderKeysForVerifiedCredentials, b as createRealtimeService, c as createSignInMessageStatement, d as createVisit, f as hasExtension, g as MethodNotImplementedError, h as isCaptchaRequired, i as getNetworksData, j as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, k as GENERATE_SESSION_KEYS_TRACKER_KEY, l as formatSignInMessage, m as consumeCaptchaToken, o as verifyMessageSignatureOwnership, p as __setCaptchaToken_wrapped, s as removeUnverifiedWalletAccount, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as NoNetworkProvidersError, w as createCrossTabBroadcast, x as createKeychainService, y as getKeychainIndexedDBName, z as createStorage } from "./getNetworkProviderFromNetworkId-CKxfzZDr.native.esm.js";
|
|
3
|
+
import { A as onceEvent, C as formatWalletAccountId, D as emitEvent, O as offEvent, T as splitWalletProviderKey, a as parseElevatedAccessToken, b as getWalletAccounts, d as isUserMissingMfaAuth, f as checkAndRaiseWalletAccountsChangedEvent, h as getWalletProviderFromWalletAccount, i as upsertElevatedAccessToken, k as onEvent, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as emitWalletAccountsChangedEvent, r as updateAuthFromVerifyResponse, t as getVerifiedCredentialForWalletAccount, u as getWalletProviders, w as normalizeAddress, y as NoWalletProviderFoundError } from "./getVerifiedCredentialForWalletAccount-DUzAvFYd.native.esm.js";
|
|
4
|
+
import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-DXS6Quo_.native.esm.js";
|
|
5
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-C7PeETG7.native.esm.js";
|
|
6
6
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
7
7
|
import { AuthModeEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, TokenScope, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
|
|
8
8
|
import * as z from "zod/mini";
|
|
@@ -6252,6 +6252,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = getD
|
|
|
6252
6252
|
* @param [params.limit] - The maximum number of transactions to return.
|
|
6253
6253
|
* @param params.networkId - The network ID to query transactions for.
|
|
6254
6254
|
* @param [params.offset] - The offset to use for pagination.
|
|
6255
|
+
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
6255
6256
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6256
6257
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
6257
6258
|
* @not-instrumented
|
|
@@ -6262,7 +6263,10 @@ const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
|
6262
6263
|
address: params.address,
|
|
6263
6264
|
chainName: params.chain,
|
|
6264
6265
|
environmentId: core.environmentId,
|
|
6265
|
-
|
|
6266
|
+
limit: params.limit,
|
|
6267
|
+
networkId: params.networkId,
|
|
6268
|
+
offset: params.offset,
|
|
6269
|
+
tokenAddress: params.tokenAddress
|
|
6266
6270
|
});
|
|
6267
6271
|
};
|
|
6268
6272
|
|