Skip to content

feat(tx-cache): change BundleKey cursor to use target_block_number#231

Merged
Evalir merged 2 commits into
mainfrom
evalir/feat-bundle-key-target-block-number
May 8, 2026
Merged

feat(tx-cache): change BundleKey cursor to use target_block_number#231
Evalir merged 2 commits into
mainfrom
evalir/feat-bundle-key-target-block-number

Conversation

@Evalir
Copy link
Copy Markdown
Member

@Evalir Evalir commented May 7, 2026

Description

The bundle GET endpoint in tx-pool-webservice is being switched to a new block_number_index GSI that filters bundles to a single target block. The cursor must match the new GSI key schema, so global_bundle_score_key is replaced with target_block_number in BundleKey. Copy is added to the derive list since all fields are now Copy.

Breaking type change. BundleKey is opaque continuation state returned by the server and round-tripped by clients, so the SDK bump is the only mechanical fix required for downstream consumers.

Closes ENG-2234

Related

  • Consumer PR (gates this one): init4tech/tx-pool-webservice#281

Testing

  • All signet-tx-cache lib tests pass against this change.
  • Test fixture updated for the new wire format (targetBlockNumber instead of globalBundleScoreKey).

Copy link
Copy Markdown
Member Author

Evalir commented May 7, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Evalir Evalir marked this pull request as ready for review May 7, 2026 14:28
@Evalir Evalir requested a review from a team as a code owner May 7, 2026 14:28
Evalir and others added 2 commits May 7, 2026 16:29
The bundle GET endpoint will be backed by a new block_number_index GSI
that filters bundles to a single target block. The cursor must match
the new GSI key schema, so global_bundle_score_key is replaced with
target_block_number.

Breaking type change. BundleKey is opaque continuation state returned
by the server and round-tripped by clients, so the SDK bump is the
only mechanical fix required.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Breaking type change to BundleKey requires a minor bump.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Evalir Evalir force-pushed the evalir/feat-bundle-key-target-block-number branch from f7b6e68 to e251808 Compare May 7, 2026 14:31
@Evalir Evalir merged commit 27143e5 into main May 8, 2026
8 checks passed
Evalir added a commit to init4tech/builder that referenced this pull request May 11, 2026
Pre-emptive bump to consume the upcoming 0.17.0 release of signet-sdk,
which renames the BundleKey cursor field globalBundleScoreKey to
targetBlockNumber (init4tech/signet-sdk#231).

The builder does not paginate GET /bundles directly, but signet-sdk
crates are pinned together so they all bump in lockstep. signet-bundle
dev-dep aligned to the same release.

node-components git deps are on a separate version cycle and unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Evalir added a commit to init4tech/builder that referenced this pull request May 14, 2026
* chore: bump signet-sdk to 0.17.0

Pre-emptive bump to consume the upcoming 0.17.0 release of signet-sdk,
which renames the BundleKey cursor field globalBundleScoreKey to
targetBlockNumber (init4tech/signet-sdk#231).

The builder does not paginate GET /bundles directly, but signet-sdk
crates are pinned together so they all bump in lockstep. signet-bundle
dev-dep aligned to the same release.

node-components git deps are on a separate version cycle and unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: bump deps properly

* chore: v1.2.0

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants