-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A0-4224: Extracted pallet alleph runtime API to a separate crate (#1734)
# Description This is a refactor which brings two new crates to `aleph-node` workspace: * `fake-runtime-api`, that is used both by `finality-aleph` and `aleph-node` (was module in `primitives`) * `pallet-aleph-runtime-api`, that is used by `aleph-runtime` and `finality-aleph` (latter uses just one trait) The motivation is that we want `primitives` to be just bags of costs and types). Also, it follows an upstream approach, e.g., https://github.com/Cardinal-Cryptography/polkadot-sdk/blob/master/substrate/frame/nomination-pools/runtime-api/src/lib.rs
- Loading branch information
1 parent
066cee2
commit 5cd0359
Showing
21 changed files
with
385 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,39 @@ | ||
[package] | ||
name = "fake-runtime-api" | ||
version = "0.1.0" | ||
license = "Apache 2.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
|
||
[dependencies] | ||
sp-api = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-std = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-consensus-aura = { workspace = true } | ||
|
||
frame-support = { workspace = true } | ||
frame-system-rpc-runtime-api = { workspace = true } | ||
|
||
pallet-transaction-payment = { workspace = true } | ||
pallet-transaction-payment-rpc-runtime-api = { workspace = true } | ||
|
||
sp-version = { workspace = true } | ||
sp-block-builder = { workspace = true } | ||
sp-offchain = { workspace = true } | ||
sp-transaction-pool = { workspace = true } | ||
sp-session = { workspace = true } | ||
sp-inherents = { workspace = true } | ||
|
||
primitives = { workspace = true } | ||
pallet-aleph-runtime-api = { workspace = true } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"primitives/std", | ||
"pallet-aleph-runtime-api/std", | ||
] | ||
short_session = [] |
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
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
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
Oops, something went wrong.