@1sat/wallet-toolbox 0.0.50 → 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.
- package/dist/api/ordinals/index.js +14 -0
- package/package.json +2 -1
|
@@ -344,6 +344,20 @@ export const transferOrdinals = {
|
|
|
344
344
|
inputs: params.inputs,
|
|
345
345
|
outputs: params.outputs?.map(o => ({ ...o, lockingScript: o.lockingScript?.slice(0, 20) + "..." })),
|
|
346
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
|
+
}
|
|
347
361
|
const createResult = await ctx.wallet.createAction({
|
|
348
362
|
...params,
|
|
349
363
|
options: { signAndProcess: false, randomizeOutputs: false },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1sat/wallet-toolbox",
|
|
3
|
-
"version": "0.0.
|
|
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",
|