#polkadot #substrate #interop #ismp

no-std ismp-parachain-runtime-api

Substrate runtime API for the ISMP Parachain consensus client

7 stable releases

16.0.0 Feb 3, 2025
15.0.0 Jan 10, 2025
1.15.1 Oct 15, 2024
1.15.0 Sep 19, 2024
1.6.2 May 10, 2024

#5 in #ismp

Download history 7/week @ 2024-12-15 113/week @ 2025-01-05 28/week @ 2025-01-12 3/week @ 2025-01-19 117/week @ 2025-02-02 4/week @ 2025-02-09 3/week @ 2025-02-16 2/week @ 2025-02-23

502 downloads per month
Used in ismp-parachain-inherent

Apache-2.0 and GPL-3.0-only

56KB

Runtime API for the parachain consensus client.


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) 2025 Polytope Labs.

Dependencies

~30–55MB
~1M SLoC