14 releases (breaking)

0.11.0 Apr 9, 2024
0.10.0 Mar 18, 2024
0.9.0 Feb 26, 2024
0.6.0 Dec 13, 2023
0.0.0 Jun 20, 2023

#308 in Magic Beans

Download history 15/week @ 2023-12-23 482/week @ 2023-12-30 447/week @ 2024-01-06 204/week @ 2024-01-13 236/week @ 2024-01-20 179/week @ 2024-01-27 69/week @ 2024-02-03 320/week @ 2024-02-10 674/week @ 2024-02-17 1048/week @ 2024-02-24 314/week @ 2024-03-02 177/week @ 2024-03-09 488/week @ 2024-03-16 461/week @ 2024-03-23 181/week @ 2024-03-30 429/week @ 2024-04-06

1,641 downloads per month
Used in 7 crates (4 directly)

GPL-3.0-or-later…

2.5MB
46K 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.

Dependencies

~21–35MB
~573K SLoC