wormhole-explorer/api/middleware
agodnic 0f1797e44a
[API] Add `toChain` filter to `GET /api/v1/vaas/{emitterChain}/{emitterAddr}` (#598)
### Description

This pull request adds the parameter `toChain` to the endpoint `GET /api/v1/vaas/{emitterChain}/{emitterAddress}`.

Other VAA-related endpoints do not support this parameter.

Additionally, for performance reasons, a composite index must be created in MongoDB: `db.parsedVaa.createIndex({"emitterChain": -1, "emitterAddr": -1, "rawStandardizedProperties.toChain": -1, "indexedAt": -1})`
2023-08-01 16:38:34 -03:00
..
error_handler.go Feature/refactor api (#34) 2022-11-23 09:06:29 -03:00
extract_pagination.go Sort the output of `GET /api/v1/vaas` by timestamp (#267) 2023-04-28 10:18:07 -03:00
extract_parameters.go [API] Add `toChain` filter to `GET /api/v1/vaas/{emitterChain}/{emitterAddr}` (#598) 2023-08-01 16:38:34 -03:00