Coder Social home page Coder Social logo

elliottjobmann / token-allowance-checker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from triplespeeder/token-allowance-checker

0.0 1.0 0.0 18.72 MB

Control ERC20 token approvals

Home Page: https://tac.dappstar.io

HTML 1.72% CSS 0.35% JavaScript 1.37% TypeScript 96.56%

token-allowance-checker's Introduction

Token Allowance Checker ("TAC")

Introduction

Token Allowance Checker is running at https://tac.dappstar.io.

There is also an outdated screencast (no audio): https://drive.google.com/file/d/1hS05o5LhC5lc9JU9nEdihURikU3AimVi/view

The unlimited approval problem

Many DApps have the habit of requiring you to approve effectively unlimited amount of tokens. This helps improving the user experience, as you only have to sign off an approval once and it will be enough for all future transactions.

However this also means that the DApp (or the person/entity controlling it) can at any time transfer all of your tokens, without requiring any further approval.

In addition, there is no concept of expiring approvals. Once approved, the approval will remain forever. If you do not trust a DApp or its operators anymore, there is usually no easy way to remove the approval.

Empowering the user

Token Allowance Checker scans the complete Ethereum transaction history for ERC20-Approvals made by the provided address. It collects all ERC20 token contracts and any spender addresses that have been approved by the user in the past.

This information is displayed to the user, together with the up-to-date allowance amount.

For all entries, the user can edit or delete the allowance.

History

Originally this project started as a (winning) entry to the Gitcoin "Sustain web3" hackathon for bounty https://gitcoin.co/issue/dfuse-io/hackathons/2/3953. Since then it has evolved further, moving from a plain javascript react app to react-redux and typescript.

Technologies used

  • dfuse to search for allowances approved in the past.
  • Onboard.js for setting up web3 provider and accessing user wallet/accounts
  • Redux-Toolkit for efficient Redux development
  • typechain to generate typings for ERC20 contract ABI

Release workflow

  • PRs should go against development branch
  • To create a new release:
    • checkout development branch
    • issue npm run release - This will update the Changelog.md with all changes and create a new version tag
    • Create a PR against master
    • When the PR gets merged, travisCI will automatically deploy the latest release to gh-pages.

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.