18 breaking releases
new 0.19.0 | Jan 14, 2025 |
---|---|
0.18.2 | Dec 20, 2024 |
0.18.0 | Sep 26, 2024 |
0.17.0 | Jul 18, 2024 |
0.0.0 | Jun 20, 2023 |
#404 in Magic Beans
65,218 downloads per month
Used in 16 crates
(5 directly)
4MB
63K
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 Stable 2412
Dependencies
~20–35MB
~584K SLoC