bcnmy / mexa

Repository contains smart contracts for biconomy's Mexa platform to implement meta transactions and allow dapp users to perform blockchain operations without holding any ether or other crypto currency.
MIT License
94 stars 31 forks source link

ERC20 Forwarder #20

Closed realkinando closed 3 years ago

realkinando commented 4 years ago

fixed contract import errors, tests, personal sign, made helpers

realkinando commented 4 years ago

Took some time to do extra research before pushing :

  1. Events have been created taking into consideration the need to log meta transactions made via the system :
  1. EIP research, related reading :
    • Our schema for ERC20 meta transactions is fixed. While this makes integration significantly simpler, it also means that if we want to integrate new features (such as scheduling, like with Ethereum Alarm Clock) we would need to migrate the forwarder and the fee proxies... My experiences in development have given me a desire to avoid EIP 2585 (not worth the additional effort IMHO)... Not sure about this...

References : 1 - https://github.com/wighawag/singleton-1776-meta-transaction/blob/master/contracts/src/GenericMetaTxProcessor.sol 2 - https://thegraph.com/docs/define-a-subgraph#writing-mappings 3 - https://github.com/ethereum/EIPs/issues/2585