-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support embedded full/light node clients. (#91)
* Add support for light clients. * Add wasm toolchain to ci. * Fix ci tests. * Address review comments. * Use expect instead of unwrap. * Purge light client chain too. * Add README section.
- Loading branch information
Showing
13 changed files
with
545 additions
and
58 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
dev-chain.json |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "substrate-subxt-client" | ||
version = "0.1.0" | ||
authors = ["David Craven <david@craven.ch>", "Parity Technologies <admin@parity.io>"] | ||
edition = "2018" | ||
|
||
license = "GPL-3.0" | ||
repository = "https://github.com/paritytech/substrate-subxt" | ||
documentation = "https://docs.rs/substrate-subxt-client" | ||
homepage = "https://www.parity.io/" | ||
description = "Embed a substrate node into your subxt application." | ||
keywords = ["parity", "substrate", "blockchain"] | ||
|
||
[dependencies] | ||
async-std = "=1.5.0" | ||
futures = { version = "0.3.5", features = ["compat"] } | ||
futures01 = { package = "futures", version = "0.1.29" } | ||
jsonrpsee = "0.1.0" | ||
log = "0.4.8" | ||
sc-network = { version = "0.8.0-rc3", default-features = false } | ||
sc-service = { version = "0.8.0-rc3", default-features = false } | ||
serde_json = "1.0.53" | ||
sp-keyring = "2.0.0-rc3" | ||
thiserror = "1.0.19" | ||
|
||
[dev-dependencies] | ||
async-std = { version = "=1.5.0", features = ["attributes"] } | ||
env_logger = "0.7.1" | ||
node-template = { git = "https://github.com/paritytech/substrate" } | ||
substrate-subxt = { path = ".." } |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
NODE_TEMPLATE=../../substrate/target/release/node-template | ||
$NODE_TEMPLATE purge-chain --dev | ||
$NODE_TEMPLATE build-spec --dev > dev-chain.json | ||
rm -rf /tmp/subxt-light-client |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
NODE_TEMPLATE=../../substrate/target/release/node-template | ||
$NODE_TEMPLATE purge-chain --chain=dev-chain.json | ||
rm -rf /tmp/subxt-light-client |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
NODE_TEMPLATE=../../substrate/target/release/node-template | ||
$NODE_TEMPLATE --chain=dev-chain.json --alice |
Oops, something went wrong.