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

Relayed contract interactions ("gasless operation") #22

Closed
oberstet opened this issue Apr 14, 2019 · 7 comments
Closed

Relayed contract interactions ("gasless operation") #22

oberstet opened this issue Apr 14, 2019 · 7 comments

Comments

@oberstet
Copy link
Member

Expand all gas consuming (write transactional) SC functions in XBR smart contracts with bytes signature to allow delegated ETH/gas-less operation

@oberstet
Copy link
Member Author

oberstet commented Apr 14, 2019

As far as I can see, there are 2 relevant proposal for tokens (aka "gasless token transfers", which is only part of the problem we have to address .. as in, we might want to be able to delegate_all_ write transactions in all XBR contracts):

@oberstet
Copy link
Member Author

ideally, whatever token contract we use, that contract would be:

  • ERC20 compatible, so users can still use regular wallets (eg metamask) in which case they need ETH on their wallet to pay the gas for the transfer transaction
  • additionally the token would allow delegated transfers where only the market maker needs to pay gas, and the user wallet interacts with the MM via WAMP
  • for the latter, the gas would be converted into XBR and deducted from the transferred amount to compensate the MM for its service (the delegated transfer)

@oberstet
Copy link
Member Author

oberstet commented Apr 16, 2019

Naming: We should probably use relayer / relay instead of delegate / delegate wording

PRO: the word "delegate" is already used in XBR, and seller/buyer delegates are active components (they have private keys themself, and do stuff themself without being directly 1:1 triggered from outside)
CON: it introduces yet another term ("relayer")

@oberstet oberstet changed the title Delegated contract interactions Delegated / Relayed contract interactions Apr 16, 2019
@oberstet oberstet changed the title Delegated / Relayed contract interactions Relayed contract interactions ("gasless operation") Aug 19, 2019
@oberstet
Copy link
Member Author

@oberstet oberstet added this to the Mark-II milestone Sep 27, 2019
@oberstet oberstet removed the Mark-II label Sep 27, 2019
@oberstet
Copy link
Member Author

oberstet commented Mar 11, 2020

@oberstet
Copy link
Member Author

the missing parts ^ are coming via #90

@oberstet
Copy link
Member Author

landed via #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant