#substrate #interop #ismp #polkadot-sdk

no-std ismp-parachain-runtime-api

Substrate runtime API for the ISMP Parachain consensus client

5 stable releases

new 1.15.1 Oct 15, 2024
1.15.0 Sep 19, 2024
1.6.2 May 10, 2024
1.6.1 May 6, 2024
1.6.0 May 2, 2024

#285 in Magic Beans

Download history 1/week @ 2024-06-28 4/week @ 2024-07-05 1/week @ 2024-07-26 78/week @ 2024-09-13 69/week @ 2024-09-20 16/week @ 2024-09-27 4/week @ 2024-10-04 136/week @ 2024-10-11

303 downloads per month
Used in ismp-parachain-inherent

Apache-2.0 and GPL-3.0-only

5KB

ISMP Parachain Runtime API

This exports the runtime API definitions required by client subsystems like the inherents provider.

Usage

The required methods are already implemented in ismp_parachain::Pallet<T>

impl_runtime_apis! {
    impl ismp_parachain_runtime_api::IsmpParachainApi<Block> for Runtime {
        fn para_ids() -> Vec<u32> {
            ismp_parachain::Pallet::<Runtime>::para_ids()
        }

        fn current_relay_chain_state() -> RelayChainState {
            ismp_parachain::Pallet::<Runtime>::current_relay_chain_state()
        }
    }
}

License

This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs.


lib.rs:

Runtime API for the parachain consensus client.

Dependencies

~27–42MB
~729K SLoC