@btc-vision/transaction 1.7.16 → 1.7.17

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.
@@ -1 +1 @@
1
- export declare const version = "1.7.16";
1
+ export declare const version = "1.7.17";
@@ -1,4 +1,5 @@
1
1
  import { Network } from '@btc-vision/bitcoin';
2
+ import { BinaryWriter } from '../buffer/BinaryWriter.js';
2
3
  import { Feature, Features } from './Features.js';
3
4
  export declare abstract class Generator {
4
5
  static readonly DATA_CHUNK_SIZE: number;
@@ -12,7 +13,7 @@ export declare abstract class Generator {
12
13
  getHeader(maxPriority: bigint, features?: Features[]): Buffer;
13
14
  abstract compile(...args: unknown[]): Buffer;
14
15
  protected splitBufferIntoChunks(buffer: Buffer, chunkSize?: number): Array<Buffer[]>;
15
- protected encodeFeature(feature: Feature<Features>): Buffer[][];
16
+ protected encodeFeature(feature: Feature<Features>, finalBuffer: BinaryWriter): void;
16
17
  private encodeAccessListFeature;
17
18
  private encodeChallengeSubmission;
18
19
  private encodeLinkRequest;
@@ -9,5 +9,4 @@ export declare class P2WDAGenerator extends Generator {
9
9
  compile(calldata: Buffer, contractSecret: Buffer, challenge: ChallengeSolution, maxPriority: bigint, featuresRaw?: Feature<Features>[]): Buffer;
10
10
  getHeader(maxPriority: bigint, features?: Features[]): Buffer;
11
11
  private writeFeatures;
12
- private encodeFeatureData;
13
12
  }