Skip to content

Cjl/expanded route api#3335

Merged
cody-littley merged 4 commits into
mainfrom
cjl/expanded-route-api
Apr 30, 2026
Merged

Cjl/expanded route api#3335
cody-littley merged 4 commits into
mainfrom
cjl/expanded-route-api

Conversation

@cody-littley

Copy link
Copy Markdown
Contributor

Describe your changes and provide context

Adds methods to the Router interface that allows a router to handle requests to iterate and requests for membership proofs.

Testing performed to validate your change

unit tests

@github-actions

github-actions Bot commented Apr 29, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 30, 2026, 7:23 PM

@codecov

codecov Bot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.14%. Comparing base (f31742f) to head (e1d3e69).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3335      +/-   ##
==========================================
- Coverage   59.18%   59.14%   -0.04%     
==========================================
  Files        2097     2097              
  Lines      172489   172353     -136     
==========================================
- Hits       102092   101944     -148     
- Misses      61542    61550       +8     
- Partials     8855     8859       +4     
Flag Coverage Δ
sei-chain-pr 81.44% <100.00%> (?)
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sei-db/state_db/sc/migration/migration_manager.go 96.27% <100.00%> (+0.10%) ⬆️
sei-db/state_db/sc/migration/migration_types.go 80.00% <ø> (ø)
sei-db/state_db/sc/migration/module_router.go 100.00% <100.00%> (ø)

... and 42 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


// An object capable of routing/splitting reads and writes between databases.
type Router interface {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove extra line here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed


// Get a proof of the value for a key in a store. Some stores may not support proofs,
// and this method will return an error in that case.
GetProof(store string, key []byte) (*ics23.CommitmentProof, error)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe reserved for another PR but do we need a Has() method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in slack thread, this will be handled by a higher layer.

@cody-littley cody-littley enabled auto-merge April 29, 2026 17:04
@cody-littley cody-littley added this pull request to the merge queue Apr 30, 2026
Merged via the queue into main with commit c659ff4 Apr 30, 2026
38 checks passed
@cody-littley cody-littley deleted the cjl/expanded-route-api branch April 30, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants