diff --git a/solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs b/solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs index 04a27945..70ab4ffe 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs @@ -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 { -// // let store = Self::get_solana_ibc_store(self.account); -// ValidationContext::channel_end(&self, channel_end_path) -// } - -// fn connection_end( -// &self, -// connection_id: &ConnectionId, -// ) -> Result { -// let store = Self::get_solana_ibc_store(self.account); -// ValidationContext::connection_end(&store, connection_id) -// } - -// fn client_state( -// &self, -// client_id: &ClientId, -// ) -> Result { -// 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 { -// 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 { -// 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(()) -// } -// }