Skip to content

Box support for Application calls and Atomic Transaction Composer#338

Merged
algochoi merged 39 commits into
feature/box-storagefrom
box-support
Jun 15, 2022
Merged

Box support for Application calls and Atomic Transaction Composer#338
algochoi merged 39 commits into
feature/box-storagefrom
box-support

Conversation

@algochoi
Copy link
Copy Markdown
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

Comment thread algosdk/atomic_transaction_composer.py
Comment thread run_integration.sh
# 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
Copy Markdown
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

Comment thread algosdk/future/transaction.py Outdated
Comment thread algosdk/atomic_transaction_composer.py
Comment thread algosdk/box_reference.py Outdated
Comment thread algosdk/box_reference.py Outdated
Comment thread algosdk/box_reference.py
Comment thread algosdk/box_reference.py Outdated
Comment thread algosdk/future/transaction.py Outdated
Comment thread test/steps/v2_steps.py Outdated
@tzaffi
Copy link
Copy Markdown
Contributor

tzaffi commented Jun 3, 2022

@algochoi - please consider #344

* Unit test for encoding.py's `encode_as_bytes()`
Copy link
Copy Markdown
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

Comment thread algosdk/box_reference.py Outdated
Comment thread algosdk/future/transaction.py
@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