Skip to content

Comments

feature(onchain_config): align with new contract ABIs from gravity_chain_core_contracts#231

Merged
nekomoto911 merged 2 commits intomainfrom
support_whole_new_contract
Jan 17, 2026
Merged

feature(onchain_config): align with new contract ABIs from gravity_chain_core_contracts#231
nekomoto911 merged 2 commits intomainfrom
support_whole_new_contract

Conversation

@ByteYue
Copy link
Contributor

@ByteYue ByteYue commented Jan 12, 2026

BREAKING CHANGE: OrderedBlock API changed

- Replace blockPrologue/blockPrologueExt with onBlockStart from Blocker.sol
  - proposer: Option<[u8; 32]> -> proposer_index: Option<u64>
  - Remove enable_randomness parameter
- Update ValidatorSet fetcher to use getActiveValidators() instead of getValidatorSet()
- Replace ValidatorInfo/ValidatorSet with ValidatorConsensusInfo struct
- Replace AllValidatorsUpdated event with NewEpochEvent from Reconfiguration.sol
- Update contract addresses to match SystemAddresses.sol:
  - CONSENSUS_CONFIG_ADDR (0x1625f1007)
  - VALIDATOR_MANAGER_ADDR (0x1625f2001)
- Remove legacy backward-compatibility code

@ByteYue ByteYue force-pushed the support_whole_new_contract branch 2 times, most recently from 68c8f44 to 7d4d3ed Compare January 13, 2026 13:36
@ByteYue ByteYue changed the title feat: Use whole new system contract refactor(onchain_config): align with new contract ABIs from gravity_chain_core_contracts Jan 13, 2026
@ByteYue ByteYue force-pushed the support_whole_new_contract branch 10 times, most recently from 375be05 to 356bfcc Compare January 15, 2026 14:21
#225)

use sharding rocksdb instances to optimize persist stage
@ByteYue ByteYue force-pushed the support_whole_new_contract branch from 2302cb1 to a48ae4b Compare January 16, 2026 03:50
@nekomoto911 nekomoto911 merged commit 630784f into main Jan 17, 2026
15 of 38 checks passed
@nekomoto911 nekomoto911 changed the title refactor(onchain_config): align with new contract ABIs from gravity_chain_core_contracts feature(onchain_config): align with new contract ABIs from gravity_chain_core_contracts Jan 17, 2026
@github-actions
Copy link
Contributor

Your PR title doesn't follow the Conventional Commit guidelines.

Example of valid titles:

  • feat: add new user login
  • fix: correct button size
  • docs: update README

Usage:

  • feat: Introduces a new feature
  • fix: Patches a bug
  • chore: General maintenance tasks or updates
  • test: Adding new tests or modifying existing tests
  • bench: Adding new benchmarks or modifying existing benchmarks
  • perf: Performance improvements
  • refactor: Changes to improve code structure
  • docs: Documentation updates
  • ci: Changes to CI/CD configurations
  • revert: Reverts a previously merged PR
  • deps: Updates dependencies

Breaking Changes

Breaking changes are noted by using an exclamation mark. For example:

  • feat!: changed the API
  • chore(node)!: Removed unused public function

Help

For more information, follow the guidelines here: https://www.conventionalcommits.org/en/v1.0.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants