12 breaking releases

0.12.0 May 1, 2024
0.10.0 Mar 18, 2024
0.6.0 Dec 13, 2023
0.5.0 Nov 20, 2023
0.0.0 Jun 20, 2023

#435 in Magic Beans

Download history 228/week @ 2024-01-22 191/week @ 2024-01-29 58/week @ 2024-02-05 338/week @ 2024-02-12 720/week @ 2024-02-19 1010/week @ 2024-02-26 309/week @ 2024-03-04 172/week @ 2024-03-11 511/week @ 2024-03-18 458/week @ 2024-03-25 158/week @ 2024-04-01 475/week @ 2024-04-08 348/week @ 2024-04-15 255/week @ 2024-04-22 335/week @ 2024-04-29 121/week @ 2024-05-06

1,090 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

~18–34MB
~578K SLoC