juno
juno copied to clipboard
refactor(starknet): replace BlockStatus string with typed enum
- Introduces BlockStatus as a typed uint8 enum in starknet/block.go with constants BlockPending, BlockAcceptedOnL1, BlockAcceptedOnL2, BlockRejected, and BlockPreConfirmed
- Adds UnmarshalText so the feeder JSON response deserialises directly into the enum and invalid status strings now return an error
- Updates all comparison sites and test assertions to use the typed constants