bcnmy / bcnmy/userop-debugger-backend
Add decoding logic for all EntryPoint V6 Error codes
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Current code has the logic for decoding AA21 error from EP. Need to add decoding logic for all other error codes as well.
List of error codes can be found in in [error types file](https://github.com/bcnmy/userop-debugger-backend/blob/feat/add-guides/src/types/errors.ts)
### Steps to follow
- Add new class representing a error code in `src/service/errorDecoder/providers/entrypoint/decoders` directory.
Reference error file for [AA21 Error](https://github.com/bcnmy/userop-debugger-backend/blob/feat/add-guides/src/service/errorDecoder/providers/entrypoint/decoders/AA21Decoder.ts) can be used to create other error files.
- Add the error class instance in `errorDecoderMap` in [EntryPointV6ErrorResolver](https://github.com/bcnmy/userop-debugger-backend/blob/feat/add-guides/src/service/errorDecoder/providers/entrypoint/EntryPointV6ErrorResolver.ts) class.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading src/types/errors.ts to enumerate the EntryPoint V6 error codes, then use src/service/errorDecoder/providers/entrypoint/decoders/AA21Decoder.ts as the reference. Add decoder classes under the decoders directory and register each instance in EntryPointV6ErrorResolver.ts's errorDecoderMap. Done means all listed codes have decoding logic and are registered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100