Skip to content

Historical replay 2: add QuarkChain account and build genesis state#13

Draft
syntrust wants to merge 1 commit into
qkc-history-replay-1from
qkc-history-replay-2
Draft

Historical replay 2: add QuarkChain account and build genesis state#13
syntrust wants to merge 1 commit into
qkc-history-replay-1from
qkc-history-replay-2

Conversation

@syntrust

@syntrust syntrust commented Jun 9, 2026

Copy link
Copy Markdown

Summary

This PR adds the QKC-specific state encoding needed to compute historical EVM state roots:

  • Add QKC account encoding with token balances, storage root, code hash, full shard key, and optional fields.
  • Add QKC token balance serialization, including inline balances and token-trie backed balances.
  • Add QKC account/storage trie root builders.
  • Add parsing for QKC cluster genesis config, 24-byte genesis addresses, token IDs, and per-full-shard genesis allocation.
  • Add the mainnet cluster config fixture and a unit test that computes all 8 QKC genesis state roots and compares them against known mainnet roots.

Testing

Pass

go test ./...

@syntrust syntrust changed the title Add QuarkChain account and build genesis state Historical replay 2: add QuarkChain account and build genesis state Jun 10, 2026
@syntrust
syntrust force-pushed the qkc-history-replay-1 branch from d06cf09 to 605fc54 Compare June 12, 2026 02:33
@syntrust
syntrust changed the base branch from qkc-history-replay-1 to goshard/base June 12, 2026 03:01
@syntrust
syntrust changed the base branch from goshard/base to qkc-history-replay-1 June 12, 2026 03:02
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