GSN2 - Sponsor model, above the basic tabookey-gasless GSN model.
In GSN, a RelayRecipient
performs 3 separate tasks:
- Validation: decide whether to accept the relayed call.
- Execution: call the actual target method.
- Accounting: perform logic before/after the relayed call, to get compensated for the gas.
GsnSponsor defines 2 separate entities:
- Call-Recipient: the entity that actually execute the call.
- Gas-Recipient: the entity that handles the gas payments (this is the "sponsor")
The Gas-Recipient can whitelist senders or target contracts.
But the interesting scenario where the sponsor makes the actual sender pay for the call - by other means than gas (ETH) - like pay with tokens.