Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions packages/relayer/modules/cosmos-to-solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use ibc_eureka_relayer_lib::service_utils::parse_cosmos_tx_hashes;
use ibc_eureka_relayer_lib::service_utils::parse_solana_tx_hashes;
use ibc_eureka_relayer_lib::service_utils::to_tonic_status;
use ibc_eureka_utils::rpc::TendermintRpcExt;
use solana_sdk::pubkey::Pubkey;
use tendermint_rpc::HttpClient;
use tonic::{Request, Response};

Expand All @@ -39,8 +38,6 @@ struct CosmosToSolanaRelayerModuleService {
pub target_listener: solana::ChainListener,
/// The transaction builder from Cosmos to Solana.
pub tx_builder: tx_builder::TxBuilder,
/// The Solana ICS07 program ID.
pub solana_ics07_program_id: Pubkey,
}

/// The configuration for the Cosmos to Solana relayer module.
Expand All @@ -52,8 +49,6 @@ pub struct CosmosToSolanaConfig {
pub target_rpc_url: String,
/// The Solana ICS26 router program ID.
pub solana_ics26_program_id: String,
/// The Solana ICS07 Tendermint light client program ID.
pub solana_ics07_program_id: String,
/// The Solana fee payer address.
pub solana_fee_payer: String,
/// Address Lookup Table address for reducing transaction size (optional).
Expand All @@ -72,11 +67,6 @@ impl CosmosToSolanaRelayerModuleService {
.parse()
.map_err(|e| anyhow::anyhow!("Invalid Solana ICS26 program ID: {}", e))?;

let solana_ics07_program_id: Pubkey = config
.solana_ics07_program_id
.parse()
.map_err(|e| anyhow::anyhow!("Invalid Solana ICS07 program ID: {}", e))?;

let target_listener =
solana::ChainListener::new(config.target_rpc_url.clone(), solana_ics26_program_id);

Expand All @@ -95,7 +85,6 @@ impl CosmosToSolanaRelayerModuleService {
let tx_builder = tx_builder::TxBuilder::new(
src_listener.client().clone(),
target_listener.client().clone(),
solana_ics07_program_id,
solana_ics26_program_id,
fee_payer,
alt_address,
Expand All @@ -105,7 +94,6 @@ impl CosmosToSolanaRelayerModuleService {
src_listener,
target_listener,
tx_builder,
solana_ics07_program_id,
})
}
}
Expand Down Expand Up @@ -228,7 +216,7 @@ impl RelayerService for CosmosToSolanaRelayerModuleService {

Ok(Response::new(api::CreateClientResponse {
tx,
address: self.solana_ics07_program_id.to_string(),
address: String::new(),
}))
}

Expand Down Expand Up @@ -262,7 +250,7 @@ impl RelayerService for CosmosToSolanaRelayerModuleService {

Ok(Response::new(api::UpdateClientResponse {
tx,
address: self.solana_ics07_program_id.to_string(),
address: String::new(),
}))
}
}
Expand Down
Loading
Loading