@dynamic-labs/wallet-connector-core 4.10.2 → 4.10.4-preview.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/CHANGELOG.md +15 -4
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/index.d.ts +1 -1
- package/src/interfaces/IAccountAbstractionWalletConnector.d.ts +15 -0
- package/src/utils/getWalletMetadataFromWalletBook/getWalletMetadataFromWalletBook.cjs +0 -2
- package/src/utils/getWalletMetadataFromWalletBook/getWalletMetadataFromWalletBook.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.10.4-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.3...v4.10.4-preview.0) (2025-04-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add zk sync aa connector ([9835145](https://github.com/dynamic-labs/dynamic-auth/commit/9835145987a859bf2da894bf49521afce66bf9f1))
|
|
8
|
+
|
|
9
|
+
### [4.10.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.2...v4.10.3) (2025-04-04)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* dark mode vars ([#8456](https://github.com/dynamic-labs/dynamic-auth/issues/8456)) ([26c8a28](https://github.com/dynamic-labs/dynamic-auth/commit/26c8a289d151b79c73726ddf00048d83ff8d5098))
|
|
15
|
+
* onramp options override ([#8335](https://github.com/dynamic-labs/dynamic-auth/issues/8335)) ([731af19](https://github.com/dynamic-labs/dynamic-auth/commit/731af199df5c7743be8d7502dd7c6155a7d68128))
|
|
16
|
+
|
|
2
17
|
### [4.10.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.1...v4.10.2) (2025-04-02)
|
|
3
18
|
|
|
4
19
|
|
|
@@ -7,7 +22,6 @@
|
|
|
7
22
|
* add walletTabSelected event ([#8430](https://github.com/dynamic-labs/dynamic-auth/issues/8430)) ([01ef815](https://github.com/dynamic-labs/dynamic-auth/commit/01ef815330e6c5433f7c135f561ed86621cc2bd9))
|
|
8
23
|
|
|
9
24
|
|
|
10
|
-
### Bug Fixes
|
|
11
25
|
|
|
12
26
|
* disconect wallets on logout ([#8399](https://github.com/dynamic-labs/dynamic-auth/issues/8399)) ([148bc0d](https://github.com/dynamic-labs/dynamic-auth/commit/148bc0dd175048fa8a9a675383e8e6d93c7d16ac))
|
|
13
27
|
* ensure primary wallet is still a valid credential when calling resfreshUser ([#8439](https://github.com/dynamic-labs/dynamic-auth/issues/8439)) ([2e567e5](https://github.com/dynamic-labs/dynamic-auth/commit/2e567e53ea7738d4a42f3d54bb40a294403a1c36))
|
|
@@ -23,9 +37,6 @@
|
|
|
23
37
|
* Sui Support for branded wallets
|
|
24
38
|
* better handling of non-multiasset balance fetching ([#8419](https://github.com/dynamic-labs/dynamic-auth/issues/8419)) ([574d4ea](https://github.com/dynamic-labs/dynamic-auth/commit/574d4eabf85e6f85325dc374b6cd84aa9fdd7ed4))
|
|
25
39
|
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
40
|
* do not prompt passkey with 7702 on v2 wallets ([#8391](https://github.com/dynamic-labs/dynamic-auth/issues/8391)) ([bb91396](https://github.com/dynamic-labs/dynamic-auth/commit/bb913965121e97801922f5ca828d11e4a551a3b6))
|
|
30
41
|
* ensure the global wallet app url is used ([#8404](https://github.com/dynamic-labs/dynamic-auth/issues/8404)) ([23a7d91](https://github.com/dynamic-labs/dynamic-auth/commit/23a7d91b50cc85e67de52306f91163c675e0f007))
|
|
31
42
|
* **global-wallet-client:** use global wallet env id when storing data to ls ([#8405](https://github.com/dynamic-labs/dynamic-auth/issues/8405)) ([2b3d9ce](https://github.com/dynamic-labs/dynamic-auth/commit/2b3d9ce8dd82dda487759e0621c73bfad2842aef))
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.4-preview.0",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.10.
|
|
23
|
-
"@dynamic-labs/logger": "4.10.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.10.
|
|
25
|
-
"@dynamic-labs/types": "4.10.
|
|
26
|
-
"@dynamic-labs/utils": "4.10.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.10.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.656",
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.10.4-preview.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.10.4-preview.0",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.10.4-preview.0",
|
|
25
|
+
"@dynamic-labs/types": "4.10.4-preview.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.10.4-preview.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.10.4-preview.0",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { walletConnectorEvents } from './events';
|
|
2
|
-
export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type EVMAuthorizationResult, type EVMAuthorizationParameters, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type IZeroDevConnector, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, type IEthereumConnector, type IPublicClient, type ISolanaConnection, type IDynamicWaasConnector, } from './interfaces';
|
|
2
|
+
export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type EVMAuthorizationResult, type EVMAuthorizationParameters, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type IZeroDevConnector, type IZKsyncConnector, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, type IEthereumConnector, type IPublicClient, type ISolanaConnection, type IDynamicWaasConnector, } from './interfaces';
|
|
3
3
|
export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, WalletConnectorCore, WalletMetadata, WalletDeepLinks, WalletDownloadLinks, WalletLimitations, WalletLinks, } from './types';
|
|
4
4
|
export { addHexPrefix, bufferToHex, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, isBloctoConnector, isEmailOTPWalletConnector, isEmailWalletConnector, isEmbeddedConnector, isHardwareWalletConnector, isHex, isMagicConnector, isPasskeyWalletConnector, isPhantomRedirectConnector, isSameAddress, isSendBalanceWalletConnector, isSessionKeyCompatibleWallet, isSessionKeyCompatibleWalletConnector, isSocialWalletConnector, isTurnkeyWalletConnector, isWalletConnectConnector, isConnectorMethodSupported, isConnectorEventSupported, getWalletMetadataFromWalletBook, getWalletLinks, logger, performPlatformSpecificConnectionMethod, ProviderLookup, setChainInfoOverrides, shouldLowercaseAddress, utf8ToHex, convertWalletToBaseWallet, convertWalletToBaseWalletPartial, type ChainDisplayOverrides, type DeepLinkVariant, type ProviderCondition, isDynamicWaasConnector, } from './utils';
|
|
5
5
|
export { Wallet, type WalletConstructor, type WalletProps } from './Wallet';
|
|
@@ -15,6 +15,15 @@ export type IZeroDevConnector = IAccountAbstractionWalletConnector & ISendBalanc
|
|
|
15
15
|
sponsored: boolean;
|
|
16
16
|
}>;
|
|
17
17
|
formatUserOperation(userOperation: unknown): Promise<any>;
|
|
18
|
+
registerEoa({ smartWalletAddress, eoaAddress, eoaConnector, shouldSetEoaConnector, ecdsaProviderType, entryPointVersion, kernelVersion, }: {
|
|
19
|
+
smartWalletAddress: string;
|
|
20
|
+
eoaAddress: string;
|
|
21
|
+
eoaConnector: WalletConnectorBase;
|
|
22
|
+
shouldSetEoaConnector?: boolean;
|
|
23
|
+
ecdsaProviderType?: EcdsaValidatorOptions;
|
|
24
|
+
entryPointVersion?: ProviderEntryPointVersionEnum;
|
|
25
|
+
kernelVersion?: ProviderKernelVersionEnum;
|
|
26
|
+
}): Promise<void>;
|
|
18
27
|
};
|
|
19
28
|
export interface IAccountAbstractionWalletConnector extends WalletConnectorBase {
|
|
20
29
|
canSponsorTransactionGas(transaction: {
|
|
@@ -42,4 +51,10 @@ export interface IAccountAbstractionWalletConnector extends WalletConnectorBase
|
|
|
42
51
|
kernelVersion?: ProviderKernelVersionEnum;
|
|
43
52
|
}): Promise<void>;
|
|
44
53
|
}
|
|
54
|
+
export type IZKsyncConnector = IAccountAbstractionWalletConnector & {
|
|
55
|
+
initializeZksyncConnector({ eoaConnector, smartAccountAddress, }: {
|
|
56
|
+
eoaConnector: WalletConnectorBase;
|
|
57
|
+
smartAccountAddress: string;
|
|
58
|
+
}): Promise<void>;
|
|
59
|
+
};
|
|
45
60
|
export {};
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
7
|
var logger = require('../logger.cjs');
|
|
8
|
-
require('@dynamic-labs/utils');
|
|
9
|
-
require('../../../_virtual/_tslib.cjs');
|
|
10
8
|
var getIconUrl = require('./getIconUrl/getIconUrl.cjs');
|
|
11
9
|
var getValidHexColor = require('./getValidHexColor/getValidHexColor.cjs');
|
|
12
10
|
var getDeepLinks = require('./getDeepLinks/getDeepLinks.cjs');
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { isWalletBookPopulated, getWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
3
3
|
import { logger } from '../logger.js';
|
|
4
|
-
import '@dynamic-labs/utils';
|
|
5
|
-
import '../../../_virtual/_tslib.js';
|
|
6
4
|
import { getIconUrl } from './getIconUrl/getIconUrl.js';
|
|
7
5
|
import { getValidHexColor } from './getValidHexColor/getValidHexColor.js';
|
|
8
6
|
import { getDeepLinks } from './getDeepLinks/getDeepLinks.js';
|