@dynamic-labs/wallet-connector-core 4.6.1 → 4.6.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 +15 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +2 -0
- package/src/index.d.ts +2 -2
- package/src/index.js +1 -0
- package/src/interfaces/IDynamicWaasConnector.d.ts +17 -0
- package/src/interfaces/index.d.ts +1 -0
- package/src/utils/index.d.ts +1 -0
- package/src/utils/isDynamicWaasConnector/index.d.ts +1 -0
- package/src/utils/isDynamicWaasConnector/isDynamicWaasConnector.cjs +11 -0
- package/src/utils/isDynamicWaasConnector/isDynamicWaasConnector.d.ts +2 -0
- package/src/utils/isDynamicWaasConnector/isDynamicWaasConnector.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.6.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.6.1...v4.6.2) (2025-02-14)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add funding from linked wallets ([#8067](https://github.com/dynamic-labs/dynamic-auth/issues/8067)) ([1f9dc71](https://github.com/dynamic-labs/dynamic-auth/commit/1f9dc715a04b558a96164c7a143171abac3890b4))
|
|
8
|
+
* add walletConnectedForFunding event ([#8058](https://github.com/dynamic-labs/dynamic-auth/issues/8058)) ([8c5a244](https://github.com/dynamic-labs/dynamic-auth/commit/8c5a24405c5a7ae2e91bbbee6c1eebca9169ec3e))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* back button from MFA backup codes view not working properly ([#8085](https://github.com/dynamic-labs/dynamic-auth/issues/8085)) ([9af0b6f](https://github.com/dynamic-labs/dynamic-auth/commit/9af0b6faada610180ff061a55715d3f0e2a853a0))
|
|
14
|
+
* issue with authenticating a user on connect-only mode ([#8084](https://github.com/dynamic-labs/dynamic-auth/issues/8084)) ([7bf881b](https://github.com/dynamic-labs/dynamic-auth/commit/7bf881b4fab4b8c64993bf4a7936eb8435408a2e))
|
|
15
|
+
* rerendering issue in usetokenbalance ([#8079](https://github.com/dynamic-labs/dynamic-auth/issues/8079)) ([e52b481](https://github.com/dynamic-labs/dynamic-auth/commit/e52b48112c4a3627bb51cc7cf03181bcba66aada))
|
|
16
|
+
|
|
2
17
|
### [4.6.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.6.0...v4.6.1) (2025-02-11)
|
|
3
18
|
|
|
4
19
|
|
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.6.
|
|
3
|
+
"version": "4.6.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",
|
|
@@ -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.6.
|
|
23
|
-
"@dynamic-labs/logger": "4.6.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.6.
|
|
25
|
-
"@dynamic-labs/types": "4.6.
|
|
26
|
-
"@dynamic-labs/utils": "4.6.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.6.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.627",
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.6.2",
|
|
23
|
+
"@dynamic-labs/logger": "4.6.2",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.6.2",
|
|
25
|
+
"@dynamic-labs/types": "4.6.2",
|
|
26
|
+
"@dynamic-labs/utils": "4.6.2",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.6.2",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
package/src/index.cjs
CHANGED
|
@@ -40,6 +40,7 @@ var isConnectorMethodSupported = require('./utils/isConnectorMethodSupported/isC
|
|
|
40
40
|
var isConnectorEventSupported = require('./utils/isConnectorEventSupported/isConnectorEventSupported.cjs');
|
|
41
41
|
var getWalletLinks = require('./utils/getWalletLinks/getWalletLinks.cjs');
|
|
42
42
|
var convertWalletToBaseWallet = require('./utils/convertWalletToBaseWallet/convertWalletToBaseWallet.cjs');
|
|
43
|
+
var isDynamicWaasConnector = require('./utils/isDynamicWaasConnector/isDynamicWaasConnector.cjs');
|
|
43
44
|
var Wallet = require('./Wallet/Wallet.cjs');
|
|
44
45
|
var WalletConnectorBase = require('./WalletConnectorBase/WalletConnectorBase.cjs');
|
|
45
46
|
var types = require('./WalletConnectorBase/types.cjs');
|
|
@@ -87,6 +88,7 @@ exports.isConnectorEventSupported = isConnectorEventSupported.isConnectorEventSu
|
|
|
87
88
|
exports.getWalletLinks = getWalletLinks.getWalletLinks;
|
|
88
89
|
exports.convertWalletToBaseWallet = convertWalletToBaseWallet.convertWalletToBaseWallet;
|
|
89
90
|
exports.convertWalletToBaseWalletPartial = convertWalletToBaseWallet.convertWalletToBaseWalletPartial;
|
|
91
|
+
exports.isDynamicWaasConnector = isDynamicWaasConnector.isDynamicWaasConnector;
|
|
90
92
|
exports.Wallet = Wallet.Wallet;
|
|
91
93
|
exports.WalletConnectorBase = WalletConnectorBase.WalletConnectorBase;
|
|
92
94
|
exports.Chains = types.Chains;
|
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, } from './interfaces';
|
|
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';
|
|
3
3
|
export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, WalletConnectorCore, WalletMetadata, WalletDeepLinks, WalletDownloadLinks, WalletLimitations, WalletLinks, } from './types';
|
|
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, } from './utils';
|
|
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';
|
|
6
6
|
export { Chains, socialProviders, WalletConnectorBase, type Chain, type ChainInfo, type GetAddressOpts, type InternalWalletConnector, type NameServiceData, type PayloadParams, type SocialProvider, type WalletConnector, type WalletConnectorConstructor, type WalletConnectorEventTypes, type WalletConnectorExtension, type WalletConnectorsMethod, } from './WalletConnectorBase';
|
|
7
7
|
export { WalletBookSingleton } from './WalletBookSingleton';
|
package/src/index.js
CHANGED
|
@@ -36,6 +36,7 @@ export { isConnectorMethodSupported } from './utils/isConnectorMethodSupported/i
|
|
|
36
36
|
export { isConnectorEventSupported } from './utils/isConnectorEventSupported/isConnectorEventSupported.js';
|
|
37
37
|
export { getWalletLinks } from './utils/getWalletLinks/getWalletLinks.js';
|
|
38
38
|
export { convertWalletToBaseWallet, convertWalletToBaseWalletPartial } from './utils/convertWalletToBaseWallet/convertWalletToBaseWallet.js';
|
|
39
|
+
export { isDynamicWaasConnector } from './utils/isDynamicWaasConnector/isDynamicWaasConnector.js';
|
|
39
40
|
export { Wallet } from './Wallet/Wallet.js';
|
|
40
41
|
export { WalletConnectorBase } from './WalletConnectorBase/WalletConnectorBase.js';
|
|
41
42
|
export { Chains, socialProviders } from './WalletConnectorBase/types.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WalletConnectorBase } from '..';
|
|
2
|
+
export interface IDynamicWaasConnector extends WalletConnectorBase {
|
|
3
|
+
createWalletAccount(): Promise<{
|
|
4
|
+
accountAddress: string;
|
|
5
|
+
publicKeyHex: string;
|
|
6
|
+
}>;
|
|
7
|
+
importPrivateKey({ privateKey, chainName, }: {
|
|
8
|
+
privateKey: string;
|
|
9
|
+
chainName: string;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
setEnvironmentId(environmentId: string): void;
|
|
12
|
+
setBaseApiUrl(baseApiUrl: string): void;
|
|
13
|
+
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
14
|
+
getWalletClientByAddress({ accountAddress }: {
|
|
15
|
+
accountAddress: string;
|
|
16
|
+
}): any;
|
|
17
|
+
}
|
package/src/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isDynamicWaasConnector } from './isDynamicWaasConnector';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const isDynamicWaasConnector = (walletConnector) => {
|
|
7
|
+
const dynamicWaasConnector = walletConnector;
|
|
8
|
+
return Boolean(dynamicWaasConnector && dynamicWaasConnector.key === 'dynamicwaas');
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.isDynamicWaasConnector = isDynamicWaasConnector;
|