@vbyte/btc-dev 1.0.3 → 1.0.4

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.
@@ -13,7 +13,7 @@ export declare class Transaction {
13
13
  get hash(): string;
14
14
  get locktime(): {
15
15
  hex: string;
16
- data: import("../types/index.js").LocktimeInfo | null;
16
+ data: import("../types/index.js").LocktimeData | null;
17
17
  value: number;
18
18
  };
19
19
  get return(): import("../types/index.js").TxOutput | null;
@@ -1,13 +1,13 @@
1
1
  import { TransactionOutput } from './txout.js';
2
2
  import { TransactionWitness } from './witness.js';
3
- import type { TxInput, TxInputField } from '../types/index.js';
3
+ import type { TxInput, TransactionInputData } from '../types/index.js';
4
4
  export declare class TransactionInput {
5
5
  private readonly _size;
6
6
  private readonly _txin;
7
7
  private readonly _witness;
8
8
  constructor(txin: TxInput);
9
9
  get coinbase(): string | null;
10
- get data(): TxInputField;
10
+ get data(): TransactionInputData;
11
11
  get has_prevout(): boolean;
12
12
  get is_coinbase(): boolean;
13
13
  get prevout(): TransactionOutput | null;
@@ -17,13 +17,13 @@ export declare class TransactionInput {
17
17
  } | null;
18
18
  get sequence(): {
19
19
  hex: string;
20
- data: import("../types/index.js").SequenceInfo | null;
20
+ data: import("../types/index.js").SequenceData | null;
21
21
  value: number;
22
22
  };
23
23
  get size(): number;
24
24
  get txid(): string;
25
25
  get vout(): number;
26
26
  get witness(): TransactionWitness | null;
27
- toJSON(): TxInputField;
27
+ toJSON(): TransactionInputData;
28
28
  toString(): string;
29
29
  }
@@ -1,10 +1,10 @@
1
- import type { TxOutput, TxOutputField } from '../types/index.js';
1
+ import type { TxOutput, TransactionOutputData } from '../types/index.js';
2
2
  export declare class TransactionOutput {
3
3
  private readonly _info;
4
4
  private readonly _size;
5
5
  private readonly _txout;
6
6
  constructor(txout: TxOutput);
7
- get data(): TxOutputField;
7
+ get data(): TransactionOutputData;
8
8
  get script_pk(): {
9
9
  hex: string;
10
10
  asm: string[];
@@ -13,6 +13,6 @@ export declare class TransactionOutput {
13
13
  get type(): import("../types/index.js").TxOutputType;
14
14
  get value(): bigint;
15
15
  get version(): import("../types/index.js").WitnessVersion;
16
- toJSON(): TxOutputField;
16
+ toJSON(): TransactionOutputData;
17
17
  toString(): string;
18
18
  }
@@ -1,7 +1,7 @@
1
- import type { LocktimeInfo } from '../../types/index.js';
1
+ import type { LocktimeData } from '../../types/index.js';
2
2
  export declare namespace LocktimeUtil {
3
3
  const encode: typeof encode_locktime;
4
4
  const decode: typeof decode_locktime;
5
5
  }
6
- export declare function encode_locktime(locktime: LocktimeInfo): number;
7
- export declare function decode_locktime(locktime: number): LocktimeInfo | null;
6
+ export declare function encode_locktime(locktime: LocktimeData): number;
7
+ export declare function decode_locktime(locktime: number): LocktimeData | null;
@@ -1,7 +1,7 @@
1
- import type { SequenceConfig, SequenceInfo } from '../../types/index.js';
1
+ import type { SequenceConfig, SequenceData } from '../../types/index.js';
2
2
  export declare namespace SequenceUtil {
3
3
  const encode: typeof encode_sequence;
4
4
  const decode: typeof decode_sequence;
5
5
  }
6
6
  export declare function encode_sequence(data: SequenceConfig): number;
7
- export declare function decode_sequence(sequence: number | string): SequenceInfo | null;
7
+ export declare function decode_sequence(sequence: number | string): SequenceData | null;
@@ -1,3 +1,3 @@
1
1
  import { Bytes } from '@vbyte/buff';
2
- import type { WitnessInfo } from '../../types/index.js';
3
- export declare function parse_witness_data(witness: Bytes[]): WitnessInfo;
2
+ import type { WitnessData } from '../../types/index.js';
3
+ export declare function parse_witness_data(witness: Bytes[]): WitnessData;