An experimental service providing a way to exchange ERC20 tokens in ETH to pay for future transactions.
We presented the gasstation on DEVCON3 (Nov 4th 2017). You can view the video here :
$ npm install -g ethereumjs-testrpc
$ npm install -g generate-contract-interface
$ npm install -g browserify
$ npm install
Now create contract interfaces and browserify utility library
. ./build.sh
$ truffle test test/gasStation-pushfill.js
In one terminal - start testRPC
$ testrpc -p 18546
in another terminal - create a file .env
containing these parameters :
privatekey="(a private key holding the ETH to supply the upfront gas)"
gastankaddress="(the address of the gastank contract)"
erc20token="(the address of the ERC20 token your gastank accepts)"
PORT=3000
Now start up your gastank
nodemon
or
node index.js
A sample frontend that uses the gastank API can be found here : https://github.com/swarmcity/sc-gasstationclient