-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(eth-client): Remove JSON-RPC signer (#1883)
## What ❔ Removes JSON-RPC signer from the codebase. ## Why ❔ It's unused and brings an obsolete dependency (`jsonrpc-core`). ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`.
- Loading branch information
Showing
13 changed files
with
19 additions
and
509 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
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
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 |
---|---|---|
@@ -1,34 +1 @@ | ||
pub use jsonrpc_core::types::response::Failure as RpcFailure; | ||
use thiserror::Error; | ||
|
||
#[derive(Debug, Error, PartialEq)] | ||
pub enum RpcSignerError { | ||
#[error("Unable to decode server response")] | ||
MalformedResponse(String), | ||
#[error("RPC error: {0:?}")] | ||
RpcError(RpcFailure), | ||
#[error("Network error: {0}")] | ||
NetworkError(String), | ||
} | ||
|
||
#[derive(Debug, Error, PartialEq, Eq)] | ||
pub enum SignerError { | ||
#[error("Ethereum private key required to perform an operation")] | ||
MissingEthPrivateKey, | ||
#[error("EthereumSigner required to perform an operation")] | ||
MissingEthSigner, | ||
#[error("Signing failed: {0}")] | ||
SigningFailed(String), | ||
#[error("Unlocking failed: {0}")] | ||
UnlockingFailed(String), | ||
#[error("Decode raw transaction failed: {0}")] | ||
DecodeRawTxFailed(String), | ||
#[error("Signing key is not set in account")] | ||
NoSigningKey, | ||
#[error("Address determination error")] | ||
DefineAddress, | ||
#[error("Recover address from signature failed: {0}")] | ||
RecoverAddress(String), | ||
#[error("{0}")] | ||
CustomError(String), | ||
} |
Oops, something went wrong.