Skip to content

Boxes: Add support for Boxes#341

Merged
michaeldiamant merged 30 commits into
developfrom
feature/box-storage
Nov 2, 2022
Merged

Boxes: Add support for Boxes#341
michaeldiamant merged 30 commits into
developfrom
feature/box-storage

Conversation

@michaeldiamant
Copy link
Copy Markdown
Contributor

@michaeldiamant michaeldiamant commented Jul 6, 2022

Adds SDK support for Boxes introduced in algorand/indexer#1168 and algorand/go-algorand#4149.

michaeldiamant and others added 9 commits July 8, 2022 13:30
* Merge develop into feature/box-storage

* Finish merging makefile
* Github-Actions: Adding pr title and label checks (#336)

* Dev Tools: Source map decoder (#335)

* Updated CHANGELOG.md

* AVM:  Consolidate TEAL and AVM versions (#345)

* Testing: Use Dev mode network for cucumber tests (#349)

* AVM: Use avm-abi repo (#352)

* Updated CHANGELOG.md

* Enhancement: Use Sandbox for Testing (#360)

Co-authored-by: Michael Diamant <michaeldiamant@users.noreply.github.com>

* Bug-Fix: passthru verbosity (#371)

* Enhancement: Deprecating use of langspec (#366)

Co-authored-by: Michael Diamant <michaeldiamant@users.noreply.github.com>

* StateProof: State proof support (#374)

* Regenerate client.

* Update txn and block objects, cucumber tests passing.

* Enable cucumber tests.

* Update types/stateproof.go

* Add transactions-root-256

* Remove unused code.

* Remove unused file

* Add txn commitments blockheader fields

* Rename signature, add allocbound definitions

* Add txn commitment to header

* PR comments

* Remove unused file

Co-authored-by: Will Winder <wwinder.unh@gmail.com>

* State Proofs: Use generic type for StateProof txn field. (#378)

* Use generic type for StateProof txn field.

* Add missing type.

* Remove GenericDigest.

* fix type assertion on source map version (#370)

* let the json package figure out how to decode the elements of the incoming map (#380)

* StateProof: State Proof Verification additions (#377)

* Regenerate client.

* Remove unused file

* moved files from stateproof verification repo

* now using updated go-stateproof-verification

* fixed go mod

* moved consts near their usage

* added working state proof verifier test

* added unit test and resources

* now using go 1.15 supported function

* changes to avoid dependency of stateproof verification on SDK

* added needed types to stateproof.go for message hashing

* reverted packages, now using up to date go-stateproof-verification

* CR: renamed verification functions

* hashing sp message is now in crypto

* removed hashing of light block header

* CR: now allocating space upfront in hashing state proof message

* attempting to use embedded files

* CR: using GenericDigest in block.go

* CR: Renamed package to match directory

* Removed go 1.15 from CI

* improved embed usage

* CR: removed stateproof verification logic

* tidied go mod file

Co-authored-by: Will Winder <wwinder.unh@gmail.com>
Co-authored-by: Eric Warehime <eric.warehime@gmail.com>

* State Proofs: added compute leaf function for light block header to sdk (#382)

* added compute leaf function for light block header to sdk

* renamed blockheader256

* changed passed type to pointer

* reverted back to copying

* renamed light block header hash func (#383)

* Enable stpf cucumber unit tests (#386)

Co-authored-by: Jack <87339414+algojack@users.noreply.github.com>
Co-authored-by: Ben Guidarelli <ben.guidarelli@gmail.com>
Co-authored-by: Jack Smith <jack.smith@algorand.com>
Co-authored-by: Michael Diamant <michaeldiamant@users.noreply.github.com>
Co-authored-by: algochoi <86622919+algochoi@users.noreply.github.com>
Co-authored-by: Jason Paulos <jasonpaulos@users.noreply.github.com>
Co-authored-by: Barbara Poon <barbara.poon@algorand.com>
Co-authored-by: Zeph Grunschlag <tzaffi@users.noreply.github.com>
Co-authored-by: Eric Warehime <eric.warehime@gmail.com>
Co-authored-by: Will Winder <wwinder.unh@gmail.com>
Co-authored-by: Almog Tal <107349997+almog-t@users.noreply.github.com>
* Add generated code paths for indexer boxes

* Add indexer path tests for boxes

* Temporarily point testing branch to indexer-boxes

* next

* uniform with prev style

* @unit.applications.boxes

* Update .test-env

Co-authored-by: Hang Su <hang.su@algorand.com>
Co-authored-by: Hang Su <87964331+ahangsu@users.noreply.github.com>
* add indexer impl in sdk

* merge step for indexer

* add indexer confirmed steps

* remove all the logs, hope sleep do the trick

* minor

* sleep as ms

* per new step expectation

* unify with applications.boxes

* phrasing

* Update .test-env

* minor
Comment thread .test-env Outdated
Comment thread test/integration.tags Outdated
@ahangsu ahangsu marked this pull request as ready for review September 20, 2022 17:03
Comment thread encoding/box_query_encoding.go Outdated
Comment thread future/transaction.go
Copy link
Copy Markdown
Contributor

@ahangsu ahangsu left a comment

Choose a reason for hiding this comment

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

approving for parts other than test looks right to me

Comment thread test/algodclientv2_test.go Outdated
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.

LGTM

Comment thread client/v2/common/models/boxes_response.go
Comment thread future/transaction.go Outdated
Comment thread encoding/box_query_encoding.go Outdated
Comment thread test/applications_integration_test.go Outdated
Comment thread test/applications_integration_test.go Outdated
@jasonpaulos
Copy link
Copy Markdown
Contributor

I've created child PRs #410 and #411 to address my above comments -- review would be welcome

@michaeldiamant michaeldiamant changed the title Boxes: Merge feature/box-storage into develop Boxes: Add support for Boxes Oct 31, 2022
Comment thread .test-env Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants