GithubHelp home page GithubHelp logo

5l1v3r1 / gastoken Goto Github PK

View Code? Open in Web Editor NEW

This project forked from projectchicago/gastoken

0.0 1.0 0.0 69 KB

⛽ Tokenize gas on Ethereum with GasToken ⛽

Home Page: https://gastoken.io

Assembly 20.72% Python 53.40% Solidity 25.88%

gastoken's Introduction

GasToken is an Ethereum ERC20 smart contract that lets users tokenize gas, an internal resource used in Ethereum to pay for transactions. The idea is simple: store gas when gas prices are low, release it when gas prices are high and experience lower transaction fees. GasTokens can be traded like any other ERC20 token.

The details on how GasToken works can be found here: https://gastoken.io

This repository contains the Solidity code for two GasToken variants (GST1 and GST2) and exhaustive test suites of those contracts' functionalities. The contract/ folder contains our smart contracts, the test/ folder contains our pyethereum.tester based test suite.

Deployments

The contracts are deployed on Ethereum, Kovan (testnet), Rinkeby (testnet), Ropsten Revived (testnet), and Ethereum Classic.

Ethereum

Ropsten

Rinkeby

Kovan

Ethereum Classic

The GST2 code deployed on Ethereum Classic slightly differs from that on Ethereum and the testnets. For details, check out contract/GST2_ETC.sol

Dependencies

The code was tested using python 3.6.2 and Solidity Version: 0.4.18+commit.9cf6e910.Darwin.appleclang

Run

$ python -m pip install -r requirements.txt

to install the required dependencies.

Run Tests

To run the tests for the Storage-based GasToken (GST1), run

$ python -m test.test_GST1

To run the tests for the Contract-based GasToken (GST2), run

$ python -m test.test_GST2

To run tests for the RLP encoding used in GST2, run

$ python -m test.test_rlp

Authors

We are a team of blockchain researchers from around the world:

with advice, review, and support from Ari Juels (Cornell Tech, IC3, The Jacobs Institute).

We offer absolutely no support, guarantees, advice, or other help with GasToken. If you like it, use it.

gastoken's People

Contributors

ftramer avatar lorenzb avatar pdaian avatar shubhamtatvamasi avatar

Watchers

 avatar

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.