Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement(tendermint): robust IBC channel handling #2298

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
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
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion mm2src/coins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ nom = "6.1.2"
mm2_core = { path = "../mm2_core" }
mm2_err_handle = { path = "../mm2_err_handle" }
mm2_event_stream = { path = "../mm2_event_stream" }
mm2_git = { path = "../mm2_git" }
mm2_io = { path = "../mm2_io" }
mm2_metrics = { path = "../mm2_metrics" }
mm2_net = { path = "../mm2_net" }
Expand Down
7 changes: 2 additions & 5 deletions mm2src/coins/lp_coins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3016,12 +3016,10 @@ pub enum WithdrawError {
},
#[display(fmt = "Signing error {}", _0)]
SigningError(String),
#[display(fmt = "Eth transaction type not supported")]
#[display(fmt = "Transaction type not supported")]
TxTypeNotSupported,
#[display(fmt = "'chain_registry_name' was not found in coins configuration for '{}'", _0)]
RegistryNameIsMissing(String),
#[display(
fmt = "IBC channel could not found for '{}' address. Consider providing it manually with 'ibc_source_channel' in the request.",
fmt = "IBC channel could not found for '{}' address. Provide it manually by including `ibc_source_channel` in the request. See https://ibc.iobscan.io/channels for reference.",
_0
)]
IBCChannelCouldNotFound(String),
Expand Down Expand Up @@ -3053,7 +3051,6 @@ impl HttpStatusCode for WithdrawError {
| WithdrawError::NoChainIdSet { .. }
| WithdrawError::TxTypeNotSupported
| WithdrawError::SigningError(_)
| WithdrawError::RegistryNameIsMissing(_)
| WithdrawError::IBCChannelCouldNotFound(_)
| WithdrawError::MyAddressNotNftOwner { .. } => StatusCode::BAD_REQUEST,
WithdrawError::HwError(_) => StatusCode::GONE,
Expand Down
1 change: 0 additions & 1 deletion mm2src/coins/rpc_command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ pub mod init_create_account;
pub mod init_scan_for_new_addresses;
pub mod init_withdraw;
#[cfg(not(target_arch = "wasm32"))] pub mod lightning;
pub mod tendermint;
35 changes: 0 additions & 35 deletions mm2src/coins/rpc_command/tendermint/ibc_chains.rs

This file was deleted.

105 changes: 0 additions & 105 deletions mm2src/coins/rpc_command/tendermint/ibc_transfer_channels.rs

This file was deleted.

12 changes: 0 additions & 12 deletions mm2src/coins/rpc_command/tendermint/mod.rs

This file was deleted.

Loading
Loading