mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Implement the Runtime API subsystem (#1494)
* type defaults for ParachainHost * add ValidationCode message * implement core loop of runtime API subsystem * subsystem trait implementation for runtime API subsystem * implement a mock runtime API * some tests that ensure requests are forwarded to runtime API correctly * fix dependency grumbles * improve RuntimeApiError API
This commit is contained in:
committed by
GitHub
parent
80303e99ea
commit
652ae86afd
@@ -646,7 +646,7 @@ pub enum CandidateEvent<H = Hash> {
|
||||
|
||||
sp_api::decl_runtime_apis! {
|
||||
/// The API for querying the state of parachains on-chain.
|
||||
pub trait ParachainHost<H: Decode, N: Decode> {
|
||||
pub trait ParachainHost<H: Decode = Hash, N: Decode = BlockNumber> {
|
||||
/// Get the current validators.
|
||||
fn validators() -> Vec<ValidatorId>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user