@dynamic-labs/solana 4.45.3 → 4.46.1
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 +12 -12
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/walletConnect/SolanaWalletConnectConnectors.cjs +21 -0
- package/src/walletConnect/SolanaWalletConnectConnectors.d.ts +8 -0
- package/src/walletConnect/SolanaWalletConnectConnectors.js +17 -0
- package/src/walletConnect/utils/addSolanaWalletConnectConnectors/addSolanaWalletConnectConnectors.cjs +7 -4
- package/src/walletConnect/utils/addSolanaWalletConnectConnectors/addSolanaWalletConnectConnectors.js +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.46.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.46.0...v4.46.1) (2025-11-20)
|
|
3
|
+
|
|
4
|
+
## [4.46.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.45.3...v4.46.0) (2025-11-19)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **react-native:** add client.solana.simulateTransaction method ([#9910](https://github.com/dynamic-labs/dynamic-auth/issues/9910)) ([61bbe45](https://github.com/dynamic-labs/dynamic-auth/commit/61bbe453eeb2790dffc533aa57f6bc050c3c0461))
|
|
10
|
+
* **react-native:** add simulateEVMTransactionAA and simulateEVMTransaction methods ([#9907](https://github.com/dynamic-labs/dynamic-auth/issues/9907)) ([e54d63e](https://github.com/dynamic-labs/dynamic-auth/commit/e54d63eaa80c2bc865ef6199405b0ed7943d4b83))
|
|
11
|
+
|
|
2
12
|
### [4.45.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.45.2...v4.45.3) (2025-11-18)
|
|
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",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.46.1",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/wallet-connect": "4.
|
|
21
|
+
"@dynamic-labs/wallet-connect": "4.46.1",
|
|
22
22
|
"@solana/web3.js": "1.98.1",
|
|
23
23
|
"@wallet-standard/app": "1.0.1",
|
|
24
24
|
"@wallet-standard/base": "1.0.1",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@walletconnect/sign-client": "2.21.5",
|
|
30
30
|
"@walletconnect/utils": "2.21.5",
|
|
31
31
|
"@walletconnect/types": "2.21.5",
|
|
32
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
33
|
-
"@dynamic-labs/embedded-wallet-solana": "4.
|
|
34
|
-
"@dynamic-labs/logger": "4.
|
|
35
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
32
|
+
"@dynamic-labs/assert-package-version": "4.46.1",
|
|
33
|
+
"@dynamic-labs/embedded-wallet-solana": "4.46.1",
|
|
34
|
+
"@dynamic-labs/logger": "4.46.1",
|
|
35
|
+
"@dynamic-labs/rpc-providers": "4.46.1",
|
|
36
36
|
"@dynamic-labs/sdk-api-core": "0.0.821",
|
|
37
|
-
"@dynamic-labs/solana-core": "4.
|
|
38
|
-
"@dynamic-labs/types": "4.
|
|
39
|
-
"@dynamic-labs/utils": "4.
|
|
40
|
-
"@dynamic-labs/waas-svm": "4.
|
|
41
|
-
"@dynamic-labs/wallet-book": "4.
|
|
42
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
37
|
+
"@dynamic-labs/solana-core": "4.46.1",
|
|
38
|
+
"@dynamic-labs/types": "4.46.1",
|
|
39
|
+
"@dynamic-labs/utils": "4.46.1",
|
|
40
|
+
"@dynamic-labs/waas-svm": "4.46.1",
|
|
41
|
+
"@dynamic-labs/wallet-book": "4.46.1",
|
|
42
|
+
"@dynamic-labs/wallet-connector-core": "4.46.1",
|
|
43
43
|
"eventemitter3": "5.0.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {}
|
package/src/index.cjs
CHANGED
|
@@ -9,6 +9,7 @@ var solanaCore = require('@dynamic-labs/solana-core');
|
|
|
9
9
|
var BackpackSol = require('./injected/BackpackSol/BackpackSol.cjs');
|
|
10
10
|
var InjectedWalletBase = require('./injected/InjectedWalletBase/InjectedWalletBase.cjs');
|
|
11
11
|
var SolanaWalletConnectors = require('./SolanaWalletConnectors.cjs');
|
|
12
|
+
var SolanaWalletConnectConnectors = require('./walletConnect/SolanaWalletConnectConnectors.cjs');
|
|
12
13
|
var SolanaWalletConnectorsWithConfig = require('./SolanaWalletConnectorsWithConfig/SolanaWalletConnectorsWithConfig.cjs');
|
|
13
14
|
var isBackpackSolanaSigner = require('./utils/isBackpackSolanaSigner.cjs');
|
|
14
15
|
var isSignedMessage = require('./utils/isSignedMessage.cjs');
|
|
@@ -36,6 +37,7 @@ Object.defineProperty(exports, 'isSolanaWallet', {
|
|
|
36
37
|
exports.BackpackConnector = BackpackSol.BackpackSol;
|
|
37
38
|
exports.SolanaInjectedConnector = InjectedWalletBase.InjectedWalletBase;
|
|
38
39
|
exports.SolanaWalletConnectors = SolanaWalletConnectors.SolanaWalletConnectors;
|
|
40
|
+
exports.SolanaWalletConnectConnectors = SolanaWalletConnectConnectors.SolanaWalletConnectConnectors;
|
|
39
41
|
exports.SolanaWalletConnectorsWithConfig = SolanaWalletConnectorsWithConfig.SolanaWalletConnectorsWithConfig;
|
|
40
42
|
exports.isBackpackSolanaSigner = isBackpackSolanaSigner.isBackpackSolanaSigner;
|
|
41
43
|
exports.isSignedMessage = isSignedMessage.isSignedMessage;
|
package/src/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { isSolanaWallet, SolanaWalletConnector, } from '@dynamic-labs/solana-cor
|
|
|
3
3
|
export { BackpackSol as BackpackConnector } from './injected/BackpackSol';
|
|
4
4
|
export { InjectedWalletBase as SolanaInjectedConnector } from './injected/InjectedWalletBase';
|
|
5
5
|
export { SolanaWalletConnectors } from './SolanaWalletConnectors';
|
|
6
|
+
export { SolanaWalletConnectConnectors } from './walletConnect/SolanaWalletConnectConnectors';
|
|
6
7
|
export { SolanaWalletConnectorsWithConfig } from './SolanaWalletConnectorsWithConfig';
|
|
7
8
|
export { isBackpackSolanaSigner } from './utils/isBackpackSolanaSigner';
|
|
8
9
|
export { isSignedMessage } from './utils/isSignedMessage';
|
package/src/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { SolanaWalletConnector, isSolanaWallet } from '@dynamic-labs/solana-core
|
|
|
5
5
|
export { BackpackSol as BackpackConnector } from './injected/BackpackSol/BackpackSol.js';
|
|
6
6
|
export { InjectedWalletBase as SolanaInjectedConnector } from './injected/InjectedWalletBase/InjectedWalletBase.js';
|
|
7
7
|
export { SolanaWalletConnectors } from './SolanaWalletConnectors.js';
|
|
8
|
+
export { SolanaWalletConnectConnectors } from './walletConnect/SolanaWalletConnectConnectors.js';
|
|
8
9
|
export { SolanaWalletConnectorsWithConfig } from './SolanaWalletConnectorsWithConfig/SolanaWalletConnectorsWithConfig.js';
|
|
9
10
|
export { isBackpackSolanaSigner } from './utils/isBackpackSolanaSigner.js';
|
|
10
11
|
export { isSignedMessage } from './utils/isSignedMessage.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var addSolanaWalletConnectConnectors = require('./utils/addSolanaWalletConnectConnectors/addSolanaWalletConnectConnectors.cjs');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Returns ALL Solana WalletConnect connectors from the wallet book.
|
|
10
|
+
*
|
|
11
|
+
* WARNING: This should only be used if you have no other Solana connectors.
|
|
12
|
+
* If you have other Solana connectors, you should use addSolanaWalletConnectConnectors instead.
|
|
13
|
+
*/
|
|
14
|
+
const SolanaWalletConnectConnectors = (
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
props) => addSolanaWalletConnectConnectors.addSolanaWalletConnectConnectors({
|
|
17
|
+
connectors: [],
|
|
18
|
+
walletBook: props.walletBook,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
exports.SolanaWalletConnectConnectors = SolanaWalletConnectConnectors;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WalletConnectorConstructor } from '@dynamic-labs/wallet-connector-core';
|
|
2
|
+
/**
|
|
3
|
+
* Returns ALL Solana WalletConnect connectors from the wallet book.
|
|
4
|
+
*
|
|
5
|
+
* WARNING: This should only be used if you have no other Solana connectors.
|
|
6
|
+
* If you have other Solana connectors, you should use addSolanaWalletConnectConnectors instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SolanaWalletConnectConnectors: (props: any) => WalletConnectorConstructor[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { addSolanaWalletConnectConnectors } from './utils/addSolanaWalletConnectConnectors/addSolanaWalletConnectConnectors.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns ALL Solana WalletConnect connectors from the wallet book.
|
|
6
|
+
*
|
|
7
|
+
* WARNING: This should only be used if you have no other Solana connectors.
|
|
8
|
+
* If you have other Solana connectors, you should use addSolanaWalletConnectConnectors instead.
|
|
9
|
+
*/
|
|
10
|
+
const SolanaWalletConnectConnectors = (
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
props) => addSolanaWalletConnectConnectors({
|
|
13
|
+
connectors: [],
|
|
14
|
+
walletBook: props.walletBook,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export { SolanaWalletConnectConnectors };
|
|
@@ -54,11 +54,14 @@ const addSolanaWalletConnectConnectors = ({ walletBook, connectors: currentConne
|
|
|
54
54
|
});
|
|
55
55
|
return SolanaWalletConnectConnectorConstructor;
|
|
56
56
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
let filteredWcConstructors = allWcConstructors;
|
|
58
|
+
if (currentConnectors.length > 0) {
|
|
59
|
+
filteredWcConstructors = allWcConstructors.filter((constructor) => currentConnectors.every((existingConnector) =>
|
|
60
60
|
// @ts-expect-error - the key type is not defined for the constructor
|
|
61
|
-
|
|
61
|
+
existingConnector['key'] !== constructor['key'] &&
|
|
62
|
+
// @ts-expect-error - the key type is not defined for the constructor
|
|
63
|
+
!constructor['groupedKeys'].includes(existingConnector['key'])));
|
|
64
|
+
}
|
|
62
65
|
return [...currentConnectors, ...filteredWcConstructors];
|
|
63
66
|
};
|
|
64
67
|
|
package/src/walletConnect/utils/addSolanaWalletConnectConnectors/addSolanaWalletConnectConnectors.js
CHANGED
|
@@ -50,11 +50,14 @@ const addSolanaWalletConnectConnectors = ({ walletBook, connectors: currentConne
|
|
|
50
50
|
});
|
|
51
51
|
return SolanaWalletConnectConnectorConstructor;
|
|
52
52
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
let filteredWcConstructors = allWcConstructors;
|
|
54
|
+
if (currentConnectors.length > 0) {
|
|
55
|
+
filteredWcConstructors = allWcConstructors.filter((constructor) => currentConnectors.every((existingConnector) =>
|
|
56
56
|
// @ts-expect-error - the key type is not defined for the constructor
|
|
57
|
-
|
|
57
|
+
existingConnector['key'] !== constructor['key'] &&
|
|
58
|
+
// @ts-expect-error - the key type is not defined for the constructor
|
|
59
|
+
!constructor['groupedKeys'].includes(existingConnector['key'])));
|
|
60
|
+
}
|
|
58
61
|
return [...currentConnectors, ...filteredWcConstructors];
|
|
59
62
|
};
|
|
60
63
|
|