mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 02:57:57 +00:00
142a11ad95
* Move the bridges subtree under root * Squashed 'bridges/' changes from 277f0d5496..e50398d1c5 e50398d1c5 bridges subtree fixes (#2528) 99af07522d Markdown linter (#1309) (#2526) 733ff0fe7a `polkadot-staging` branch: Use polkadot-sdk dependencies (#2524) e8a59f141e Fix benchmark with new XCM::V3 `MAX_INSTRUCTIONS_TO_DECODE` (#2514) 62b185de15 Backport `polkadot-sdk` changes to `polkadot-staging` (#2518) d9658f4d5b Fix equivocation detection containers startup (#2516) (#2517) d65db28a8f Backport: building images from locally built binaries (#2513) 5fdbaf45f6 Start the equivocation detection loop from the complex relayer (#2507) (#2512) 7fbb67de46 Backport: Implement basic equivocations detection loop (#2375) cb7efe245c Manually update deps in polkadot staging (#2371) d17981fc33 #2351 to polkadot-staging (#2359) git-subtree-dir: bridges git-subtree-split: e50398d1c594e4e96df70b0bd376e565d17e8558 * Reapply diener workspacify * Fix Cargo.toml * Fix test * Adjustments
15 lines
1001 B
Markdown
15 lines
1001 B
Markdown
# 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`](../../primitives/relayers/src/lib.rs), 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](../../docs/polkadot-kusama-bridge-overview.md) documentation.
|