Giter VIP home page Giter VIP logo

wallet's Introduction

Deploy to swaponline.github.io

Open-source Multicurrency wallet for Bitcoin and custom assets, and p2p excahnge

Live version here: https://swaponline.github.io .

No coding skills? Buy WordPress plugin https://codecanyon.net/item/multicurrency-crypto-wallet-and-exchange-widgets-for-wordpress/23532064 with admin panel.

1. Multi-currency wallet. Your users can store Bitcoin and custom assets

Add many assets to your wallet.


Checkout this case: https://twitter.com/Atomic_Wallet (our real client)

3. ERC20 wallet

Wallet demo (custom asset "SWAP")

3. Buy/Sell assets . (Exchange widget)

Exchange widget live demo



4. Secondary market (trading btw users)

Demo (orderbook)

6. Other demos

USDT stablecoin wallet (payment system)

Swap React

Install

Eng

  1. Fork this repository (Click "Fork" on top of this page)
  2. Clone repository with submodules (swap.core)
git clone --recurse-submodules https://github.com/swaponline/swap.react.git
  1. Do npm i (windows? https://www.npmjs.com/package/windows-build-tools )
    (node 10 required, not 12!)
nvm use 10.18.1
cd swap.react
npm i
  1. Do git submodule update in swap.react directory

  2. For dev mode npm run start, for prod npm run build

    If you need to deploy it on your own (site) origin - run build like: npm run build:mainnet https://yourcoolsite.com/

npm run start

Build with custom ERC20 token (BTC,ETH,)

  1. npm run build:mainnet-widget {erc20contract} {name} {decimals} {tiker}

example:

npm run build:mainnet-widget 0x4E12EB8e506Ccd1427F6b8F7faa3e88fB698EB28 jack 18 JACK full
  1. upoad to your domain (https://domain.com/build-mainnet-widget)
  2. open in browser

Remember you MUST be online and you can not prosess more than one exchange at the same time. Otherwise you can use our custodian service for 1% fee and $50 setup. contact https://t.me/sashanoxon for details)

How to change images and colors

1. Logo

swap.react/shared/components/Logo

  • copy svg logos to imagesfolder
  • in index.js set up your url and image
export default {
  colored: {
    yourUrl: imagename,
    localhost: base,
    'swap.online': swapOnlineColored,
  },
  common: {
    сyourUrl: imageName,
    'swap.online': swapOnline,
  },
}
  • For change preloader go to "client/index.html" and change url to tour image
  <div id="loader">
      <img src="https://wiki.swap.online/assets/swap-logo.png" />
  </div>
  • change Cryptocurrency color swap.react/shared/components/ui/CurrencyIcon/images
  • change icon to your (with the same name, e.x. "bitcoin.svg")
  • change cryptocurrency icon /swap.react/shared/pages/PartialClosure/CurrencySlider/images

2. How to change links to social networks

`swap.react/shared/helpers/links.js`
  • в папке links меняем ссылки на свои

3. How to change text

To prevent any conflicts in future (when you will update your source from our branch)

  • find in sourse text like this: <FormattedMessage id="Row313" defaultMessage="Deposit" />

  • go to folder swap.react/shared/localisation open en.js find string with the same id ("Row313")

      {
          "id": "Row313",
          "message": "Deposit",
          "files": [
          "shared/pages/Currency/Currency.js",
          "shared/pages/CurrencyWallet/CurrencyWallet.js",
          "shared/pages/OldWallet/Row/Row.js"
          ]
      },
    
  • change text in message var

4. How to add new ERC20 token

  • go to swap.react/config/mainnet/erc20.js
  • go to swap.react/swap.core/src/swap.app/constants/COINS.js and add token there too
  • go to shared/redux/reducers/currencies.js and add token there too

5. How to add token to "Create wallet" screen

  • go to shared/redux/reducers/currencies.js and change addAssets: false, to true

how to update your version (fork) to latest version:

  1. Make backup and "git push" all your changes to your repository
  2. go here https://github.com/swaponline/swap.react/compare?expand=1 , click "Compare across forks"
  3. select your repository in "base branch" (left)
  4. click "Create pull request" (enter any title)
  5. click "Merge pull request"

if you have conflicts (if sources has been changed on your side) click "resolve conflicts".

DeFi style (borrow/lend)

https://drive.google.com/file/d/15e0ODxzbtiu0xJOeKKuJ2SzffZmc5_OA/view

for any questions: telegram sashanoxon

wallet's People

Contributors

0xzick avatar noxonsu avatar shendel avatar naggertooth avatar caffeinum avatar sorentobot avatar pasha8914 avatar nthgness avatar xahon avatar pavelivanov avatar general-beck avatar dtaipov avatar 7flash avatar indapublic avatar trubnikovr avatar spoki4 avatar meati avatar bootwp avatar spaider15 avatar olegstotsky avatar dimalitvinov avatar ivan-khludov avatar dariapurtova avatar fsanano avatar qmir avatar sibedgeswap avatar ex1st0r avatar coinfundapp avatar chromebookman avatar nevermind2121 avatar

Watchers

 avatar

Forkers

manive987

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.