Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Bumps @noble/ciphers, @noble/curves, @noble/hashes, @scure/bip32,
and @scure/bip39 to v2 and refactors crypto wrappers to the new APIs
(Uint8Array signatures, Point.fromBytes, Signature.fromBytes/toBytes,
bls.longSignatures, randomSecretKey, .js import extensions).
Adds an internal helper for converting between ox's { r, s, yParity }
Signature shape and noble's compact/recovered byte layouts. Restores
ImportMeta.env types for tests now that vitest v4 dropped them.
Amp-Thread-ID: https://ampcode.com/threads/T-019e05c5-ba3e-711e-8ea5-532440226027
Bumps @noble/ciphers, @noble/curves, @noble/hashes, @scure/bip32,
and @scure/bip39 to v2 and refactors crypto wrappers to the new APIs
(Uint8Array signatures, Point.fromBytes, Signature.fromBytes/toBytes,
bls.longSignatures, randomSecretKey, .js import extensions).
Adds an internal helper for converting between ox's { r, s, yParity }
Signature shape and noble's compact/recovered byte layouts. Restores
ImportMeta.env types for tests now that vitest v4 dropped them.
Amp-Thread-ID: https://ampcode.com/threads/T-019e05c5-ba3e-711e-8ea5-532440226027
The tempo node returns a blockTimestamp on transaction responses; add it to the core Transaction type, parse it in fromRpc, and serialize it in toRpc. Updates the tempo e2e tests to assert it on transactions returned via Transaction.fromRpc. Amp-Thread-ID: https://ampcode.com/threads/T-019e05c5-ba3e-711e-8ea5-532440226027
…h SignatureEnvelope.from Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165
Implementation for the changeset added in 2b32e0c (the source change was lost in a concurrent stash on the previous commit). Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165
…n TransactionRequest.toRpc Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a8a740d3ed8f
Filter.Filter (and Filter.Rpc) now express the execution-apis filter.yaml oneOf schema: callers may supply either fromBlock/toBlock or blockHash. Filter.toRpc forwards blockHash when present. Amp-Thread-ID: https://ampcode.com/threads/T-019e4422-9e7a-70de-bb9e-51613fe54d38
Adds `// @noErrors` to JSDoc example snippets that intentionally trigger type or runtime errors so they're recognized by zile's examples:check. Also fixes two `Siwe.createMessage` examples in src/index.ts that used `chainId: 1` instead of the required `chainId: 1n`. Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b
Bumps zile to ^0.0.26 to pick up the `examples:check` command for typechecking JSDoc snippets, adds a `pnpm check:examples --fix` script, and runs it (without `--fix`) in the Verify CI job. Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b
`Log.fromRpc` now converts `blockTimestamp` to bigint; the `TransactionReceipt` test snapshot was still expecting the raw hex string. Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b
Some RPC servers return `Content-Type: application/json` with an empty body for error responses (e.g. `401 Unauthorized`). Previously `response.json()` would throw a confusing `SyntaxError: Unexpected end of JSON input` instead of surfacing the underlying HTTP error. Now always read the response as text and parse JSON manually, so empty bodies fall through to the existing `HttpError` path. Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b
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.
Breaking changes
Hex-encoded crypto coordinates. Migrated
Signature,PublicKey,BlsPoint, and all envelope types (Transaction, Authorization, ERC envelopes, Tempo) frombigintr/s/x/y/Fp/Fp2to paddedHex.Hex(32-byte for secp256k1/P256/WebAuthnP256, 48-byte for BLS12-381). ThebigintTypegeneric is removed.@noble/*v2. Upgraded@noble/ciphers,@noble/curves,@noble/hashes,@scure/bip32,@scure/bip39. ECDSA signatures (Secp256k1,P256) now default tolowS: true. Module.noblere-exports follow v2 (randomSecretKey,Point,bls.longSignatures.*, etc.).PeerDAS (EIP-7594) blob model. Removed the EIP-4844 blob-sidecar surface (
Blobs.toSidecars,Blobs.BlobSidecar(s),TxEnvelopeEip4844.sidecars,Kzg.Kzg.computeBlobKzgProof). Added theBlobCellsmodule for cell/column propagation. KZG backends must implementcomputeCells,computeCellsAndKzgProofs,recoverCellsAndKzgProofs,verifyCellKzgProofBatch.ABI decode checksums by default.
AbiParameters.decode(and downstreamAbiFunction/AbiEvent/AbiErrordecoders) checksum decodedaddressoutputs. Opt out withchecksumAddress: false.Notable additions
Crypto serialized inputs and
asoption.Secp256k1,P256,WebCryptoP256, andBlsnow acceptHex.Hex | Bytes.Bytes | Signature.Signature | PublicKey.PublicKeyforsignature/publicKeyparams, and exposeas: 'Hex' | 'Bytes' | 'Object'onsign/getPublicKey/recoverPublicKey.AbiEvent.decodeLog. Extract and decode an event log directly from an ABI.AbiEvent.extractLogs. Filter and decode logs from a batch against an ABI.AbiError.extract. Select the matching ABI error from revert data and decode its arguments.AbiFunction.decodeDataselector inference. Pass an ABI plus calldata and the function is resolved from the 4-byte selector. Decoding selector-only calldata for a function with inputs now throwsAbiParameters.DataSizeTooSmallErrorinstead of silently returningundefined, and constructorlessAbiConstructordeploy data is now allowed when there are no arguments.Transaction envelope router.
TxEnvelope.from/serialize/deserialize/hash/getSignPayload/toRpcinfer the envelope type from input properties and route to the matchingTxEnvelopeLegacy/TxEnvelopeEip2930/TxEnvelopeEip1559/TxEnvelopeEip4844/TxEnvelopeEip7702module.