Conversation
Make Promise.safeAll generic over tuple/array types (T extends readonly unknown[] | []), returning a mapped Promise type { -readonly [P in keyof T]: Awaited<T[P]> } so callers receive precise element types and awaited results. Update the local unwrappedValues variable to match the new mapped type. This is a type-only improvement; no runtime behavior changes.
Bump multiple dependencies and devDependencies to newer versions for compatibility and bug fixes. Notable changes: upgrade @asyncapi packages, @btc-vision libs (including bitcoin/bip32 to v7 series and transaction to rc), add @btc-vision/ecpair and opnet, switch @btc-vision/op-vm to a local file reference, bump @noble/secp256k1, bip174 and various tooling (eslint, @typescript-eslint, vitest, @types/node). These updates refresh transitive deps and tooling to align with recent releases.
Align codebase with updated @btc-vision/bitcoin and @btc-vision/ecpair APIs: switch script/byte handling to Uint8Array/Script types, use createPublicKey/createBytes32/createSatoshi/createLegacyBackend/UniversalSigner where appropriate, and replace direct Buffer assumptions with explicit Buffer.from conversions. Also use toHex for hex output, wrap raw crypto outputs in Buffer when required, update opcode/script type checks to instanceof Uint8Array, and adjust payments/taproot/tweak flows to accept Script/Uint8Array. Changes touch merkle, epoch, transaction parsing, inputs/transactions (Deployment/Interaction/SharedInteractionParameters), solvers (AnyoneCanSpendDetector/UTXOSorter), DB public key handling, identity/mempool utils, address decoding, VMManager, and related utilities to ensure consistent binary types and compatibility with the newer libs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Checklist
Build & Tests
npm installcompletes without errorsnpm run buildcompletes without errorsnpm testpasses all testsCode Quality
Documentation
Security
OPNet Node Specific
Testing
Consensus Impact
Related Issues
By submitting this PR, I confirm that my contribution is made under the terms of the project's license.