Skip to content

Conversation

@lempira
Copy link
Contributor

@lempira lempira commented Nov 21, 2025

This PR expands the mock server's algod API endpoint coverage and adds support for binary msgpack response handling. The main addition is a comprehensive set of algod request functions covering blocks, transactions, state proofs, applications with boxes, and pending transactions. To support algod's binary msgpack responses, a beforePersist hook was implemented to ensure proper base64 encoding in HAR recordings. Additionally, several utility scripts were added to help discover specific blockchain data patterns needed for testing, such as finding transaction groups, state proofs, and applications with box storage. The recording module was refactored to use these modular request functions, making the codebase more maintainable and organized. The HAR recordings have been updated with the newly captured endpoints.

@lempira lempira requested a review from joe-p November 21, 2025 18:52
- Add comprehensive algod request functions in src/requests/algodRequests.ts
- Add beforePersist hook to ensure msgpack responses are base64 encoded
- Refactor record.ts to use modular request functions
- Update HAR recordings with complete endpoint coverage
- Add indexer and kmd request modules
- Add URL rewriting in getPolly to convert localhost:4001 to TestNet during recording
- Remove algosdkAlgodRequestsWithLocalnet function and dependency
- Add TestNet box storage endpoints using xgov app
- Update algod recordings with new TestNet box data
@lempira lempira force-pushed the chore/algod-integration-updates branch from 43afdad to 2494320 Compare November 24, 2025 14:15
@lempira lempira merged commit 34e2581 into main Nov 24, 2025
1 check passed
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