Skip to content

Comments

feat: Add block number tracking and oracle state fetching#245

Merged
ByteYue merged 5 commits intomainfrom
record_block_number
Feb 6, 2026
Merged

feat: Add block number tracking and oracle state fetching#245
ByteYue merged 5 commits intomainfrom
record_block_number

Conversation

@ByteYue
Copy link
Contributor

@ByteYue ByteYue commented Feb 4, 2026

  • Add blockNumber field to JWK oracle commitMessageSent ABIs
  • Extract and carry source block number from MessageSent events
  • Add OracleStateFetcher to fetch latest DataRecord from NativeOracle
  • Add persistence module for tracking processed state across restarts
  • Remove auto-discovery from BlockchainEventSource, use explicit cursor
  • Update gravity-api-types dependency to latest revision

This enables the relayer to track the source block number for each oracle
event and fetch consistent oracle state from the chain, improving state
reconciliation across restarts.

@ByteYue ByteYue force-pushed the record_block_number branch 3 times, most recently from 5f79c99 to fe41659 Compare February 5, 2026 08:59
@ByteYue ByteYue changed the title enhance: Record relayer progress for exactly once feat: Add block number tracking and oracle state fetching Feb 5, 2026
@ByteYue ByteYue force-pushed the record_block_number branch 2 times, most recently from d8ccadb to c739549 Compare February 5, 2026 10:01
add oracle state config

add fetch
@ByteYue ByteYue force-pushed the record_block_number branch from c739549 to 0c13ce5 Compare February 5, 2026 12:21
@ByteYue ByteYue merged commit 6ddb557 into main Feb 6, 2026
25 of 40 checks passed
@nekomoto911 nekomoto911 deleted the record_block_number branch February 6, 2026 13:30
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.

2 participants