Files
pezkuwi-subxt/bridges/modules/relayers
Branislav Kontur e2a3cf2ec2 Bump bridges (#2602)
* Squashed 'bridges/' changes from 0f6091d481..c9dd8b9dfc

c9dd8b9dfc expose test utilities to be used in BH paras (#2142)
334df22361 Ws-port argument has been repalced with rpc-port (#2140)
106173cb91 fix nodes startup (#2138)

git-subtree-dir: bridges
git-subtree-split: c9dd8b9dfc8b48014d119153032589ac39c18c9a

* tmp
2023-05-19 14:11:27 +00:00
..
2023-05-19 14:11:27 +00:00

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.