@dynamic-labs/spark 4.104.0 → 4.105.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 +14 -0
- package/README.md +0 -13
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -6
- package/src/connectors/SparkWalletConnector/SparkWalletConnector.cjs +1 -1
- package/src/connectors/SparkWalletConnector/SparkWalletConnector.js +1 -1
- package/src/connectors/index.d.ts +0 -1
- package/src/types.d.ts +1 -6
- package/src/connectors/MagicEdenSparkConnector/MagicEdenSparkConnector.d.ts +0 -29
- package/src/connectors/MagicEdenSparkConnector/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.105.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.105.0...v4.105.1) (2026-11-16)
|
|
3
|
+
|
|
4
|
+
## [4.105.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.104.0...v4.105.0) (2026-11-13)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **bitcoin:** add allowedWitnessScripts to embedded wallet signPsbt [v4] ([#12693](https://github.com/dynamic-labs/dynamic-auth/issues/12693)) ([3804839](https://github.com/dynamic-labs/dynamic-auth/commit/38048395d89896536a03ff3668b46b2ae0e32eef)), closes [#12575](https://github.com/dynamic-labs/dynamic-auth/issues/12575)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **sdk-react-core:** reject sanctioned wallets on connect in connect-only mode [v4] ([#12756](https://github.com/dynamic-labs/dynamic-auth/issues/12756)) ([1786b49](https://github.com/dynamic-labs/dynamic-auth/commit/1786b498a21489a5bbb35357c336ee96adc03242)), closes [#12754](https://github.com/dynamic-labs/dynamic-auth/issues/12754) [#12754](https://github.com/dynamic-labs/dynamic-auth/issues/12754) [#12754](https://github.com/dynamic-labs/dynamic-auth/issues/12754)
|
|
15
|
+
|
|
2
16
|
## [4.104.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.103.0...v4.104.0) (2026-11-03)
|
|
3
17
|
|
|
4
18
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@ A Spark wallet connector package for the Dynamic SDK that enables seamless integ
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **Magic Eden Wallet Support** - Full integration with Magic Eden's Spark wallet
|
|
8
7
|
- **Flexible Provider Interface** - Easy to add support for additional Spark wallets
|
|
9
8
|
- **Bitcoin Transfers** - Send Bitcoin to Spark addresses with optional Taproot support
|
|
10
9
|
- **Token Transfers** - Transfer tokens between Spark addresses
|
|
@@ -17,18 +16,6 @@ A Spark wallet connector package for the Dynamic SDK that enables seamless integ
|
|
|
17
16
|
npm install @dynamic-labs/spark
|
|
18
17
|
```
|
|
19
18
|
|
|
20
|
-
## 🔌 Supported Wallets
|
|
21
|
-
|
|
22
|
-
### Magic Eden
|
|
23
|
-
|
|
24
|
-
The package includes full support for Magic Eden's Spark wallet implementation, which provides:
|
|
25
|
-
|
|
26
|
-
- **Connection Management** - Seamless wallet connection and disconnection
|
|
27
|
-
- **Address Retrieval** - Get current wallet address
|
|
28
|
-
- **Message Signing** - Sign messages for authentication with optional Taproot support
|
|
29
|
-
- **Bitcoin Transfers** - Send Bitcoin to other Spark addresses
|
|
30
|
-
- **Token Transfers** - Transfer tokens between Spark addresses
|
|
31
|
-
|
|
32
19
|
## Architecture
|
|
33
20
|
|
|
34
21
|
### Base Connector Class
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/spark",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.105.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,12 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.105.1",
|
|
22
22
|
"sats-connect": "4.2.1",
|
|
23
|
-
"@dynamic-labs/types": "4.
|
|
24
|
-
"@dynamic-labs/
|
|
25
|
-
"@dynamic-labs/wallet-
|
|
26
|
-
"@dynamic-labs/wallet-connector-core": "4.104.0"
|
|
23
|
+
"@dynamic-labs/types": "4.105.1",
|
|
24
|
+
"@dynamic-labs/wallet-book": "4.105.1",
|
|
25
|
+
"@dynamic-labs/wallet-connector-core": "4.105.1"
|
|
27
26
|
},
|
|
28
27
|
"peerDependencies": {}
|
|
29
28
|
}
|
|
@@ -92,7 +92,7 @@ class SparkWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
92
92
|
*/
|
|
93
93
|
getNetwork() {
|
|
94
94
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
//
|
|
95
|
+
// Spark wallets only support mainnet at the moment
|
|
96
96
|
// This should be expanded is anyone ever supports testnet or regtest
|
|
97
97
|
// We can detect netowrk using addresses in the future if we want
|
|
98
98
|
return '301';
|
|
@@ -88,7 +88,7 @@ class SparkWalletConnector extends WalletConnectorBase {
|
|
|
88
88
|
*/
|
|
89
89
|
getNetwork() {
|
|
90
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
-
//
|
|
91
|
+
// Spark wallets only support mainnet at the moment
|
|
92
92
|
// This should be expanded is anyone ever supports testnet or regtest
|
|
93
93
|
// We can detect netowrk using addresses in the future if we want
|
|
94
94
|
return '301';
|
package/src/types.d.ts
CHANGED
|
@@ -5,11 +5,6 @@ declare global {
|
|
|
5
5
|
interface IWindowSpark {
|
|
6
6
|
SparkProvider: ISparkProvider;
|
|
7
7
|
}
|
|
8
|
-
interface Window {
|
|
9
|
-
magicEden?: {
|
|
10
|
-
spark: ISparkProvider;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
8
|
}
|
|
14
9
|
/**
|
|
15
10
|
* Interface that all Spark wallet providers must implement.
|
|
@@ -31,7 +26,7 @@ declare global {
|
|
|
31
26
|
*
|
|
32
27
|
* ## Usage Examples
|
|
33
28
|
* ```typescript
|
|
34
|
-
* //
|
|
29
|
+
* // sparkAddress naming style
|
|
35
30
|
* const result = await provider.connect();
|
|
36
31
|
* // result can be: string | { sparkAddress: string, sparkTaprootAddress?: string }
|
|
37
32
|
*
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SparkWalletConnector, SparkWalletConnectorOpts } from '../SparkWalletConnector';
|
|
2
|
-
import type { ISparkProvider } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Magic Eden Spark wallet connector implementation.
|
|
5
|
-
*
|
|
6
|
-
* Handles Magic Eden's specific interface requirements while leveraging
|
|
7
|
-
* the base class's flexible type handling.
|
|
8
|
-
*/
|
|
9
|
-
export declare class MagicEdenSparkConnector extends SparkWalletConnector {
|
|
10
|
-
/** Human-readable connector name */
|
|
11
|
-
name: string;
|
|
12
|
-
/** Unique identifier for this connector type */
|
|
13
|
-
overrideKey: string;
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new Magic Eden Spark connector
|
|
16
|
-
* @param opts - Configuration options
|
|
17
|
-
*/
|
|
18
|
-
constructor(opts: SparkWalletConnectorOpts);
|
|
19
|
-
/**
|
|
20
|
-
* Returns the Magic Eden Spark provider from the window object
|
|
21
|
-
* @returns The SparkProvider instance, or undefined if not available
|
|
22
|
-
*/
|
|
23
|
-
getProvider(): ISparkProvider | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves the wallet address with Magic Eden specific error handling
|
|
26
|
-
* @returns The wallet address as a string, or undefined if unavailable
|
|
27
|
-
*/
|
|
28
|
-
getAddress(): Promise<string | undefined>;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MagicEdenSparkConnector';
|