Skip to content

chore: cleanup light client and light-program-test#1720

Merged
ananas-block merged 3 commits into
mainfrom
jorrit/chore-cleanup-light-client
May 14, 2025
Merged

chore: cleanup light client and light-program-test#1720
ananas-block merged 3 commits into
mainfrom
jorrit/chore-cleanup-light-client

Conversation

@ananas-block
Copy link
Copy Markdown
Contributor

@ananas-block ananas-block commented May 2, 2025

Changes:

  1. move rate_limiter.rs to forester_utils
    1.1. remove RateLimit functions from RpcConnection trait
  2. move rpc_pool to forester_utils
  3. remove rate limiter from SolanaRpcConnection
  4. remove rate limiter from ProgramTestRpcConnection
  5. hide TransactionParams behind devenv feature
  6. introduce a version without TransactionParams for RpcConnection functions which use it and hide the version with TransactionParams behind devenv
  7. remove rate limiter from PhotonIndexer (so that we can remove the governor crate from light-client)
  8. move assert_rpc_error to light_program_test::assert::assert_rpc_error
  9. replace solana_sdk with individual solana crates to reduce compile time (it is still too high we should reduce it further)
  10. create TestRpcConnection with fn set_account and fn warp_to_slot
  11. forester
    11.1. add skip_*_trees to GeneralConfig is used in perform_active_work
    11.2. IndexerType:
    11.2.1. implement it directly for Indexer types instead of passing lndexer trait as generic
    11.3.
  12. light-program-test
    12.1. rename EnvAccounts -> TestAccounts
    12.2. refactor EnvAccounts structure into protocol, v1_state_trees, v2_state_trees and address tree fields
    12.3. rename ProgramTestRpcConnection -> LightProgramTest

Loading
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