pallet-bridge-relayers

Crates.iopallet-bridge-relayers
lib.rspallet-bridge-relayers
version0.14.0
sourcesrc
created_at2023-06-20 20:11:05.526725
updated_at2024-07-12 23:29:57.054141
descriptionModule used to store relayer rewards and coordinate relayers set. (polkadot v1.14.0)
homepage
repositoryhttps://github.com/paritytech/polkadot-sdk.git
max_upload_size
id895465
size68,159
Parity Crate Owner (parity-crate-owner)

documentation

README

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.

Commit count: 17248

cargo fmt