17 breaking releases

0.18.0 Sep 26, 2024
0.17.0 Jul 18, 2024
0.15.0 Jul 12, 2024
0.10.0 Mar 18, 2024
0.0.0 Jun 20, 2023

#1 in #relayer

Download history 647/week @ 2024-08-26 356/week @ 2024-09-02 677/week @ 2024-09-09 374/week @ 2024-09-16 697/week @ 2024-09-23 598/week @ 2024-09-30 601/week @ 2024-10-07 911/week @ 2024-10-14 1223/week @ 2024-10-21 989/week @ 2024-10-28 828/week @ 2024-11-04 20541/week @ 2024-11-11 24874/week @ 2024-11-18 27819/week @ 2024-11-25 22488/week @ 2024-12-02 27431/week @ 2024-12-09

103,829 downloads per month
Used in 15 crates (5 directly)

GPL-3.0-or-later…

3MB
59K SLoC

Bridge Relayers Pallet

The pallet serves as a storage for pending bridge relayer rewards. Any runtime component may register reward to some relayer for doing some useful job at some messages lane. Later, the relayer may claim its rewards using the claim_rewards call.

The reward payment procedure is abstracted from the pallet code. One of possible implementations, is the PayLaneRewardFromAccount, which just does a Currency::transfer call to relayer account from the relayer-rewards account, determined by the message lane id.

We have two examples of how this pallet is used in production. Rewards are registered at the target chain to compensate fees of message delivery transactions (and linked finality delivery calls). At the source chain, rewards are registered during delivery confirmation transactions. You may find more information about that in the Kusama <> Polkadot bridge documentation.

Release

Polkadot SDK stable2409

Dependencies

~20–34MB
~585K SLoC