mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
RPC & Client (#21)
* Initial version of http server. * Refactor the structure. * add unassigned ports info. * Rename servers to match conventions. * Add client crate and some proper RPC implementations. * Style & docs.
This commit is contained in:
committed by
Robert Habermeier
parent
0ceebe6625
commit
db78e5fb4c
@@ -16,14 +16,12 @@
|
||||
|
||||
//! Rust executor possible errors.
|
||||
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use serializer;
|
||||
use state_machine;
|
||||
|
||||
error_chain! {
|
||||
foreign_links {
|
||||
InvalidData(serializer::Error);
|
||||
InvalidData(serializer::Error) #[doc = "Unserializable Data"];
|
||||
}
|
||||
|
||||
errors {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
use primitives::contract::{CallData, OutData};
|
||||
use serializer::{from_slice as de, to_vec as ser};
|
||||
use state_machine::{StaticExternalities, Externalities, Executor};
|
||||
use state_machine::{StaticExternalities, Externalities, CodeExecutor};
|
||||
|
||||
use error::{Error, ErrorKind, Result};
|
||||
use auth;
|
||||
@@ -42,7 +42,7 @@ impl RustExecutor {
|
||||
const VALIDATOR_SET: u8 = 3;
|
||||
}
|
||||
|
||||
impl Executor for RustExecutor {
|
||||
impl CodeExecutor for RustExecutor {
|
||||
type Error = Error;
|
||||
|
||||
fn call_static<E: StaticExternalities<Self>>(
|
||||
|
||||
@@ -42,6 +42,6 @@ pub mod error;
|
||||
pub mod executor;
|
||||
|
||||
/// Creates new RustExecutor for contracts.
|
||||
pub fn new() -> executor::RustExecutor {
|
||||
pub fn executor() -> executor::RustExecutor {
|
||||
executor::RustExecutor::default()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user