@vbyte/btc-dev 1.0.13 → 1.0.15

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/module.mjs CHANGED
@@ -13440,7 +13440,7 @@ var taproot = /*#__PURE__*/Object.freeze({
13440
13440
  taptree: taptree
13441
13441
  });
13442
13442
 
13443
- const sats = bigIntType().positive().max(2100000000000000n);
13443
+ const sats = bigIntType().min(0n).max(2100000000000000n);
13444
13444
  const tx_output = objectType({
13445
13445
  value: sats,
13446
13446
  script_pk: hex$1,
@@ -13471,9 +13471,9 @@ const vin_template = tx_input.extend({
13471
13471
  witness: arrayType(hex$1).optional(),
13472
13472
  });
13473
13473
  const tx_template = objectType({
13474
- version: uint.default(1),
13475
- vin: arrayType(vin_template).default([]),
13476
- vout: arrayType(vout_template).default([]),
13474
+ version: uint.optional(),
13475
+ vin: arrayType(vin_template),
13476
+ vout: arrayType(vout_template),
13477
13477
  locktime: uint.optional(),
13478
13478
  });
13479
13479