@btc-vision/transaction 1.6.0 → 1.6.1

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.
Files changed (32) hide show
  1. package/browser/_version.d.ts +1 -1
  2. package/browser/epoch/validator/EpochValidator.d.ts +2 -2
  3. package/browser/generators/builders/DeploymentGenerator.d.ts +1 -1
  4. package/browser/generators/builders/LegacyCalldataGenerator.d.ts +1 -1
  5. package/browser/index.js +1 -1
  6. package/browser/transaction/TransactionFactory.d.ts +2 -2
  7. package/browser/transaction/builders/DeploymentTransaction.d.ts +1 -1
  8. package/browser/utxo/OPNetLimitedProvider.d.ts +0 -4
  9. package/build/_version.d.ts +1 -1
  10. package/build/_version.js +1 -1
  11. package/build/epoch/ChallengeSolution.js +1 -1
  12. package/build/epoch/validator/EpochValidator.d.ts +2 -2
  13. package/build/epoch/validator/EpochValidator.js +8 -8
  14. package/build/generators/builders/DeploymentGenerator.d.ts +1 -1
  15. package/build/generators/builders/DeploymentGenerator.js +5 -5
  16. package/build/generators/builders/LegacyCalldataGenerator.d.ts +1 -1
  17. package/build/generators/builders/LegacyCalldataGenerator.js +2 -2
  18. package/build/transaction/TransactionFactory.d.ts +2 -2
  19. package/build/transaction/TransactionFactory.js +2 -2
  20. package/build/transaction/builders/DeploymentTransaction.d.ts +1 -1
  21. package/build/transaction/builders/DeploymentTransaction.js +4 -4
  22. package/build/utxo/OPNetLimitedProvider.d.ts +0 -4
  23. package/build/utxo/OPNetLimitedProvider.js +0 -7
  24. package/package.json +1 -1
  25. package/src/_version.ts +1 -1
  26. package/src/epoch/ChallengeSolution.ts +7 -7
  27. package/src/epoch/validator/EpochValidator.ts +9 -9
  28. package/src/generators/builders/DeploymentGenerator.ts +6 -6
  29. package/src/generators/builders/LegacyCalldataGenerator.ts +3 -3
  30. package/src/transaction/TransactionFactory.ts +4 -4
  31. package/src/transaction/builders/DeploymentTransaction.ts +5 -5
  32. package/src/utxo/OPNetLimitedProvider.ts +0 -17
@@ -1 +1 @@
1
- export declare const version = "1.6.0";
1
+ export declare const version = "1.6.1";
@@ -7,10 +7,10 @@ export declare class EpochValidator {
7
7
  static sha1(data: Uint8Array): Promise<Uint8Array>;
8
8
  static calculatePreimage(checksumRoot: Buffer, publicKey: Buffer, salt: Buffer): Buffer;
9
9
  static countMatchingBits(hash1: Buffer, hash2: Buffer): number;
10
- static verifySolution(preimage: IChallengeSolution, log?: boolean): Promise<boolean>;
10
+ static verifySolution(challenge: IChallengeSolution, log?: boolean): Promise<boolean>;
11
11
  static getMiningTargetBlock(epochNumber: bigint): bigint | null;
12
12
  static validateEpochWinner(epochData: RawChallenge): Promise<boolean>;
13
- static validatePreimage(preimage: IChallengeSolution): Promise<boolean>;
13
+ static validateChallengeSolution(challenge: IChallengeSolution): Promise<boolean>;
14
14
  static calculateSolution(targetChecksum: Buffer, publicKey: Buffer, salt: Buffer): Promise<Buffer>;
15
15
  static checkDifficulty(solution: Buffer, targetHash: Buffer, minDifficulty: number): {
16
16
  valid: boolean;
@@ -6,6 +6,6 @@ export declare const OPNET_DEPLOYMENT_VERSION = 0;
6
6
  export declare const versionBuffer: Buffer<ArrayBuffer>;
7
7
  export declare class DeploymentGenerator extends Generator {
8
8
  constructor(senderPubKey: Buffer, contractSaltPubKey: Buffer, network?: Network);
9
- compile(contractBytecode: Buffer, contractSalt: Buffer, preimage: ChallengeSolution, maxPriority: bigint, calldata?: Buffer, features?: Feature<Features>[]): Buffer;
9
+ compile(contractBytecode: Buffer, contractSalt: Buffer, challenge: ChallengeSolution, maxPriority: bigint, calldata?: Buffer, features?: Feature<Features>[]): Buffer;
10
10
  private getAsm;
11
11
  }
@@ -4,5 +4,5 @@ import { Feature, Features } from '../Features.js';
4
4
  export declare class LegacyCalldataGenerator extends Generator {
5
5
  constructor(senderPubKey: Buffer, network?: Network);
6
6
  static getPubKeyAsBuffer(witnessKeys: Buffer[], network: Network): Buffer;
7
- compile(calldata: Buffer, contractSecret: Buffer, preimage: Buffer, maxPriority: bigint, features?: Feature<Features>[]): Buffer;
7
+ compile(calldata: Buffer, contractSecret: Buffer, challenge: Buffer, maxPriority: bigint, features?: Feature<Features>[]): Buffer;
8
8
  }