@buildonspark/issuer-sdk 0.1.6 → 0.1.7

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.
@@ -1,7 +1,8 @@
1
- import { Bech32mTokenIdentifier, SparkWallet, ConfigOptions, SparkSigner } from '@buildonspark/spark-sdk';
2
- export { AggregateFrostParams, ConfigOptions, DefaultSparkSigner, DerivedHDKey, DummyTx, IKeyPackage, KeyDerivation, KeyDerivationType, KeyPair, SignFrostParams, SigningCommitment, SigningCommitmentWithOptionalNonce, SigningNonce, SparkSigner, SplitSecretWithProofsParams, SubtractSplitAndEncryptParams, SubtractSplitAndEncryptResult, UnsafeStatelessSparkSigner, WalletConfig, WalletConfigService } from '@buildonspark/spark-sdk';
3
- import { OutputWithPreviousTransactionData } from '@buildonspark/spark-sdk/proto/spark_token';
4
1
 
2
+ import { AggregateFrostParams, Bech32mTokenIdentifier, ConfigOptions, ConfigOptions as ConfigOptions$1, DefaultSparkSigner, DerivedHDKey, DummyTx, IKeyPackage, KeyDerivation, KeyDerivationType, KeyPair, SignFrostParams, SigningCommitment, SigningCommitmentWithOptionalNonce, SigningNonce, SparkSigner, SparkSigner as SparkSigner$1, SparkWallet, SplitSecretWithProofsParams, SubtractSplitAndEncryptParams, SubtractSplitAndEncryptResult, UnsafeStatelessSparkSigner, WalletConfig, WalletConfigService } from "@buildonspark/spark-sdk";
3
+ import { OutputWithPreviousTransactionData } from "@buildonspark/spark-sdk/proto/spark_token";
4
+
5
+ //#region src/issuer-wallet/types.d.ts
5
6
  /**
6
7
  * Token metadata containing essential information about issuer's token.
7
8
  * This is the wallet's internal representation with JavaScript-friendly types.
@@ -24,31 +25,22 @@ import { OutputWithPreviousTransactionData } from '@buildonspark/spark-sdk/proto
24
25
  * ```
25
26
  */
26
27
  type IssuerTokenMetadata = {
27
- /** Raw binary token identifier - This is used to encode the human readable token identifier */
28
- rawTokenIdentifier: Uint8Array;
29
- /** Public key of the token issuer - Same as issuerPublicKey */
30
- tokenPublicKey: string;
31
- /** Human-readable name of the token (e.g., SparkToken)*/
32
- tokenName: string;
33
- /** Short ticker symbol for the token (e.g., "SPK") */
34
- tokenTicker: string;
35
- /** Number of decimal places for token amounts */
36
- decimals: number;
37
- /** Maximum supply of tokens that can ever be minted */
38
- maxSupply: bigint;
39
- /** Whether the token is freezable */
40
- isFreezable: boolean;
41
- /** Extra metadata of the token */
42
- extraMetadata?: Uint8Array;
43
- /** Bech32m encoded token identifier */
44
- bech32mTokenIdentifier: Bech32mTokenIdentifier;
28
+ /** Raw binary token identifier - This is used to encode the human readable token identifier */rawTokenIdentifier: Uint8Array; /** Public key of the token issuer - Same as issuerPublicKey */
29
+ tokenPublicKey: string; /** Human-readable name of the token (e.g., SparkToken)*/
30
+ tokenName: string; /** Short ticker symbol for the token (e.g., "SPK") */
31
+ tokenTicker: string; /** Number of decimal places for token amounts */
32
+ decimals: number; /** Maximum supply of tokens that can ever be minted */
33
+ maxSupply: bigint; /** Whether the token is freezable */
34
+ isFreezable: boolean; /** Extra metadata of the token */
35
+ extraMetadata?: Uint8Array; /** Bech32m encoded token identifier */
36
+ bech32mTokenIdentifier: Bech32mTokenIdentifier;
45
37
  };
