Skip to content

Latest commit

 

History

History
135 lines (89 loc) · 3.38 KB

CUSTOMIZATION.md

File metadata and controls

135 lines (89 loc) · 3.38 KB

Customization guide

1. Change logo

  • copy svg logos to krypt-swap/src/front/shared/images/logo folder
  • in krypt-swap/src/front/client/index.js set up your url and image
export default {
  colored: {
    yourUrl: imageName,
    localhost: base,
    'app.kryptoken.site': logoColored,
  },
  common: {
    yourUrl: imageName,
    'app.kryptoken.site': logoBlack,
  },
}

(Way to index.html: krypt-wallet/src/front/client/index.html)

  • For change preloader go to index.html and change url to tour image
   <div id="loader" class="loader">
            <img id="loaderImg" src="https://kryptoken.site/wp-content/uploads/2022/04/kryptlogo.png" />
   </div>
  • change Cryptocurrency color krypt-wallet/src/front/shared/components/ui/CurrencyIcon/images
  • change icon to your (with the same name, e.x. "bitcoin.svg")
  • change Cryptocurrency icon krypt-wallet/src/front/shared/pages/Exchange/CurrencySlider/images

2. Change links to social networks

Set your own links in krypt-swap/src/front/shared/helpers/links.js

3. Change text

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

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

  • go to folder krypt-wallet/src/front/shared/localisation open en.json find string with the same id ("Row313")

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

4. Add your ERC20 token

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

5. Add token to "Create wallet" screen

  • go to krypt-swap/src/front/shared/redux/reducers/currencies.js and change addAssets: false, to true

6. Change project name in "too many tabs" screen

  1. go to index.html
  2. add / edit window.widgetName to your own

7. Change title

  1. go to index.html
  2. add / edit window.defaultWindowTitle to your own

8. Change logo link (default main wallet page)

  1. go to index.html
  2. add / edit window.LOGO_REDIRECT_LINK to your own

9. Set custom exchange rate

  1. add customExchangeRate to window.widgetEvmLikeTokens
  2. add usd price for window.widgetEvmLikeTokens

10. Add exit button to your widget

in index.html edit window.isUserRegisteredAndLoggedIn = false to true

enable/disbale blockchains on domain

add config named as your domain to krypt-swap/src/front/externalConfigs/swaponline.github.io.js

window.buildOptions = {
  showWalletBanners: true, // Allow to see banners
  showHowItsWork: true, // Allow show block 'How its work' on exchange page
  curEnabled: {
    btc: true,
    eth: true,
    matic: true,
    krypt: true,
    ghost: true,
    next: 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/kryptoken101/krypt-wallet/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".