@dynamic-labs/solana-core 4.0.0-alpha.38 → 4.0.0-alpha.39

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,18 @@
1
1
 
2
+ ## [4.0.0-alpha.39](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.38...v4.0.0-alpha.39) (2024-12-02)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * remove usages of findWalletBookWallet when possible (#7455)
8
+
9
+ ### Bug Fixes
10
+
11
+ * sdkHasLoaded always false in cookie enabled env ([#7516](https://github.com/dynamic-labs/dynamic-auth/issues/7516)) ([1c3335c](https://github.com/dynamic-labs/dynamic-auth/commit/1c3335c13930e9bffe60cf1c09bc9c9584a59ef7))
12
+
13
+
14
+ * remove usages of findWalletBookWallet when possible ([#7455](https://github.com/dynamic-labs/dynamic-auth/issues/7455)) ([0ce977d](https://github.com/dynamic-labs/dynamic-auth/commit/0ce977d5d4d591c371c6ea2edfb252ba7acff5d2))
15
+
2
16
  ## [4.0.0-alpha.38](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.37...v4.0.0-alpha.38) (2024-11-27)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.38";
6
+ var version = "4.0.0-alpha.39";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.38";
2
+ var version = "4.0.0-alpha.39";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/solana-core",
3
- "version": "4.0.0-alpha.38",
3
+ "version": "4.0.0-alpha.39",
4
4
  "description": "Core package for utilities and types for solana",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -23,12 +23,12 @@
23
23
  "@solana/spl-token": "0.4.6"
24
24
  },
25
25
  "peerDependencies": {
26
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.38",
27
- "@dynamic-labs/rpc-providers": "4.0.0-alpha.38",
28
- "@dynamic-labs/types": "4.0.0-alpha.38",
29
- "@dynamic-labs/utils": "4.0.0-alpha.38",
30
- "@dynamic-labs/wallet-book": "4.0.0-alpha.38",
31
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.38",
26
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.39",
27
+ "@dynamic-labs/rpc-providers": "4.0.0-alpha.39",
28
+ "@dynamic-labs/types": "4.0.0-alpha.39",
29
+ "@dynamic-labs/utils": "4.0.0-alpha.39",
30
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.39",
31
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.39",
32
32
  "eventemitter3": "5.0.1"
33
33
  }
34
34
  }
@@ -7,7 +7,6 @@ var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var web3_js = require('@solana/web3.js');
8
8
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
9
9
  var utils = require('@dynamic-labs/utils');
10
- var walletBook = require('@dynamic-labs/wallet-book');
11
10
  var SolanaWallet = require('../wallet/SolanaWallet.cjs');
12
11
  var extractNonce = require('../utils/extractNonce/extractNonce.cjs');
13
12
  var getGenesisHashLSKey = require('../utils/getGenesisHashLSKey/getGenesisHashLSKey.cjs');
@@ -93,10 +92,8 @@ class SolanaWalletConnector extends walletConnectorCore.WalletConnectorBase {
93
92
  return lamports / 1000000000;
94
93
  }
95
94
  canConnectWithHardwareWallet() {
96
- const wallet = walletBook.findWalletBookWallet(this.walletBook, this.key);
97
- if (!wallet || !wallet.hardwareWallets)
98
- return false;
99
- return wallet.hardwareWallets.includes('ledger');
95
+ var _a;
96
+ return Boolean((_a = this.metadata.supportedHardwareWallets) === null || _a === void 0 ? void 0 : _a.includes('ledger'));
100
97
  }
101
98
  signMessage(messageToSign) {
102
99
  const _super = Object.create(null, {
@@ -3,7 +3,6 @@ import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { PublicKey, Connection, Transaction, TransactionInstruction } from '@solana/web3.js';
4
4
  import { WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
5
5
  import { DynamicError, isLedgerAddressViaVerifiedCredentials, NotSupportedError } from '@dynamic-labs/utils';
6
- import { findWalletBookWallet } from '@dynamic-labs/wallet-book';
7
6
  import { SolanaWallet } from '../wallet/SolanaWallet.js';
8
7
  import { extractNonce } from '../utils/extractNonce/extractNonce.js';
9
8
  import { getGenesisHashLSKey } from '../utils/getGenesisHashLSKey/getGenesisHashLSKey.js';
@@ -89,10 +88,8 @@ class SolanaWalletConnector extends WalletConnectorBase {
89
88
  return lamports / 1000000000;
90
89
  }
91
90
  canConnectWithHardwareWallet() {
92
- const wallet = findWalletBookWallet(this.walletBook, this.key);
93
- if (!wallet || !wallet.hardwareWallets)
94
- return false;
95
- return wallet.hardwareWallets.includes('ledger');
91
+ var _a;
92
+ return Boolean((_a = this.metadata.supportedHardwareWallets) === null || _a === void 0 ? void 0 : _a.includes('ledger'));
96
93
  }
97
94
  signMessage(messageToSign) {
98
95
  const _super = Object.create(null, {