13 breaking releases

new 0.13.0 May 24, 2024
0.11.0 Apr 9, 2024
0.10.0 Mar 18, 2024
0.6.0 Dec 13, 2023
0.0.0 Jun 20, 2023

#329 in Magic Beans

Download history 79/week @ 2024-02-02 270/week @ 2024-02-09 664/week @ 2024-02-16 906/week @ 2024-02-23 495/week @ 2024-03-01 123/week @ 2024-03-08 508/week @ 2024-03-15 457/week @ 2024-03-22 246/week @ 2024-03-29 437/week @ 2024-04-05 235/week @ 2024-04-12 354/week @ 2024-04-19 369/week @ 2024-04-26 146/week @ 2024-05-03 120/week @ 2024-05-10 506/week @ 2024-05-17

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

GPL-3.0-or-later…

2.5MB
47K 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

~19–34MB
~588K SLoC