@dynamic-labs/wallet-connector-core 3.0.0-alpha.35 → 3.0.0-alpha.37

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,20 @@
1
1
 
2
+ ## [3.0.0-alpha.37](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.36...v3.0.0-alpha.37) (2024-08-08)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * normalize wallet address before comparing on wallet sync ([#6514](https://github.com/dynamic-labs/DynamicAuth/issues/6514)) ([49d9dcf](https://github.com/dynamic-labs/DynamicAuth/commit/49d9dcf300b360f46ac6618756f6741fffce47a7))
8
+
9
+ ## [3.0.0-alpha.36](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.35...v3.0.0-alpha.36) (2024-08-06)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * emb wallet export with silent signing ([#6493](https://github.com/dynamic-labs/DynamicAuth/issues/6493)) ([af69c3a](https://github.com/dynamic-labs/DynamicAuth/commit/af69c3a85d8c1db6a0bf9b42c1310bf3183f9360))
15
+ * use correct redirect url override when connecting with social ([#6502](https://github.com/dynamic-labs/DynamicAuth/issues/6502)) ([e27a0de](https://github.com/dynamic-labs/DynamicAuth/commit/e27a0ded2ad2d95b80a2ad354accaf57f5228691))
16
+ * wagmi account sync issues when switching wallets ([#6441](https://github.com/dynamic-labs/DynamicAuth/issues/6441)) ([4536f88](https://github.com/dynamic-labs/DynamicAuth/commit/4536f88d41bf4a30cf114e8cd7efd7a211c00889))
17
+
2
18
  ## [3.0.0-alpha.35](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.34...v3.0.0-alpha.35) (2024-08-06)
3
19
 
4
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-connector-core",
3
- "version": "3.0.0-alpha.35",
3
+ "version": "3.0.0-alpha.37",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -26,14 +26,14 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.506"
29
+ "@dynamic-labs/sdk-api-core": "0.0.509"
30
30
  },
31
31
  "peerDependencies": {
32
- "@dynamic-labs/logger": "3.0.0-alpha.35",
33
- "@dynamic-labs/rpc-providers": "3.0.0-alpha.35",
34
- "@dynamic-labs/types": "3.0.0-alpha.35",
35
- "@dynamic-labs/utils": "3.0.0-alpha.35",
36
- "@dynamic-labs/wallet-book": "3.0.0-alpha.35",
32
+ "@dynamic-labs/logger": "3.0.0-alpha.37",
33
+ "@dynamic-labs/rpc-providers": "3.0.0-alpha.37",
34
+ "@dynamic-labs/types": "3.0.0-alpha.37",
35
+ "@dynamic-labs/utils": "3.0.0-alpha.37",
36
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.37",
37
37
  "eventemitter3": "5.0.1"
38
38
  }
39
39
  }
@@ -0,0 +1,18 @@
1
+ import { WalletConnectorBase } from './WalletConnector';
2
+ export interface ITurnkeyWalletConnectorStamper extends WalletConnectorBase {
3
+ stampCreateWalletAccountRequest: ({ request, }: {
4
+ request: {
5
+ type: string;
6
+ timestampMs: string;
7
+ organizationId: string;
8
+ parameters: any;
9
+ };
10
+ }) => Promise<{
11
+ body: string;
12
+ url: string;
13
+ stamp: {
14
+ stampHeaderName: string;
15
+ stampHeaderValue: string;
16
+ };
17
+ }>;
18
+ }
@@ -8,6 +8,7 @@ var EventEmitter = require('eventemitter3');
8
8
  var walletBook = require('@dynamic-labs/wallet-book');
9
9
  var utils = require('@dynamic-labs/utils');
10
10
  var logger = require('../utils/logger.cjs');
11
+ var isSameAddress = require('../utils/isSameAddress/isSameAddress.cjs');
11
12
  var getMobileExperience = require('../utils/getMobileExperience/getMobileExperience.cjs');
12
13
  var WalletBookSingleton = require('./WalletBookSingleton.cjs');
13
14
 
@@ -362,7 +363,7 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
362
363
  return _tslib.__awaiter(this, void 0, void 0, function* () {
363
364
  var _a, _b;
364
365
  const [activeAddress] = yield this.getConnectedAccounts();
365
- const isWalletActive = activeAddress === expectedAddress;
366
+ const isWalletActive = isSameAddress.isSameAddress(activeAddress, expectedAddress, this.connectedChain);
366
367
  logger.logger.debug(`validateActiveWallet - wallet ${isWalletActive ? 'is' : 'is not'} active`, {
367
368
  activeAddress,
368
369
  expectedAddress,
@@ -4,6 +4,7 @@ import EventEmitter from 'eventemitter3';
4
4
  import { getWalletBookWallet } from '@dynamic-labs/wallet-book';
5
5
  import { WalletAddressMismatchError } from '@dynamic-labs/utils';
6
6
  import { logger } from '../utils/logger.js';
7
+ import { isSameAddress } from '../utils/isSameAddress/isSameAddress.js';
7
8
  import { getMobileExperience } from '../utils/getMobileExperience/getMobileExperience.js';
8
9
  import { WalletBookSingleton } from './WalletBookSingleton.js';
9
10
 
@@ -354,7 +355,7 @@ class WalletConnectorBase extends EventEmitter {
354
355
  return __awaiter(this, void 0, void 0, function* () {
355
356
  var _a, _b;
356
357
  const [activeAddress] = yield this.getConnectedAccounts();
357
- const isWalletActive = activeAddress === expectedAddress;
358
+ const isWalletActive = isSameAddress(activeAddress, expectedAddress, this.connectedChain);
358
359
  logger.debug(`validateActiveWallet - wallet ${isWalletActive ? 'is' : 'is not'} active`, {
359
360
  activeAddress,
360
361
  expectedAddress,
@@ -3,6 +3,7 @@ export * from './IEmailWalletConnector';
3
3
  export * from './WalletConnector';
4
4
  export * from './types';
5
5
  export * from './IPasskeyWalletConnector';
6
+ export * from './ITurnkeyWalletConnectorStamper';
6
7
  export * from './SmartWalletConnector';
7
8
  export * from './IAccountAbstractionWalletConnector';
8
9
  export * from './IBitcoinWalletConnector';