Skip to content

Commit

Permalink
rm unneccesary commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvja committed Oct 19, 2023
1 parent d510d2e commit 7e0578b
Showing 1 changed file with 0 additions and 101 deletions.
101 changes: 0 additions & 101 deletions solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,104 +108,3 @@ impl TokenTransferValidationContext for SolanaIbcStorage<'_, '_> {
Ok(())
}
}

// impl SendPacketValidationContext for SolanaIbcStorage<'_, '_> {
// type ClientValidationContext = SolanaIbcStorage<'static, 'static>;

// type E = SolanaIbcStorage<'static, 'static>;

// type AnyConsensusState = AnyConsensusState;

// type AnyClientState = AnyClientState;

// fn channel_end(
// &self,
// channel_end_path: &ChannelEndPath,
// ) -> Result<ChannelEnd, ContextError> {
// // let store = Self::get_solana_ibc_store(self.account);
// ValidationContext::channel_end(&self, channel_end_path)
// }

// fn connection_end(
// &self,
// connection_id: &ConnectionId,
// ) -> Result<ConnectionEnd, ContextError> {
// let store = Self::get_solana_ibc_store(self.account);
// ValidationContext::connection_end(&store, connection_id)
// }

// fn client_state(
// &self,
// client_id: &ClientId,
// ) -> Result<Self::AnyClientState, ContextError> {
// let store = Self::get_solana_ibc_store(self.account);
// ValidationContext::client_state(&store, client_id)
// }

// fn client_consensus_state(
// &self,
// client_cons_state_path: &ClientConsensusStatePath,
// ) -> Result<Self::AnyConsensusState, ContextError> {
// let store = Self::get_solana_ibc_store(self.account);
// ValidationContext::consensus_state(&store, client_cons_state_path)
// }

// fn get_next_sequence_send(
// &self,
// seq_send_path: &SeqSendPath,
// ) -> Result<Sequence, ContextError> {
// let store = Self::get_solana_ibc_store(self.account);
// ValidationContext::get_next_sequence_send(&store, seq_send_path)
// }

// fn get_client_validation_context(&self) -> &Self::ClientValidationContext {
// todo!()
// }
// }

// impl SendPacketExecutionContext for SolanaIbcStorage<'_, '_> {
// fn store_packet_commitment(
// &mut self,
// commitment_path: &CommitmentPath,
// commitment: PacketCommitment,
// ) -> Result<(), ContextError> {
// let mut store = Self::get_solana_ibc_store(self.account);
// let result = ExecutionContext::store_packet_commitment(
// &mut store,
// commitment_path,
// commitment,
// );
// Self::set_solana_ibc_store(&store);
// result
// }

// fn store_next_sequence_send(
// &mut self,
// seq_send_path: &SeqSendPath,
// seq: Sequence,
// ) -> Result<(), ContextError> {
// let mut store = Self::get_solana_ibc_store(self.account);
// let result = ExecutionContext::store_next_sequence_send(
// &mut store,
// seq_send_path,
// seq,
// );
// Self::set_solana_ibc_store(&store);
// result
// }

// fn emit_ibc_event(
// &mut self,
// event: ibc::core::events::IbcEvent,
// ) -> Result<(), ContextError> {
// let mut store = Self::get_solana_ibc_store(self.account);
// let result = ExecutionContext::emit_ibc_event(&mut store, event);
// Self::set_solana_ibc_store(&store);
// result
// }

// fn log_message(&mut self, message: String) -> Result<(), ContextError> {
// msg!(&message);
// Ok(())
// }
// }

0 comments on commit 7e0578b

Please sign in to comment.