Extract RPC definitions from RPC crate. (#3502)

* Extract author API from the substrate-rpc crate.

* Split out API from RPC.

* Clean up naming.

* Fix tests.

* Shorten error translations.

* Update Cargo.lock
This commit is contained in:
Tomasz Drwięga
2019-08-29 10:32:55 +02:00
committed by Svyatoslav Nikolsky
parent 4ff97bd856
commit 98f64b6b93
28 changed files with 621 additions and 409 deletions
+4 -8
View File
@@ -14,22 +14,18 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
//! Substrate RPC interfaces.
//! Substrate RPC implementation.
//!
//! A collection of RPC methods and subscriptions supported by all substrate clients.
//! A core implementation of Substrate RPC interfaces.
#![warn(missing_docs)]
mod errors;
mod helpers;
mod metadata;
mod subscriptions;
use jsonrpc_core as rpc;
pub use metadata::Metadata;
pub use api::Subscriptions;
pub use self::metadata::Metadata;
pub use rpc::IoHandlerExtension as RpcExtension;
pub use subscriptions::Subscriptions;
pub mod author;
pub mod chain;