46
38
  interface TokenDistribution {
47
- totalCirculatingSupply: bigint;
48
- totalIssued: bigint;
49
- totalBurned: bigint;
50
- numHoldingAddress: number;
51
- numConfirmedTransactions: bigint;
39
+ totalCirculatingSupply: bigint;
40
+ totalIssued: bigint;
41
+ totalBurned: bigint;
42
+ numHoldingAddress: number;
43
+ numConfirmedTransactions: bigint;
52
44
  }
53
45
  /**
54
46
  * Details of a token creation.
@@ -65,224 +57,238 @@ interface TokenDistribution {
65
57
  * ```
66
58
  */
67
59
  interface TokenCreationDetails {
68
- /** Bech32m encoded token identifier */
69
- tokenIdentifier: Bech32mTokenIdentifier;
70
- /** Transaction hash of the announcement */
71
- transactionHash: string;
60
+ /** Bech32m encoded token identifier */
61
+ tokenIdentifier: Bech32mTokenIdentifier;
62
+ /** Transaction hash of the announcement */
63
+ transactionHash: string;
72
64
  }
73
-
65
+ //#endregion
66
+ //#region src/issuer-wallet/issuer-spark-wallet.d.ts
74
67
  /**
75
68
  * Represents a Spark wallet with minting capabilities.
76
69
  * This class extends the base SparkWallet with additional functionality for token minting,
77
70
  * burning, and freezing operations.
78
71
  */
