Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P-906 fix: update limit param to 100 for the geniidata API for BRC20 VC #2849

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

higherordertech
Copy link
Contributor

and change it to pagination query

Context

hotfix geniidata api breaking changes

Labels

Please apply following PR-related labels when appropriate:

  • C0-breaking: if your change could break the existing client, e.g. API change, critical logic change
  • C1-noteworthy: if your change is non-breaking, but is still worth noticing for the client, e.g. reference code improvement

How (Optional)

Testing Evidences

Please attach any relevant evidences if applicable

image

@higherordertech higherordertech requested review from BillyWooo and a team June 28, 2024 08:54
@@ -68,8 +68,8 @@ impl RestPath<String> for GeniidataResponse {
}
}

// According to https://geniidata.readme.io/reference/get-brc20-tick-list-copy, the maximum limit is i32::MAX
const GENIIDATA_QUERY_LIMIT: &str = "2147483647";
// According to https://geniidata.readme.io/reference/get-brc20-tick-list-copy, the maximum limit is 100
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I don't see the limit is 100 tho, the doc only says i32

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's exactly the problem. What their doc says is not their runtime response allowed, see:
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So as per my understanding it's our limit in order to do paged query

higherordertech added 2 commits July 1, 2024 12:52
…ck server to return empty response while offset param is not 0
@higherordertech higherordertech enabled auto-merge (squash) July 1, 2024 04:40
@higherordertech higherordertech merged commit 03f7c4a into dev Jul 1, 2024
33 checks passed
@Kailai-Wang Kailai-Wang deleted the hotfix-BRC20 branch July 1, 2024 07:10
@BillyWooo BillyWooo changed the title fix: update limit param to 100 for the geniidata API for BRC20 VC P-906 fix: update limit param to 100 for the geniidata API for BRC20 VC Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants