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

Box support for Application calls and Atomic Transaction Composer #338

Merged
merged 39 commits into from
Jun 15, 2022

Conversation

algochoi
Copy link
Contributor

@algochoi algochoi commented May 20, 2022

This PR includes support for the boxes field for appl calls in the Python SDK. Credit to @barnjamin who co-authored and started the foundation for this work.

Changes:

  • Adds the BoxReference type that represents the app index (in the foreign app array) and the name of box to reference
  • Adds translation between app ID and foreign app array for boxes. The implementation is based on the goal command in this PR.
  • Adds some unit tests and cucumber tests.
  • Cleaned up some imports using VSCode.

TODO:

  • Revert test branch to master after the SDK box feature branch is merged

@@ -7,7 +7,8 @@ pushd $rootdir

# Reset test harness
rm -rf test-harness
git clone --single-branch --branch master https://github.com/algorand/algorand-sdk-testing.git test-harness
# TODO: Before merging, change branch back to master
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Revert this back to master before merging

algosdk/box_reference.py Outdated Show resolved Hide resolved
algosdk/box_reference.py Outdated Show resolved Hide resolved
algosdk/box_reference.py Outdated Show resolved Hide resolved
test/steps/v2_steps.py Outdated Show resolved Hide resolved
@tzaffi
Copy link
Contributor

tzaffi commented Jun 3, 2022

@algochoi - please consider #344

* Unit test for encoding.py's `encode_as_bytes()`
Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

I'm approving with the contingency that this shouldn't be merged until algorand/algorand-sdk-testing#181 has been merged, and that right before the merge of this py-algorand-sdk PR, the sdk branch referenced in run_integration.sh should point to feature/box-storage

algosdk/box_reference.py Outdated Show resolved Hide resolved
@algochoi algochoi merged commit d056766 into feature/box-storage Jun 15, 2022
@algochoi algochoi deleted the box-support branch June 15, 2022 14:58
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