Giter Club home page Giter Club logo

crypto-payment-gateway's Introduction

Crypto-Payment-Gateway

Overview

  • You can buy Harkirat's course using the given testnet tokens. The course price is 2 tokens.

Verification logic

  • The application asks user to approve 2 tokens. The user gives a contract Payment.sol permission to transfer 2 tokens.
  • Then moveFunds function in Payment.sol is called by the user. Here the 2 tokens are transfered by the Payment.sol contract to a EOA, which is owned by me.

Where to get testnet tokens?

Contract and EOA addresses

  • EOA: 0x93104E260cb74E94038F4325098d31EE426C6F85
  • MyToken.sol: 0xA27612ea3e47750DD1Ff27223cfBAEE99BC9a401
  • Payment.sol: 0x21A14df46428681954AcEB96C7F39BD26D283d75
  • Faucet.sol: 0xb910de2349eb28985f2140ff286f70046beba916

Future improvements

  • I can use The Graph to index events and make the the moveFunds function emit event with email address of the user. And handle all the login in the backend rather than in frontend.
  • Also I can implement it in such a way, so that user just have to make one transaction, rather than 2 in the current scenario.

crypto-payment-gateway's People

Contributors

ameeetgaikwad avatar

Stargazers

Karampuri Laxmi Narsimha Swamy 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.