#substrate-polkadot #polkadot #substrate #ismp

no-std pallet-hyperbridge

Pallet hyperbridge mediates the connection between hyperbridge and substrate-based chains

15 stable releases (6 major)

2512.0.0 Feb 5, 2026
2506.1.1 Sep 4, 2025
2503.2.0 Dec 30, 2025
2503.1.0 Jul 2, 2025
1.6.2 May 10, 2024

#5 in #ismp

Download history 131/week @ 2025-12-06 16/week @ 2025-12-13 7/week @ 2026-01-03 84/week @ 2026-01-10 29/week @ 2026-01-17 123/week @ 2026-01-24 105/week @ 2026-01-31 178/week @ 2026-02-07 118/week @ 2026-02-14 72/week @ 2026-02-21 50/week @ 2026-02-28 345/week @ 2026-03-07 328/week @ 2026-03-14 134/week @ 2026-03-21

863 downloads per month
Used in pallet-token-gateway

Apache-2.0 and maybe GPL-3.0-only

345KB
4K SLoC

Pallet Hyperbridge

Pallet hyperbridge mediates the connection between hyperbridge and substrate-based chains. This pallet provides:

  • An IsmpDispatcher implementation which collects protocol fees and commits the reciepts for these fees to child storage. Hyperbridge only accepts messages that have been paid for using this module.
  • An IsmpModule which recieves and processes requests from hyperbridge. These requests are dispatched by hyperbridge governance and may adjust fees or request payouts for both relayers and protocol revenue.

This pallet contains no calls and dispatches no requests. Substrate based chains should use this to dispatch requests that should be processed by hyperbridge.

Usage

This module must be configured as an IsmpModule in your IsmpRouter implementation so that it may receive important messages from hyperbridge such as paramter updates or relayer fee withdrawals.

use ismp::Error;
use ismp::module::IsmpModule;
use ismp::router::IsmpRouter;
use pallet_hyperbridge::PALLET_HYPERBRIDGE_ID;

#[derive(Default)]
struct ModuleRouter;

impl IsmpRouter for ModuleRouter {
    fn module_for_id(&self, id: Vec<u8>) -> Result<Box<dyn IsmpModule>, Error> {
        return match id.as_slice() {
            PALLET_HYPERBRIDGE_ID => Ok(Box::new(pallet_hyperbridge::Pallet::<Runtime>::default())),
            _ => Err(Error::ModuleNotFound(id)),
        };
    }
}

License

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

Dependencies

~32–105MB
~1.5M SLoC