naudo / metacoin

Sample project for GSN based on Webpack Truffle Box

Home Page:https://metacoin.opengsn.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GSN-Based metacoin.

This a basic metacoin, with minimal modifications to support working through GSN, without the client paying for gas. You still need a wallet, but only for signing transactions, not paying for them.

See https://github.com/opengsn/gsn for the GSN project.

The Metacoin itself pays for all transactions.

Other than supporting GSN, the project added links to tenderly and etherscan, to ease seeing the various components on the blockchain

Running the project

The "TL;DR"

  1. Run yarn install
  2. Run yarn run gsn-with-ganache to run local ganache and bring up GSN contracts and relayer.
  3. In another terminal, run truffle migrate to install MetaCoin
  4. Run yarn run dev to run metacoin demo on http://localhost:8080
  5. open a browser, and you can mint, and send coins, with no eth in your (metamask) account
  6. you can also switch to ropsten/kovan/rinkeby to see it running there (or open it in http://metacoin.opengsn.org)

NOTES:

The gsn-with-ganache script above does 2 things:

  • Starts ganache with same chainId and networkId (to overcome limitation of Metamask)
  • calls npx gsn start, to start all GSN components locally.

About

Sample project for GSN based on Webpack Truffle Box

https://metacoin.opengsn.org/


Languages

Language:JavaScript 75.1%Language:Solidity 14.8%Language:HTML 7.8%Language:CSS 2.3%