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

feat: v2 endpoint for pruned snapshot that returns entities as raw bytes #215

Merged
merged 11 commits into from
Oct 28, 2022

Conversation

ghost
Copy link

@ghost ghost commented Oct 22, 2022

Request format is the same, the difference is the endpoint has V2 appended to /GetStateLatestStreamPruned and the response is different since stateEntities is now an array of bytes i.e. array of Uint8Array

@ghost ghost requested a review from alvrs October 22, 2022 01:31
@alvrs alvrs force-pushed the authcall/entity-id-optimizations branch from b35d533 to 6ab0a90 Compare October 22, 2022 22:22
@alvrs alvrs force-pushed the authcall/entity-id-optimizations branch from ad67525 to 4148c5e Compare October 26, 2022 08:52
@alvrs alvrs merged commit 28cce1e into main Oct 28, 2022
github-actions bot pushed a commit that referenced this pull request Oct 28, 2022
…tities as raw bytes (#215)

* feat: v2 endpoint for pruned snapshot that returns entities as raw bytes

* feat(network): integrate getStateLatestStreamPrunedV2

* fix(utils): handle hex array with length 0

* fix: use hexutil.Decode

* fix: convert entity id uint8 array to string once

* chore: debug invalid entity index

* fix: use decodebig for parsing hex encoded entity id uint256

* feat(snapshot): add GetStateLatestStreamV2 endpoint

* fix(network): call getStateLatestStreamV2 if no prune options are provided

Co-authored-by: alvrs <alvarius@lattice.xyz>
@ghost ghost deleted the authcall/entity-id-optimizations branch October 29, 2022 00:35
LPSCRYPT pushed a commit to LPSCRYPT/esp that referenced this pull request Jan 23, 2023
…tes (latticexyz#215)

* feat: v2 endpoint for pruned snapshot that returns entities as raw bytes

* feat(network): integrate getStateLatestStreamPrunedV2

* fix(utils): handle hex array with length 0

* fix: use hexutil.Decode

* fix: convert entity id uint8 array to string once

* chore: debug invalid entity index

* fix: use decodebig for parsing hex encoded entity id uint256

* feat(snapshot): add GetStateLatestStreamV2 endpoint

* fix(network): call getStateLatestStreamV2 if no prune options are provided

Co-authored-by: alvrs <alvarius@lattice.xyz>
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

1 participant