juno
juno copied to clipboard
refactor(starknet): change BlockIdentifier from string to typed uint64
- 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.