@dynamic-labs/wallet-connector-core 4.2.0 → 4.2.2

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 CHANGED
@@ -1,4 +1,18 @@
1
1
 
2
+ ### [4.2.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.2.1...v4.2.2) (2025-01-15)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * handle session key expire error code ([#7806](https://github.com/dynamic-labs/dynamic-auth/issues/7806)) ([2e33bbc](https://github.com/dynamic-labs/dynamic-auth/commit/2e33bbcd5ea5af6e32fda4985d5723a9af36eef6))
8
+
9
+ ### [4.2.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.2.0...v4.2.1) (2025-01-15)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * remove dependency on @dynamic-labs/ethereum-aa from sdk-react core ([#7804](https://github.com/dynamic-labs/dynamic-auth/issues/7804)) ([d1692d2](https://github.com/dynamic-labs/dynamic-auth/commit/d1692d2f58d4f0e14f7978ef81c020e871973810))
15
+
2
16
  ## [4.2.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.1.0...v4.2.0) (2025-01-14)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.2.0";
6
+ var version = "4.2.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.2.0";
2
+ var version = "4.2.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-connector-core",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
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",
@@ -21,12 +21,12 @@
21
21
  "@dynamic-labs/sdk-api-core": "0.0.586"
22
22
  },
23
23
  "peerDependencies": {
24
- "@dynamic-labs/assert-package-version": "4.2.0",
25
- "@dynamic-labs/logger": "4.2.0",
26
- "@dynamic-labs/rpc-providers": "4.2.0",
27
- "@dynamic-labs/types": "4.2.0",
28
- "@dynamic-labs/utils": "4.2.0",
29
- "@dynamic-labs/wallet-book": "4.2.0",
24
+ "@dynamic-labs/assert-package-version": "4.2.2",
25
+ "@dynamic-labs/logger": "4.2.2",
26
+ "@dynamic-labs/rpc-providers": "4.2.2",
27
+ "@dynamic-labs/types": "4.2.2",
28
+ "@dynamic-labs/utils": "4.2.2",
29
+ "@dynamic-labs/wallet-book": "4.2.2",
30
30
  "eventemitter3": "5.0.1"
31
31
  }
32
32
  }
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 ExtendedPrivateKey, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type ICoinbaseMPCWalletConnector, 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 RawPrivateKey, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, } from './interfaces';
2
+ export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type ExtendedPrivateKey, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type ICoinbaseMPCWalletConnector, 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 RawPrivateKey, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, } 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, isCoinbaseMpcWalletConnector, 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, } from './utils';
5
5
  export { Wallet, type WalletConstructor, type WalletProps } from './Wallet';
@@ -1,14 +1,21 @@
1
1
  import { IUITransaction } from '@dynamic-labs/types';
2
2
  import { EcdsaValidatorOptions, ProviderEntryPointVersionEnum, ProviderKernelVersionEnum } from '@dynamic-labs/sdk-api-core';
3
+ import { ISendBalanceWalletConnector } from '../interfaces/ISendBalanceWalletConnector';
3
4
  import { WalletConnector, WalletConnectorBase } from '../WalletConnectorBase';
4
5
  type GetAccountAbstractionProviderProps = {
5
6
  withSponsorship?: boolean;
6
7
  };
8
+ export type IZeroDevConnector = IAccountAbstractionWalletConnector & ISendBalanceWalletConnector & {
9
+ getCurrentUserOperation(transaction: IUITransaction): Promise<{
10
+ userOperation: any;
11
+ sponsored: boolean;
12
+ }>;
13
+ formatUserOperation(userOperation: unknown): Promise<any>;
14
+ };
7
15
  export interface IAccountAbstractionWalletConnector extends WalletConnectorBase {
8
16
  canSponsorTransactionGas(transaction: IUITransaction): Promise<boolean>;
9
17
  disableGasSponsorshipOnce(): void;
10
- getAccountAbstractionProvider<T>(props?: GetAccountAbstractionProviderProps): T;
11
- getAccountAbstractionProvider(props?: GetAccountAbstractionProviderProps): unknown;
18
+ getAccountAbstractionProvider(props?: GetAccountAbstractionProviderProps): any;
12
19
  /**
13
20
  * @deprecated You should get the EOA connector by passing the SCW wallet to getEOAConnector,
14
21
  * from the useSmartWallet hook