@breeztech/breez-sdk-spark 0.7.1 → 0.7.2

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.
Binary file
@@ -87,7 +87,7 @@ export interface ListUnclaimedDepositsResponse {
87
87
  deposits: DepositInfo[];
88
88
  }
89
89
 
90
- export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: bigint; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
90
+ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: string; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
91
91
 
92
92
  export interface SparkHtlcDetails {
93
93
  paymentHash: string;
@@ -132,7 +132,7 @@ export interface CurrencyInfo {
132
132
  localeOverrides: LocaleOverrides[];
133
133
  }
134
134
 
135
- export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: bigint; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: bigint; tokenIdentifier?: string };
135
+ export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: string; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: string; tokenIdentifier?: string };
136
136
 
137
137
  export interface CheckLightningAddressRequest {
138
138
  username: string;
@@ -163,7 +163,7 @@ export interface TokenMetadata {
163
163
  name: string;
164
164
  ticker: string;
165
165
  decimals: number;
166
- maxSupply: bigint;
166
+ maxSupply: string;
167
167
  isFreezable: boolean;
168
168
  }
169
169
 
@@ -395,7 +395,7 @@ export interface RecordChange {
395
395
  export interface TokenConversionInfo {
396
396
  poolId: string;
397
397
  paymentId?: string;
398
- fee?: bigint;
398
+ fee?: string;
399
399
  refundIdentifier?: string;
400
400
  }
401
401
 
@@ -715,7 +715,7 @@ export interface SparkInvoiceDetails {
715
715
  invoice: string;
716
716
  identityPublicKey: string;
717
717
  network: BitcoinNetwork;
718
- amount?: bigint;
718
+ amount?: string;
719
719
  tokenIdentifier?: string;
720
720
  expiryTime?: number;
721
721
  description?: string;
@@ -2355,12 +2355,12 @@ export function __wbindgen_cb_drop(arg0) {
2355
2355
  return ret;
2356
2356
  };
2357
2357
 
2358
- export function __wbindgen_closure_wrapper11146(arg0, arg1, arg2) {
2358
+ export function __wbindgen_closure_wrapper11144(arg0, arg1, arg2) {
2359
2359
  const ret = makeMutClosure(arg0, arg1, 812, __wbg_adapter_64);
2360
2360
  return ret;
2361
2361
  };
2362
2362
 
2363
- export function __wbindgen_closure_wrapper13052(arg0, arg1, arg2) {
2363
+ export function __wbindgen_closure_wrapper13050(arg0, arg1, arg2) {
2364
2364
  const ret = makeMutClosure(arg0, arg1, 1048, __wbg_adapter_67);
2365
2365
  return ret;
2366
2366
  };
@@ -87,7 +87,7 @@ export interface ListUnclaimedDepositsResponse {
87
87
  deposits: DepositInfo[];
88
88
  }
89
89
 
90
- export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: bigint; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
90
+ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: string; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
91
91
 
92
92
  export interface SparkHtlcDetails {
93
93
  paymentHash: string;
@@ -132,7 +132,7 @@ export interface CurrencyInfo {
132
132
  localeOverrides: LocaleOverrides[];
133
133
  }
134
134
 
135
- export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: bigint; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: bigint; tokenIdentifier?: string };
135
+ export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: string; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: string; tokenIdentifier?: string };
136
136
 
137
137
  export interface CheckLightningAddressRequest {
138
138
  username: string;
@@ -163,7 +163,7 @@ export interface TokenMetadata {
163
163
  name: string;
164
164
  ticker: string;
165
165
  decimals: number;
166
- maxSupply: bigint;
166
+ maxSupply: string;
167
167
  isFreezable: boolean;
168
168
  }
169
169
 
@@ -395,7 +395,7 @@ export interface RecordChange {
395
395
  export interface TokenConversionInfo {
396
396
  poolId: string;
397
397
  paymentId?: string;
398
- fee?: bigint;
398
+ fee?: string;
399
399
  refundIdentifier?: string;
400
400
  }
401
401
 
@@ -715,7 +715,7 @@ export interface SparkInvoiceDetails {
715
715
  invoice: string;
716
716
  identityPublicKey: string;
717
717
  network: BitcoinNetwork;
718
- amount?: bigint;
718
+ amount?: string;
719
719
  tokenIdentifier?: string;
720
720
  expiryTime?: number;
721
721
  description?: string;
@@ -2155,11 +2155,11 @@ const imports = {
2155
2155
  const ret = false;
2156
2156
  return ret;
2157
2157
  },
2158
- __wbindgen_closure_wrapper11146: function(arg0, arg1, arg2) {
2158
+ __wbindgen_closure_wrapper11144: function(arg0, arg1, arg2) {
2159
2159
  const ret = makeMutClosure(arg0, arg1, 812, __wbg_adapter_64);
2160
2160
  return ret;
2161
2161
  },
2162
- __wbindgen_closure_wrapper13052: function(arg0, arg1, arg2) {
2162
+ __wbindgen_closure_wrapper13050: function(arg0, arg1, arg2) {
2163
2163
  const ret = makeMutClosure(arg0, arg1, 1048, __wbg_adapter_67);
2164
2164
  return ret;
2165
2165
  },
Binary file
@@ -87,7 +87,7 @@ export interface ListUnclaimedDepositsResponse {
87
87
  deposits: DepositInfo[];
88
88
  }
89
89
 
90
- export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: bigint; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
90
+ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: string; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
91
91
 
92
92
  export interface SparkHtlcDetails {
93
93
  paymentHash: string;
@@ -132,7 +132,7 @@ export interface CurrencyInfo {
132
132
  localeOverrides: LocaleOverrides[];
133
133
  }
134
134
 
135
- export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: bigint; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: bigint; tokenIdentifier?: string };
135
+ export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: string; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: string; tokenIdentifier?: string };
136
136
 
137
137
  export interface CheckLightningAddressRequest {
138
138
  username: string;
@@ -163,7 +163,7 @@ export interface TokenMetadata {
163
163
  name: string;
164
164
  ticker: string;
165
165
  decimals: number;
166
- maxSupply: bigint;
166
+ maxSupply: string;
167
167
  isFreezable: boolean;
168
168
  }
169
169
 
@@ -395,7 +395,7 @@ export interface RecordChange {
395
395
  export interface TokenConversionInfo {
396
396
  poolId: string;
397
397
  paymentId?: string;
398
- fee?: bigint;
398
+ fee?: string;
399
399
  refundIdentifier?: string;
400
400
  }
401
401
 
@@ -715,7 +715,7 @@ export interface SparkInvoiceDetails {
715
715
  invoice: string;
716
716
  identityPublicKey: string;
717
717
  network: BitcoinNetwork;
718
- amount?: bigint;
718
+ amount?: string;
719
719
  tokenIdentifier?: string;
720
720
  expiryTime?: number;
721
721
  description?: string;
@@ -2358,12 +2358,12 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2358
2358
  return ret;
2359
2359
  };
2360
2360
 
2361
- module.exports.__wbindgen_closure_wrapper11146 = function(arg0, arg1, arg2) {
2361
+ module.exports.__wbindgen_closure_wrapper11144 = function(arg0, arg1, arg2) {
2362
2362
  const ret = makeMutClosure(arg0, arg1, 812, __wbg_adapter_64);
2363
2363
  return ret;
2364
2364
  };
2365
2365
 
2366
- module.exports.__wbindgen_closure_wrapper13052 = function(arg0, arg1, arg2) {
2366
+ module.exports.__wbindgen_closure_wrapper13050 = function(arg0, arg1, arg2) {
2367
2367
  const ret = makeMutClosure(arg0, arg1, 1048, __wbg_adapter_67);
2368
2368
  return ret;
2369
2369
  };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Breez Spark SDK",
5
5
  "repository": "https://github.com/breez/spark-sdk",
6
6
  "author": "Breez <contact@breez.technology> (https://github.com/breez)",
@@ -87,7 +87,7 @@ export interface ListUnclaimedDepositsResponse {
87
87
  deposits: DepositInfo[];
88
88
  }
89
89
 
90
- export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: bigint; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
90
+ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: string; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number; expirySecs?: number };
91
91
 
92
92
  export interface SparkHtlcDetails {
93
93
  paymentHash: string;
@@ -132,7 +132,7 @@ export interface CurrencyInfo {
132
132
  localeOverrides: LocaleOverrides[];
133
133
  }
134
134
 
135
- export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: bigint; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: bigint; tokenIdentifier?: string };
135
+ export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: string; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: string; tokenIdentifier?: string };
136
136
 
137
137
  export interface CheckLightningAddressRequest {
138
138
  username: string;
@@ -163,7 +163,7 @@ export interface TokenMetadata {
163
163
  name: string;
164
164
  ticker: string;
165
165
  decimals: number;
166
- maxSupply: bigint;
166
+ maxSupply: string;
167
167
  isFreezable: boolean;
168
168
  }
169
169
 
@@ -395,7 +395,7 @@ export interface RecordChange {
395
395
  export interface TokenConversionInfo {
396
396
  poolId: string;
397
397
  paymentId?: string;
398
- fee?: bigint;
398
+ fee?: string;
399
399
  refundIdentifier?: string;
400
400
  }
401
401
 
@@ -715,7 +715,7 @@ export interface SparkInvoiceDetails {
715
715
  invoice: string;
716
716
  identityPublicKey: string;
717
717
  network: BitcoinNetwork;
718
- amount?: bigint;
718
+ amount?: string;
719
719
  tokenIdentifier?: string;
720
720
  expiryTime?: number;
721
721
  description?: string;
@@ -2196,11 +2196,11 @@ function __wbg_get_imports() {
2196
2196
  const ret = false;
2197
2197
  return ret;
2198
2198
  };
2199
- imports.wbg.__wbindgen_closure_wrapper11146 = function(arg0, arg1, arg2) {
2199
+ imports.wbg.__wbindgen_closure_wrapper11144 = function(arg0, arg1, arg2) {
2200
2200
  const ret = makeMutClosure(arg0, arg1, 812, __wbg_adapter_64);
2201
2201
  return ret;
2202
2202
  };
2203
- imports.wbg.__wbindgen_closure_wrapper13052 = function(arg0, arg1, arg2) {
2203
+ imports.wbg.__wbindgen_closure_wrapper13050 = function(arg0, arg1, arg2) {
2204
2204
  const ret = makeMutClosure(arg0, arg1, 1048, __wbg_adapter_67);
2205
2205
  return ret;
2206
2206
  };
Binary file