refactor: replace photon-api with progenitor #2219
Merged
ananas-block merged 35 commits intomainfrom Feb 7, 2026
Merged
Conversation
Contributor
|
Important Review skippedToo many files! This PR contains 279 files, which is 129 over the limit of 150. You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Implemented `get_compressed_mint` and `get_compressed_mint_by_pda` methods in the PhotonIndexer. - Added `get_compressed_mints_by_authority` method to retrieve compressed mints based on authority. - Introduced new data structures: `CompressedMint`, `MintData`, and `CompressedMintList` to handle compressed mint data. - Updated Photon API with new request and response models for compressed mint operations. - Enhanced error handling for API responses related to compressed mints. - Updated tests to cover new functionality for compressed mint retrieval. # Conflicts: # forester/tests/test_compressible_mint.rs # scripts/devenv/versions.sh # sdk-libs/client/src/indexer/mod.rs # sdk-libs/client/src/indexer/photon_indexer.rs # sdk-libs/client/src/indexer/types.rs # sdk-libs/photon-api/src/apis/default_api.rs # sdk-libs/photon-api/src/models/mod.rs
…files; refactor mint compression logic to handle batching and improve error handling; enhance test cases for mint creation and compression
…ons to remove Option wrapper and set default value
…int compression test with improved assertions and logging
…nt accounts refactor: streamline CI workflow in programs.yml and justfile
- Deleted models related to compressed mint requests and responses, including: - GetCompressedMintPostRequestParams - GetCompressedMintsByAuthorityPostRequest - GetMintInterfacePostRequest - CompressedMint - CompressedMintList - MintData - MintInterface - Removed associated enums and methods from the indexer and RPC implementations. - Updated relevant tests to reflect the removal of mint-related functionality.
ca798a1 to
946b3de
Compare
…tes, update Photon configuration to embed API key in URLs
ananas-block
reviewed
Feb 7, 2026
ananas-block
approved these changes
Feb 7, 2026
Contributor
ananas-block
left a comment
There was a problem hiding this comment.
Best move the changelog md to the crate itself else it will get very crowded quickly.
Else lgtm!
…ross CLI and configuration files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
photon-apiclient with progenitor-generated code from the Photon OpenAPI spec, pulled in via the newexternal/photongit submodule. Old models, docs, and the openapi-generator scaffolding are removed; the new typed client lives insrc/codegen.rsand can be regenerated withcargo build -p photon-api --features generate.api_keyacross all crates (photon-api,light-client,forester-utils,forester). The API key is now simply embedded in the URL as a query parameter (?api-key=...), eliminating dedicated fields, builder methods, CLI args, and env vars.--compressible-pda-programCLI flag to--light-pda-programin both the CLI and the forester binary.Breaking Changes
See per-crate
CHANGELOG.mdfiles for migration guides:sdk-libs/photon-api/CHANGELOG.mdsdk-libs/client/CHANGELOG.mdforester-utils/CHANGELOG.mdforester/CHANGELOG.md