@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 listOrdinals skill */
68
- export interface ListOrdinalsInput {
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
- * List ordinals from the wallet.
80
+ * Get ordinals from the wallet with BEEF for spending.
76
81
  */
77
- export declare const listOrdinals: Skill<ListOrdinalsInput, WalletOutput[]>;
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<ListOrdinalsInput, WalletOutput[]> | Skill<DeriveCancelAddressInput, string> | Skill<TransferOrdinalsRequest, OrdinalOperationResponse> | Skill<ListOrdinalRequest, OrdinalOperationResponse> | Skill<CancelListingInput, OrdinalOperationResponse> | Skill<PurchaseOrdinalRequest, OrdinalOperationResponse>)[];
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
- * List ordinals from the wallet.
260
+ * Get ordinals from the wallet with BEEF for spending.
261
261
  */
262
- export const listOrdinals = {
262
+ export const getOrdinals = {
263
263
  meta: {
264
- name: "listOrdinals",
265
- description: "List ordinals/inscriptions from the wallet",
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 number of ordinals to return (default: 100)" },
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 result.outputs;
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
- listOrdinals,
733
+ getOrdinals,
730
734
  deriveCancelAddress,
731
735
  transferOrdinals,
732
736
  listOrdinal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/wallet-toolbox",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "BSV wallet library extending @bsv/wallet-toolbox with 1Sat Ordinals protocol support",
5
5
  "author": "1Sat Team",
6
6
  "license": "MIT",