Giter Site home page Giter Site logo

ursfr / open-source-token-swap Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 154 KB

Open source token swap for beginners

License: MIT License

Java 4.59% Kotlin 0.37% Shell 1.42% Swift 1.19% Objective-C 4.70% Dart 67.97% HTML 14.98% Solidity 4.78%
blockchain blockchain-swap crypto firebase flutter metamask metamask-wallet solidity flutter-example flutter-examples flutter-web flutter-web-example flutter-example-app solidity-contracts solidity-language

open-source-token-swap's Introduction

ostokenswap

Open Source Simple and Easy Token Swap FOR WEB ONLY

THIS IS A OPEN SOURCE TOKEN SWAP MADE BY ME (Rodrigo), YOU CAN USE THIS FOR FREE WITHOUT RESTRICTIONS. IT IS NOT MANDATORY TO GIVE CREDITS, BUT I WOULD LIKE YOU TO DO IT BY REDIRECTING TO THIS GITHUB

Getting Started

This is a Token Swap from Real Crypto to Virtual Points and vice versa and it was made especially for new solidity programmers

How to make it work?

(Optional) Only need to connect firebase firestore (If you don't do this, you should store the points in another database or in a cache in addition to having to adapt it) There is a dart file named "Changeable_Variables" here you must add your own Contract Address, Json Abi and Token Address to work.

What Contains?

Deposit crypto, save points on firebase, withdraw crypto, delete points on firebase and save account metamask address in firebase with a small interface

Contract Steps

  1. There is a .sol file you must compile and deploy in Remix, Vyper or your desired IDE,
  2. Copy the ABI JSON and paste in Changeable_Variables.jsonAbi
  3. Copy the contract address and paste in Changeable_Variables.contractAddress
  4. Copy you desired token (crypto) address (by example: USDC) and paste in Changeable_Variables.tokenAddress. Remember that it has to match the operating chain

Notes

By default the connection to metamask is allowed in the 97 network, if you want to change it you must go to metamask.dart and change operatingchain to desired. You must change this if you have a contract or token in another chain

--

I do not provide any type of support when referring to open source but in case of errors in my free time I can solve them

open-source-token-swap's People

Contributors

ursfr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

lordmen99

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.