- copy svg logos to
MultiCurrencyWallet/src/front/shared/components/Logo/imagesfolder - in
MultiCurrencyWallet/src/front/client/index.jsset up your url and image
export default {
colored: {
yourUrl: imageName,
localhost: base,
'swap.online': swapOnlineColored,
},
common: {
yourUrl: imageName,
'swap.online': swapOnline,
},
}
(Way to index.html: MultiCurrencyWallet/src/front/client/index.html)
- For change preloader go to
index.htmland change url to tour image
<div id="loader" class="loader">
<img id="loaderImg" src="https://wiki.swap.online/assets/swap-logo.png" />
</div>
- change Cryptocurrency color
MultiCurrencyWallet/src/front/shared/components/ui/CurrencyIcon/images - change icon to your (with the same name, e.x. "bitcoin.svg")
- change Cryptocurrency icon
MultiCurrencyWallet/src/front/shared/pages/Exchange/CurrencySlider/images
Set your own links in MultiCurrencyWallet/src/front/shared/helpers/links.js
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
MultiCurrencyWallet/src/front/shared/localisationopen en.json find string with the same id ("Row313"){ "id": "Row313", "message": "Deposit", "files": [ "shared/pages/Currency/Currency.js" ] }, -
change text in
messagevalue
- go to
MultiCurrencyWallet/src/front/config/mainnet/erc20.js - go to
MultiCurrencyWallet/src/core/swap.app/constants/COINS.jsand add token there too - go to
MultiCurrencyWallet/src/front/shared/redux/reducers/currencies.jsand add token there too
- go to
MultiCurrencyWallet/src/front/shared/redux/reducers/currencies.jsand changeaddAssets: false,totrue
- go to
index.html - add / edit
window.widgetNameto your own
- go to
index.html - add / edit
window.defaultWindowTitleto your own
- go to
index.html - add / edit
window.LOGO_REDIRECT_LINKto your own
- add
customEcxchangeRatetowindow.widgetERC20Tokens - add usd price for
window.widgetERC20Tokens
in index.html edit window.isUserRegisteredAndLoggedIn = false to true
add config named as your domain to MultiCurrencyWallet/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,
ghost: true,
next: true,
},
}
Example: swaponline.github.io.js
- Make backup and
git pushall your changes to your repository - go here https://github.com/swaponline/MultiCurrencyWallet/compare?expand=1 , click Compare across forks
- select your repository in "base branch" (left)
- click "Create pull request" (enter any title)
- click "Merge pull request"
If you have conflicts (if sources has been changed on your side) click "resolve conflicts".