Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend the extension contracts to support meta transactions #20

Open
akolotov opened this issue Mar 3, 2021 · 1 comment
Open

Extend the extension contracts to support meta transactions #20

akolotov opened this issue Mar 3, 2021 · 1 comment
Labels
enhancement New feature or request mediators Related to the main functionality of the mediators

Comments

@akolotov
Copy link
Collaborator

akolotov commented Mar 3, 2021

The idea of this issue is to implement a support of meta transactions on the mediators contract as so bridged tokens (or native tokens permit()) could be triggered for the transfer without the necessity in the direct interaction with the contracts from the user side.

For example, the interaction flow could be like the following:

  • the user is requested to sign a message which could be used to approve a particular account to use transferFrom functionality of the token contract
  • the message and the signature are incorporated into a call of an extended version of relayTokens/relayTokensAndCall
  • some agent sends a transaction with the extended version of relayTokens/relayTokensAndCall to the mediator contract
  • the mediator contract uses the message to get the approval for itself to use transferFrom
  • the mediator contract picks the token and proceeds with the action to complete the token transfer
@akolotov akolotov added enhancement New feature or request mediators Related to the main functionality of the mediators labels Mar 3, 2021
@akolotov
Copy link
Collaborator Author

akolotov commented Mar 3, 2021

Perhaps it makes sense to consider the issue after the implementation of #21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mediators Related to the main functionality of the mediators
Projects
None yet
Development

No branches or pull requests

1 participant