Skip to content

[handoff] fix(staking): follow the CON-471 ValidatorStake.live -> hasUnclaimedRewards rename - #116

Draft
cgmello wants to merge 1 commit into
v0.19-devfrom
con-471-rename-live-hasunclaimedrewards
Draft

[handoff] fix(staking): follow the CON-471 ValidatorStake.live -> hasUnclaimedRewards rename#116
cgmello wants to merge 1 commit into
v0.19-devfrom
con-471-rename-live-hasunclaimedrewards

Conversation

@cgmello

@cgmello cgmello commented Sep 8, 2026

Copy link
Copy Markdown

Delivery context

Handoff from the consensus team. Requested owner: genlayer-py maintainers.

Problem and outcome

genlayer-consensus#1403 renames the ValidatorStake.live tuple component to hasUnclaimedRewards (the flag marks unclaimed inflation rewards, not node liveness). The staking ABI shipped here still names the component live, so named decoding exposes the wrong key after the contracts upgrade.

This PR renames the three ValidatorStake tuple components in genlayer_py/staking/abi/staking_abi.json. No Python code in this repo reads the field.

Implementation and validation

  • ABI JSON parses (346 entries). No behavior change.
  • Coordinate delivery with the consensus rename in genlayer-consensus#1595; the selected consensus cut owns the cross-repository dependency edge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KVkzRWuHBntyhom3xqHEAG

Integration-cut relationship

The selected M2 landing cut, genlayerlabs/genlayer-consensus#1595, will include this consumer as a dependency. The rename is already in that owner composition. This PR has no reverse consensus dependency, avoiding two competing consensus refs in one resolved E2E closure. No final delivery is authorized by this metadata update.

@cgmello cgmello self-assigned this Sep 8, 2026
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cgmello cgmello removed their assignment Sep 8, 2026
…ewards rename

genlayer-consensus renames `ValidatorStake.live` to `hasUnclaimedRewards`
(the flag marks unclaimed inflation rewards, not node liveness). Update
the three ValidatorStake tuple components in the staking ABI so named
decoding exposes the new key.

Depends-On: genlayerlabs/genlayer-consensus#1403

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KVkzRWuHBntyhom3xqHEAG
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.

1 participant