@buildonspark/issuer-sdk 0.0.65 → 0.0.67

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,5 +1,22 @@
1
1
  # @buildonspark/issuer-sdk
2
2
 
3
+ ## 0.0.67
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @buildonspark/lrc20-sdk@0.0.57
9
+ - @buildonspark/spark-sdk@0.1.36
10
+
11
+ ## 0.0.66
12
+
13
+ ### Patch Changes
14
+
15
+ - Fixes
16
+ - Updated dependencies
17
+ - @buildonspark/lrc20-sdk@0.0.56
18
+ - @buildonspark/spark-sdk@0.1.35
19
+
3
20
  ## 0.0.65
4
21
 
5
22
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -291,12 +291,14 @@ var IssuerSparkWallet = class _IssuerSparkWallet extends import_spark_sdk3.Spark
291
291
  * @param options - Configuration options for the wallet
292
292
  * @returns An object containing the initialized wallet and initialization response
293
293
  */
294
- static async initialize(options) {
295
- const wallet = new _IssuerSparkWallet(options.options);
296
- const initResponse = await wallet.initWallet(
297
- options.mnemonicOrSeed,
298
- options.accountNumber
299
- );
294
+ static async initialize({
295
+ mnemonicOrSeed,
296
+ accountNumber,
297
+ signer,
298
+ options
299
+ }) {
300
+ const wallet = new _IssuerSparkWallet(options, signer);
301
+ const initResponse = await wallet.initWallet(mnemonicOrSeed, accountNumber);
300
302
  if (import_core.isNode) {
301
303
  wallet.wrapIssuerSparkWalletWithTracing();
302
304
  }
package/dist/index.d.cts CHANGED
@@ -28,7 +28,7 @@ declare class IssuerSparkWallet extends SparkWallet {
28
28
  * @param options - Configuration options for the wallet
29
29
  * @returns An object containing the initialized wallet and initialization response
30
30
  */
31
- static initialize(options: SparkWalletProps): Promise<{
31
+ static initialize({ mnemonicOrSeed, accountNumber, signer, options, }: SparkWalletProps): Promise<{
32
32
  mnemonic?: string | undefined;
33
33
  wallet: IssuerSparkWallet;
34
34
  }>;
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ declare class IssuerSparkWallet extends SparkWallet {
28
28
  * @param options - Configuration options for the wallet
29
29
  * @returns An object containing the initialized wallet and initialization response
30
30
  */
31
- static initialize(options: SparkWalletProps): Promise<{
31
+ static initialize({ mnemonicOrSeed, accountNumber, signer, options, }: SparkWalletProps): Promise<{
32
32
  mnemonic?: string | undefined;
33
33
  wallet: IssuerSparkWallet;
34
34
  }>;
package/dist/index.js CHANGED
@@ -276,12 +276,14 @@ var IssuerSparkWallet = class _IssuerSparkWallet extends SparkWallet {
276
276
  * @param options - Configuration options for the wallet
277
277
  * @returns An object containing the initialized wallet and initialization response
278
278
  */
279
- static async initialize(options) {
280
- const wallet = new _IssuerSparkWallet(options.options);
281
- const initResponse = await wallet.initWallet(
282
- options.mnemonicOrSeed,
283
- options.accountNumber
284
- );
279
+ static async initialize({
280
+ mnemonicOrSeed,
281
+ accountNumber,
282
+ signer,
283
+ options
284
+ }) {
285
+ const wallet = new _IssuerSparkWallet(options, signer);
286
+ const initResponse = await wallet.initWallet(mnemonicOrSeed, accountNumber);
285
287
  if (isNode) {
286
288
  wallet.wrapIssuerSparkWalletWithTracing();
287
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildonspark/issuer-sdk",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "description": "Spark Issuer SDK for token issuance",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.js",
@@ -62,8 +62,8 @@
62
62
  "types": "tsc"
63
63
  },
64
64
  "dependencies": {
65
- "@buildonspark/lrc20-sdk": "0.0.55",
66
- "@buildonspark/spark-sdk": "0.1.34",
65
+ "@buildonspark/lrc20-sdk": "0.0.57",
66
+ "@buildonspark/spark-sdk": "0.1.36",
67
67
  "@lightsparkdev/core": "^1.4.1",
68
68
  "@noble/curves": "^1.8.0",
69
69
  "@scure/btc-signer": "^1.5.0",
@@ -56,13 +56,15 @@ export class IssuerSparkWallet extends SparkWallet {
56
56
  * @param options - Configuration options for the wallet
57
57
  * @returns An object containing the initialized wallet and initialization response
58
58
  */
59
- public static async initialize(options: SparkWalletProps) {
60
- const wallet = new IssuerSparkWallet(options.options);
61
-
62
- const initResponse = await wallet.initWallet(
63
- options.mnemonicOrSeed,
64
- options.accountNumber,
65
- );
59
+ public static async initialize({
60
+ mnemonicOrSeed,
61
+ accountNumber,
62
+ signer,
63
+ options,
64
+ }: SparkWalletProps) {
65
+ const wallet = new IssuerSparkWallet(options, signer);
66
+
67
+ const initResponse = await wallet.initWallet(mnemonicOrSeed, accountNumber);
66
68
 
67
69
  if (isNode) {
68
70
  wallet.wrapIssuerSparkWalletWithTracing();