79
72
  declare abstract class IssuerSparkWallet extends SparkWallet {
80
- private issuerTokenTransactionService;
81
- private tokenFreezeService;
82
- protected tracerId: string;
83
- /**
84
- * Initializes a new IssuerSparkWallet instance.
85
- * Inherits the generic static initialize from the base class.
86
- */
87
- constructor(configOptions?: ConfigOptions, signer?: SparkSigner);
88
- /**
89
- * Gets the token balance for the issuer's token.
90
- * @deprecated Use getIssuerTokenBalances() instead. This method will be removed in a future version.
91
- * @returns An object containing the token balance as a bigint
92
- *
93
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
94
- */
95
- getIssuerTokenBalance(): Promise<{
96
- tokenIdentifier: Bech32mTokenIdentifier | undefined;
97
- balance: bigint;
98
- }>;
99
- /**
100
- * Gets the token balances for the tokens that were issued by this user.
101
- * @returns An array of objects containing the token identifier and balance
102
- */
103
- getIssuerTokenBalances(): Promise<{
104
- tokenIdentifier: Bech32mTokenIdentifier | undefined;
105
- balance: bigint;
106
- }[]>;
107
- /**
108
- * Retrieves information about the issuer's token.
109
- * @deprecated Use getIssuerTokensMetadata() instead. This method will be removed in a future version.
110
- * @returns An object containing token information including public key, name, symbol, decimals, max supply, freeze status, and extra metadata
111
- * @throws {SparkRequestError} If the token metadata cannot be retrieved
112
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
113
- */
114
- getIssuerTokenMetadata(): Promise<IssuerTokenMetadata>;
115
- /**
116
- * Retrieves information about the tokens that were issued by this user.
117
- * @param tokenIdentifiers - Optional array of specific token identifiers to fetch.
118
- * If omitted, all tokens for this issuer are fetched.
119
- * @returns An array of objects containing token information including public key, name, symbol, decimals, max supply, freeze status, and extra metadata
120
- * @throws {SparkRequestError} If the token metadata cannot be retrieved
121
- */
122
- getIssuerTokensMetadata(tokenIdentifiers?: Bech32mTokenIdentifier[]): Promise<IssuerTokenMetadata[]>;
123
- /**
124
- * Retrieves the bech32m encoded token identifier for the issuer's token.
125
- * @deprecated Use getIssuerTokenIdentifiers() instead. This method will be removed in a future version.
126
- * @returns The bech32m encoded token identifier for the issuer's token
127
- * @throws {SparkRequestError} If the token identifier cannot be retrieved
128
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
129
- */
130
- getIssuerTokenIdentifier(): Promise<Bech32mTokenIdentifier>;
131
- /**
132
- * Retrieves the bech32m encoded token identifier for the issuer's token.
133
- * @returns The bech32m encoded token identifier for the issuer's token
134
- * @throws {SparkRequestError} If the token identifier cannot be retrieved
135
- */
136
- getIssuerTokenIdentifiers(): Promise<Bech32mTokenIdentifier[]>;
137
- /**
138
- * Create a new token on Spark.
139
- *
140
- * @param params - Object containing token creation parameters.
141
- * @param params.tokenName - The name of the token.
142
- * @param params.tokenTicker - The ticker symbol for the token.
143
- * @param params.decimals - The number of decimal places for the token.
144
- * @param params.isFreezable - Whether the token can be frozen.
145
- * @param [params.maxSupply=0n] - (Optional) The maximum supply of the token. Defaults to <code>0n</code>.
146
- * @param params.extraMetadata - (Optional) This can be used to store additional bytes data to be associated with a token, like image data.
147
- * @param params.returnIdentifierForCreate - (Optional) Whether to return the token identifier in addition to the transaction hash. Defaults to <code>false</code>.
148
- * @returns The transaction hash of the announcement or TokenCreationDetails if `returnIdentifierForCreate` is true.
149
- * @throws {SparkValidationError} If `decimals` is not a safe integer or other validation fails.
150
- * @throws {SparkRequestError} If the announcement transaction cannot be broadcast.
151
- */
152
- createToken(params: {
153
- tokenName: string;
154
- tokenTicker: string;
155
- decimals: number;
156
- isFreezable: boolean;
157
- maxSupply?: bigint;
158
- extraMetadata?: Uint8Array;
159
- returnIdentifierForCreate?: false;
160
- }): Promise<string>;
161
- createToken(params: {
162
- tokenName: string;
163
- tokenTicker: string;
164
- decimals: number;
165
- isFreezable: boolean;
166
- maxSupply?: bigint;
167
- extraMetadata?: Uint8Array;
168
- returnIdentifierForCreate: true;
169
- }): Promise<TokenCreationDetails>;
170
- /**
171
- * @deprecated Use mintTokens({ tokenAmount, tokenIdentifier }) instead. This method will be removed in a future version.
172
- * @param amount - The amount of tokens to mint
173
- * @returns The transaction ID of the mint operation
174
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
175
- * @throws {SparkValidationError} If no tokens are found for this issuer
176
- */
177
- mintTokens(amount: bigint): Promise<string>;
178
- /**
179
- * Mints new tokens
180
- * @param params - Object containing token minting parameters.
181
- * @param params.tokenAmount - The amount of tokens to mint
182
- * @param params.tokenIdentifier - The bech32m encoded token identifier
183
- * @returns The transaction ID of the mint operation
184
- * @throws {SparkValidationError} If no tokens are found for this issuer
185
- */
186
- mintTokens({ tokenAmount, tokenIdentifier, }: {
187
- tokenAmount: bigint;
188
- tokenIdentifier: Bech32mTokenIdentifier;
189
- }): Promise<string>;
190
- /**
191
- * Burns issuer's tokens
192
- * @deprecated Use burnTokens({ tokenAmount, tokenIdentifier, selectedOutputs }) instead. This method will be removed in a future version.
193
- * @param tokenAmount - The amount of tokens to burn
194
- * @param selectedOutputs - Optional array of outputs to use for the burn operation
195
- * @returns The transaction ID of the burn operation
196
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
197
- * @throws {SparkValidationError} If no tokens are found for this issuer
198
- */
199
- burnTokens(tokenAmount: bigint, selectedOutputs?: OutputWithPreviousTransactionData[]): Promise<string>;
200
- /**
201
- * Burns issuer's tokens
202
- * @param params - Object containing token burning parameters.
203
- * @param params.tokenAmount - The amount of tokens to burn
204
- * @param params.tokenIdentifier - The bech32m encoded token identifier
205
- * @param params.selectedOutputs - Optional array of outputs to use for the burn operation
206
- * @returns The transaction ID of the burn operation
207
- */
208
- burnTokens({ tokenAmount, tokenIdentifier, selectedOutputs, }: {
209
- tokenAmount: bigint;
210
- tokenIdentifier: Bech32mTokenIdentifier;
211
- selectedOutputs?: OutputWithPreviousTransactionData[];
212
- }): Promise<string>;
213
- /**
214
- * Freezes tokens associated with a specific Spark address.
215
- * @deprecated Use freezeToken({ tokenIdentifier, sparkAddress }) instead. This method will be removed in a future version.
216
- * @param sparkAddress - The Spark address whose tokens should be frozen
217
- * @returns An object containing the IDs of impacted outputs and the total amount of frozen tokens
218
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
219
- * @throws {SparkValidationError} If no tokens are found for this issuer
220
- */
221
- freezeTokens(sparkAddress: string): Promise<{
222
- impactedOutputIds: string[];
223
- impactedTokenAmount: bigint;
224
- }>;
225
- /**
226
- * Freezes tokens associated with a specific Spark address.
227
- * @param params - Object containing token freezing parameters.
228
- * @param params.tokenIdentifier - The bech32m encoded token identifier
229
- * @param params.sparkAddress - The Spark address whose tokens should be frozen
230
- * @returns An object containing the IDs of impacted outputs and the total amount of frozen tokens
231
- */
232
- freezeTokens({ tokenIdentifier, sparkAddress, }: {
233
- tokenIdentifier: Bech32mTokenIdentifier;
234
- sparkAddress: string;
235
- }): Promise<{
236
- impactedOutputIds: string[];
237
- impactedTokenAmount: bigint;
238
- }>;
239
- /**
240
- * Unfreezes previously frozen tokens associated with a specific Spark address.
241
- * @deprecated Use unfreezeToken({ tokenIdentifier, sparkAddress }) instead. This method will be removed in a future version.
242
- * @param sparkAddress - The Spark address whose tokens should be unfrozen
243
- * @returns An object containing the IDs of impacted outputs and the total amount of unfrozen tokens
244
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
245
- * @throws {SparkValidationError} If no tokens are found for this issuer
246
- */
247
- unfreezeTokens(sparkAddress: string): Promise<{
248
- impactedOutputIds: string[];
249
- impactedTokenAmount: bigint;
250
- }>;
251
- /**
252
- * Unfreezes previously frozen tokens associated with a specific Spark address.
253
- * @param params - Object containing token unfreezing parameters.
254
- * @param params.tokenIdentifier - The bech32m encoded token identifier
255
- * @param params.sparkAddress - The Spark address whose tokens should be unfrozen
256
- * @returns An object containing the IDs of impacted outputs and the total amount of unfrozen tokens
257
- * @throws {SparkValidationError} If multiple tokens are found for this issuer
258
- * @throws {SparkValidationError} If no tokens are found for this issuer
259
- */
260
- unfreezeTokens({ tokenIdentifier, sparkAddress, }: {
261
- tokenIdentifier: Bech32mTokenIdentifier;
262
- sparkAddress: string;
263
- }): Promise<{
264
- impactedOutputIds: string[];
265
- impactedTokenAmount: bigint;
266
- }>;
267
- /**
268
- * Retrieves the distribution information for the issuer's token.
269
- * @throws {SparkError} This feature is not yet supported
270
- */
271
- getIssuerTokenDistribution(): Promise<TokenDistribution>;
272
- /**
273
- * This validates that the token belongs to this issuer.
274
- * If a token is in the cache, it must belong to this issuer.
275
- * @param tokenIdentifier - The bech32m encoded token identifier
276
- * @throws {SparkValidationError} If the token is not found for this issuer
277
- * @private
278
- */
279
- private validateTokenIssuer;
280
- protected getTraceName(methodName: string): string;
281
- private wrapIssuerPublicMethod;
282
- private wrapIssuerSparkWalletMethods;
283
- }
284
-
285
- declare class IssuerSparkWalletReactNative extends IssuerSparkWallet {
73
+ private issuerTokenTransactionService;
74
+ private tokenFreezeService;
75
+ protected tracerId: string;
76
+ /**
77
+ * Initializes a new IssuerSparkWallet instance.
78
+ * Inherits the generic static initialize from the base class.
79
+ */
80
+ constructor(configOptions?: ConfigOptions$1, signer?: SparkSigner$1);
81
+ /**
82
+ * Gets the token balance for the issuer's token.
83
+ * @deprecated Use getIssuerTokenBalances() instead. This method will be removed in a future version.
84
+ * @returns An object containing the token balance as a bigint
85
+ *
86
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
87
+ */
88
+ getIssuerTokenBalance(): Promise<{
89
+ tokenIdentifier: Bech32mTokenIdentifier | undefined;
90
+ balance: bigint;
91
+ }>;
92
+ /**
93
+ * Gets the token balances for the tokens that were issued by this user.
94
+ * @returns An array of objects containing the token identifier and balance
95
+ */
96
+ getIssuerTokenBalances(): Promise<{
97
+ tokenIdentifier: Bech32mTokenIdentifier | undefined;
98
+ balance: bigint;
99
+ }[]>;
100
+ /**
101
+ * Retrieves information about the issuer's token.
102
+ * @deprecated Use getIssuerTokensMetadata() instead. This method will be removed in a future version.
103
+ * @returns An object containing token information including public key, name, symbol, decimals, max supply, freeze status, and extra metadata
104
+ * @throws {SparkRequestError} If the token metadata cannot be retrieved
105
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
106
+ */
107
+ getIssuerTokenMetadata(): Promise<IssuerTokenMetadata>;
108
+ /**
109
+ * Retrieves information about the tokens that were issued by this user.
110
+ * @param tokenIdentifiers - Optional array of specific token identifiers to fetch.
111
+ * If omitted, all tokens for this issuer are fetched.
112
+ * @returns An array of objects containing token information including public key, name, symbol, decimals, max supply, freeze status, and extra metadata
113
+ * @throws {SparkRequestError} If the token metadata cannot be retrieved
114
+ */
115
+ getIssuerTokensMetadata(tokenIdentifiers?: Bech32mTokenIdentifier[]): Promise<IssuerTokenMetadata[]>;
116
+ /**
117
+ * Retrieves the bech32m encoded token identifier for the issuer's token.
118
+ * @deprecated Use getIssuerTokenIdentifiers() instead. This method will be removed in a future version.
119
+ * @returns The bech32m encoded token identifier for the issuer's token
120
+ * @throws {SparkRequestError} If the token identifier cannot be retrieved
121
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
122
+ */
123
+ getIssuerTokenIdentifier(): Promise<Bech32mTokenIdentifier>;
124
+ /**
125
+ * Retrieves the bech32m encoded token identifier for the issuer's token.
126
+ * @returns The bech32m encoded token identifier for the issuer's token
127
+ * @throws {SparkRequestError} If the token identifier cannot be retrieved
128
+ */
129
+ getIssuerTokenIdentifiers(): Promise<Bech32mTokenIdentifier[]>;
130
+ /**
131
+ * Create a new token on Spark.
132
+ *
133
+ * @param params - Object containing token creation parameters.
134
+ * @param params.tokenName - The name of the token.
135
+ * @param params.tokenTicker - The ticker symbol for the token.
136
+ * @param params.decimals - The number of decimal places for the token.
137
+ * @param params.isFreezable - Whether the token can be frozen.
138
+ * @param [params.maxSupply=0n] - (Optional) The maximum supply of the token. Defaults to <code>0n</code>.
139
+ * @param params.extraMetadata - (Optional) This can be used to store additional bytes data to be associated with a token, like image data.
140
+ * @param params.returnIdentifierForCreate - (Optional) Whether to return the token identifier in addition to the transaction hash. Defaults to <code>false</code>.
141
+ * @returns The transaction hash of the announcement or TokenCreationDetails if `returnIdentifierForCreate` is true.
142
+ * @throws {SparkValidationError} If `decimals` is not a safe integer or other validation fails.
143
+ * @throws {SparkRequestError} If the announcement transaction cannot be broadcast.
144
+ */
145
+ createToken(params: {
146
+ tokenName: string;
147
+ tokenTicker: string;
148
+ decimals: number;
149
+ isFreezable: boolean;
150
+ maxSupply?: bigint;
151
+ extraMetadata?: Uint8Array;
152
+ returnIdentifierForCreate?: false;
153
+ }): Promise<string>;
154
+ createToken(params: {
155
+ tokenName: string;
156
+ tokenTicker: string;
157
+ decimals: number;
158
+ isFreezable: boolean;
159
+ maxSupply?: bigint;
160
+ extraMetadata?: Uint8Array;
161
+ returnIdentifierForCreate: true;
162
+ }): Promise<TokenCreationDetails>;
163
+ /**
164
+ * @deprecated Use mintTokens({ tokenAmount, tokenIdentifier }) instead. This method will be removed in a future version.
165
+ * @param amount - The amount of tokens to mint
166
+ * @returns The transaction ID of the mint operation
167
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
168
+ * @throws {SparkValidationError} If no tokens are found for this issuer
169
+ */
170
+ mintTokens(amount: bigint): Promise<string>;
171
+ /**
172
+ * Mints new tokens
173
+ * @param params - Object containing token minting parameters.
174
+ * @param params.tokenAmount - The amount of tokens to mint
175
+ * @param params.tokenIdentifier - The bech32m encoded token identifier
176
+ * @returns The transaction ID of the mint operation
177
+ * @throws {SparkValidationError} If no tokens are found for this issuer
178
+ */
179
+ mintTokens({
180
+ tokenAmount,
181
+ tokenIdentifier
182
+ }: {
183
+ tokenAmount: bigint;
184
+ tokenIdentifier: Bech32mTokenIdentifier;
185
+ }): Promise<string>;
186
+ /**
187
+ * Burns issuer's tokens
188
+ * @deprecated Use burnTokens({ tokenAmount, tokenIdentifier, selectedOutputs }) instead. This method will be removed in a future version.
189
+ * @param tokenAmount - The amount of tokens to burn
190
+ * @param selectedOutputs - Optional array of outputs to use for the burn operation
191
+ * @returns The transaction ID of the burn operation
192
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
193
+ * @throws {SparkValidationError} If no tokens are found for this issuer
194
+ */
195
+ burnTokens(tokenAmount: bigint, selectedOutputs?: OutputWithPreviousTransactionData[]): Promise<string>;
196
+ /**
197
+ * Burns issuer's tokens
198
+ * @param params - Object containing token burning parameters.
199
+ * @param params.tokenAmount - The amount of tokens to burn
200
+ * @param params.tokenIdentifier - The bech32m encoded token identifier
201
+ * @param params.selectedOutputs - Optional array of outputs to use for the burn operation
202
+ * @returns The transaction ID of the burn operation
203
+ */
204
+ burnTokens({
205
+ tokenAmount,
206
+ tokenIdentifier,
207
+ selectedOutputs
208
+ }: {
209
+ tokenAmount: bigint;
210
+ tokenIdentifier: Bech32mTokenIdentifier;
211
+ selectedOutputs?: OutputWithPreviousTransactionData[];
212
+ }): Promise<string>;
213
+ /**
214
+ * Freezes tokens associated with a specific Spark address.
215
+ * @deprecated Use freezeToken({ tokenIdentifier, sparkAddress }) instead. This method will be removed in a future version.
216
+ * @param sparkAddress - The Spark address whose tokens should be frozen
217
+ * @returns An object containing the IDs of impacted outputs and the total amount of frozen tokens
218
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
219
+ * @throws {SparkValidationError} If no tokens are found for this issuer
220
+ */
221
+ freezeTokens(sparkAddress: string): Promise<{
222
+ impactedOutputIds: string[];
223
+ impactedTokenAmount: bigint;
224
+ }>;
225
+ /**
226
+ * Freezes tokens associated with a specific Spark address.
227
+ * @param params - Object containing token freezing parameters.
228
+ * @param params.tokenIdentifier - The bech32m encoded token identifier
229
+ * @param params.sparkAddress - The Spark address whose tokens should be frozen
230
+ * @returns An object containing the IDs of impacted outputs and the total amount of frozen tokens
231
+ */
232
+ freezeTokens({
233
+ tokenIdentifier,
234
+ sparkAddress
235
+ }: {
236
+ tokenIdentifier: Bech32mTokenIdentifier;
237
+ sparkAddress: string;
238
+ }): Promise<{
239
+ impactedOutputIds: string[];
240
+ impactedTokenAmount: bigint;
241
+ }>;
242
+ /**
243
+ * Unfreezes previously frozen tokens associated with a specific Spark address.
244
+ * @deprecated Use unfreezeToken({ tokenIdentifier, sparkAddress }) instead. This method will be removed in a future version.
245
+ * @param sparkAddress - The Spark address whose tokens should be unfrozen
246
+ * @returns An object containing the IDs of impacted outputs and the total amount of unfrozen tokens
247
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
248
+ * @throws {SparkValidationError} If no tokens are found for this issuer
249
+ */
250
+ unfreezeTokens(sparkAddress: string): Promise<{
251
+ impactedOutputIds: string[];
252
+ impactedTokenAmount: bigint;
253
+ }>;
254
+ /**
255
+ * Unfreezes previously frozen tokens associated with a specific Spark address.
256
+ * @param params - Object containing token unfreezing parameters.
257
+ * @param params.tokenIdentifier - The bech32m encoded token identifier
258
+ * @param params.sparkAddress - The Spark address whose tokens should be unfrozen
259
+ * @returns An object containing the IDs of impacted outputs and the total amount of unfrozen tokens
260
+ * @throws {SparkValidationError} If multiple tokens are found for this issuer
261
+ * @throws {SparkValidationError} If no tokens are found for this issuer
262
+ */
263
+ unfreezeTokens({
264
+ tokenIdentifier,
265
+ sparkAddress
266
+ }: {
267
+ tokenIdentifier: Bech32mTokenIdentifier;
268
+ sparkAddress: string;
269
+ }): Promise<{
270
+ impactedOutputIds: string[];
271
+ impactedTokenAmount: bigint;
272
+ }>;
273
+ /**
274
+ * Retrieves the distribution information for the issuer's token.
275
+ * @throws {SparkError} This feature is not yet supported
276
+ */
277
+ getIssuerTokenDistribution(): Promise<TokenDistribution>;
278
+ /**
279
+ * This validates that the token belongs to this issuer.
280
+ * If a token is in the cache, it must belong to this issuer.
281
+ * @param tokenIdentifier - The bech32m encoded token identifier
282
+ * @throws {SparkValidationError} If the token is not found for this issuer
283
+ * @private
284
+ */
285
+ private validateTokenIssuer;
286
+ protected getTraceName(methodName: string): string;
287
+ private wrapIssuerPublicMethod;
288
+ private wrapIssuerSparkWalletMethods;
286
289
  }
287
-
288
- export { IssuerSparkWalletReactNative as IssuerSparkWallet, type IssuerTokenMetadata, type TokenCreationDetails, type TokenDistribution };
290
+ //#endregion
291
+ //#region src/issuer-wallet/issuer-spark-wallet.react-native.d.ts
292
+ declare class IssuerSparkWalletReactNative extends IssuerSparkWallet {}
293
+ //#endregion
294
+ export { type AggregateFrostParams, type ConfigOptions, DefaultSparkSigner, type DerivedHDKey, type DummyTx, type IKeyPackage, IssuerSparkWalletReactNative as IssuerSparkWallet, IssuerTokenMetadata, type KeyDerivation, type KeyDerivationType, type KeyPair, type SignFrostParams, type SigningCommitment, type SigningCommitmentWithOptionalNonce, type SigningNonce, type SparkSigner, type SplitSecretWithProofsParams, type SubtractSplitAndEncryptParams, type SubtractSplitAndEncryptResult, TokenCreationDetails, TokenDistribution, UnsafeStatelessSparkSigner, WalletConfig, type WalletConfigService };