-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from webb-tools/webb-gadget
WebbGadget
- Loading branch information
Showing
19 changed files
with
892 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
[package] | ||
name = "gadget" | ||
version = "0.0.1" | ||
authors = ["Thomas P Braun"] | ||
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" | ||
edition = "2021" | ||
|
||
[features] | ||
substrate = [ | ||
"sp-runtime", | ||
"sc-client-api", | ||
"sp-api", | ||
"futures" | ||
[workspace] | ||
members = [ | ||
"gadget-core", | ||
"webb-gadget", | ||
"zk-gadget" | ||
] | ||
|
||
[dependencies] | ||
sync_wrapper = "0.1.2" | ||
parking_lot = "0.12.1" | ||
tokio = { version = "1.32.0", features = ["sync", "time", "macros", "rt"] } | ||
hex = "0.4.3" | ||
async-trait = "0.1.73" | ||
[workspace.dependencies] | ||
gadget-core = { path = "./gadget-core" } | ||
webb-gadget = { path = "./webb-gadget" } | ||
zk-gadget = { path = "./zk-gadget" } | ||
|
||
sp-runtime = { optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", default-features = false } | ||
sc-client-api = { optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", default-features = false } | ||
sp-api = { optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", default-features = false } | ||
futures = { optional = true, version = "0.3.28" } | ||
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", default-features = false } | ||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", default-features = false } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", default-features = false } | ||
sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", default-features = false } | ||
|
||
[dev-dependencies] | ||
mpc-net = { git = "https://github.com/webb-tools/zk-SaaS/" } | ||
tokio-rustls = "0.24.1" | ||
tokio = "1.32.0" | ||
bincode2 = "2" | ||
futures-util = "0.3.28" | ||
serde = "1.0.188" | ||
async-trait = "0.1.73" |
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,9 @@ | ||
# Gadget | ||
|
||
## Design | ||
|
||
The core library is `gadget-core`. The core library allows gadgets to hold standardization of use across different blockchains. The core library is the base of all gadgets, and expects to receive `FinalityNotifications` and `BlockImportNotifications`. | ||
|
||
Once such blockchain is a substrate blockchain. This is where `webb-gadget` comes into play. The `webb-gadget` is the core-gadget endowed with a connection to a substrate blockchain, a networking layer to communicate with other gadgets, and a *WebbModule* that has application-specific logic. | ||
|
||
Since `webb-gadget` allows varying connections to a substrate blockchain and differing network layers, we can thus design above it the `zk-gadget` and `tss-gadget`. These gadgets are endowed with the same functionalities as the `webb-gadget` but with a different connection and networking layer. |
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,28 @@ | ||
[package] | ||
name = "gadget-core" | ||
version = "0.0.1" | ||
authors = ["Thomas P Braun"] | ||
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" | ||
edition = "2021" | ||
|
||
[features] | ||
substrate = [ | ||
"sp-runtime", | ||
"sc-client-api", | ||
"sp-api", | ||
"futures" | ||
] | ||
|
||
[dependencies] | ||
sync_wrapper = "0.1.2" | ||
parking_lot = "0.12.1" | ||
tokio = { workspace = true, features = ["sync", "time", "macros", "rt"] } | ||
hex = "0.4.3" | ||
async-trait = "0.1.73" | ||
|
||
sp-runtime = { optional = true, workspace = true, default-features = false } | ||
sc-client-api = { optional = true, workspace = true, default-features = false } | ||
sp-api = { optional = true, workspace = true, default-features = false } | ||
futures = { optional = true, version = "0.3.28" } | ||
|
||
[dev-dependencies] |
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.