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

(jsonrpc): Make trait RpcRequest a public and reimport near_jsonrpc_primitives as primitives #12169

Merged
merged 1 commit into from
Sep 30, 2024
Merged
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
2 changes: 1 addition & 1 deletion chain/jsonrpc/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mod status;
mod transactions;
mod validator;

pub(crate) trait RpcRequest: Sized {
pub trait RpcRequest: Sized {
fn parse(value: Value) -> Result<Self, RpcParseError>;
}

Expand Down
4 changes: 2 additions & 2 deletions chain/jsonrpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use actix_cors::Cors;
use actix_web::http::header;
use actix_web::HttpRequest;
use actix_web::{get, http, middleware, web, App, Error as HttpError, HttpResponse, HttpServer};
use api::RpcRequest;
pub use api::{RpcFrom, RpcInto};
pub use api::{RpcFrom, RpcInto, RpcRequest};
use near_async::actix::ActixResult;
use near_async::messaging::{
AsyncSendError, AsyncSender, CanSend, MessageWithCallback, SendAsync, Sender,
Expand All @@ -19,6 +18,7 @@ use near_client::{
};
use near_client_primitives::types::GetSplitStorageInfo;
pub use near_jsonrpc_client as client;
pub use near_jsonrpc_primitives as primitives;
use near_jsonrpc_primitives::errors::{RpcError, RpcErrorKind};
use near_jsonrpc_primitives::message::{Message, Request};
use near_jsonrpc_primitives::types::config::{RpcProtocolConfigError, RpcProtocolConfigResponse};
Expand Down
Loading