You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2717a84
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
Adds staking's params to the giga params precompile's storage, for the
staking precompile to read.
- A `Staking` struct in `ParamsStorage` at slot 16: `unbondingTime`,
`maxValidators`, `maxEntries`, `maxVotingPowerRatio` and
`maxVotingPowerEnforcementThreshold`.
- `ReadStaking`, `HasStaking` and `WriteStaking`. They are written once
at genesis; later changes go through gov.
- Bounds, so a change can't wedge staking: unbonding time within the
period bounds, 1 to 100 bonded validators (the most an autobahn
committee can hold), at least one entry, and a ratio in (0, 1].
- Regenerated harness and layout testdata. Gov's param-change test now
uses only gov's own keys.
## Test plan
- [x] `go test -race ./giga/evmonly/precompiles/...`
- [x] Layout pinned against solc output; the harness's writes are read
back through Go.
## Stack
Replaces #4713. Each PR's base is the one above it; review and merge
from the top.
1. #4726 docs(giga-storage): keep only the staking structures an
on-chain path reads
2. #4727 feat(params): add the staking subspace **← this PR**
3. #4728 feat(staking): read and write the staking precompile's storage
4. #4729 feat(staking): delegate, redelegate and undelegate in a giga
evmonly precompile
5. #4730 test(staking): check delegations and EndBlock against x/staking
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Danno Ferrin <danno@seinetwork.io>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments