git.delta.rocks / unique-network / refs/commits / 0982b02171d4

difftreelog

doc: sponsoring for unique is implemented via different structs

Yaroslav Bolyukin2022-09-11parent: #4c8a7eb.patch.diff
in: master

1 file changed

modifieddoc/sponsoring.mddiffbeforeafterboth
44
5## Implementation5## Implementation
66
7If you need to add sponsoring for pallet call, you should implement `SponsorshipHandler<AccountId, Call, ()>`7If you need to add sponsoring for pallet call, you should implement `SponsorshipHandler<AccountId, Call, ()>`, see `UniqueSponsorshipHandler` for example.
88
9If you need to add sponsoring for EVM contract call, you should implement `SponsorshipHandler<CrossAccountId, (H160, Vec<u8>), CallContext>`9If you need to add sponsoring for EVM contract call, you should implement `SponsorshipHandler<CrossAccountId, (H160, Vec<u8>), CallContext>`, see `UniqueEthSponsorshipHandler` for example.
1010
11For both examples, you can take a look at `UniqueSponsorshipHandler` struct inside of common runtime
12
13## EVM bridging11## EVM bridging
1412
15In case if Ethereum call is being called using substrate `evm.call` extrinsic, `BridgeSponsorshipHandler` is used to convert between two different `SponsorshipHandler` types13In case if Ethereum call is being called using substrate `evm.call` extrinsic, `BridgeSponsorshipHandler` is used to convert between two different `SponsorshipHandler` types