@dynamic-labs/wallet-connector-core 4.74.1 → 4.75.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,12 @@
1
1
 
2
+ ## [4.75.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.74.1...v4.75.0) (2026-04-03)
3
+
4
+
5
+ ### Features
6
+
7
+ * **midnight:** add midnight base package scaffolding ([#10850](https://github.com/dynamic-labs/dynamic-auth/issues/10850)) ([5844849](https://github.com/dynamic-labs/dynamic-auth/commit/584484916cf49d7ec46ec5cf862e2e6b8308d90f))
8
+ * **tempo:** add FeeTokenSelector component for fee token selection ([#10842](https://github.com/dynamic-labs/dynamic-auth/issues/10842)) ([18bc637](https://github.com/dynamic-labs/dynamic-auth/commit/18bc6374bea6eeff6656edaa725b0620bc8b36dd))
9
+
2
10
  ### [4.74.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.74.0...v4.74.1) (2026-04-02)
3
11
 
4
12
  This was a version bump only, there were no code changes.
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.74.1";
6
+ var version = "4.75.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.74.1";
2
+ var version = "4.75.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.74.1",
3
+ "version": "4.75.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,15 +18,15 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-sdk/client": "0.19.0",
22
- "@dynamic-labs/sdk-api-core": "0.0.909",
21
+ "@dynamic-labs-sdk/client": "0.23.2",
22
+ "@dynamic-labs/sdk-api-core": "0.0.923",
23
23
  "@dynamic-labs-wallet/browser-wallet-client": "0.0.314",
24
- "@dynamic-labs/assert-package-version": "4.74.1",
25
- "@dynamic-labs/logger": "4.74.1",
26
- "@dynamic-labs/rpc-providers": "4.74.1",
27
- "@dynamic-labs/types": "4.74.1",
28
- "@dynamic-labs/utils": "4.74.1",
29
- "@dynamic-labs/wallet-book": "4.74.1",
24
+ "@dynamic-labs/assert-package-version": "4.75.0",
25
+ "@dynamic-labs/logger": "4.75.0",
26
+ "@dynamic-labs/rpc-providers": "4.75.0",
27
+ "@dynamic-labs/types": "4.75.0",
28
+ "@dynamic-labs/utils": "4.75.0",
29
+ "@dynamic-labs/wallet-book": "4.75.0",
30
30
  "eventemitter3": "5.0.1"
31
31
  },
32
32
  "peerDependencies": {}
@@ -298,6 +298,14 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
298
298
  init() {
299
299
  return Promise.resolve();
300
300
  }
301
+ /**
302
+ * Whether this chain has a native token.
303
+ * When false, UI shows aggregated fiat balance instead of native token balance.
304
+ * @default true
305
+ */
306
+ get hasNativeToken() {
307
+ return true;
308
+ }
301
309
  /**
302
310
  * Check if the wallet is installed on the browser
303
311
  *
@@ -306,6 +314,13 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
306
314
  isInstalledOnBrowser() {
307
315
  return false;
308
316
  }
317
+ /**
318
+ * Whether this connector supports choosing a fee token for transactions.
319
+ * @default false
320
+ */
321
+ get supportsFeeTokenSelection() {
322
+ return false;
323
+ }
309
324
  /**
310
325
  * Override key or the normalized wallet name if needed
311
326
  */
@@ -228,6 +228,12 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
228
228
  * @default true
229
229
  */
230
230
  isAvailable: boolean;
231
+ /**
232
+ * Whether this chain has a native token.
233
+ * When false, UI shows aggregated fiat balance instead of native token balance.
234
+ * @default true
235
+ */
236
+ get hasNativeToken(): boolean;
231
237
  /**
232
238
  * If the wallet generated by a valid embedded wallet provider
233
239
  * For example: magic wallets
@@ -246,6 +252,11 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
246
252
  * @default false
247
253
  */
248
254
  isWalletConnect: boolean;
255
+ /**
256
+ * Whether this connector supports choosing a fee token for transactions.
257
+ * @default false
258
+ */
259
+ get supportsFeeTokenSelection(): boolean;
249
260
  /**
250
261
  * Override key or the normalized wallet name if needed
251
262
  */
@@ -290,6 +290,14 @@ class WalletConnectorBase extends EventEmitter {
290
290
  init() {
291
291
  return Promise.resolve();
292
292
  }
293
+ /**
294
+ * Whether this chain has a native token.
295
+ * When false, UI shows aggregated fiat balance instead of native token balance.
296
+ * @default true
297
+ */
298
+ get hasNativeToken() {
299
+ return true;
300
+ }
293
301
  /**
294
302
  * Check if the wallet is installed on the browser
295
303
  *
@@ -298,6 +306,13 @@ class WalletConnectorBase extends EventEmitter {
298
306
  isInstalledOnBrowser() {
299
307
  return false;
300
308
  }
309
+ /**
310
+ * Whether this connector supports choosing a fee token for transactions.
311
+ * @default false
312
+ */
313
+ get supportsFeeTokenSelection() {
314
+ return false;
315
+ }
301
316
  /**
302
317
  * Override key or the normalized wallet name if needed
303
318
  */
@@ -14,6 +14,7 @@ const Chains = [
14
14
  'ETH',
15
15
  'EVM',
16
16
  'FLOW',
17
+ 'MIDNIGHT',
17
18
  'SOL',
18
19
  'SPARK',
19
20
  'STARK',
@@ -1,6 +1,6 @@
1
1
  import EventEmitter from 'eventemitter3';
2
2
  import { WalletConnectorCore } from '../types';
3
- export declare const Chains: readonly ["ALEO", "ALGO", "APTOS", "ATOM", "BTC", "COSMOS", "ECLIPSE", "ETH", "EVM", "FLOW", "SOL", "SPARK", "STARK", "STELLAR", "SUI", "TEMPO", "TRON", "TON"];
3
+ export declare const Chains: readonly ["ALEO", "ALGO", "APTOS", "ATOM", "BTC", "COSMOS", "ECLIPSE", "ETH", "EVM", "FLOW", "MIDNIGHT", "SOL", "SPARK", "STARK", "STELLAR", "SUI", "TEMPO", "TRON", "TON"];
4
4
  export type Chain = typeof Chains[number];
5
5
  export declare const socialProviders: readonly ["google", "facebook", "apple", "github", "bitbucket", "gitlab", "linkedin", "twitter", "discord", "twitch", "microsoft"];
6
6
  export type SocialProvider = typeof socialProviders[number];
@@ -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' | 'getEnabledNetworks'> & EventEmitter<WalletConnectorEventTypes>;
25
+ export type WalletConnector = Pick<InternalWalletConnector, 'canConnectViaCustodialService' | 'canConnectViaQrCode' | 'canConnectViaSocial' | 'chainRpcProviders' | 'hasNativeToken' | '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' | 'supportsFeeTokenSelection' | 'supportsNetworkSwitching' | 'switchNetwork' | 'switchNetworkOnlyFromWallet' | 'teardownEventListeners' | 'getBlockExplorerUrlsForCurrentNetwork' | 'getEnabledNetworks'> & EventEmitter<WalletConnectorEventTypes>;
26
26
  export interface WalletConnectorConstructor {
27
27
  new (props?: any): InternalWalletConnector;
28
28
  }
@@ -10,6 +10,7 @@ const Chains = [
10
10
  'ETH',
11
11
  'EVM',
12
12
  'FLOW',
13
+ 'MIDNIGHT',
13
14
  'SOL',
14
15
  'SPARK',
15
16
  'STARK',
@@ -18,6 +18,7 @@ const chainsInfo = [
18
18
  createChainInfo('Eclipse', 'eclipse', 'ECLIPSE'),
19
19
  createChainInfo('Ethereum', 'evm', 'ETH', 'EVM'),
20
20
  createChainInfo('Flow', 'flow', 'FLOW'),
21
+ createChainInfo('Midnight', 'midnight', 'MIDNIGHT'),
21
22
  createChainInfo('Solana', 'solana', 'SOL'),
22
23
  createChainInfo('Spark', 'spark', 'SPARK'),
23
24
  createChainInfo('Starknet', 'starknet', 'ETH'),
@@ -1,5 +1,5 @@
1
1
  import { ChainInfo } from '../..';
2
- export type ChainName = 'aleo' | 'algorand' | 'aptos' | 'bitcoin' | 'cosmos' | 'eclipse' | 'evm' | 'flow' | 'solana' | 'spark' | 'starknet' | 'stellar' | 'sui' | 'tempo' | 'ton' | 'tron';
2
+ export type ChainName = 'aleo' | 'algorand' | 'aptos' | 'bitcoin' | 'cosmos' | 'eclipse' | 'evm' | 'flow' | 'midnight' | 'solana' | 'spark' | 'starknet' | 'stellar' | 'sui' | 'tempo' | 'ton' | 'tron';
3
3
  export type ChainDisplayOverrides = Partial<Record<ChainName, {
4
4
  displayName?: string;
5
5
  }>>;
@@ -14,6 +14,7 @@ const chainsInfo = [
14
14
  createChainInfo('Eclipse', 'eclipse', 'ECLIPSE'),
15
15
  createChainInfo('Ethereum', 'evm', 'ETH', 'EVM'),
16
16
  createChainInfo('Flow', 'flow', 'FLOW'),
17
+ createChainInfo('Midnight', 'midnight', 'MIDNIGHT'),
17
18
  createChainInfo('Solana', 'solana', 'SOL'),
18
19
  createChainInfo('Spark', 'spark', 'SPARK'),
19
20
  createChainInfo('Starknet', 'starknet', 'ETH'),