wormhole-explorer/api/middleware
agodnic 533b83ad28
[API] Accept additional address formats (#170)
### Summary

Context: https://github.com/wormhole-foundation/wormhole-explorer/issues/154

This PR modifies all endpoints that receive an emitter/guardian address to accept a wider range of formats.
After this pull request, all of these are equivalent:
* `0x000000000000000000000000f890982f9310df57d00f659cf4fd87e65aded8d7`
* `000000000000000000000000f890982f9310df57d00f659cf4fd87e65aded8d7`
* `0xf890982f9310df57d00f659cf4fd87e65aded8d7`
* `f890982f9310df57d00f659cf4fd87e65aded8d7`

### Testing plan
* Added unit tests for the parsing code.
* Tested manually a few of the affected endpoints.
2023-02-28 17:50:23 -03:00
..
error_handler.go Feature/refactor api (#34) 2022-11-23 09:06:29 -03:00
extract_pagination.go [API] Several fixes related to pagination (#144) 2023-02-09 14:28:39 -03:00
extract_parameters.go [API] Accept additional address formats (#170) 2023-02-28 17:50:23 -03:00