git.delta.rocks / unique-network / refs/commits / 4c8a7ebee4f6

difftreelog

source

doc/sponsoring.md629 Bsourcehistory
1# Sponsoring23![Sponsoring flow](./sponsoring-flow.drawio.svg)45## Implementation67If you need to add sponsoring for pallet call, you should implement `SponsorshipHandler<AccountId, Call, ()>`89If you need to add sponsoring for EVM contract call, you should implement `SponsorshipHandler<CrossAccountId, (H160, Vec<u8>), CallContext>`1011For both examples, you can take a look at `UniqueSponsorshipHandler` struct inside of common runtime1213## EVM bridging1415In case if Ethereum call is being called using substrate `evm.call` extrinsic, `BridgeSponsorshipHandler` is used to convert between two different `SponsorshipHandler` types