@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.
@@ -4,4 +4,4 @@ export declare function create_virtual_input(config: TxInputTemplate): TxVirtual
4
4
  export declare function create_spend_input(config: TxInputTemplate): TxSpendInput;
5
5
  export declare function create_tx_input(config: TxInputTemplate): TxInput;
6
6
  export declare function create_tx_output(config: TxOutputTemplate): TxOutput;
7
- export declare function create_tx(config?: TxTemplate): TxData;
7
+ export declare function create_tx(config?: Partial<TxTemplate>): TxData;
package/dist/main.cjs CHANGED
@@ -13442,7 +13442,7 @@ var taproot = /*#__PURE__*/Object.freeze({
13442
13442
  taptree: taptree
13443
13443
  });
13444
13444
 
13445
- const sats = bigIntType().positive().max(2100000000000000n);
13445
+ const sats = bigIntType().min(0n).max(2100000000000000n);
13446
13446
  const tx_output = objectType({
13447
13447
  value: sats,
13448
13448
  script_pk: hex$1,
@@ -13473,9 +13473,9 @@ const vin_template = tx_input.extend({
13473
13473
  witness: arrayType(hex$1).optional(),
13474
13474
  });
13475
13475
  const tx_template = objectType({
13476
- version: uint.default(1),
13477
- vin: arrayType(vin_template).default([]),
13478
- vout: arrayType(vout_template).default([]),
13476
+ version: uint.optional(),
13477
+ vin: arrayType(vin_template),
13478
+ vout: arrayType(vout_template),
13479
13479
  locktime: uint.optional(),
13480
13480
  });
13481
13481