juno icon indicating copy to clipboard operation
juno copied to clipboard

refactor(starknet): change BlockIdentifier from string to typed uint64

Open 0xsamalt opened this issue 5 months ago • 0 comments

  • Introduces starknet.BlockIdentifier as a named uint64 type with custom UnmarshalJSON that handles both hex string (ex: "0x...") and bare integers.
  • Changes PreConfirmedDeltaUpdate.BlockIdentifier and PreConfirmedBlock.BlockIdentifier from string to the new BlockIdentifier type.
  • Changes pending.PreConfirmed.BlockIdentifier from string to uint64 (raw, to avoid a circular import from core/pending → starknet).
  • Updates all mocks, adapters, and tests to match the new types.

0xsamalt avatar Jun 30 '26 16:06 0xsamalt