@dynamic-labs/solana-core 4.91.3 → 4.91.4

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.91.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.3...v4.91.4) (2026-07-01)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * conditionally use /op/ route for AA transactions based on block explorer support ([#11628](https://github.com/dynamic-labs/dynamic-auth/issues/11628)) ([95822dc](https://github.com/dynamic-labs/dynamic-auth/commit/95822dc0edbcd739afe870f0b3881555fdb17eb6))
8
+ * require error codes in all SDK error classes ([#11761](https://github.com/dynamic-labs/dynamic-auth/issues/11761)) ([5744811](https://github.com/dynamic-labs/dynamic-auth/commit/5744811efdd1e415aaf51eec5b3300b323ec1347))
9
+
2
10
  ### [4.91.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.2...v4.91.3) (2026-06-30)
3
11
 
4
12
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.91.3";
6
+ var version = "4.91.4";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.91.3";
2
+ var version = "4.91.4";
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.91.3",
3
+ "version": "4.91.4",
4
4
  "description": "Core package for utilities and types for solana",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,14 +19,14 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.1046",
22
- "@dynamic-labs/utils": "4.91.3",
22
+ "@dynamic-labs/utils": "4.91.4",
23
23
  "@solana/web3.js": "1.98.1",
24
24
  "@solana/spl-token": "0.4.14",
25
- "@dynamic-labs/assert-package-version": "4.91.3",
26
- "@dynamic-labs/rpc-providers": "4.91.3",
27
- "@dynamic-labs/types": "4.91.3",
28
- "@dynamic-labs/wallet-book": "4.91.3",
29
- "@dynamic-labs/wallet-connector-core": "4.91.3",
25
+ "@dynamic-labs/assert-package-version": "4.91.4",
26
+ "@dynamic-labs/rpc-providers": "4.91.4",
27
+ "@dynamic-labs/types": "4.91.4",
28
+ "@dynamic-labs/wallet-book": "4.91.4",
29
+ "@dynamic-labs/wallet-connector-core": "4.91.4",
30
30
  "eventemitter3": "5.0.1"
31
31
  },
32
32
  "peerDependencies": {}
@@ -102,7 +102,7 @@ class SolanaWalletConnector extends walletConnectorCore.WalletConnectorBase {
102
102
  var _a;
103
103
  const network = this.getSelectedNetwork();
104
104
  if (!network) {
105
- throw new utils.DynamicError('No enabled networks');
105
+ throw new utils.DynamicError('No enabled networks', 'no_enabled_networks');
106
106
  }
107
107
  const rpcUrl = getOverrideRpcUrlForNetwork.getOverrideRpcUrlForNetwork(this.connectionConfig, network);
108
108
  return new web3_js.Connection(rpcUrl, (_a = this.connectionConfig) !== null && _a !== void 0 ? _a : 'confirmed');
@@ -165,7 +165,7 @@ class SolanaWalletConnector extends walletConnectorCore.WalletConnectorBase {
165
165
  if (this.isHardwareWalletEnabled) {
166
166
  const nonce = extractNonce.extractNonce(messageToSign);
167
167
  if (!nonce) {
168
- throw new utils.DynamicError('Nonce missing');
168
+ throw new utils.DynamicError('Nonce missing', 'nonce_missing');
169
169
  }
170
170
  return this.signMessageViaTransaction(nonce);
171
171
  }
@@ -176,14 +176,14 @@ class SolanaWalletConnector extends walletConnectorCore.WalletConnectorBase {
176
176
  return _tslib.__awaiter(this, void 0, void 0, function* () {
177
177
  const address = yield this.getAddress();
178
178
  if (!address) {
179
- throw new utils.DynamicError('Address missing');
179
+ throw new utils.DynamicError('Address missing', 'address_missing');
180
180
  }
181
181
  const transaction = this.buildAuthTx(messageToSign);
182
182
  transaction.feePayer = new web3_js.PublicKey(address);
183
183
  transaction.recentBlockhash = (yield this.getWalletClient().getLatestBlockhash()).blockhash;
184
184
  const signer = yield this.getSigner();
185
185
  if (!signer) {
186
- throw new utils.DynamicError('Signer not found');
186
+ throw new utils.DynamicError('Signer not found', 'signer_not_found');
187
187
  }
188
188
  const signedTransaction = yield signer.signTransaction(transaction);
189
189
  const serializedSignedTransaction = signedTransaction.serialize();
@@ -98,7 +98,7 @@ class SolanaWalletConnector extends WalletConnectorBase {
98
98
  var _a;
99
99
  const network = this.getSelectedNetwork();
100
100
  if (!network) {
101
- throw new DynamicError('No enabled networks');
101
+ throw new DynamicError('No enabled networks', 'no_enabled_networks');
102
102
  }
103
103
  const rpcUrl = getOverrideRpcUrlForNetwork(this.connectionConfig, network);
104
104
  return new Connection(rpcUrl, (_a = this.connectionConfig) !== null && _a !== void 0 ? _a : 'confirmed');
@@ -161,7 +161,7 @@ class SolanaWalletConnector extends WalletConnectorBase {
161
161
  if (this.isHardwareWalletEnabled) {
162
162
  const nonce = extractNonce(messageToSign);
163
163
  if (!nonce) {
164
- throw new DynamicError('Nonce missing');
164
+ throw new DynamicError('Nonce missing', 'nonce_missing');
165
165
  }
166
166
  return this.signMessageViaTransaction(nonce);
167
167
  }
@@ -172,14 +172,14 @@ class SolanaWalletConnector extends WalletConnectorBase {
172
172
  return __awaiter(this, void 0, void 0, function* () {
173
173
  const address = yield this.getAddress();
174
174
  if (!address) {
175
- throw new DynamicError('Address missing');
175
+ throw new DynamicError('Address missing', 'address_missing');
176
176
  }
177
177
  const transaction = this.buildAuthTx(messageToSign);
178
178
  transaction.feePayer = new PublicKey(address);
179
179
  transaction.recentBlockhash = (yield this.getWalletClient().getLatestBlockhash()).blockhash;
180
180
  const signer = yield this.getSigner();
181
181
  if (!signer) {
182
- throw new DynamicError('Signer not found');
182
+ throw new DynamicError('Signer not found', 'signer_not_found');
183
183
  }
184
184
  const signedTransaction = yield signer.signTransaction(transaction);
185
185
  const serializedSignedTransaction = signedTransaction.serialize();