Skip to content

KIP-290: sync interface with kaia#871, #872, #876#115

Merged
hyunsooda merged 2 commits intokaiachain:mainfrom
hyunsooda:feat/kip290-interface-sync
May 6, 2026
Merged

KIP-290: sync interface with kaia#871, #872, #876#115
hyunsooda merged 2 commits intokaiachain:mainfrom
hyunsooda:feat/kip290-interface-sync

Conversation

@hyunsooda
Copy link
Copy Markdown
Contributor

@hyunsooda hyunsooda commented Apr 24, 2026

Sync IAddressBookV2 interface and NodeInfo struct in KIP-290 with kaia#871, #872, #876.

kaia#871slotFactorepochVACount rename in processSystemTransition and EpochTransitionProcessed

kaia#872 — RBAC roles: add updateSuspender, updateConfigurator, assignGcId; add errors OnlySuspender, OnlyConfigurator, GcIdAlreadyAssigned, InsufficientNodeBalance; add events SuspenderUpdated, ConfiguratorUpdated

kaia#876NodeInfo.name field; createNode name param; revokeGcId; fix NodeCreated event (remove gcId param); add GcIdNotAssigned error; remove name from metadata JSON schema

@hyunsooda hyunsooda marked this pull request as draft April 24, 2026 05:14
- Add string name field to NodeInfo struct (between blsInfo and metadata)
- Remove name from metadata JSON schema; add note that name is a top-level NodeInfo field
- Update NodeCreated event: remove gcId param (now assigned via assignGcId)
- Update EpochTransitionProcessed: slotFactor → epochVACount
- Update processSystemTransition: epochSlotFactor → epochVACount
- Add errors: OnlySuspender, OnlyConfigurator, InsufficientNodeBalance, GcIdAlreadyAssigned, GcIdNotAssigned
- Add events: ValidatorSuspended, ValidatorUnsuspended, SuspenderUpdated, ConfiguratorUpdated
- Add admin functions: updateSuspender, updateConfigurator, assignGcId, revokeGcId
- Update createNode signature: add name param before metadata
- Update admin section: reflect suspender/configurator roles
- Add getters: getSuspender, getConfigurator, getEpochVACount (replaces getSlotFactor)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hyunsooda hyunsooda force-pushed the feat/kip290-interface-sync branch from 0d5aa04 to 1160b31 Compare April 24, 2026 05:16
@hyunsooda hyunsooda changed the title feat(kip-290): sync interface with kaia#871, #872, #876 KIP-290: sync interface with kaia#871, #872, #876 Apr 24, 2026
@hyunsooda hyunsooda marked this pull request as ready for review April 24, 2026 05:19
- Replace SuspenderUpdated/ConfiguratorUpdated with unified AddressConfigUpdated
- Add UintConfigUpdated for config update events
- Add GcIdAssigned, CandidateReadied, CandidateUnreadied, ValidatorsInitialized

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hyunsooda
Copy link
Copy Markdown
Contributor Author

@hyeonLewis Sorry for the last update. Updated by https://github.com/kaiachain/system-contracts/pull/157.

@hyunsooda hyunsooda merged commit 2006f31 into kaiachain:main May 6, 2026
2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants