@secretkeylabs/stacks-tools 0.5.0-5d800c5 → 0.5.0-eb736d6
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/dist/index.cjs +16 -16
- package/dist/index.js +16 -16
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -93,7 +93,7 @@ async function balances(opts) {
|
|
|
93
93
|
data: {
|
|
94
94
|
status: res.status,
|
|
95
95
|
statusText: res.statusText,
|
|
96
|
-
|
|
96
|
+
bodyText: await safePromise(res.text())
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -134,7 +134,7 @@ async function latestNonce(opts) {
|
|
|
134
134
|
endpoint,
|
|
135
135
|
status: res.status,
|
|
136
136
|
statusText: res.statusText,
|
|
137
|
-
|
|
137
|
+
bodyText: await safePromise(res.text())
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -213,7 +213,7 @@ async function getBlock(opts) {
|
|
|
213
213
|
data: {
|
|
214
214
|
status: res.status,
|
|
215
215
|
statusText: res.statusText,
|
|
216
|
-
|
|
216
|
+
bodyText: await safePromise(res.text())
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
219
|
}
|
|
@@ -262,7 +262,7 @@ async function stx(opts) {
|
|
|
262
262
|
data: {
|
|
263
263
|
status: res.status,
|
|
264
264
|
statusText: res.statusText,
|
|
265
|
-
|
|
265
|
+
bodyText: await safePromise(res.text())
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
}
|
|
@@ -315,7 +315,7 @@ async function coreApi(apiOpts) {
|
|
|
315
315
|
data: {
|
|
316
316
|
status: res.status,
|
|
317
317
|
statusText: res.statusText,
|
|
318
|
-
|
|
318
|
+
bodyText: await safePromise(res.text())
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
321
|
}
|
|
@@ -370,7 +370,7 @@ async function cycle(opts) {
|
|
|
370
370
|
endpoint,
|
|
371
371
|
status: res.status,
|
|
372
372
|
statusText: res.statusText,
|
|
373
|
-
|
|
373
|
+
bodyText: await safePromise(res.text())
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
376
|
}
|
|
@@ -428,7 +428,7 @@ async function cycles(args) {
|
|
|
428
428
|
endpoint,
|
|
429
429
|
status: res.status,
|
|
430
430
|
statusText: res.statusText,
|
|
431
|
-
|
|
431
|
+
bodyText: await safePromise(res.text())
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}
|
|
@@ -545,7 +545,7 @@ async function signersInCycle(args) {
|
|
|
545
545
|
endpoint,
|
|
546
546
|
status: res.status,
|
|
547
547
|
statusText: res.statusText,
|
|
548
|
-
|
|
548
|
+
bodyText: await safePromise(res.text())
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
@@ -605,7 +605,7 @@ async function stackersForSignerInCycle(opts) {
|
|
|
605
605
|
endpoint,
|
|
606
606
|
status: res.status,
|
|
607
607
|
statusText: res.statusText,
|
|
608
|
-
|
|
608
|
+
bodyText: await safePromise(res.text())
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
611
|
}
|
|
@@ -677,7 +677,7 @@ async function members(args) {
|
|
|
677
677
|
data: {
|
|
678
678
|
status: res.status,
|
|
679
679
|
statusText: res.statusText,
|
|
680
|
-
|
|
680
|
+
bodyText: await safePromise(res.text())
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
}
|
|
@@ -844,7 +844,7 @@ async function addressTransactions(args) {
|
|
|
844
844
|
data: {
|
|
845
845
|
status: res.status,
|
|
846
846
|
statusText: res.statusText,
|
|
847
|
-
|
|
847
|
+
bodyText: await safePromise(res.text())
|
|
848
848
|
}
|
|
849
849
|
});
|
|
850
850
|
}
|
|
@@ -885,7 +885,7 @@ async function getTransaction(args) {
|
|
|
885
885
|
response: {
|
|
886
886
|
status: res.status,
|
|
887
887
|
statusText: res.statusText,
|
|
888
|
-
|
|
888
|
+
bodyText: await safePromise(res.text())
|
|
889
889
|
}
|
|
890
890
|
});
|
|
891
891
|
}
|
|
@@ -936,7 +936,7 @@ async function mempoolTransactions(args) {
|
|
|
936
936
|
data: {
|
|
937
937
|
status: res.status,
|
|
938
938
|
statusText: res.statusText,
|
|
939
|
-
|
|
939
|
+
bodyText: await safePromise(res.text())
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
}
|
|
@@ -1007,7 +1007,7 @@ async function mapEntry(args) {
|
|
|
1007
1007
|
status: res.status,
|
|
1008
1008
|
statusText: res.statusText,
|
|
1009
1009
|
endpoint,
|
|
1010
|
-
|
|
1010
|
+
bodyText: await safePromise(res.text())
|
|
1011
1011
|
}
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
@@ -1055,7 +1055,7 @@ async function readOnly(args) {
|
|
|
1055
1055
|
data: {
|
|
1056
1056
|
status: res.status,
|
|
1057
1057
|
statusText: res.statusText,
|
|
1058
|
-
|
|
1058
|
+
bodyText: await safePromise(res.text())
|
|
1059
1059
|
}
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
@@ -1092,7 +1092,7 @@ async function poxDetails(args) {
|
|
|
1092
1092
|
data: {
|
|
1093
1093
|
status: res.status,
|
|
1094
1094
|
statusText: res.statusText,
|
|
1095
|
-
|
|
1095
|
+
bodyText: await safePromise(res.text())
|
|
1096
1096
|
}
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ async function balances(opts) {
|
|
|
48
48
|
data: {
|
|
49
49
|
status: res.status,
|
|
50
50
|
statusText: res.statusText,
|
|
51
|
-
|
|
51
|
+
bodyText: await safePromise(res.text())
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -89,7 +89,7 @@ async function latestNonce(opts) {
|
|
|
89
89
|
endpoint,
|
|
90
90
|
status: res.status,
|
|
91
91
|
statusText: res.statusText,
|
|
92
|
-
|
|
92
|
+
bodyText: await safePromise(res.text())
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -168,7 +168,7 @@ async function getBlock(opts) {
|
|
|
168
168
|
data: {
|
|
169
169
|
status: res.status,
|
|
170
170
|
statusText: res.statusText,
|
|
171
|
-
|
|
171
|
+
bodyText: await safePromise(res.text())
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
}
|
|
@@ -217,7 +217,7 @@ async function stx(opts) {
|
|
|
217
217
|
data: {
|
|
218
218
|
status: res.status,
|
|
219
219
|
statusText: res.statusText,
|
|
220
|
-
|
|
220
|
+
bodyText: await safePromise(res.text())
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
}
|
|
@@ -270,7 +270,7 @@ async function coreApi(apiOpts) {
|
|
|
270
270
|
data: {
|
|
271
271
|
status: res.status,
|
|
272
272
|
statusText: res.statusText,
|
|
273
|
-
|
|
273
|
+
bodyText: await safePromise(res.text())
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
}
|
|
@@ -325,7 +325,7 @@ async function cycle(opts) {
|
|
|
325
325
|
endpoint,
|
|
326
326
|
status: res.status,
|
|
327
327
|
statusText: res.statusText,
|
|
328
|
-
|
|
328
|
+
bodyText: await safePromise(res.text())
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
}
|
|
@@ -383,7 +383,7 @@ async function cycles(args) {
|
|
|
383
383
|
endpoint,
|
|
384
384
|
status: res.status,
|
|
385
385
|
statusText: res.statusText,
|
|
386
|
-
|
|
386
|
+
bodyText: await safePromise(res.text())
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
}
|
|
@@ -500,7 +500,7 @@ async function signersInCycle(args) {
|
|
|
500
500
|
endpoint,
|
|
501
501
|
status: res.status,
|
|
502
502
|
statusText: res.statusText,
|
|
503
|
-
|
|
503
|
+
bodyText: await safePromise(res.text())
|
|
504
504
|
}
|
|
505
505
|
});
|
|
506
506
|
}
|
|
@@ -560,7 +560,7 @@ async function stackersForSignerInCycle(opts) {
|
|
|
560
560
|
endpoint,
|
|
561
561
|
status: res.status,
|
|
562
562
|
statusText: res.statusText,
|
|
563
|
-
|
|
563
|
+
bodyText: await safePromise(res.text())
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
}
|
|
@@ -632,7 +632,7 @@ async function members(args) {
|
|
|
632
632
|
data: {
|
|
633
633
|
status: res.status,
|
|
634
634
|
statusText: res.statusText,
|
|
635
|
-
|
|
635
|
+
bodyText: await safePromise(res.text())
|
|
636
636
|
}
|
|
637
637
|
});
|
|
638
638
|
}
|
|
@@ -799,7 +799,7 @@ async function addressTransactions(args) {
|
|
|
799
799
|
data: {
|
|
800
800
|
status: res.status,
|
|
801
801
|
statusText: res.statusText,
|
|
802
|
-
|
|
802
|
+
bodyText: await safePromise(res.text())
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
}
|
|
@@ -840,7 +840,7 @@ async function getTransaction(args) {
|
|
|
840
840
|
response: {
|
|
841
841
|
status: res.status,
|
|
842
842
|
statusText: res.statusText,
|
|
843
|
-
|
|
843
|
+
bodyText: await safePromise(res.text())
|
|
844
844
|
}
|
|
845
845
|
});
|
|
846
846
|
}
|
|
@@ -891,7 +891,7 @@ async function mempoolTransactions(args) {
|
|
|
891
891
|
data: {
|
|
892
892
|
status: res.status,
|
|
893
893
|
statusText: res.statusText,
|
|
894
|
-
|
|
894
|
+
bodyText: await safePromise(res.text())
|
|
895
895
|
}
|
|
896
896
|
});
|
|
897
897
|
}
|
|
@@ -962,7 +962,7 @@ async function mapEntry(args) {
|
|
|
962
962
|
status: res.status,
|
|
963
963
|
statusText: res.statusText,
|
|
964
964
|
endpoint,
|
|
965
|
-
|
|
965
|
+
bodyText: await safePromise(res.text())
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
968
|
}
|
|
@@ -1010,7 +1010,7 @@ async function readOnly(args) {
|
|
|
1010
1010
|
data: {
|
|
1011
1011
|
status: res.status,
|
|
1012
1012
|
statusText: res.statusText,
|
|
1013
|
-
|
|
1013
|
+
bodyText: await safePromise(res.text())
|
|
1014
1014
|
}
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
@@ -1047,7 +1047,7 @@ async function poxDetails(args) {
|
|
|
1047
1047
|
data: {
|
|
1048
1048
|
status: res.status,
|
|
1049
1049
|
statusText: res.statusText,
|
|
1050
|
-
|
|
1050
|
+
bodyText: await safePromise(res.text())
|
|
1051
1051
|
}
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secretkeylabs/stacks-tools",
|
|
3
|
-
"version": "0.5.0-
|
|
3
|
+
"version": "0.5.0-eb736d6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@arethetypeswrong/cli": "0.15.4",
|
|
26
26
|
"@types/bun": "latest",
|
|
27
27
|
"prettier": "^3.3.3",
|
|
28
|
-
"tsup": "^8.3.5"
|
|
28
|
+
"tsup": "^8.3.5",
|
|
29
|
+
"typescript": "^5.0.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
|
-
"typescript": "^5.0.0",
|
|
32
32
|
"@stacks/blockchain-api-client": "^8.2.1",
|
|
33
33
|
"@stacks/transactions": "^7.0.0",
|
|
34
34
|
"valibot": "^0.42.1"
|