ismp-parachain-runtime-api

Crates.ioismp-parachain-runtime-api
lib.rsismp-parachain-runtime-api
version2506.0.0
created_at2024-05-02 14:08:52.112092+00
updated_at2025-09-02 17:07:09.494092+00
descriptionSubstrate runtime API for the ISMP Parachain consensus client
homepagehttps://docs.hyperbridge.network/developers/polkadot/getting-started
repositoryhttps://github.com/polytope-labs/hyperbridge
max_upload_size
id1227780
size264,396
Core Devs (github:polytope-labs:core-devs)

documentation

https://docs.rs/ismp-parachain

README

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.

Commit count: 1069

cargo fmt