babylonlabs-io / staking-api-service

Other
2 stars 6 forks source link

FP endpoint to support filtering #146

Open jrwbabylonlab opened 3 days ago

jrwbabylonlab commented 3 days ago

The v2 FP endpoint to support filtering by below:

  1. active
  2. Inactive
  3. not transitioned

Return all by default

jrwbabylonlab commented 3 days ago

We will let FE do the filter. Backend will return all FPs

Added as part of this PR https://github.com/babylonlabs-io/staking-api-service/pull/151

However, the "not yet transitioned" will still need to be handled in backend as FE has no idea about the phase-1 FP anymore

jrwbabylonlab commented 2 days ago

Decision based on the conversation with @totraev : We will return all FPs from v2 endpoint, that including the v1 ones that were injected fromt he FP file. We just mark those as not transitioned flag so that FE can do the filtering with a single API response.