@1sat/wallet-toolbox 0.0.54 → 0.0.55
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.
|
@@ -64,17 +64,22 @@ export declare function buildTransferOrdinals(ctx: OneSatContext, request: Trans
|
|
|
64
64
|
export declare function buildListOrdinal(ctx: OneSatContext, request: ListOrdinalRequest): Promise<CreateActionArgs | {
|
|
65
65
|
error: string;
|
|
66
66
|
}>;
|
|
67
|
-
/** Input for
|
|
68
|
-
export interface
|
|
67
|
+
/** Input for getOrdinals skill */
|
|
68
|
+
export interface GetOrdinalsInput {
|
|
69
69
|
/** Max number of ordinals to return */
|
|
70
70
|
limit?: number;
|
|
71
71
|
/** Offset for pagination */
|
|
72
72
|
offset?: number;
|
|
73
73
|
}
|
|
74
|
+
/** Result from getOrdinals skill */
|
|
75
|
+
export interface GetOrdinalsResult {
|
|
76
|
+
outputs: WalletOutput[];
|
|
77
|
+
BEEF?: number[];
|
|
78
|
+
}
|
|
74
79
|
/**
|
|
75
|
-
*
|
|
80
|
+
* Get ordinals from the wallet with BEEF for spending.
|
|
76
81
|
*/
|
|
77
|
-
export declare const
|
|
82
|
+
export declare const getOrdinals: Skill<GetOrdinalsInput, GetOrdinalsResult>;
|
|
78
83
|
/** Input for deriveCancelAddress skill */
|
|
79
84
|
export interface DeriveCancelAddressInput {
|
|
80
85
|
/** Outpoint of the ordinal listing */
|
|
@@ -108,5 +113,5 @@ export declare const cancelListing: Skill<CancelListingInput, OrdinalOperationRe
|
|
|
108
113
|
*/
|
|
109
114
|
export declare const purchaseOrdinal: Skill<PurchaseOrdinalRequest, OrdinalOperationResponse>;
|
|
110
115
|
/** All ordinals skills for registry */
|
|
111
|
-
export declare const ordinalsSkills: (Skill<
|
|
116
|
+
export declare const ordinalsSkills: (Skill<GetOrdinalsInput, GetOrdinalsResult> | Skill<DeriveCancelAddressInput, string> | Skill<TransferOrdinalsRequest, OrdinalOperationResponse> | Skill<ListOrdinalRequest, OrdinalOperationResponse> | Skill<CancelListingInput, OrdinalOperationResponse> | Skill<PurchaseOrdinalRequest, OrdinalOperationResponse>)[];
|
|
112
117
|
export {};
|
|
@@ -257,17 +257,17 @@ export async function buildListOrdinal(ctx, request) {
|
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
|
-
*
|
|
260
|
+
* Get ordinals from the wallet with BEEF for spending.
|
|
261
261
|
*/
|
|
262
|
-
export const
|
|
262
|
+
export const getOrdinals = {
|
|
263
263
|
meta: {
|
|
264
|
-
name: "
|
|
265
|
-
description: "
|
|
264
|
+
name: "getOrdinals",
|
|
265
|
+
description: "Get ordinals/inscriptions from the wallet with BEEF for spending",
|
|
266
266
|
category: "ordinals",
|
|
267
267
|
inputSchema: {
|
|
268
268
|
type: "object",
|
|
269
269
|
properties: {
|
|
270
|
-
limit: { type: "integer", description: "Max
|
|
270
|
+
limit: { type: "integer", description: "Max ordinals to return (default: 100)" },
|
|
271
271
|
offset: { type: "integer", description: "Offset for pagination (default: 0)" },
|
|
272
272
|
},
|
|
273
273
|
},
|
|
@@ -277,10 +277,14 @@ export const listOrdinals = {
|
|
|
277
277
|
basket: ORDINALS_BASKET,
|
|
278
278
|
includeTags: true,
|
|
279
279
|
includeCustomInstructions: true,
|
|
280
|
+
include: 'entire transactions',
|
|
280
281
|
limit: input.limit ?? 100,
|
|
281
282
|
offset: input.offset ?? 0,
|
|
282
283
|
});
|
|
283
|
-
return
|
|
284
|
+
return {
|
|
285
|
+
outputs: result.outputs,
|
|
286
|
+
BEEF: result.BEEF,
|
|
287
|
+
};
|
|
284
288
|
},
|
|
285
289
|
};
|
|
286
290
|
/**
|
|
@@ -726,7 +730,7 @@ export const purchaseOrdinal = {
|
|
|
726
730
|
// ============================================================================
|
|
727
731
|
/** All ordinals skills for registry */
|
|
728
732
|
export const ordinalsSkills = [
|
|
729
|
-
|
|
733
|
+
getOrdinals,
|
|
730
734
|
deriveCancelAddress,
|
|
731
735
|
transferOrdinals,
|
|
732
736
|
listOrdinal,
|