@dynamic-labs/wallet-connector-core 4.5.1 → 4.5.3
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 +27 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/WalletConnectorBase/WalletConnectorBase.cjs +7 -0
- package/src/WalletConnectorBase/WalletConnectorBase.d.ts +6 -1
- package/src/WalletConnectorBase/WalletConnectorBase.js +7 -0
- package/src/WalletConnectorBase/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.5.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.2...v4.5.3) (2025-02-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* mfa device management hook ([#8022](https://github.com/dynamic-labs/dynamic-auth/issues/8022)) ([48448c4](https://github.com/dynamic-labs/dynamic-auth/commit/48448c4ee8152ec8786674db9b6e025b6d37abca))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* logout user when SDK version change is detected ([#8043](https://github.com/dynamic-labs/dynamic-auth/issues/8043)) ([2ae958a](https://github.com/dynamic-labs/dynamic-auth/commit/2ae958adafe1d18c15e4ce47d3f11c2361847aac))
|
|
13
|
+
|
|
14
|
+
### [4.5.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.1...v4.5.2) (2025-02-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add getEnabledNetworks method to wallet connectors ([#8000](https://github.com/dynamic-labs/dynamic-auth/issues/8000)) ([450cdcd](https://github.com/dynamic-labs/dynamic-auth/commit/450cdcd98b11c734fb9c9d97bb1813cf5538e85e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* add fallback for exchange rate lookup failure ([#7994](https://github.com/dynamic-labs/dynamic-auth/issues/7994)) ([1359724](https://github.com/dynamic-labs/dynamic-auth/commit/1359724ec2931c61324bfe8d73110d862ebc016f))
|
|
25
|
+
* add USDT and USDC as hardcoded to 1 ([#8012](https://github.com/dynamic-labs/dynamic-auth/issues/8012)) ([92dcd2f](https://github.com/dynamic-labs/dynamic-auth/commit/92dcd2f6a90e8eeca034edf1682336896180281e))
|
|
26
|
+
* underflow bigint issue with small sol transfers ([#8006](https://github.com/dynamic-labs/dynamic-auth/issues/8006)) ([3fd00c2](https://github.com/dynamic-labs/dynamic-auth/commit/3fd00c2f0d0e10333f0206cb80197375de836003))
|
|
27
|
+
* view address react 17 compatibility ([#8002](https://github.com/dynamic-labs/dynamic-auth/issues/8002)) ([782e0f3](https://github.com/dynamic-labs/dynamic-auth/commit/782e0f323f388cac1d0773420ae45595aa806c26))
|
|
28
|
+
|
|
2
29
|
### [4.5.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.0...v4.5.1) (2025-02-05)
|
|
3
30
|
|
|
4
31
|
|
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.5.
|
|
3
|
+
"version": "4.5.3",
|
|
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.5.
|
|
23
|
-
"@dynamic-labs/logger": "4.5.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.5.
|
|
25
|
-
"@dynamic-labs/types": "4.5.
|
|
26
|
-
"@dynamic-labs/utils": "4.5.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.5.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.613",
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.5.3",
|
|
23
|
+
"@dynamic-labs/logger": "4.5.3",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.5.3",
|
|
25
|
+
"@dynamic-labs/types": "4.5.3",
|
|
26
|
+
"@dynamic-labs/utils": "4.5.3",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.5.3",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
@@ -448,6 +448,13 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
448
448
|
});
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* Get the enabled networks for the wallet
|
|
453
|
+
* @returns {GenericNetwork[]} The enabled networks
|
|
454
|
+
*/
|
|
455
|
+
getEnabledNetworks() {
|
|
456
|
+
return [];
|
|
457
|
+
}
|
|
451
458
|
}
|
|
452
459
|
_WalletConnectorBase_registeredExtensions = new WeakMap();
|
|
453
460
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import EventEmitter from 'eventemitter3';
|
|
2
2
|
import { IChainRpcProviders } from '@dynamic-labs/rpc-providers';
|
|
3
3
|
import type { JwtVerifiedCredential, WalletAdditionalAddress } from '@dynamic-labs/sdk-api-core';
|
|
4
|
-
import { MobileExperience } from '@dynamic-labs/types';
|
|
4
|
+
import { GenericNetwork, MobileExperience } from '@dynamic-labs/types';
|
|
5
5
|
import { WalletBookSchema, WalletSchema } from '@dynamic-labs/wallet-book';
|
|
6
6
|
import { WalletConnectorEventEmitter } from '../events';
|
|
7
7
|
import { WalletMetadata } from '../types';
|
|
@@ -331,4 +331,9 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
331
331
|
* otherwise rejects with an error.
|
|
332
332
|
*/
|
|
333
333
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
334
|
+
/**
|
|
335
|
+
* Get the enabled networks for the wallet
|
|
336
|
+
* @returns {GenericNetwork[]} The enabled networks
|
|
337
|
+
*/
|
|
338
|
+
getEnabledNetworks(): GenericNetwork[];
|
|
334
339
|
}
|
|
@@ -440,6 +440,13 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
440
440
|
});
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* Get the enabled networks for the wallet
|
|
445
|
+
* @returns {GenericNetwork[]} The enabled networks
|
|
446
|
+
*/
|
|
447
|
+
getEnabledNetworks() {
|
|
448
|
+
return [];
|
|
449
|
+
}
|
|
443
450
|
}
|
|
444
451
|
_WalletConnectorBase_registeredExtensions = new WeakMap();
|
|
445
452
|
|
|
@@ -22,7 +22,7 @@ export type NameServiceData = {
|
|
|
22
22
|
name?: string;
|
|
23
23
|
};
|
|
24
24
|
export type InternalWalletConnector = WalletConnectorCore.WalletConnector;
|
|
25
|
-
export type WalletConnector = Pick<InternalWalletConnector, 'canConnectViaCustodialService' | 'canConnectViaQrCode' | 'canConnectViaSocial' | 'chainRpcProviders' | 'connect' | 'connectedChain' | 'createWallet' | 'constructorProps' | 'endSession' | 'getAddress' | 'getAdditionalAddresses' | 'getConnectedAccounts' | 'getDeepLink' | 'getMobileOrInstalledWallet' | 'getNetwork' | 'getSession' | 'initEventListener' | 'isAvailable' | 'isEmbeddedWallet' | 'isInitialized' | 'isInstalledOnBrowser' | 'isTestnet' | 'isWalletConnect' | 'key' | 'metadata' | 'name' | 'parseAddress' | 'proveOwnership' | 'providerResources' | 'supportedChains' | 'supportsNetworkSwitching' | 'switchNetwork' | 'switchNetworkOnlyFromWallet' | 'teardownEventListeners' | 'getBlockExplorerUrlsForCurrentNetwork'> & EventEmitter<WalletConnectorEventTypes>;
|
|
25
|
+
export type WalletConnector = Pick<InternalWalletConnector, 'canConnectViaCustodialService' | 'canConnectViaQrCode' | 'canConnectViaSocial' | 'chainRpcProviders' | 'connect' | 'connectedChain' | 'createWallet' | 'constructorProps' | 'endSession' | 'getAddress' | 'getAdditionalAddresses' | 'getConnectedAccounts' | 'getDeepLink' | 'getMobileOrInstalledWallet' | 'getNetwork' | 'getSession' | 'initEventListener' | 'isAvailable' | 'isEmbeddedWallet' | 'isInitialized' | 'isInstalledOnBrowser' | 'isTestnet' | 'isWalletConnect' | 'key' | 'metadata' | 'name' | 'parseAddress' | 'proveOwnership' | 'providerResources' | 'supportedChains' | 'supportsNetworkSwitching' | 'switchNetwork' | 'switchNetworkOnlyFromWallet' | 'teardownEventListeners' | 'getBlockExplorerUrlsForCurrentNetwork' | 'getEnabledNetworks'> & EventEmitter<WalletConnectorEventTypes>;
|
|
26
26
|
export interface WalletConnectorConstructor {
|
|
27
27
|
new (props?: any): InternalWalletConnector;
|
|
28
28
|
}
|