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