No description, website, or topics provided.
Branch: master
Clone or download
Latest commit aefb3db Feb 18, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
deployment Initial commit Nov 7, 2018
.gitignore Initial commit Nov 7, 2018 Fixed Readme Nov 8, 2018
package-lock.json update dependencies and contracts Feb 15, 2019

MetaTx Based Batched Transactions Example

MetaTx have proved to be an useful tool for quite a lot use cases. One of the main pain-points of the ERC-20 is the non-atomicity of the interaction with it. You can see how we've managed to make these transactions atomic through the use of MetaTx Proxy (sometimes called identity).

How to run it

npm install -g etherlime
etherlime ganache
npm install
npm start

Making sense of the code

The code is in the test folder. It does the following things:

  1. Creates a BatchedMetaTx Proxy, ERC-20 and Consumer service contracts
  2. Produces the artifacts needed for two transactions - approve and transferFrom-based call to the Consumer contract
  3. Executing them at once atomically
  4. Executing failing transaction reverting both of them