@dynamic-labs/wallet-connector-core 4.4.4 → 4.5.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 CHANGED
@@ -1,4 +1,18 @@
1
1
 
2
+ ## [4.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.4...v4.5.0) (2025-02-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * allow injecting onramp providers for funding via sdk overrides ([#7967](https://github.com/dynamic-labs/dynamic-auth/issues/7967)) ([d738b3b](https://github.com/dynamic-labs/dynamic-auth/commit/d738b3ba1307bc6f2ffc5c8f98a44c6f509c0e96))
8
+ * headless transaction simulation ([#7928](https://github.com/dynamic-labs/dynamic-auth/issues/7928)) ([8eb4c9c](https://github.com/dynamic-labs/dynamic-auth/commit/8eb4c9cd9857a34c56f2e58aba124b5b7e185359))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * memo hooks and state to reduce rerenders ([#7912](https://github.com/dynamic-labs/dynamic-auth/issues/7912)) ([5351570](https://github.com/dynamic-labs/dynamic-auth/commit/5351570874eb3b9465d2a2c99ea5caaa787ecc80))
14
+ * rely on bitcoin sats-connect transaction inputs for handling sigHashTypes ([#7969](https://github.com/dynamic-labs/dynamic-auth/issues/7969)) ([e043306](https://github.com/dynamic-labs/dynamic-auth/commit/e043306be44dd9058265c19d7e14cb07dd6db1fe))
15
+
2
16
  ### [4.4.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.3...v4.4.4) (2025-01-31)
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.4.4";
6
+ var version = "4.5.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.4.4";
2
+ var version = "4.5.0";
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.4.4",
3
+ "version": "4.5.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.604",
22
- "@dynamic-labs/assert-package-version": "4.4.4",
23
- "@dynamic-labs/logger": "4.4.4",
24
- "@dynamic-labs/rpc-providers": "4.4.4",
25
- "@dynamic-labs/types": "4.4.4",
26
- "@dynamic-labs/utils": "4.4.4",
27
- "@dynamic-labs/wallet-book": "4.4.4",
21
+ "@dynamic-labs/sdk-api-core": "0.0.607",
22
+ "@dynamic-labs/assert-package-version": "4.5.0",
23
+ "@dynamic-labs/logger": "4.5.0",
24
+ "@dynamic-labs/rpc-providers": "4.5.0",
25
+ "@dynamic-labs/types": "4.5.0",
26
+ "@dynamic-labs/utils": "4.5.0",
27
+ "@dynamic-labs/wallet-book": "4.5.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 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';
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, type IEthereumConnector, type IPublicClient, type ISolanaConnection, } 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,4 +1,3 @@
1
- import { IUITransaction } from '@dynamic-labs/types';
2
1
  import { EcdsaValidatorOptions, ProviderEntryPointVersionEnum, ProviderKernelVersionEnum } from '@dynamic-labs/sdk-api-core';
3
2
  import { ISendBalanceWalletConnector } from '../interfaces/ISendBalanceWalletConnector';
4
3
  import { WalletConnector, WalletConnectorBase } from '../WalletConnectorBase';
@@ -6,14 +5,24 @@ type GetAccountAbstractionProviderProps = {
6
5
  withSponsorship?: boolean;
7
6
  };
8
7
  export type IZeroDevConnector = IAccountAbstractionWalletConnector & ISendBalanceWalletConnector & {
9
- getCurrentUserOperation(transaction: IUITransaction): Promise<{
8
+ getCurrentUserOperation(transaction: {
9
+ from?: string;
10
+ to?: string;
11
+ value?: bigint;
12
+ data?: string;
13
+ }): Promise<{
10
14
  userOperation: any;
11
15
  sponsored: boolean;
12
16
  }>;
13
17
  formatUserOperation(userOperation: unknown): Promise<any>;
14
18
  };
15
19
  export interface IAccountAbstractionWalletConnector extends WalletConnectorBase {
16
- canSponsorTransactionGas(transaction: IUITransaction): Promise<boolean>;
20
+ canSponsorTransactionGas(transaction: {
21
+ from?: string;
22
+ to?: string;
23
+ value?: bigint;
24
+ data?: string;
25
+ }): Promise<boolean>;
17
26
  disableGasSponsorshipOnce(): void;
18
27
  getAccountAbstractionProvider(props?: GetAccountAbstractionProviderProps): any;
19
28
  /**
@@ -0,0 +1,27 @@
1
+ import { IEVMTransaction } from '@dynamic-labs/types';
2
+ export type IPublicClient = {
3
+ estimateGas: (transaction: IEVMTransaction) => Promise<bigint>;
4
+ getBlock: () => Promise<{
5
+ baseFeePerGas?: bigint;
6
+ }>;
7
+ getL1GasPrice?: () => Promise<{
8
+ l1BaseFee: bigint;
9
+ }>;
10
+ getL1FeeData?: () => Promise<{
11
+ l1GasUsed: bigint;
12
+ l1FeeScalar: number;
13
+ }>;
14
+ getBytecode: (args: {
15
+ address: `0x${string}`;
16
+ }) => Promise<`0x${string}` | undefined>;
17
+ readContract: <T = bigint>(args: {
18
+ abi: readonly unknown[];
19
+ address: `0x${string}`;
20
+ args: unknown[];
21
+ functionName: string;
22
+ }) => Promise<T>;
23
+ getGasPrice: () => Promise<bigint>;
24
+ };
25
+ export type IEthereumConnector = {
26
+ getPublicClient: () => Promise<IPublicClient>;
27
+ };
@@ -0,0 +1,8 @@
1
+ export type ISolanaConnection = {
2
+ getFeeForMessage: (message: any, commitment: string) => Promise<{
3
+ value: string | null;
4
+ }>;
5
+ };
6
+ export type ISolanaConnector = {
7
+ getConnection: () => Promise<ISolanaConnection>;
8
+ };
@@ -12,3 +12,5 @@ export * from './ISMSWalletConnector';
12
12
  export * from './ITurnkeyWalletConnector';
13
13
  export * from './ITurnkeyWalletConnectorStamper';
14
14
  export * from './IWalletConnectConnector';
15
+ export * from './IEthereumConnector';
16
+ export * from './ISolanaConnector';