Skip to content

Add staking queries and distr events to precompiles#2623

Merged
codchen merged 3 commits intomainfrom
tony/add-staking-qs
Dec 19, 2025
Merged

Add staking queries and distr events to precompiles#2623
codchen merged 3 commits intomainfrom
tony/add-staking-qs

Conversation

@codchen
Copy link
Copy Markdown
Collaborator

@codchen codchen commented Dec 17, 2025

Describe your changes and provide context

  • Add queries in the staking precompile for all Cosmos querier counterparts
  • Add events for all methods in the distribution precompile

Testing performed to validate your change

unit tests

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 17, 2025

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 23, 2025, 4:09 PM

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 74.17103% with 148 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.71%. Comparing base (9f19942) to head (09e3088).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
precompiles/staking/staking.go 76.06% 73 Missing and 51 partials ⚠️
precompiles/distribution/distribution.go 55.55% 16 Missing and 8 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2623      +/-   ##
==========================================
+ Coverage   43.62%   43.71%   +0.09%     
==========================================
  Files        1899     1899              
  Lines      158402   158894     +492     
==========================================
+ Hits        69096    69456     +360     
- Misses      82966    83030      +64     
- Partials     6340     6408      +68     
Flag Coverage Δ
sei-chain 45.70% <74.12%> (+0.19%) ⬆️
sei-cosmos 38.03% <100.00%> (-0.01%) ⬇️
sei-db 69.06% <ø> (ø)
sei-tendermint 47.52% <ø> (-0.02%) ⬇️

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

Files with missing lines Coverage Δ
precompiles/utils/expected_keepers.go 0.00% <ø> (ø)
sei-cosmos/x/staking/keeper/grpc_query.go 64.53% <100.00%> (+0.11%) ⬆️
precompiles/distribution/distribution.go 75.67% <55.55%> (-6.27%) ⬇️
precompiles/staking/staking.go 77.73% <76.06%> (-0.48%) ⬇️

... and 15 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.

@codchen codchen force-pushed the tony/add-staking-qs branch 2 times, most recently from d685b2c to e21addf Compare December 18, 2025 06:21
@codchen codchen force-pushed the tony/add-staking-qs branch from e73b5a4 to 09e3088 Compare December 19, 2025 04:30
@codchen codchen enabled auto-merge (squash) December 19, 2025 04:32
@codchen codchen merged commit e5a56ab into main Dec 19, 2025
39 checks passed
@codchen codchen deleted the tony/add-staking-qs branch December 19, 2025 04:58
@philipsu522
Copy link
Copy Markdown
Contributor

/backport

github-actions bot pushed a commit that referenced this pull request Dec 23, 2025
## Describe your changes and provide context
- Add queries in the staking precompile for all Cosmos querier
counterparts
- Add events for all methods in the distribution precompile

## Testing performed to validate your change
unit tests

(cherry picked from commit e5a56ab)
@github-actions
Copy link
Copy Markdown

Successfully created backport PR for release/v6.3:

philipsu522 pushed a commit that referenced this pull request Dec 23, 2025
…ompiles (#2643)

Backport of #2623 to `release/v6.3`.

Co-authored-by: Tony Chen <codchen03@gmail.com>
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