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
- Run
yarn install
- Run
truffle develop
to run local ganache and truffle console - In the truffle console run
migrate
to deploy the contracts - In another terminal run
yarn run dev
to run metacoin demo onhttp://localhost:8080
- Open a browser, and you can mint, and send coins, with no eth in your (metamask) account
Alternatively, steps 2 and 3 you can accomplish starting gsn-with-ganache
script that 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.
- Run
yarn install
- Add
pass12
file to the root of project with mnemonic words inside - Fund the accounts using this faucet: https://faucet.matic.network/
- Run
npx gsn deploy --mnemonic ./pass12 --workdir . --network https://rpc-mumbai.maticvigil.com