Skip to content

Commit

Permalink
Release 2.2 (#296)
Browse files Browse the repository at this point in the history
* Upgrade polkadot version & ipci runtime reborn

* Bump version

* Enabled evercity pallets, added alpha runtime assets list

* Added ipci chain spec

* Raw IPCI spec
  • Loading branch information
akru authored Jul 29, 2022
1 parent e42ec76 commit 07a1e00
Show file tree
Hide file tree
Showing 44 changed files with 5,235 additions and 2,664 deletions.
3,105 changes: 1,124 additions & 1,981 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ members = [
"runtime/local",
"runtime/alpha",
"runtime/main",
"runtime/ipci",
]

exclude = [
Expand Down
2 changes: 1 addition & 1 deletion bin/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "robonomics-node"
version = "2.1.0"
version = "2.2.0"
authors = ["Airalab <[email protected]>"]
description = "Robonomics node implementation in Rust & Substrate."
edition = "2021"
Expand Down
34 changes: 17 additions & 17 deletions bin/node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "robonomics-rpc"
version = "2.1.0"
version = "2.2.0"
authors = ["Airalab <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -12,21 +12,21 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0" }
jsonrpsee = { version = "0.13.0", features = ["server"] }
sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }
jsonrpsee = { version = "0.14.0", features = ["server"] }
sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26" }
local-runtime = { path = "../../../runtime/local" }
robonomics-primitives = { path = "../../../primitives" }
robonomics-protocol = { path = "../../../protocol" }
#robonomics-protocol = { path = "../../../protocol" }
23 changes: 7 additions & 16 deletions bin/node/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,11 @@
//
///////////////////////////////////////////////////////////////////////////////
//! A collection of node-specific RPC methods.
//!
//! Since `substrate` core functionality makes no assumptions
//! about the modules used inside the runtime, so do
//! RPC methods defined in `sc-rpc` crate.
//! It means that `client/rpc` can't have any methods that
//! need some strong assumptions about the particular runtime.
//!
//! The RPCs available in this crate however can make some assumptions
//! about how the runtime is constructed and what FRAME pallets
//! are part of it. Therefore all node-runtime-specific RPCs can
//! be placed here or imported from corresponding FRAME RPC definitions.

use std::sync::Arc;

use robonomics_primitives::{AccountId, Balance, Block, Index};
/*
use robonomics_protocol::{
extrinsic::extrinsicrpc::{ExtrinsicRpc, ExtrinsicRpcServer},
pubsub::{
Expand All @@ -39,6 +29,7 @@ use robonomics_protocol::{
},
reqres::reqresrpc::{ReqRespRpc, ReqRespRpcServer},
};
*/

use jsonrpsee::RpcModule;
use sc_client_api::AuxStore;
Expand All @@ -57,7 +48,7 @@ pub struct FullDeps<C, P> {
/// Whether to deny unsafe calls.
pub deny_unsafe: DenyUnsafe,
// PubSub worker.
pub pubsub: Arc<Gossipsub>,
// pub pubsub: Arc<Gossipsub>,
}

/// Instantiate all Full RPC extensions.
Expand Down Expand Up @@ -85,14 +76,14 @@ where
client,
pool,
deny_unsafe,
pubsub,
// pubsub,
} = deps;

io.merge(System::new(client.clone(), pool, deny_unsafe).into_rpc())?;
io.merge(TransactionPayment::new(client.clone()).into_rpc())?;
io.merge(PubSubRpc::new(pubsub).into_rpc())?;
io.merge(ExtrinsicRpc::new(client.clone()).into_rpc())?;
io.merge(ReqRespRpc::new().into_rpc())?;
// io.merge(PubSubRpc::new(pubsub).into_rpc())?;
// io.merge(ExtrinsicRpc::new(client.clone()).into_rpc())?;
// io.merge(ReqRespRpc::new().into_rpc())?;

Ok(io)
}
Loading

0 comments on commit 07a1e00

Please sign in to comment.