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

3.0.0: Support special case raw binary strings #878

Merged
merged 22 commits into from
Aug 5, 2024

Conversation

jasonpaulos
Copy link
Contributor

@jasonpaulos jasonpaulos commented Jul 22, 2024

Some fields in EvalDelta are encoded as msgpack strings, but they actually contain arbitrary binary data. In order to properly decode these values in this SDK, this PR uses raw string decoding made available from our forked https://github.com/algorand/msgpack-javascript

This PR relies on unreleased changes to the msgpack library, made in this PR: algorand/msgpack-javascript#6. That should be merged and released before this is mergable.

Closes #724

tests/cucumber/docker/Dockerfile Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
@jasonpaulos jasonpaulos marked this pull request as ready for review July 29, 2024 15:36
@jasonpaulos jasonpaulos requested a review from a team as a code owner July 29, 2024 15:36
@jasonpaulos jasonpaulos requested a review from onetechnical July 29, 2024 15:36
Copy link
Contributor

@algorandskiy algorandskiy left a comment

Choose a reason for hiding this comment

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

The code LGTM. Not sure about deprecating stuff.

src/group.ts Outdated Show resolved Hide resolved
src/encoding/schema/map.ts Show resolved Hide resolved
src/encoding/schema/map.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@gmalouf gmalouf left a comment

Choose a reason for hiding this comment

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

Overall is looking good, a few comments and questions to go through.

src/encoding/encoding.ts Show resolved Hide resolved
src/encoding/encoding.ts Show resolved Hide resolved
tests/2.Encoding.ts Show resolved Hide resolved
src/encoding/schema/binarystring.ts Show resolved Hide resolved
src/encoding/schema/map.ts Show resolved Hide resolved
v2_TO_v3_MIGRATION_GUIDE.md Show resolved Hide resolved
@gmalouf gmalouf requested review from gmalouf and algorandskiy August 5, 2024 19:02
@jasonpaulos jasonpaulos merged commit bd49458 into 3.0.0 Aug 5, 2024
2 checks passed
@jasonpaulos jasonpaulos deleted the raw-string-decoding branch August 5, 2024 19:28
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.

3 participants