@buildonspark/issuer-sdk 0.0.89 → 0.0.90
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/package.json +2 -2
- package/src/tests/stress/transfers.test.ts +14 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildonspark/issuer-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"description": "Spark Issuer SDK for token issuance",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"types": "tsc"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@buildonspark/spark-sdk": "0.2.
|
|
75
|
+
"@buildonspark/spark-sdk": "0.2.11",
|
|
76
76
|
"@noble/curves": "^1.8.0",
|
|
77
77
|
"@scure/btc-signer": "^1.5.0",
|
|
78
78
|
"buffer": "^6.0.3"
|
|
@@ -39,6 +39,13 @@ describe("Stress test for token transfers", () => {
|
|
|
39
39
|
options: WalletConfig.LOCAL,
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
+
await issuerWallet.createToken({
|
|
43
|
+
tokenName: "TestToken",
|
|
44
|
+
tokenTicker: "TEST",
|
|
45
|
+
decimals: 0,
|
|
46
|
+
isFreezable: false,
|
|
47
|
+
maxSupply: 1_000_000n,
|
|
48
|
+
});
|
|
42
49
|
await issuerWallet.mintTokens(TOKEN_AMOUNT);
|
|
43
50
|
await sleep(1000);
|
|
44
51
|
const tokenIdentifier = await issuerWallet.getIssuerTokenIdentifier();
|
|
@@ -124,6 +131,13 @@ describe("Stress test for token transfers", () => {
|
|
|
124
131
|
options: WalletConfig.LOCAL,
|
|
125
132
|
});
|
|
126
133
|
|
|
134
|
+
await issuer.wallet.createToken({
|
|
135
|
+
tokenName: "TestToken",
|
|
136
|
+
tokenTicker: "TEST",
|
|
137
|
+
decimals: 0,
|
|
138
|
+
isFreezable: false,
|
|
139
|
+
maxSupply: 1_000_000n,
|
|
140
|
+
});
|
|
127
141
|
await issuer.wallet.mintTokens(TOKEN_AMOUNT);
|
|
128
142
|
const userAddress = await user.wallet.getSparkAddress();
|
|
129
143
|
const tokenIdentifier =
|