Giter VIP home page Giter VIP logo

metatransactions's Introduction

metatransactions

Test of metatransactions in ethereum network, using a proxy contract

Clone or download. Node, npm, truffle and ganache is required.

  1. Install eth-crypto dependency by executing:

npm install eth-crypto

  1. Start ganache app

  2. For running the tests, Execute:

truffle test --network ganache

Involved artifacts:

  1. MetaTransactionProvider: is a smart contract that acts as a proxy, and provides some methods for signature verifying and execution of call to 3d party smart contract methods.

  2. MockVault: is the smart contract which methods we want to call, without the caller have to pay the fees. It has two simple methods used in the tests.

  3. Sender address: is the address that sign the message with the methods to be called in destination contract. This address will not pay the gas fees, but will be the "sender" of the transaction.

  4. Miner addresss: is the address that pays the gas fees of the ethereum transaction.

description

See test/metatransaction.js for explained unit tests. See contracts/MetaTransactionProvider.sol for an explanation of proxy smart contract methods.

metatransactions's People

Contributors

jzafrap avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

amanusk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.