@buildonspark/issuer-sdk 0.0.64 → 0.0.65
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 +562 -0
- package/dist/index.cjs +4 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -3
- package/package.json +6 -5
- package/src/issuer-wallet/issuer-spark-wallet.ts +7 -3
- package/src/tests/integration/spark.test.ts +36 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
# @buildonspark/issuer-sdk
|
|
2
|
+
|
|
3
|
+
## 0.0.65
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add signer interface
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @buildonspark/lrc20-sdk@0.0.55
|
|
10
|
+
- @buildonspark/spark-sdk@0.1.34
|
|
11
|
+
|
|
12
|
+
## 0.0.64
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @buildonspark/spark-sdk@0.1.33
|
|
18
|
+
|
|
19
|
+
## 0.0.63
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @buildonspark/spark-sdk@0.1.32
|
|
25
|
+
|
|
26
|
+
## 0.0.62
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Fixes
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
- @buildonspark/lrc20-sdk@0.0.54
|
|
33
|
+
- @buildonspark/spark-sdk@0.1.31
|
|
34
|
+
|
|
35
|
+
## 0.0.61
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Update issuer-wallet directory
|
|
40
|
+
- Updated dependencies
|
|
41
|
+
- @buildonspark/lrc20-sdk@0.0.53
|
|
42
|
+
- @buildonspark/spark-sdk@0.1.30
|
|
43
|
+
|
|
44
|
+
## 0.0.60
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- - Proto files for lrc20 monitoring operations have been moved to @buildonspark/issuer-sdk/proto/lrc20
|
|
49
|
+
- The monitoring operations have been modified to accept either strings or enums, generated from protos
|
|
50
|
+
- Updated dependencies
|
|
51
|
+
- Updated dependencies
|
|
52
|
+
- @buildonspark/lrc20-sdk@0.0.52
|
|
53
|
+
- @buildonspark/spark-sdk@0.1.29
|
|
54
|
+
|
|
55
|
+
## 0.0.59
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- - Fixes
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
- Updated dependencies
|
|
62
|
+
- @buildonspark/lrc20-sdk@0.0.51
|
|
63
|
+
- @buildonspark/spark-sdk@0.1.28
|
|
64
|
+
|
|
65
|
+
## 0.0.58
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- Fixes
|
|
70
|
+
- Updated dependencies
|
|
71
|
+
- @buildonspark/lrc20-sdk@0.0.50
|
|
72
|
+
- @buildonspark/spark-sdk@0.1.27
|
|
73
|
+
|
|
74
|
+
## 0.0.57
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- Updated dependencies
|
|
79
|
+
- @buildonspark/spark-sdk@0.1.26
|
|
80
|
+
|
|
81
|
+
## 0.0.56
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- Updated dependencies
|
|
86
|
+
- @buildonspark/spark-sdk@0.1.25
|
|
87
|
+
|
|
88
|
+
## 0.0.55
|
|
89
|
+
|
|
90
|
+
### Patch Changes
|
|
91
|
+
|
|
92
|
+
- - Add tracer
|
|
93
|
+
- Token transfer with multiple outputs
|
|
94
|
+
- Updated dependencies
|
|
95
|
+
- @buildonspark/spark-sdk@0.1.24
|
|
96
|
+
|
|
97
|
+
## 0.0.54
|
|
98
|
+
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- Updated dependencies
|
|
102
|
+
- @buildonspark/lrc20-sdk@0.0.49
|
|
103
|
+
- @buildonspark/spark-sdk@0.1.23
|
|
104
|
+
|
|
105
|
+
## 0.0.53
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- Update homepage URL
|
|
110
|
+
- Updated dependencies
|
|
111
|
+
- @buildonspark/lrc20-sdk@0.0.48
|
|
112
|
+
- @buildonspark/spark-sdk@0.1.22
|
|
113
|
+
|
|
114
|
+
## 0.0.52
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- Fixes
|
|
119
|
+
- Updated dependencies
|
|
120
|
+
- @buildonspark/lrc20-sdk@0.0.47
|
|
121
|
+
- @buildonspark/spark-sdk@0.1.21
|
|
122
|
+
|
|
123
|
+
## 0.0.51
|
|
124
|
+
|
|
125
|
+
### Patch Changes
|
|
126
|
+
|
|
127
|
+
- Fixes
|
|
128
|
+
- Updated dependencies
|
|
129
|
+
- @buildonspark/lrc20-sdk@0.0.46
|
|
130
|
+
- @buildonspark/spark-sdk@0.1.20
|
|
131
|
+
|
|
132
|
+
## 0.0.50
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- React Native support
|
|
137
|
+
- Updated dependencies
|
|
138
|
+
- @buildonspark/lrc20-sdk@0.0.45
|
|
139
|
+
- @buildonspark/spark-sdk@0.1.19
|
|
140
|
+
|
|
141
|
+
## 0.0.49
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- Updated dependencies
|
|
146
|
+
- @buildonspark/spark-sdk@0.1.18
|
|
147
|
+
|
|
148
|
+
## 0.0.48
|
|
149
|
+
|
|
150
|
+
### Patch Changes
|
|
151
|
+
|
|
152
|
+
- Updated dependencies
|
|
153
|
+
- Updated dependencies
|
|
154
|
+
- @buildonspark/lrc20-sdk@0.0.44
|
|
155
|
+
- @buildonspark/spark-sdk@0.1.17
|
|
156
|
+
|
|
157
|
+
## 0.0.47
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- Fixes
|
|
162
|
+
- Updated dependencies
|
|
163
|
+
- @buildonspark/lrc20-sdk@0.0.43
|
|
164
|
+
- @buildonspark/spark-sdk@0.1.16
|
|
165
|
+
|
|
166
|
+
## 0.0.46
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- Updated dependencies
|
|
171
|
+
- @buildonspark/spark-sdk@0.1.15
|
|
172
|
+
|
|
173
|
+
## 0.0.45
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- Fixes
|
|
178
|
+
- Updated dependencies
|
|
179
|
+
- @buildonspark/lrc20-sdk@0.0.42
|
|
180
|
+
- @buildonspark/spark-sdk@0.1.14
|
|
181
|
+
|
|
182
|
+
## 0.0.44
|
|
183
|
+
|
|
184
|
+
### Patch Changes
|
|
185
|
+
|
|
186
|
+
- Fixes
|
|
187
|
+
- Updated dependencies
|
|
188
|
+
- @buildonspark/lrc20-sdk@0.0.41
|
|
189
|
+
- @buildonspark/spark-sdk@0.1.13
|
|
190
|
+
|
|
191
|
+
## 0.0.43
|
|
192
|
+
|
|
193
|
+
### Patch Changes
|
|
194
|
+
|
|
195
|
+
- Fixes
|
|
196
|
+
- Updated dependencies
|
|
197
|
+
- @buildonspark/lrc20-sdk@0.0.40
|
|
198
|
+
- @buildonspark/spark-sdk@0.1.12
|
|
199
|
+
|
|
200
|
+
## 0.0.42
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- Fixes
|
|
205
|
+
- Updated dependencies
|
|
206
|
+
- @buildonspark/lrc20-sdk@0.0.39
|
|
207
|
+
- @buildonspark/spark-sdk@0.1.11
|
|
208
|
+
|
|
209
|
+
## 0.0.41
|
|
210
|
+
|
|
211
|
+
### Patch Changes
|
|
212
|
+
|
|
213
|
+
- Fixes
|
|
214
|
+
- Updated dependencies
|
|
215
|
+
- @buildonspark/lrc20-sdk@0.0.38
|
|
216
|
+
- @buildonspark/spark-sdk@0.1.10
|
|
217
|
+
|
|
218
|
+
## 0.0.40
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- Fixes
|
|
223
|
+
- Updated dependencies
|
|
224
|
+
- @buildonspark/lrc20-sdk@0.0.37
|
|
225
|
+
- @buildonspark/spark-sdk@0.1.9
|
|
226
|
+
|
|
227
|
+
## 0.0.39
|
|
228
|
+
|
|
229
|
+
### Patch Changes
|
|
230
|
+
|
|
231
|
+
- Fixes
|
|
232
|
+
- Updated dependencies
|
|
233
|
+
- @buildonspark/lrc20-sdk@0.0.36
|
|
234
|
+
- @buildonspark/spark-sdk@0.1.8
|
|
235
|
+
|
|
236
|
+
## 0.0.38
|
|
237
|
+
|
|
238
|
+
### Patch Changes
|
|
239
|
+
|
|
240
|
+
- Fixes
|
|
241
|
+
- Updated dependencies
|
|
242
|
+
- @buildonspark/lrc20-sdk@0.0.35
|
|
243
|
+
- @buildonspark/spark-sdk@0.1.7
|
|
244
|
+
|
|
245
|
+
## 0.0.37
|
|
246
|
+
|
|
247
|
+
### Patch Changes
|
|
248
|
+
|
|
249
|
+
- Fixes
|
|
250
|
+
- Updated dependencies
|
|
251
|
+
- @buildonspark/lrc20-sdk@0.0.34
|
|
252
|
+
- @buildonspark/spark-sdk@0.1.6
|
|
253
|
+
|
|
254
|
+
## 0.0.36
|
|
255
|
+
|
|
256
|
+
### Patch Changes
|
|
257
|
+
|
|
258
|
+
- Fixes
|
|
259
|
+
- Updated dependencies
|
|
260
|
+
- @buildonspark/lrc20-sdk@0.0.33
|
|
261
|
+
- @buildonspark/spark-sdk@0.1.5
|
|
262
|
+
|
|
263
|
+
## 0.0.35
|
|
264
|
+
|
|
265
|
+
### Patch Changes
|
|
266
|
+
|
|
267
|
+
- Fixes
|
|
268
|
+
- Updated dependencies
|
|
269
|
+
- @buildonspark/lrc20-sdk@0.0.32
|
|
270
|
+
- @buildonspark/spark-sdk@0.1.4
|
|
271
|
+
|
|
272
|
+
## 0.0.34
|
|
273
|
+
|
|
274
|
+
### Patch Changes
|
|
275
|
+
|
|
276
|
+
- Fixes
|
|
277
|
+
- Updated dependencies
|
|
278
|
+
- @buildonspark/lrc20-sdk@0.0.31
|
|
279
|
+
- @buildonspark/spark-sdk@0.1.3
|
|
280
|
+
|
|
281
|
+
## 0.0.33
|
|
282
|
+
|
|
283
|
+
### Patch Changes
|
|
284
|
+
|
|
285
|
+
- Fixes
|
|
286
|
+
- Updated dependencies
|
|
287
|
+
- @buildonspark/lrc20-sdk@0.0.30
|
|
288
|
+
- @buildonspark/spark-sdk@0.1.2
|
|
289
|
+
|
|
290
|
+
## 0.0.32
|
|
291
|
+
|
|
292
|
+
### Patch Changes
|
|
293
|
+
|
|
294
|
+
- Fixes
|
|
295
|
+
- Updated dependencies
|
|
296
|
+
- @buildonspark/lrc20-sdk@0.0.29
|
|
297
|
+
- @buildonspark/spark-sdk@0.1.1
|
|
298
|
+
|
|
299
|
+
## 0.0.31
|
|
300
|
+
|
|
301
|
+
### Patch Changes
|
|
302
|
+
|
|
303
|
+
- Updated dependencies
|
|
304
|
+
- @buildonspark/spark-sdk@0.1.0
|
|
305
|
+
|
|
306
|
+
## 0.0.30
|
|
307
|
+
|
|
308
|
+
### Patch Changes
|
|
309
|
+
|
|
310
|
+
- Fixes
|
|
311
|
+
- Updated dependencies
|
|
312
|
+
- @buildonspark/lrc20-sdk@0.0.28
|
|
313
|
+
- @buildonspark/spark-sdk@0.0.30
|
|
314
|
+
|
|
315
|
+
## 0.0.29
|
|
316
|
+
|
|
317
|
+
### Patch Changes
|
|
318
|
+
|
|
319
|
+
- Fixes
|
|
320
|
+
- Updated dependencies
|
|
321
|
+
- @buildonspark/lrc20-sdk@0.0.27
|
|
322
|
+
- @buildonspark/spark-sdk@0.0.29
|
|
323
|
+
|
|
324
|
+
## 0.0.28
|
|
325
|
+
|
|
326
|
+
### Patch Changes
|
|
327
|
+
|
|
328
|
+
- Fixes
|
|
329
|
+
- Updated dependencies
|
|
330
|
+
- @buildonspark/lrc20-sdk@0.0.26
|
|
331
|
+
- @buildonspark/spark-sdk@0.0.28
|
|
332
|
+
|
|
333
|
+
## 0.0.27
|
|
334
|
+
|
|
335
|
+
### Patch Changes
|
|
336
|
+
|
|
337
|
+
- Fixes
|
|
338
|
+
- Updated dependencies
|
|
339
|
+
- @buildonspark/lrc20-sdk@0.0.25
|
|
340
|
+
- @buildonspark/spark-sdk@0.0.27
|
|
341
|
+
|
|
342
|
+
## 0.0.26
|
|
343
|
+
|
|
344
|
+
### Patch Changes
|
|
345
|
+
|
|
346
|
+
- Fixes
|
|
347
|
+
- Updated dependencies
|
|
348
|
+
- @buildonspark/lrc20-sdk@0.0.24
|
|
349
|
+
- @buildonspark/spark-sdk@0.0.26
|
|
350
|
+
|
|
351
|
+
## 0.0.25
|
|
352
|
+
|
|
353
|
+
### Patch Changes
|
|
354
|
+
|
|
355
|
+
- Fixes
|
|
356
|
+
- Updated dependencies
|
|
357
|
+
- @buildonspark/lrc20-sdk@0.0.23
|
|
358
|
+
- @buildonspark/spark-sdk@0.0.25
|
|
359
|
+
|
|
360
|
+
## 0.0.24
|
|
361
|
+
|
|
362
|
+
### Patch Changes
|
|
363
|
+
|
|
364
|
+
- Fixes
|
|
365
|
+
- Updated dependencies
|
|
366
|
+
- @buildonspark/lrc20-sdk@0.0.22
|
|
367
|
+
- @buildonspark/spark-sdk@0.0.24
|
|
368
|
+
|
|
369
|
+
## 0.0.23
|
|
370
|
+
|
|
371
|
+
### Patch Changes
|
|
372
|
+
|
|
373
|
+
- CJS support and package improvements
|
|
374
|
+
- Updated dependencies
|
|
375
|
+
- @buildonspark/lrc20-sdk@0.0.21
|
|
376
|
+
- @buildonspark/spark-sdk@0.0.23
|
|
377
|
+
|
|
378
|
+
## 0.0.22
|
|
379
|
+
|
|
380
|
+
### Patch Changes
|
|
381
|
+
|
|
382
|
+
- Fixes
|
|
383
|
+
- Updated dependencies
|
|
384
|
+
- @buildonspark/lrc20-sdk@0.0.20
|
|
385
|
+
- @buildonspark/spark-sdk@0.0.22
|
|
386
|
+
|
|
387
|
+
## 0.0.21
|
|
388
|
+
|
|
389
|
+
### Patch Changes
|
|
390
|
+
|
|
391
|
+
- Fixes
|
|
392
|
+
- Updated dependencies
|
|
393
|
+
- @buildonspark/lrc20-sdk@0.0.19
|
|
394
|
+
- @buildonspark/spark-sdk@0.0.21
|
|
395
|
+
|
|
396
|
+
## 0.0.20
|
|
397
|
+
|
|
398
|
+
### Patch Changes
|
|
399
|
+
|
|
400
|
+
- Fixes
|
|
401
|
+
- Updated dependencies
|
|
402
|
+
- @buildonspark/lrc20-sdk@0.0.18
|
|
403
|
+
- @buildonspark/spark-sdk@0.0.20
|
|
404
|
+
|
|
405
|
+
## 0.0.19
|
|
406
|
+
|
|
407
|
+
### Patch Changes
|
|
408
|
+
|
|
409
|
+
- Fixes
|
|
410
|
+
- Updated dependencies
|
|
411
|
+
- @buildonspark/lrc20-sdk@0.0.17
|
|
412
|
+
- @buildonspark/spark-sdk@0.0.19
|
|
413
|
+
|
|
414
|
+
## 0.0.18
|
|
415
|
+
|
|
416
|
+
### Patch Changes
|
|
417
|
+
|
|
418
|
+
- Fixes
|
|
419
|
+
- Updated dependencies
|
|
420
|
+
- @buildonspark/lrc20-sdk@0.0.16
|
|
421
|
+
- @buildonspark/spark-sdk@0.0.18
|
|
422
|
+
|
|
423
|
+
## 0.0.17
|
|
424
|
+
|
|
425
|
+
### Patch Changes
|
|
426
|
+
|
|
427
|
+
- Fixes
|
|
428
|
+
- Updated dependencies
|
|
429
|
+
- @buildonspark/lrc20-sdk@0.0.15
|
|
430
|
+
- @buildonspark/spark-sdk@0.0.17
|
|
431
|
+
|
|
432
|
+
## 0.0.16
|
|
433
|
+
|
|
434
|
+
### Patch Changes
|
|
435
|
+
|
|
436
|
+
- Fixes
|
|
437
|
+
- Updated dependencies
|
|
438
|
+
- @buildonspark/lrc20-sdk@0.0.14
|
|
439
|
+
- @buildonspark/spark-sdk@0.0.16
|
|
440
|
+
|
|
441
|
+
## 0.0.15
|
|
442
|
+
|
|
443
|
+
### Patch Changes
|
|
444
|
+
|
|
445
|
+
- Fixes
|
|
446
|
+
- Updated dependencies
|
|
447
|
+
- @buildonspark/lrc20-sdk@0.0.13
|
|
448
|
+
- @buildonspark/spark-sdk@0.0.15
|
|
449
|
+
|
|
450
|
+
## 0.0.14
|
|
451
|
+
|
|
452
|
+
### Patch Changes
|
|
453
|
+
|
|
454
|
+
- Fixes
|
|
455
|
+
- Updated dependencies
|
|
456
|
+
- @buildonspark/lrc20-sdk@0.0.12
|
|
457
|
+
- @buildonspark/spark-sdk@0.0.14
|
|
458
|
+
|
|
459
|
+
## 0.0.13
|
|
460
|
+
|
|
461
|
+
### Patch Changes
|
|
462
|
+
|
|
463
|
+
- Fixes
|
|
464
|
+
- Updated dependencies
|
|
465
|
+
- @buildonspark/lrc20-sdk@0.0.11
|
|
466
|
+
- @buildonspark/spark-sdk@0.0.13
|
|
467
|
+
|
|
468
|
+
## 0.0.12
|
|
469
|
+
|
|
470
|
+
### Patch Changes
|
|
471
|
+
|
|
472
|
+
- Fixes
|
|
473
|
+
- Updated dependencies
|
|
474
|
+
- @buildonspark/lrc20-sdk@0.0.10
|
|
475
|
+
- @buildonspark/spark-sdk@0.0.12
|
|
476
|
+
|
|
477
|
+
## 0.0.11
|
|
478
|
+
|
|
479
|
+
### Patch Changes
|
|
480
|
+
|
|
481
|
+
- Fixes
|
|
482
|
+
- Updated dependencies
|
|
483
|
+
- @buildonspark/lrc20-sdk@0.0.9
|
|
484
|
+
- @buildonspark/spark-sdk@0.0.11
|
|
485
|
+
|
|
486
|
+
## 0.0.10
|
|
487
|
+
|
|
488
|
+
### Patch Changes
|
|
489
|
+
|
|
490
|
+
- Fixes
|
|
491
|
+
- Updated dependencies
|
|
492
|
+
- @buildonspark/lrc20-sdk@0.0.8
|
|
493
|
+
- @buildonspark/spark-sdk@0.0.10
|
|
494
|
+
|
|
495
|
+
## 0.0.9
|
|
496
|
+
|
|
497
|
+
### Patch Changes
|
|
498
|
+
|
|
499
|
+
- Fixes
|
|
500
|
+
- Updated dependencies
|
|
501
|
+
- @buildonspark/lrc20-sdk@0.0.7
|
|
502
|
+
- @buildonspark/spark-sdk@0.0.9
|
|
503
|
+
|
|
504
|
+
## 0.0.8
|
|
505
|
+
|
|
506
|
+
### Patch Changes
|
|
507
|
+
|
|
508
|
+
- Fixes
|
|
509
|
+
- Updated dependencies
|
|
510
|
+
- @buildonspark/lrc20-sdk@0.0.6
|
|
511
|
+
- @buildonspark/spark-sdk@0.0.8
|
|
512
|
+
|
|
513
|
+
## 0.0.7
|
|
514
|
+
|
|
515
|
+
### Patch Changes
|
|
516
|
+
|
|
517
|
+
- Fixes
|
|
518
|
+
- Updated dependencies
|
|
519
|
+
- @buildonspark/lrc20-sdk@0.0.5
|
|
520
|
+
- @buildonspark/spark-sdk@0.0.7
|
|
521
|
+
|
|
522
|
+
## 0.0.6
|
|
523
|
+
|
|
524
|
+
### Patch Changes
|
|
525
|
+
|
|
526
|
+
- Fixes
|
|
527
|
+
- Updated dependencies
|
|
528
|
+
- @buildonspark/lrc20-sdk@0.0.4
|
|
529
|
+
- @buildonspark/spark-sdk@0.0.6
|
|
530
|
+
|
|
531
|
+
## 0.0.4
|
|
532
|
+
|
|
533
|
+
### Patch Changes
|
|
534
|
+
|
|
535
|
+
- Fixes
|
|
536
|
+
- Updated dependencies
|
|
537
|
+
- @buildonspark/lrc20-sdk@0.0.2
|
|
538
|
+
- @buildonspark/spark-sdk@0.0.4
|
|
539
|
+
|
|
540
|
+
## 0.0.3
|
|
541
|
+
|
|
542
|
+
### Patch Changes
|
|
543
|
+
|
|
544
|
+
- Fixes
|
|
545
|
+
- Updated dependencies
|
|
546
|
+
- @buildonspark/lrc20-sdk@0.0.1
|
|
547
|
+
- @buildonspark/spark-sdk@0.0.3
|
|
548
|
+
|
|
549
|
+
## 0.0.2
|
|
550
|
+
|
|
551
|
+
### Patch Changes
|
|
552
|
+
|
|
553
|
+
- Updated dependencies
|
|
554
|
+
- @buildonspark/spark-sdk@0.0.2
|
|
555
|
+
|
|
556
|
+
## 0.0.1
|
|
557
|
+
|
|
558
|
+
### Patch Changes
|
|
559
|
+
|
|
560
|
+
- Fixes
|
|
561
|
+
- Updated dependencies
|
|
562
|
+
- @buildonspark/spark-sdk@0.0.1
|
package/dist/index.cjs
CHANGED
|
@@ -343,8 +343,8 @@ var IssuerSparkWallet = class _IssuerSparkWallet extends import_spark_sdk3.Spark
|
|
|
343
343
|
this.announceTokenL1.bind(this)
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
|
-
constructor(configOptions) {
|
|
347
|
-
super(configOptions);
|
|
346
|
+
constructor(configOptions, signer) {
|
|
347
|
+
super(configOptions, signer);
|
|
348
348
|
this.issuerTokenTransactionService = new IssuerTokenTransactionService(
|
|
349
349
|
this.config,
|
|
350
350
|
this.connectionManager
|
|
@@ -608,9 +608,10 @@ var IssuerSparkWallet = class _IssuerSparkWallet extends import_spark_sdk3.Spark
|
|
|
608
608
|
announcement,
|
|
609
609
|
feeRateSatsPerVb
|
|
610
610
|
);
|
|
611
|
-
|
|
611
|
+
const txId = await this.lrc20Wallet.broadcastRawBtcTransaction(
|
|
612
612
|
tx.bitcoin_tx.toHex()
|
|
613
613
|
);
|
|
614
|
+
return txId;
|
|
614
615
|
} catch (error) {
|
|
615
616
|
throw new import_spark_sdk3.NetworkError(
|
|
616
617
|
"Failed to broadcast announcement transaction on L1",
|
package/dist/index.d.cts
CHANGED
|
@@ -3,6 +3,7 @@ import { OutputWithPreviousTransactionData } from '@buildonspark/spark-sdk/proto
|
|
|
3
3
|
import { Layer, OperationType } from '@buildonspark/spark-sdk/proto/lrc20';
|
|
4
4
|
import { ConfigOptions } from '@buildonspark/spark-sdk/services/wallet-config';
|
|
5
5
|
import { TokenActivityResponse, TokenDistribution } from './types.cjs';
|
|
6
|
+
import { SparkSigner } from '@buildonspark/spark-sdk/signer';
|
|
6
7
|
|
|
7
8
|
type IssuerTokenInfo = {
|
|
8
9
|
tokenPublicKey: string;
|
|
@@ -32,7 +33,7 @@ declare class IssuerSparkWallet extends SparkWallet {
|
|
|
32
33
|
wallet: IssuerSparkWallet;
|
|
33
34
|
}>;
|
|
34
35
|
private wrapIssuerSparkWalletWithTracing;
|
|
35
|
-
protected constructor(configOptions?: ConfigOptions);
|
|
36
|
+
protected constructor(configOptions?: ConfigOptions, signer?: SparkSigner);
|
|
36
37
|
/**
|
|
37
38
|
* Gets the token balance for the issuer's token.
|
|
38
39
|
* @returns An object containing the token balance as a bigint
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { OutputWithPreviousTransactionData } from '@buildonspark/spark-sdk/proto
|
|
|
3
3
|
import { Layer, OperationType } from '@buildonspark/spark-sdk/proto/lrc20';
|
|
4
4
|
import { ConfigOptions } from '@buildonspark/spark-sdk/services/wallet-config';
|
|
5
5
|
import { TokenActivityResponse, TokenDistribution } from './types.js';
|
|
6
|
+
import { SparkSigner } from '@buildonspark/spark-sdk/signer';
|
|
6
7
|
|
|
7
8
|
type IssuerTokenInfo = {
|
|
8
9
|
tokenPublicKey: string;
|
|
@@ -32,7 +33,7 @@ declare class IssuerSparkWallet extends SparkWallet {
|
|
|
32
33
|
wallet: IssuerSparkWallet;
|
|
33
34
|
}>;
|
|
34
35
|
private wrapIssuerSparkWalletWithTracing;
|
|
35
|
-
protected constructor(configOptions?: ConfigOptions);
|
|
36
|
+
protected constructor(configOptions?: ConfigOptions, signer?: SparkSigner);
|
|
36
37
|
/**
|
|
37
38
|
* Gets the token balance for the issuer's token.
|
|
38
39
|
* @returns An object containing the token balance as a bigint
|
package/dist/index.js
CHANGED
|
@@ -328,8 +328,8 @@ var IssuerSparkWallet = class _IssuerSparkWallet extends SparkWallet {
|
|
|
328
328
|
this.announceTokenL1.bind(this)
|
|
329
329
|
);
|
|
330
330
|
}
|
|
331
|
-
constructor(configOptions) {
|
|
332
|
-
super(configOptions);
|
|
331
|
+
constructor(configOptions, signer) {
|
|
332
|
+
super(configOptions, signer);
|
|
333
333
|
this.issuerTokenTransactionService = new IssuerTokenTransactionService(
|
|
334
334
|
this.config,
|
|
335
335
|
this.connectionManager
|
|
@@ -593,9 +593,10 @@ var IssuerSparkWallet = class _IssuerSparkWallet extends SparkWallet {
|
|
|
593
593
|
announcement,
|
|
594
594
|
feeRateSatsPerVb
|
|
595
595
|
);
|
|
596
|
-
|
|
596
|
+
const txId = await this.lrc20Wallet.broadcastRawBtcTransaction(
|
|
597
597
|
tx.bitcoin_tx.toHex()
|
|
598
598
|
);
|
|
599
|
+
return txId;
|
|
599
600
|
} catch (error) {
|
|
600
601
|
throw new NetworkError2(
|
|
601
602
|
"Failed to broadcast announcement transaction on L1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildonspark/issuer-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "Spark Issuer SDK for token issuance",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist",
|
|
38
|
-
"src"
|
|
38
|
+
"src",
|
|
39
|
+
"CHANGELOG.md"
|
|
39
40
|
],
|
|
40
41
|
"scripts": {
|
|
41
42
|
"build": "yarn tsc && tsup",
|
|
@@ -61,9 +62,9 @@
|
|
|
61
62
|
"types": "tsc"
|
|
62
63
|
},
|
|
63
64
|
"dependencies": {
|
|
64
|
-
"@buildonspark/lrc20-sdk": "0.0.
|
|
65
|
-
"@buildonspark/spark-sdk": "0.1.
|
|
66
|
-
"@lightsparkdev/core": "^1.4.
|
|
65
|
+
"@buildonspark/lrc20-sdk": "0.0.55",
|
|
66
|
+
"@buildonspark/spark-sdk": "0.1.34",
|
|
67
|
+
"@lightsparkdev/core": "^1.4.1",
|
|
67
68
|
"@noble/curves": "^1.8.0",
|
|
68
69
|
"@scure/btc-signer": "^1.5.0",
|
|
69
70
|
"bitcoinjs-lib": "^6.1.5",
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
ListAllTokenTransactionsCursor,
|
|
28
28
|
OperationType,
|
|
29
29
|
} from "@buildonspark/spark-sdk/proto/lrc20";
|
|
30
|
+
import { SparkSigner } from "@buildonspark/spark-sdk/signer";
|
|
30
31
|
|
|
31
32
|
const BURN_ADDRESS = "02".repeat(33);
|
|
32
33
|
|
|
@@ -112,8 +113,8 @@ export class IssuerSparkWallet extends SparkWallet {
|
|
|
112
113
|
);
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
protected constructor(configOptions?: ConfigOptions) {
|
|
116
|
-
super(configOptions);
|
|
116
|
+
protected constructor(configOptions?: ConfigOptions, signer?: SparkSigner) {
|
|
117
|
+
super(configOptions, signer);
|
|
117
118
|
this.issuerTokenTransactionService = new IssuerTokenTransactionService(
|
|
118
119
|
this.config,
|
|
119
120
|
this.connectionManager,
|
|
@@ -420,6 +421,7 @@ export class IssuerSparkWallet extends SparkWallet {
|
|
|
420
421
|
}
|
|
421
422
|
|
|
422
423
|
await this.lrc20Wallet!.syncWallet();
|
|
424
|
+
|
|
423
425
|
const tokenPublicKey = new TokenPubkey(this.lrc20Wallet!.pubkey);
|
|
424
426
|
|
|
425
427
|
const announcement = new TokenPubkeyAnnouncement(
|
|
@@ -437,9 +439,11 @@ export class IssuerSparkWallet extends SparkWallet {
|
|
|
437
439
|
feeRateSatsPerVb,
|
|
438
440
|
);
|
|
439
441
|
|
|
440
|
-
|
|
442
|
+
const txId = await this.lrc20Wallet!.broadcastRawBtcTransaction(
|
|
441
443
|
tx.bitcoin_tx.toHex(),
|
|
442
444
|
);
|
|
445
|
+
|
|
446
|
+
return txId;
|
|
443
447
|
} catch (error) {
|
|
444
448
|
throw new NetworkError(
|
|
445
449
|
"Failed to broadcast announcement transaction on L1",
|
|
@@ -515,6 +515,42 @@ describe("token integration tests", () => {
|
|
|
515
515
|
expect(tokenBalance.balance).toEqual(tokenAmount);
|
|
516
516
|
});
|
|
517
517
|
|
|
518
|
+
it("it should be able to announce a token with name of size equal to MAX_SYMBOL_SIZE", async () => {
|
|
519
|
+
const { wallet: issuerWallet } = await IssuerSparkWalletTesting.initialize({
|
|
520
|
+
options: LOCAL_WALLET_CONFIG_SCHNORR,
|
|
521
|
+
});
|
|
522
|
+
|
|
523
|
+
await fundAndAnnounce(issuerWallet, 1n, 0, "MaxSupply", "TESTAA");
|
|
524
|
+
});
|
|
525
|
+
|
|
526
|
+
it("it should be able to announce a token with symbol of size equal to MAX_NAME_SIZE", async () => {
|
|
527
|
+
const { wallet: issuerWallet } = await IssuerSparkWalletTesting.initialize({
|
|
528
|
+
options: LOCAL_WALLET_CONFIG_SCHNORR,
|
|
529
|
+
});
|
|
530
|
+
|
|
531
|
+
await fundAndAnnounce(issuerWallet, 1n, 0, "ABCDEFGHIJKLMNOPQ", "MQS");
|
|
532
|
+
});
|
|
533
|
+
|
|
534
|
+
it("it should NOT be able to announce a token with ( symbol size + name size ) > MAX_NAME_AND_SYMBOL_SIZE", async () => {
|
|
535
|
+
const { wallet: issuerWallet } = await IssuerSparkWalletTesting.initialize({
|
|
536
|
+
options: LOCAL_WALLET_CONFIG_SCHNORR,
|
|
537
|
+
});
|
|
538
|
+
|
|
539
|
+
await expect(
|
|
540
|
+
fundAndAnnounce(issuerWallet, 1n, 0, "ABCDEFGHIJKLMNOPQ", "TESTAB"),
|
|
541
|
+
).rejects.toThrow();
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
it("it should NOT be able to announce a token with ( symbol size + name size ) > MAX_NAME_AND_SYMBOL_SIZE, and size is calculated in bytes", async () => {
|
|
545
|
+
const { wallet: issuerWallet } = await IssuerSparkWalletTesting.initialize({
|
|
546
|
+
options: LOCAL_WALLET_CONFIG_SCHNORR,
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
await expect(
|
|
550
|
+
fundAndAnnounce(issuerWallet, 1n, 0, "ABCDEFGHIJKLMNOPQ", "🥸🥸"),
|
|
551
|
+
).rejects.toThrow();
|
|
552
|
+
});
|
|
553
|
+
|
|
518
554
|
// freeze is hardcoded to mainnet
|
|
519
555
|
brokenTestFn(
|
|
520
556
|
"should announce, mint, freeze and unfreeze tokens with ECDSA",
|