@sats-connect/core 0.0.13 → 0.0.14-559e05b
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.d.mts +3 -0
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -536,6 +536,9 @@ declare const getInscriptionsParamsSchema: v.ObjectSchema<{
|
|
|
536
536
|
readonly limit: v.NumberSchema<undefined>;
|
|
537
537
|
}, undefined>;
|
|
538
538
|
declare const getInscriptionsResultSchema: v.ObjectSchema<{
|
|
539
|
+
readonly total: v.NumberSchema<undefined>;
|
|
540
|
+
readonly limit: v.NumberSchema<undefined>;
|
|
541
|
+
readonly offset: v.NumberSchema<undefined>;
|
|
539
542
|
readonly inscriptions: v.ArraySchema<v.ObjectSchema<{
|
|
540
543
|
readonly inscriptionId: v.StringSchema<undefined>;
|
|
541
544
|
readonly inscriptionNumber: v.StringSchema<undefined>;
|
package/dist/index.mjs
CHANGED
|
@@ -208,7 +208,12 @@ var SatsConnectAdapter = class {
|
|
|
208
208
|
if (isMintSupported) {
|
|
209
209
|
const response = await this.requestInternal("runes_mint", params);
|
|
210
210
|
if (response) {
|
|
211
|
-
|
|
211
|
+
if (response.status === "success") {
|
|
212
|
+
return response;
|
|
213
|
+
}
|
|
214
|
+
if (response.status === "error" && response.error.code !== -32001 /* METHOD_NOT_SUPPORTED */) {
|
|
215
|
+
return response;
|
|
216
|
+
}
|
|
212
217
|
}
|
|
213
218
|
}
|
|
214
219
|
}
|
|
@@ -801,6 +806,9 @@ var getInscriptionsParamsSchema = v7.object({
|
|
|
801
806
|
limit: v7.number()
|
|
802
807
|
});
|
|
803
808
|
var getInscriptionsResultSchema = v7.object({
|
|
809
|
+
total: v7.number(),
|
|
810
|
+
limit: v7.number(),
|
|
811
|
+
offset: v7.number(),
|
|
804
812
|
inscriptions: v7.array(
|
|
805
813
|
v7.object({
|
|
806
814
|
inscriptionId: v7.string(),
|