@dynamic-labs/solana-core 4.0.0-alpha.37 → 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,25 @@
|
|
|
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
|
+
|
|
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)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* don't allow user to connect wallet in bridge while sdk is still loading ([#7506](https://github.com/dynamic-labs/dynamic-auth/issues/7506)) ([c0a913d](https://github.com/dynamic-labs/dynamic-auth/commit/c0a913d78675cc66b41f03ea9bfb316de5f95905))
|
|
22
|
+
|
|
2
23
|
## [4.0.0-alpha.37](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.36...v4.0.0-alpha.37) (2024-11-27)
|
|
3
24
|
|
|
4
25
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana-core",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
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.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
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
|
-
|
|
97
|
-
|
|
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
|
-
|
|
93
|
-
|
|
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, {
|