@1sat/wallet-toolbox 0.0.49 → 0.0.51

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.
@@ -338,6 +338,26 @@ export const transferOrdinals = {
338
338
  if ("error" in params) {
339
339
  return params;
340
340
  }
341
+ console.log("[transferOrdinals] params:", JSON.stringify({
342
+ description: params.description,
343
+ inputBEEF: params.inputBEEF ? `[${params.inputBEEF.length} bytes]` : "undefined",
344
+ inputs: params.inputs,
345
+ outputs: params.outputs?.map(o => ({ ...o, lockingScript: o.lockingScript?.slice(0, 20) + "..." })),
346
+ }, null, 2));
347
+ // Debug: Check if BEEF contains the source transactions
348
+ try {
349
+ const { Beef } = await import("@bsv/sdk");
350
+ const beef = Beef.fromBinary(params.inputBEEF);
351
+ console.log("[transferOrdinals] BEEF tx count:", beef.txs.length);
352
+ for (const inp of params.inputs ?? []) {
353
+ const [txid] = inp.outpoint.split(".");
354
+ const sourceTx = beef.findTxid(txid);
355
+ console.log(`[transferOrdinals] Source tx for ${inp.outpoint}: ${sourceTx ? "FOUND" : "MISSING"}`);
356
+ }
357
+ }
358
+ catch (e) {
359
+ console.log("[transferOrdinals] BEEF parse error:", e);
360
+ }
341
361
  const createResult = await ctx.wallet.createAction({
342
362
  ...params,
343
363
  options: { signAndProcess: false, randomizeOutputs: false },
@@ -157,6 +157,7 @@ export async function createWebWallet(config) {
157
157
  unprovenAttemptsLimitMain: 144,
158
158
  });
159
159
  monitor.addDefaultTasks();
160
+ console.log("[createWebWallet] Monitor created with tasks:", monitor["_tasks"].map((t) => t.name));
160
161
  // Helper to sync to remote backup using public updateBackups API
161
162
  const syncToBackup = async (context) => {
162
163
  if (storage.getBackupStores().length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/wallet-toolbox",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "BSV wallet library extending @bsv/wallet-toolbox with 1Sat Ordinals protocol support",
5
5
  "author": "1Sat Team",
6
6
  "license": "MIT",
@@ -37,6 +37,7 @@
37
37
  "tester": "bun run build && bun run tester:build && bun ./tester/server.ts"
38
38
  },
39
39
  "dependencies": {
40
+ "@1sat/wallet-toolbox": "0.0.50",
40
41
  "@bopen-io/templates": "^1.1.6",
41
42
  "@bsv/sdk": "^1.10.1",
42
43
  "@msgpack/msgpack": "^3.1.3",