@dynamic-labs/wallet-connector-core 4.6.3 → 4.7.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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/Wallet/Wallet.cjs +1 -1
- package/src/Wallet/Wallet.js +1 -1
- package/src/WalletConnectorBase/WalletConnectorBase.d.ts +4 -1
- package/src/index.d.ts +1 -1
- package/src/interfaces/IAccountAbstractionWalletConnector.d.ts +2 -0
- package/src/interfaces/IEVMAuthorization.d.ts +12 -0
- package/src/interfaces/ITurnkeyWalletConnector.d.ts +2 -0
- package/src/interfaces/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.7.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.6.3...v4.7.0) (2025-02-20)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* 7702 support ([14ee3cd](https://github.com/dynamic-labs/dynamic-auth/commit/14ee3cd3513ac8b3e8e866cc2026b042c706b7e6))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* fallback to empty array when token balances is called with an invalid chain ID ([#8108](https://github.com/dynamic-labs/dynamic-auth/issues/8108)) ([7d14ded](https://github.com/dynamic-labs/dynamic-auth/commit/7d14ded6afa0de604901bbc8bc13620d03dc2e8c))
|
|
13
|
+
* improve global connectivity sign typed data reliability ([#8103](https://github.com/dynamic-labs/dynamic-auth/issues/8103)) ([8b0d2dd](https://github.com/dynamic-labs/dynamic-auth/commit/8b0d2ddbeb62a11732a9d59bc6cd4b72d82b9855))
|
|
14
|
+
* **QNTM-2902:** ensure react updates icons ([#8105](https://github.com/dynamic-labs/dynamic-auth/issues/8105)) ([1182c4c](https://github.com/dynamic-labs/dynamic-auth/commit/1182c4cc103c599e6bbff89af9b1312fb96b6d05))
|
|
15
|
+
|
|
2
16
|
### [4.6.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.6.2...v4.6.3) (2025-02-14)
|
|
3
17
|
|
|
4
18
|
|
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.
|
|
3
|
+
"version": "4.7.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",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.628",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.7.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.7.0",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.7.0",
|
|
25
|
+
"@dynamic-labs/types": "4.7.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.7.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.7.0",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
package/src/Wallet/Wallet.cjs
CHANGED
package/src/Wallet/Wallet.js
CHANGED
|
@@ -151,8 +151,11 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
151
151
|
* Gets current network of connected wallet
|
|
152
152
|
*
|
|
153
153
|
* @default Promise<undefined>
|
|
154
|
+
* @param returnDynamicNetworkId - For SOL chain, if returnDynamicNetworkId is true,
|
|
155
|
+
* the dynamic network ID (101, 102, 201, etc) will be returned instead of the network
|
|
156
|
+
* cluster (mainnet, testnet, etc)
|
|
154
157
|
*/
|
|
155
|
-
getNetwork(): Promise<number | string | undefined>;
|
|
158
|
+
getNetwork(returnDynamicNetworkId?: boolean): Promise<number | string | undefined>;
|
|
156
159
|
/**
|
|
157
160
|
* Gets current network of connected wallet
|
|
158
161
|
*
|
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 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 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';
|
|
@@ -24,6 +24,8 @@ export interface IAccountAbstractionWalletConnector extends WalletConnectorBase
|
|
|
24
24
|
data?: string;
|
|
25
25
|
}): Promise<boolean>;
|
|
26
26
|
disableGasSponsorshipOnce(): void;
|
|
27
|
+
eoaAddress: string | undefined;
|
|
28
|
+
enableEIP7702Mode: boolean;
|
|
27
29
|
getAccountAbstractionProvider(props?: GetAccountAbstractionProviderProps): any;
|
|
28
30
|
/**
|
|
29
31
|
* @deprecated You should get the EOA connector by passing the SCW wallet to getEOAConnector,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface EVMAuthorizationParameters {
|
|
2
|
+
contractAddress: `0x${string}`;
|
|
3
|
+
}
|
|
4
|
+
export interface EVMAuthorizationResult {
|
|
5
|
+
chainId: number;
|
|
6
|
+
contractAddress: `0x${string}`;
|
|
7
|
+
nonce: number;
|
|
8
|
+
r: `0x${string}`;
|
|
9
|
+
s: `0x${string}`;
|
|
10
|
+
v: bigint;
|
|
11
|
+
yParity: number;
|
|
12
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JwtVerifiedCredential, TurnkeyWalletProperties } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
import { WalletConnectorBase } from '../WalletConnectorBase';
|
|
3
|
+
import { EVMAuthorizationParameters, EVMAuthorizationResult } from './IEVMAuthorization';
|
|
3
4
|
type JwtVerifiedCredentialWithSmartWalletRef = JwtVerifiedCredential & {
|
|
4
5
|
smartWalletRefId?: string;
|
|
5
6
|
smartWalletRefAddress?: string;
|
|
@@ -45,5 +46,6 @@ export interface ITurnkeyWalletConnector extends WalletConnectorBase {
|
|
|
45
46
|
isSessionKeyCompatible(): boolean;
|
|
46
47
|
isSessionActive(): Promise<boolean>;
|
|
47
48
|
sessionKeys: SessionKeys | undefined;
|
|
49
|
+
experimental_signAuthorization(parameters: EVMAuthorizationParameters): Promise<EVMAuthorizationResult>;
|
|
48
50
|
}
|
|
49
51
|
export {};
|
|
@@ -2,6 +2,7 @@ export * from './IAccountAbstractionWalletConnector';
|
|
|
2
2
|
export * from './IBitcoinWalletConnector';
|
|
3
3
|
export * from './IEmailOTPWalletConnector';
|
|
4
4
|
export * from './IEmailWalletConnector';
|
|
5
|
+
export * from './IEVMAuthorization';
|
|
5
6
|
export * from './IHardwareWalletConnector';
|
|
6
7
|
export * from './IPasskeyWalletConnector';
|
|
7
8
|
export * from './IPhantomRedirectConnector';
|