Skip to content

Commit

Permalink
- removed TokenDataWithMerkleContext from the client/indexer module a
Browse files Browse the repository at this point in the history
- updated `e2e_test_env.rs` accordingly
  • Loading branch information
sergeytimoshin committed Jan 9, 2025
1 parent 06da6c4 commit f3e4ab9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions program-tests/utils/src/e2e_test_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ use light_client::{
// context trait: send_transaction -> return transaction result, get_account_info -> return account info
// indexer trait: get_compressed_accounts_by_owner -> return compressed accounts,
// refactor all tests to work with that so that we can run all tests with a test validator and concurrency
use light_compressed_token::token_data::AccountState;
use light_hasher::Poseidon;
use light_indexed_merkle_tree::{
array::IndexedArray, reference::IndexedMerkleTree, HIGHEST_ADDRESS_PLUS_ONE,
Expand Down Expand Up @@ -121,9 +120,10 @@ use solana_sdk::{
signer::{SeedDerivable, Signer},
};
use spl_token::solana_program::native_token::LAMPORTS_PER_SOL;
use light_client::indexer::{AddressMerkleTreeAccounts, AddressMerkleTreeBundle, Indexer, StateMerkleTreeAccounts, StateMerkleTreeBundle, TokenDataWithMerkleContext};
use light_client::indexer::{AddressMerkleTreeAccounts, AddressMerkleTreeBundle, Indexer, StateMerkleTreeAccounts, StateMerkleTreeBundle};
use light_client::rpc::merkle_tree::MerkleTreeExt;
use light_program_test::indexer::{TestIndexer, TestIndexerExtensions};
use light_sdk::token::{AccountState, TokenDataWithMerkleContext};
use crate::{
address_tree_rollover::{
assert_rolled_over_address_merkle_tree_and_queue,
Expand Down
10 changes: 5 additions & 5 deletions sdk-libs/client/src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ pub trait Indexer<R: RpcConnection>: Sync + Send + Debug + 'static {
fn get_address_merkle_trees(&self) -> &Vec<AddressMerkleTreeBundle>;
}

#[derive(Debug, Clone)]
pub struct TokenDataWithMerkleContext {
pub token_data: TokenData,
pub compressed_account: CompressedAccountWithMerkleContext,
}
// #[derive(Debug, Clone)]
// pub struct TokenDataWithMerkleContext {
// pub token_data: TokenData,
// pub compressed_account: CompressedAccountWithMerkleContext,
// }

#[derive(Debug, Clone)]
pub struct MerkleProof {
Expand Down

0 comments on commit f3e4ab9

Please sign in to comment.