@dynamic-labs/solana-core 5.11.0 → 5.12.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 +10 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -8
- package/src/index.d.ts +1 -1
- package/src/types.d.ts +6 -1
- package/src/wallet/SolanaWallet.cjs +3 -3
- package/src/wallet/SolanaWallet.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.12.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.11.0...v5.12.0) (2026-10-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **embedded-wallet-solana:** add getSolanaSponsorAddress ([#12517](https://github.com/dynamic-labs/dynamic-auth/issues/12517)) ([b95c550](https://github.com/dynamic-labs/dynamic-auth/commit/b95c550e3dab783b7ff0b019051a17b22ea44f97))
|
|
8
|
+
* **embedded-wallet:** show chain and wallet in private key export modal ([#12507](https://github.com/dynamic-labs/dynamic-auth/issues/12507)) ([4bfb6d6](https://github.com/dynamic-labs/dynamic-auth/commit/4bfb6d6168aac3f800792fde933e0597f288058f))
|
|
9
|
+
* **sdk-react-core:** send OTP purpose from step-up flows ([#12511](https://github.com/dynamic-labs/dynamic-auth/issues/12511)) ([0d2d8a3](https://github.com/dynamic-labs/dynamic-auth/commit/0d2d8a31058b3e75c71af7a34f459e2a3ddf383b)), closes [#12898](https://github.com/dynamic-labs/dynamic-auth/issues/12898) [#816](https://github.com/dynamic-labs/dynamic-auth/issues/816) [#203](https://github.com/dynamic-labs/dynamic-auth/issues/203) [#12512](https://github.com/dynamic-labs/dynamic-auth/issues/12512)
|
|
10
|
+
* **wallet-connect:** back WalletConnect storage with native secure storage on mobile ([#12515](https://github.com/dynamic-labs/dynamic-auth/issues/12515)) ([7b57903](https://github.com/dynamic-labs/dynamic-auth/commit/7b5790325fce707d73d591483a0130b960ed055c))
|
|
11
|
+
|
|
2
12
|
## [5.11.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.10.0...v5.11.0) (2026-10-14)
|
|
3
13
|
|
|
4
14
|
|
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": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"description": "Core package for utilities and types for solana",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/
|
|
22
|
-
"@dynamic-labs/
|
|
21
|
+
"@dynamic-labs-wallet/core": "1.1.43",
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.104.0",
|
|
23
|
+
"@dynamic-labs/utils": "5.12.0",
|
|
23
24
|
"@solana/web3.js": "1.98.1",
|
|
24
25
|
"@solana/spl-token": "0.4.14",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "5.
|
|
27
|
-
"@dynamic-labs/types": "5.
|
|
28
|
-
"@dynamic-labs/wallet-book": "5.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "5.12.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "5.12.0",
|
|
28
|
+
"@dynamic-labs/types": "5.12.0",
|
|
29
|
+
"@dynamic-labs/wallet-book": "5.12.0",
|
|
30
|
+
"@dynamic-labs/wallet-connector-core": "5.12.0",
|
|
30
31
|
"eventemitter3": "5.0.1"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {}
|
package/src/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export * from './rpc';
|
|
|
3
3
|
export * from './utils';
|
|
4
4
|
export * from './wallet';
|
|
5
5
|
export { SOLANA_GENESIS_HASH, DYNAMIC_SVM_NETWORK_ID_LS_KEY, } from './constants';
|
|
6
|
-
export type { ConnectionResult, ExtensionLocator, ISolana, IBackpackSolanaSigner, SignedMessage, ISolanaSigner, GasSponsorshipMode, SolanaSendOptions, SolanaTransactionOptions, SolanaConnectionConfig, ISolanaEvents, } from './types';
|
|
6
|
+
export type { ConnectionResult, ExtensionLocator, ISolana, IBackpackSolanaSigner, SignedMessage, ISolanaSigner, GasSponsorshipMode, SolanaSendOptions, SolanaSignMessageOptions, SolanaTransactionOptions, SolanaConnectionConfig, ISolanaEvents, } from './types';
|
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Connection, ConnectionConfig, SendOptions, Signer, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js';
|
|
2
|
+
import type { ApprovalQuorumRequestContext } from '@dynamic-labs-wallet/core';
|
|
2
3
|
import EventEmitter from 'eventemitter3';
|
|
3
4
|
declare global {
|
|
4
5
|
interface IWindowPhantom {
|
|
@@ -35,6 +36,10 @@ export type SignedMessage = {
|
|
|
35
36
|
export type GasSponsorshipMode = 'auto' | 'off' | 'required';
|
|
36
37
|
export type SolanaTransactionOptions = {
|
|
37
38
|
sponsorshipMode?: GasSponsorshipMode;
|
|
39
|
+
approvalQuorum?: ApprovalQuorumRequestContext;
|
|
40
|
+
};
|
|
41
|
+
export type SolanaSignMessageOptions = {
|
|
42
|
+
approvalQuorum?: ApprovalQuorumRequestContext;
|
|
38
43
|
};
|
|
39
44
|
export type SolanaSendOptions = SendOptions & SolanaTransactionOptions;
|
|
40
45
|
type ExtensionLocators = {
|
|
@@ -51,7 +56,7 @@ export type ISolanaSigner = ExtensionLocators & EventEmitter<ISolanaEvents> & {
|
|
|
51
56
|
signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, options?: SolanaSendOptions): Promise<{
|
|
52
57
|
signature: TransactionSignature;
|
|
53
58
|
}>;
|
|
54
|
-
signMessage(message: Uint8Array,
|
|
59
|
+
signMessage(message: Uint8Array, options?: string | SolanaSignMessageOptions): Promise<SignedMessage>;
|
|
55
60
|
connect: (args?: {
|
|
56
61
|
onlyIfTrusted: boolean;
|
|
57
62
|
}) => Promise<ConnectionResult>;
|
|
@@ -132,10 +132,10 @@ class SolanaWallet extends walletConnectorCore.Wallet {
|
|
|
132
132
|
}
|
|
133
133
|
return signer.signAndSendTransaction(transaction);
|
|
134
134
|
}),
|
|
135
|
-
signMessage: (message,
|
|
135
|
+
signMessage: (message, options) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
yield this.sync();
|
|
137
|
-
if (
|
|
138
|
-
return signer.signMessage(message,
|
|
137
|
+
if (options !== undefined) {
|
|
138
|
+
return signer.signMessage(message, options);
|
|
139
139
|
}
|
|
140
140
|
return signer.signMessage(message);
|
|
141
141
|
}),
|
|
@@ -128,10 +128,10 @@ class SolanaWallet extends Wallet {
|
|
|
128
128
|
}
|
|
129
129
|
return signer.signAndSendTransaction(transaction);
|
|
130
130
|
}),
|
|
131
|
-
signMessage: (message,
|
|
131
|
+
signMessage: (message, options) => __awaiter(this, void 0, void 0, function* () {
|
|
132
132
|
yield this.sync();
|
|
133
|
-
if (
|
|
134
|
-
return signer.signMessage(message,
|
|
133
|
+
if (options !== undefined) {
|
|
134
|
+
return signer.signMessage(message, options);
|
|
135
135
|
}
|
|
136
136
|
return signer.signMessage(message);
|
|
137
137
|
}),
|