git.delta.rocks / unique-network / refs/commits / fe3acb0e9993

difftreelog

source

doc/sponsoring.md674 Bsourcehistory
1# Sponsoring23<!-- This SVG file can be opened and edited using draw.io -->4![Sponsoring flow](./sponsoring-flow.svg)56## Implementation78If you need to add sponsoring for pallet call, you should implement `SponsorshipHandler<AccountId, Call, ()>`910If you need to add sponsoring for EVM contract call, you should implement `SponsorshipHandler<H160, (H160, Vec<u8>), CallContext>`1112For both examples, you can take a look at `UniqueSponsorshipHandler` struct inside of common runtime1314## EVM bridging1516In case if Ethereum call is being called using substrate `evm.call` extrinsic, `BridgeSponsorshipHandler` is used to convert between two different `SponsorshipHandler` types