@buildonspark/issuer-sdk 0.1.17 → 0.1.19
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,19 @@
|
|
|
1
1
|
# @buildonspark/issuer-sdk
|
|
2
2
|
|
|
3
|
+
## 0.1.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @buildonspark/spark-sdk@0.7.1
|
|
9
|
+
|
|
10
|
+
## 0.1.18
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @buildonspark/spark-sdk@0.7.0
|
|
16
|
+
|
|
3
17
|
## 0.1.17
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildonspark/issuer-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "Spark Issuer SDK for token issuance",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"types": "tsc"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@buildonspark/spark-sdk": "0.
|
|
85
|
+
"@buildonspark/spark-sdk": "0.7.1",
|
|
86
86
|
"@noble/curves": "^1.9.7",
|
|
87
87
|
"@scure/btc-signer": "^1.5.0",
|
|
88
88
|
"buffer": "^6.0.3"
|
|
@@ -179,7 +179,7 @@ describe.each(TEST_CONFIGS)(
|
|
|
179
179
|
});
|
|
180
180
|
const transactions = res.tokenTransactionsWithStatus;
|
|
181
181
|
const amount_of_transactions = transactions.length;
|
|
182
|
-
expect(amount_of_transactions).toEqual(
|
|
182
|
+
expect(amount_of_transactions).toEqual(2);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
{
|
|
@@ -188,7 +188,7 @@ describe.each(TEST_CONFIGS)(
|
|
|
188
188
|
});
|
|
189
189
|
const transactions = res.tokenTransactionsWithStatus;
|
|
190
190
|
const amount_of_transactions = transactions.length;
|
|
191
|
-
expect(amount_of_transactions).toEqual(
|
|
191
|
+
expect(amount_of_transactions).toEqual(2);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
await issuerWallet.transferTokens({
|
|
@@ -203,7 +203,7 @@ describe.each(TEST_CONFIGS)(
|
|
|
203
203
|
});
|
|
204
204
|
const transactions = res.tokenTransactionsWithStatus;
|
|
205
205
|
const amount_of_transactions = transactions.length;
|
|
206
|
-
expect(amount_of_transactions).toEqual(
|
|
206
|
+
expect(amount_of_transactions).toEqual(3);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
{
|
|
@@ -212,7 +212,7 @@ describe.each(TEST_CONFIGS)(
|
|
|
212
212
|
});
|
|
213
213
|
const transactions = res.tokenTransactionsWithStatus;
|
|
214
214
|
const amount_of_transactions = transactions.length;
|
|
215
|
-
expect(amount_of_transactions).toEqual(
|
|
215
|
+
expect(amount_of_transactions).toEqual(3);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
for (let index = 0; index < 100; ++index) {
|
|
@@ -383,7 +383,7 @@ describe.each(TEST_CONFIGS)(
|
|
|
383
383
|
page_num += 1;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
expect(hashset_of_all_transactions.size).toEqual(
|
|
386
|
+
expect(hashset_of_all_transactions.size).toEqual(203);
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
},
|
|
@@ -159,15 +159,23 @@ describe.each(TEST_CONFIGS)(
|
|
|
159
159
|
it("should consolidate outputs for multiple token types using optimizeTokenOutputs", async () => {
|
|
160
160
|
const totalAmountPerToken = 10000n;
|
|
161
161
|
const smallTransferAmount = 10n;
|
|
162
|
-
const
|
|
162
|
+
const minOutputsThreshold = 10;
|
|
163
|
+
const transfersPerToken = minOutputsThreshold + 1;
|
|
164
|
+
const configWithLowerOptimizationThreshold = {
|
|
165
|
+
...config,
|
|
166
|
+
tokenOptimizationOptions: {
|
|
167
|
+
...config.tokenOptimizationOptions,
|
|
168
|
+
minOutputsThreshold,
|
|
169
|
+
},
|
|
170
|
+
};
|
|
163
171
|
|
|
164
172
|
const { wallet: issuerWallet } =
|
|
165
173
|
await IssuerSparkWalletTesting.initialize({
|
|
166
|
-
options:
|
|
174
|
+
options: configWithLowerOptimizationThreshold,
|
|
167
175
|
});
|
|
168
176
|
|
|
169
177
|
const { wallet: userWallet } = await SparkWalletTesting.initialize({
|
|
170
|
-
options:
|
|
178
|
+
options: configWithLowerOptimizationThreshold,
|
|
171
179
|
});
|
|
172
180
|
|
|
173
181
|
const tokenOne = await issuerWallet.createToken({
|