forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
save dev state - walletconnect client impl
- Loading branch information
1 parent
9100780
commit ca3f558
Showing
4 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use derive_more::Display; | ||
use pairing_api::PairingClientError; | ||
use relay_client::error::{ClientError, Error}; | ||
use relay_rpc::rpc::PublishError; | ||
|
||
#[derive(Debug, Display)] | ||
pub enum WalletConnectClientError { | ||
PairingError(PairingClientError), | ||
EncodeError(String), | ||
PublishError(Error<PublishError>), | ||
ClientError(ClientError), | ||
PairingNotFound(String) | ||
} | ||
|
||
impl From<PairingClientError> for WalletConnectClientError { | ||
fn from(value: PairingClientError) -> Self { | ||
WalletConnectClientError::PairingError(value) | ||
} | ||
} | ||
|
||
impl From<ClientError> for WalletConnectClientError { | ||
fn from(value: ClientError) -> Self { | ||
WalletConnectClientError::ClientError(value) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters