From 3224d6fff489fa214c254c6c70a817409a1b5dc8 Mon Sep 17 00:00:00 2001 From: Stefan Popov Date: Tue, 31 Oct 2023 09:17:33 +0100 Subject: [PATCH] Release 1.24.0 (#1209) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update wallet to TBCD (#940) * Update wallet (#943) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Upgrade PW SDK (#930) * add phone input * Update Phone.vue * implement logic * Update ConfirmationInfo.vue * add disclaimer for X1 * Update ToSDialog.vue * fixes * update wallet 1.15.0 (#945) * fixes (#946) * fixes * typo * Fix styles issues related to card (#948) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * [Explore Page] Hide tokens & pools with zero tvl (#941) * change tokens page data handling * update explore pools * remove console * tokens min liquidity 1 --------- Co-authored-by: Stefan Popov * improve routing (#947) * Add loading state for router * Add setLoading mutation for router * Add comment * Modify goto logic of router * Add links * Add page loader * Improve goTo with additional checks pages by default * Update vue router * Update generateLocaleJson.ts * Fix page loading * Use goTo for separate moonpay page * Update comment * Add Sonar --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> * fix (#949) * Fix lokalise and SORA Card issues (#950) * Remove sora, evm, pageNotFound * Add polkadot apps link to bridge txs * Update lokalise keys * Improve images * Improve card routing * Update ConfirmationInfo.vue * Fix texts --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix phone and styles for card (#951) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix sora card phone and route (#952) * Fix phone inputs (#953) * Fix phone inputs * Update Email.vue * add const * Update Phone.vue * Update Phone.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> Co-authored-by: RustemYuzlibaev * Fix email, first, last name length (#954) * Fix email, first, last name length * Add loader for euro calculations * Update SoraCardIntroPage.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * git (#955) * test push * refactor * tmp disable sonar * fix cred name * update wallet to 1.15.2 (#957) * update wallet to 1.15.2 * fix issues after wallet update * update wallet to 1.15.3 * change value * fix json error (#958) * fix path * fix path * switch to tachi * test * revert lib * test values check * fix lib * DAST pipeline update * Update Jenkinsfile-dast * revert lib * fix (#961) * Fix connection disconnected event (#960) * fix disconnected event * update wallet to 1.15.4 * update translations --------- Co-authored-by: Rustem * Update Jenkinsfile-dast * Update Jenkinsfile-dast * Update Jenkinsfile-dast * Update Jenkinsfile-dast * Update Jenkinsfile-dast * Otp resend try fix (#964) * add event * fix OTP resend issue * wipe email before start * low limit * SORA Card translation (#959) * prework * add lang keys * update translations * todo rejection translation * update translations * update translations * Update Jenkinsfile-dast * Free KYC attempts counter (#962) * prework * add lang keys * prework * update translations * todo rejection translation * add flow with new KYC attempt * improve price request * fix * Revert "fix" This reverts commit 18af1f3511db8940308bcab180a5bb4ab3c90a5b. * show pending status when finished KYC * remove price calculation stub * update translations * merge translation PR * show reject reasons * email fix resend (#967) * Update Email.vue * add missing words * Hide LP fee (#968) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix liqudity proxy route and args (#969) * update liquidity-proxy calls * update wallet 1.15.7 * multiple otp send fix (#970) * fix * cancel changes * fixes * update wallet 1.15.9 (#973) * update wallet to 1.15.10 (#974) * Status bar & SORA Card fixes (#882) * Draft * Add subquery & node connection checks * Add node location * Fix imports for App component * Add no internet dialog * Fix location in node model * Add footer popper * Draft * Fix margin * Remove node selection from header * Move all common logic to footer popper * Add interaction with tab * Fix outline * Update SwapTransactionDetails.vue * Use Notification mixin * Fix colors * Fix colors * 2nd Draft * Replace node selection dialog * Remove unused deps * Move SelectNodeDialog * Fix styles for slippage tolerance * Add new const * Update SlippageTolerance.vue * Refactor AppFooter & NoInternetDialog * Update statistics dialog * Finilize colors for Statistics statuses * Update library * Update yarn.lock * Update StatisticsDialog.vue * Add scss/css variables * Update en.json * Update translations * Update en.json * Update translations * Fix displayRegions * Fix styles in StatisticsDialog * Keep selected node details up to date * Add TODO * Fix imports * Fix SORA Card issues * Translate blacklisted countries * Fix SORA Card translations * Handle case when `navigator.connection` isn't supported * Update StatisticsDialog.vue * Update App.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Update Jenkinsfile * Reduce bundle size (#942) * Reduce bundle size * Update vue.config.js --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Feature/network stats (#931) * refactoring styles * refactoring letter-spacing * network-stats-row * improve network stats adaptive * refactoring columns data * change group data logic * tvl chart wip * add ChartSkeleton component * handle chart error & update tooltip * add volume chart example * refactoring specs * refactoring components folder structure * wip refactoring folders structure * refactoring components folders * wip fees chart * fix charts fetching * data fetching for supply chart * add token-dropdown to supply chart * skeleton fixes * fixes * fix error * refactoring * fix imports * update network stats components * refactoring charts data fetching * update translations * test * revert lib * refactoring imports * refactoring MarketAlgorithm paths * fix weekly stats, legend, x axis overlap * SimpleNotification from wallet * update according qa * update translations * network stats chart fixes * supply bar chart * update supply color, explore method --------- Co-authored-by: Stefan Popov Co-authored-by: Pavel Varfolomeev * Update Jenkinsfile-dast * Move disclaimer to front page (#965) * Update SoraCardIntroPage.vue * add to front page & fix translations * add flow with not found number * add missing translations * remove debug actions * remove unused css * Fix/bridge select asset (#976) * fix bridge select asset * fix bridge history request * fix transaction-details arrow * upfate wallet 1.15.11 (#977) * move disclaimer (#914) * Update AppHeaderMenu.vue * add popover * store value * remove old disclaimer * add translation keys * fix type * use css variables * add defined box-shadow * update translation * force user to make decision * Update storage.ts * show disclaimer if no approve * set disclaimer * fix * wait until loading * add translations * fix margins * fix width --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * fix (#980) * Fix max limit speed for internet connection (#975) * Fix max limit speed for internet connection * Fix issues * Fix tab issues * Fix issue with negative left values --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Add Token Velocity column to Tokens Page (#979) * add velocity columns * add en translation * update translations * fix css * remove symbol column from tokens page --------- Co-authored-by: Stefan Popov * remove keys (#981) Co-authored-by: Stefan Popov Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> * Demeter dialogs bottom padding adding (#982) Co-authored-by: Rustem Co-authored-by: Stefan Popov * update wallet 1.15.12 (#983) * Add routing for pairs (#971) * Add routing for pairs * Fix * Update index.ts * Finilise routing flow * Update SelectedTokensRouteMixin.ts * Update SubscriptionsMixin.ts --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix release issues (#984) * Fix action button styles in status bar * Fix z-index * Fix outline styles --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Move disclaimer to App Header (#986) * Move disclaimer to App Header * Update AppHeaderMenu.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Move disclaimer to App Header (#986) * Move disclaimer to App Header * Update AppHeaderMenu.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * fix swap container and chart align (#987) * fix supply chart axis label (#989) * Fix release issues (#990) * Fix SWAP route issue * Fix outline styles * Add online/offline consts * Remove translation keys for online/offline --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Update Jenkinsfile to use PR-generator SecretStore bot secret Signed-off-by: BAStos525 * Fix flag (#992) * Fix flag * Update AppFooter.vue * Update countryFlagEmoji.ts --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix styles (#994) * Update card.ts (#997) * add formula to velocity tooltip (#996) Co-authored-by: Rustem * apply suggestions Signed-off-by: BAStos525 * Reuse subscriptions in SubscriptionsMixin (#998) * reuse subscriptions in SUbscriptionsMixin * change variable name * update router config (#999) * Improve sora card styles (#1000) * Improve sora card styles * Remove logs * Update Widget.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix seo logo (#1001) * fix camera translation (#1002) * fix (#1003) * fix subscription hooks (#1004) * add DialogTitle component (#1005) Co-authored-by: Stefan Popov * Add nodes location for prod (#1006) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * change text from accounts to new accounts (#1010) * try fix Signed-off-by: BAStos525 * try fix Signed-off-by: BAStos525 * try fix Signed-off-by: BAStos525 * try fix Signed-off-by: BAStos525 * try fix Signed-off-by: BAStos525 * update polkadot deps and fix account length (#1014) * Update polkadot js deps * Fix wallet --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Explore page improvements (#1012) * change pagination of explore page * simplify query & change velocity calc * freeze components external data * remove unused code * refactoring demeter pages * up version * refactoring token approve (#1008) Co-authored-by: Stefan Popov * update wallet to 1.16.2 (#1017) * Refactoring getters (#1018) * move some getters to components * refactoring select-token component * remove getter * Update crowdloans (#1022) * update crowdloan rewards * update wallet * css fixes * change request * update private modifiers * use rw bot Signed-off-by: BAStos525 --------- Signed-off-by: BAStos525 Co-authored-by: BAStos525 * up wallet (#1024) * update wallet for crowdloans fixes (#1025) * update crowdloans in actions * ypdate yarn.lock * fix type * Update xst swaps (#1027) * update swap view * update wallet init * update genesis hash check (#1028) * Update env.json (#1029) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Update env.json (#1030) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Google wallet (#978) * wip integration * remove isDesktop flag * add en translation keys * update dialogs paddings * update wallet 1.16.0-beta.2 * experiment with secretScannerExclusion * secretScannerExclusion regex experiment * add empty keys to prod env.json * fix bridge tx signing * update wallet 1.16.0-beta.4 * small css fixes * update wallet to 1.16.0-beta.5 * update wallet * update translations * update wallet * filter zero tvl snapshots (#1033) * remove unused contracts (#1034) * fix Jenkinsfile PR-generator part Signed-off-by: BAStos525 * add downstreamJob (#1042) * Add fearless (#1038) * Add fearless for SORA card * Fix route params * Update SoraCard.vue * Add message * Update KycView.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * price alerts (#1013) * prework * use wallet store * add translations * add translation & update wallet & fix * Update en.json * fix double dialog overlay * add delta percent calculation * adjust * use rw bot for PR-generation Signed-off-by: BAStos525 * fix PR-generation var Signed-off-by: BAStos525 * add typings * update PR-generation vars Signed-off-by: BAStos525 * write logic for display of low cost assets * switch to false when not granted * annotate params * take into account abnormal setup * up wallet * add translations * add translations from localise * fix wiped translations * fixes * fixes * format --------- Signed-off-by: BAStos525 Co-authored-by: BAStos525 * Trustless EVM Bridge support (#792) * refactoring utils bridge folder structure & exports * update wallet integration * import EthBridgeStates from wallet * add eth hashi bridge translations * transfer updateEthBridgeHistory function to settings * wip web3 refactoring * wip update registered assets * change network in metamask * wip network select & change * select network dialog refactoring * evmAddress evmNetwork in storage * update bridge confirm dialog * wip update bridge view * prepare history item creation * wip BridgeTransaction view * wip Bridge class * wip evm bridge transaction handler * wip outgoing reducer * subscribe on tx details * update BridgeHistory view * add evm hash container * update TransferNotification * update network selection * update select network dialog for history usage * add select network to bridge history * show history from network * update transfer flow * update history sync logic * refactoring sync * wip bug fixes * refactoring state * improve removing local history * update Moonpay integration * mock incoming reducer * change selected evm network on moonpay history * fix async process * refactoring BridgeContainer * add some chains to list * refactoring chain names * fix hashi bridge history restoration * update network changing for hashi bridge restoration * resolve SelectToken conflicts * remove merge conflicts * fix merge conflicts * add sepolia to config * update with library imports * remove merge conflicts * fix messages file * fix merge conflicts * fix components names * wip select network * resolve ts issues * return eth bridge settings * update registered assets for network types * update history params * refactoring bridge classes * refactoring bridge interfaces * return eth bridge sign actions * fix select asset mixin * wip update bridge history * update history actions * start up bridge transaction * update bridge getters * fix network switch * update history states * refactoring bridge types * refactoring eth reducers * return approve from dev * return blocks left message * refactoring translations * update external history * update select network dialog & icons * history refactoring * networks disabled state * improve bridge transaction view * change eth bridge storage key * update wallet, remove unused translations * refactoring bridge types * update translations from localise * update translations * remove some todo * refactoring eth history class * dont restore evm address * reduce method complexity * reduce complexity * fetch balances right after account connec * remove unnecessary code from bridge reducers * fix bug when restored transaction overrides in process * fix history restoration * revert transactions fetching logic * refactoring tx date * update prod config * refactoring getRegisteredAssets * improve getRegisteredAssets update * fix bug with lost balance * remove console.log * refactoring block production time usage * update wallet * refactoring network icon * fixes after review * remove unused method * fix network change detection * improve evm network switch * refactoring smart contracts usage * remove unused imports * fix allowance check * fix approve btn message * refactoring getRegisteredAssets * update external balances * update translations (#1047) * remove tilda sign (#1045) * Update AppDisclaimer.vue * add translations * add missing * fix pw sdk & add countries (#1044) * fix pw sdk & add countries * extend interval * remove camera access when applied * add more countries * add css var * switch branche of jenkins library * switch to master branch for jenkins library * handle X1 unavailability * Update X1Dialog.vue * cancel remove camera access * refactor * remove unused package --------- Co-authored-by: Aleksey Kazakov Co-authored-by: Stefan Popov * Create hideFromSearchEngine.sh (#1046) * Create hideFromSearchEngine.sh * Update hideFromSearchEngine.sh * add noindex * revert lib * delete script --------- Co-authored-by: Pavel Varfolomeev * Improve ext connection and linting (#1053) * Improve extensions connection * Improve linting * Update deps * Update yarn.lock * Improve config * Exec lint --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * fix trailing char (#1056) * Fix synths (#1057) * Substrate bridge outgoing (#1059) * update imports * add substrate networks to select * fix available sub networks * wip list assets * update bridge view * add sub reducer * update bridge transaction view * update external history * fix history reset * add bridge select account dialog * refactoring bridge select account * update SelectAccount ui * wip select account directions * update bridge change direction * update env.json * update sub reducer * update sub history * update translations & wallet * use lint config from dev * set outgoung direction for sub bridge * Fix/disclaimer btn show (#1058) * fix trailing char * Update AppDisclaimer.vue * Update AppDisclaimer.vue * make button out of scroll area * adjust timeouts * add error case * remove duplicates * remove class * Fix Sub bridge issues (#1060) * reset form on network change * fix network name in ui * update KAR address * update wallet * add text for scroll (#1064) * Fix bridge network update from metamask (#1065) * fix bridge network change detection * fix polkadot.js link * Add fee multiplier support (#1066) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * change welcome text (#1069) * Fix/substrate outgoing network select (#1076) * reset form on network change * fix network name in ui * update KAR address * wip rococo adapter * fix yarn.lock * update assets on network change * update balance method for sub * fix adapter connection wait * refactoring action name * refactoring block number usage * update external balance for selected asset * network update fixes * native balance update * Set up coverage * separate prod and stage * fix var * add pre branch * fix var * revert lib * Update actions.ts (#1078) * Substrate bridge incoming transaction tracking (#1081) * reset form on network change * fix network name in ui * update KAR address * wip rococo adapter * fix yarn.lock * update assets on network change * update balance method for sub * fix adapter connection wait * refactoring action name * refactoring block number usage * update external balance for selected asset * network update fixes * native balance update * update external data after sora block update * update selectedNetwork data * show sender & recepient balance * fix balance update * update env.json * update adapters endpoints * add messageHash from collator as externalHash temporary * wait for rococo message * add external links * fix adapter endpoint reset issue * refactoring sonar related issues * incoming transaction signing * incoming transaction tracking demo * remove unused update balances * fix history remove * fix BridgeTransaction asset balance & refactoring * sub history update * disconnect after bridge leave * refactoring disconnect * update wallet * revert env.json * remove console.log9 * fix (#1082) * fix * Update AlertList.vue * fix ru * Fix sub assets fetching & hashi bridge issues (#1083) * fix hashi bridge * fetch sub bridgeassets * update wallet * fix external account check * remove unnecessary codeline * remove console.log * Change jenkins lib * Update KycView.vue (#1084) * Fix bridge account link (#1085) * fix bridge account link * wait for external balances fetching * refactoring bridge fees & balances fetching * fix sonar issues * fix sub tx trancking * fix transaction link style * Fix xst & sorting on explore page (#1075) * Update Wallet.vue * Fix regexp * Refactor tokens page * Add default sorting for tokens page * Update Tokens.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix issues 1.17 (#1086) * Hide 'show only synths' * Update CERES endpoint for status bar --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Check changes for errors * Revert * Fix notification links (#1092) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Add params * Merge fixes from release 1.17.0 (#1097) * Fix transaction view balance check (#1095) * fix ui checks * fix computed * Fix bridge external decimals (#1096) * fix ui checks * fix computed * fix check * Fix evm expected fee (#1091) * update evm gas price * improve gas fee calculation * remove mainnet from evm networks ids * update gasLimits * add external fee warning * refactoring externalBalance * update locales * update translations from localisr * fix merge conflict * Save sub bridge transaction fees in runtime tx processing (#1088) * fix hashi bridge * fetch sub bridgeassets * update wallet * fix external account check * remove unnecessary codeline * remove console.log * demo for fetching extrinsic fee * fix merge conflict * save tx fee & xcm fee * remove duplicated code from bridge reducers * improve network restoration * refactoring external native token balance * refactoring registered asset naming * update evm gas price * update evm gas price * improve gas fee calculation * remove mainnet from evm networks ids * update gasLimits * add external fee warning * refactoring externalBalance * update locales * update translations from localisr * impove outgoing tracking * wip locked balance * use locked balance in bridge calculations * refactoring * update BridgeTransaction asset locked balance check * refactoring event search * get bridge contract asset locked balance * remove Karura from config * refactoring before wallet update * update wallet 1.18.1 * calc evm fee based on asset kind * fix sonar issues * fix naming * Bridge balances refactoring (#1100) * update store balances * remove externalBalance from sort method * refactoring balance update * bridge route params * Change jenkins lib * spam reminder & bridge fee fix (#1103) * address book (#1099) * bump wallet * add lang * Update KycView.vue * bump wallet * update wallet 1.18.5 (#1106) * [SORA Card]: change camera access request (#1107) * add functionality * add translations * add css vars * Update KycView.vue * Update KycView.vue * Update SECURITY.md (#1105) * Update SECURITY.md Quick grammar fixes to security policy * Update SECURITY.md * Update SECURITY.md * Update SECURITY.md --------- Co-authored-by: Rustem * [Swap] Show loss warning dialog (#1108) * update value-status-wrapper * add loss warning dialog * update translations * fix loss translation argument * update wallet 1.18.8 (#1110) * Fix sub bridge tracking issues (#1104) * fix incoming tracking first steps * improve rococo incomplete transaction tracking * update retry button * refactoring namings in sub reducer * return env.json * parachain data tracking * add sora parachain hash to transaction ui * improve incoming failed tx tracking * refactor to pass sonar * add block height & blocks left in ui * update wallet 1.18.6 * refactoring adapter usage * wip adapters usage * try to refactor complexity * replace adapters in reducer * add beforeSign to bridge reducer * move sora sign to reducers * refactoring signExternal * try to pass sonar * refactoring complexity * refactoring duplicated code * fix incoming tracking & transfer notification modal * [Bridge UI] Use xcm fee in amount calculations (#1112) * fix incoming tracking first steps * improve rococo incomplete transaction tracking * update retry button * refactoring namings in sub reducer * return env.json * parachain data tracking * add sora parachain hash to transaction ui * improve incoming failed tx tracking * refactor to pass sonar * add block height & blocks left in ui * update wallet 1.18.6 * refactoring adapter usage * wip adapters usage * try to refactor complexity * replace adapters in reducer * add beforeSign to bridge reducer * move sora sign to reducers * refactoring signExternal * try to pass sonar * refactoring complexity * refactoring duplicated code * fix incoming tracking & transfer notification modal * add externalTransferFee to store * rename evm to external fee * get transfer fee from const * update bridge main form & logic * fix bridge formatted fee * native token decimals * revert BridgeInitMixin changes * Fix node name in status bar (#1113) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Add soramitsu node (#1114) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * update wallet 1.18.9 (#1115) * Update nodes names (#1116) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * [Tech] Testing workflow (#1111) * Update card.ts * fix sr lang * add Auth and KYC SDK creds * fix typo * use dev price oracle * Update X1Dialog.vue * Update X1Dialog.vue * Update X1Dialog.vue * Update X1Dialog.vue * check url * change images * remove mentions * Update sr.json * Update X1Dialog.vue * switch to prod endpoint * Update KycView.vue * Update X1Dialog.vue * Update card.ts * debug * Update KycView.vue * Update X1Dialog.vue * Update X1Dialog.vue * Fix todo-s comments * make silent * fix typo * debug referenceNumber * Fix soraNetwork issues * Update KycView.vue * Fix types issue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * remove sora parachain xcm fee, update rococo event (#1120) * update wallet with google login (#1121) * Get blacklisted countries from ipfs (#1122) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * update wallet with google seed fix (#1124) * Sub history restoration update (#1127) * remove sora parachain xcm fee, update rococo event * wip history restoration * add parachain data for history restoration * show parachain block id instead of extrinsic hash * wip outgoing tx restoration * sub history incoming restoration * unify bridge history actions * refactoring sub history restoration * update wallet 1.19 * update TransactionView external hash placeholder * refactoring sub history * fix decimals in locked balance check (#1128) * Update KycView.vue (#1131) * Fix release 1.19 (#1134) * Update mainnet config * Update zh_CN.json * Improve translations * Update wallet version --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * fix decimals usage (#1136) * Use address book in sub bridge (#1133) * use address book in sub bridge * update wallet & fix BridgeTransaction vie * Fix release 1.20 (#1141) * Fix types & remove brackets for fiat difference * Set 10% as the default error status for fiat difference/price impact * Fix issues with Cyrillic character * Add synths filter --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * added wallet translations for swap transfer batch extrinsic * Vue 2.7.14 & update packages (#1145) * remove vue-svg-loader * remove cache-loader from vue-loader * rewrite vue.config.js * update wallet * css fixes * remove sass warnings * fix spacing * add alt attrs to RoadMap * remove some todo * fix calculator btn * Pools & Explore pages default sort (#1146) * remove vue-svg-loader * remove cache-loader from vue-loader * rewrite vue.config.js * update wallet * css fixes * remove sass warnings * fix spacing * add alt attrs to RoadMap * remove some todo * explore pages default sort * add pools default sort * add default sort to demeter staking * refactor tokens items * send sora card refresh token (#1140) Co-authored-by: Stefan Popov * Refactoring (#1148) * refactoring * await, fix types * unify payment systems (#1048) * refactor X1 * refactor payment system * resolve imports issues * add eth icon * debug * debug * add connect wallet buttons * debug * remove debug * debug info * improve icons * remove unused icon * add margin * fixes * adjust icons for ads * add translations * adjust pop-ups of ads * add missing translation * add delay * add other langs * update langs * adjust footer * disable x1 * Update env.json * Update env.json * show XST ad with higher probability * add const * update prod env.json * update env.json * show when logged in * make button pressed * Update X1Dialog.vue * add prod creds * improve ads * Update AppAd.vue * improve texts and remove MC icon * Update ethers library to v6 (#1147) * remove vue-svg-loader * remove cache-loader from vue-loader * rewrite vue.config.js * update wallet * css fixes * remove sass warnings * fix spacing * add alt attrs to RoadMap * remove some todo * update ethers usage * refactoring ethers utils * add type annotaions * small fixes * wip external fee * refactoring adapter to remove hardcoded networks usage * add prefix for external fee * history restoration console info * fix sub bridge max btn * remove external network fee getter * refactoring * fix sonar issues * refactoring bridge utils * update api.query usage * improve tracking * refactoring sub reducers * improve sub history restoration * sonar issue refactoring * wip external fiat values * add nativeTOken getter to bridge * fix BridgeTransaction address * refactoring balance utils * remove bridgeApi from getters * fix transaction view prefix * update wallet 1.21.2 * remove unused variable * ADAR name is const now * updated localize for adar * Update swap subscription (#1150) * remove vue-svg-loader * remove cache-loader from vue-loader * rewrite vue.config.js * update wallet * css fixes * remove sass warnings * fix spacing * add alt attrs to RoadMap * remove some todo * update ethers usage * refactoring ethers utils * add type annotaions * small fixes * wip external fee * refactoring adapter to remove hardcoded networks usage * add prefix for external fee * history restoration console info * fix sub bridge max btn * remove external network fee getter * refactoring * fix sonar issues * refactoring bridge utils * update api.query usage * improve tracking * refactoring sub reducers * improve sub history restoration * sonar issue refactoring * wip external fiat values * add nativeTOken getter to bridge * fix BridgeTransaction address * refactoring balance utils * remove bridgeApi from getters * fix transaction view prefix * update wallet 1.21.2 * remove unused variable * prepare for subscription update * update wallet 1.21.5 * Fix dev branch issues (#1152) * fix json import (#1153) Co-authored-by: Stefan Popov * bump wallet version and update yarn lock * Swap quote subscription (#1156) * initial changes * update types * update accessors * remove unused imports * add try catch to subscriptions (#1157) * update wallet 1.21.8 (#1158) * allow select node while node is connecting (#1159) * revise & dashboard (#1129) * KYC revise & dashboard * refactor code * remove test data from build * Update env.json * fix appearance bug * do not hide iban * create translations and refactor icons * add translation * notification prework * css refactoring * fix sonarCube issues * add support for kyc count * plural forms * add pools subscription to calc balance * fix fetching * update langs * fix * Update SoraCard.vue * fixes * Update Dashboard.vue * Fix release 1.21 issues (#1160) * Update address book input props * Replace toPromise * Update wallet lib * Update translations * Update referral system strings --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Remove synths blockers from Add LP (#1162) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Add synthetic switcher to select asset (#1161) * add synthetic switcher to select asset * fix check in create alert * update add liquidity select token --------- Co-authored-by: Stefan Popov * Improve ads (#1163) * Add first version of dynamic ads * Add responsive * Fix sora card progress bar styles * Add screenBreakpointClass * Make header responsive * Make FiatDeposit view responsive * Fix names & remove unused svg-s * Update AppAd.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Add debounce to resize event (#1164) * Add debounce to resize event * Fix names * Fix images size --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix content bottom margin (#1165) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Update App.vue (#1167) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Merge master (#1168) * Release 0.1.2 (#80) * Add base project files * Add About page * Add unit tests * Remove unused files * Update library version * Moved images to img folder. * Refactored some styles, added normalize css. * Fixed article card header font weight. * Fix About snapshot * Fix styles and its imports * PSS-132: Token list store * Add env.json and readme * PSS-134 DevOps: Develop CI and CD processes for Polkaswap web project (#5) * add ci cd Signed-off-by: Bulat Saifullin * fix Dockerfile Signed-off-by: Bulat Saifullin * add pull_request_template.md Signed-off-by: Bulat Saifullin * fix template Signed-off-by: Bulat Saifullin * PSS-132: Select token screen * PSS-132: Refactoring * PSS-132: Change short name to symbol * PSS-132: Add i18n to select token * PSS-132: Add unit tests * PSS-132: Remove elements from tests * Added Swap Interface draft (#4) * Swap Interface: Added screen, Unit Tests, Updated UI Lib version. * PSS-132: Create pair * PSS-132: Fixes for select token * PSS-132: Fix title style * PSS-132: UPdate snaphots * PSS-132: Fix shadow * PSS-132: Fix variable style using * Swap Interface Confirmation Screens (#8) * Added Transaction Submit dialog. * Swap Interface: Moved some variables to store for better relations between different screens and dialogs. * Confirm Swap Dialog: Fixed dialog opening, added confirmation flag to the store. * Added token default logo image, refactored translation call for liquidity. * Added SelectToken dialog on click. * PSS-126: Confirm supply modal * Confirmation screens for create pair * Design fixes * Update ui lib * PSS-126: Logo component * Update tests * Wallet integration and styles issues (#10) * Wallet integration * Fix routing issues * Update UI library version * Refactor all styles * Fix wallet connected state * Update tests * Update test * Update Dockerfile (#12) * PSS-129: Add and remove liquidity page * Design fixes * Token logo check fixes * Refactoring and fixes * Add pair token logo for add liquidity * Settings implementation (#15) * Add settings dialog * Add tests * Update tests * Fix titles for info card * Pool Interface Start Screens (#11) * Pool Interface: Added Start Screen. * Refactored components due to UI Lib updates: set size and border-radius of elements. * Created Dialog wrapper component, refactored dialogs, added fixed top position, fixed close behaviour. * Refactored components imports. * Converted logo icon to link to the home page. * Fixed error in console for Create pair component. * Added Back link behaviour for several components. * Updated unit tests. * PSS-172: Dynamic Page Title (#14) * Added dynamic page title. * PSS-128: Add confirmation screens for pool (#16) * PSS-128: Add confirmation screens for pool Co-authored-by: alexnatalia * Mocks for pool screen * Refactoring * Update tests * Add liquidity button for pairs * Design Fixes and Refactoring (#17) * Refactored TokenLogo and PairTokenLogo components, fixed some bugs, updated unit tests. Refactored components headers. * Added Popper class for info tooltips. Fixed default prop value for Object types. Updated Unit tests. * Design Issues Fix (#19) * Updated configuration variables and Exchange tabs styles. * Updated About page images and styles, Header styles and Menu colors settings. Hid unused links and buttons in header. * Updeted typography variables and Font Styles: Updated Font Size, Line Height and Font Weight Configuration. * Updated Create Pair button styles. Updated Ui Lib version. * Fixed tokens icons for Pool screen. * Updated tooltips to one consistent style. Fixed Pool screen bug. * Refactored: Created special component for Generic Header. Fixed Back icon. * Updated some fonts and Pool screen styles. * Added Empty icon for Select token popup. * Added First Liquidity Provider message to Create a Pair screen. * Hid tooltip for Slider element on Settings screen, hid tooltips for Swap Confirmation. * Updated unit tests. * PSS-205: Remove liquidity: everything should be clickable and with recalculation * Update tests * Fix set remove part to 0 * Inpur for remove part * Fixes * Price container fixes * Update tests * PS-223: Fix remove liquidity in safari * PSS-205: Design Review Issues (#21) * Fixed titles case. Updated buttons with text and icons. Updated typography styles. * Update wallet version & add blockchain integration (#23) * Update wallet version & add blockchain integration * Commented out unit tests. Co-authored-by: alexnatalia * PSS-123: Select token integration * Fix async behavior for dexApi (#25) * Fix async behavior for dexApi * Update .eslintrc.js * PSS-247: Custom Slippage Tolerance Fix (#27) * Updated STab styles. * Updated UI Lib and Wallet versions and styles according to UI Lib fixes. * PSS-129: Add liquiditiy integration * PSS-74 Swap Interface Integration (#26) * Hid swap info for not connected wallet. * Updated SelectToken search by name, added check for translation existance. * Added Swap Integration. * Refactored formatNumber calls. * Hid swap info under buttons for zero amount. * Fixed Header Menu colors. * Fixed swap from Wallet assets. * Updated tooltips. * Updated About page text and Main menu links order. * Fixed Card title color for About page. * Updated Default token setting. * Updated Wallet version. * Hid Transaction Deadline area for Settings. * Removed unneeded tooltip from Settings dialog. * Added validation for Settings. * Added validation for Insufficient Amount error from server. * Added loading while not conencted, changed store to not strict mode, updated tokens setting in store. * Fixed focused behaviour for Swap input fields. * Fix wallet connection & select token behavior * Fixed Min Received format. Co-authored-by: Stefan Popov * Swap result calculation for non connected mode (#28) * Fixed Swap result calculation for non connected mode. * Fixed About page text and styles. * Fix i18n (#30) * Updated Swap input width and Max swap behaviour. Updated Swap Info styles. (#29) * PSS-271: Medium and GitHub links (#31) * Added Github and Medium links for About page. * Upated the Wallet version. * Fixed wallet button color on hover. * Calculate total suply * PSS-216: Design Issues Fixing (#32) * Updated content primary color. * Fixed Price and Token areas horizontal alignment. * Updated tooltips. * Updated Generic Header tooltip. * Updated Token item height for Select Token dialog. * Added Token icons. * Updated token icons names. * PSS-129: Create pair integration * Remove mocks * Refactoring * Add network fee calculation * Fixes * PSS-281: Recalculate Input Values On Select Token (#33) * Added util method to check isNumber value. Removed Max button from token To area. * Added Max sold for reversed swap. * Updated Swap Integration. * Updated UI Lib version. * Added recalc on Select Token. * Fixed Swap for Polkadot.js * Updated isExchangeB param in methods. * Hid Node Address area for Settings popup. * Added Network Fee field to Swap component. * Updated Custom slippage tolerance for Settings. * Fixed paste string value to Swap fields. * Updated Network Fee calls, updated Wallet version, fixed swap tokens balance. * Added isExchangeB parameter to swap call. * Refactoring * fix total supply * PSS-129: Share of pool * Remove share of pool mock * Fix get asset symbol * Hide add liquidity Fix slippage tolerance for add liquidity Fix share of pool Fix unsupprted assets error message * Disable max button for add liquidity Reset values after change tokens * Fixes * Updated Tokens Icons, added PAL icon. (#35) * Wallet connection issues (#38) * Fix wallet connection issues * Fix styles * Update wallet version * Update favicon.ico * PSS-297: check fee on max amount * PSS-295: Added Insufficient Balance Checking (#37) * Added Insufficient balance checking. * Updated FPNumber parameters. * Removed formatNumber usage from Swap screens. * Fixed focus and placeholders values for Swap. * Updated some styles for huge number values. * Refactored due to PR comments. * Result Dialog Styles Fix (#41) * Fixed Result Dialog button styles. * Renamed USD icon. * Update library * Fix swap, liquidity behavior * Update index.ts * TODO: Revert this commit after PSS-309 * Updated wallet version. Co-authored-by: Stefan Popov * PSS-273: WEB UI: Connect Wallet - Close button leads always on Exchange page, not to the previous page (#42) * Fix routing issue * Update wallet version * PSS-295: Confirm Swap Insufficient Balance Checking (#43) * Fixed console error on tokens switch. * Added Is Insufficient Balance checking for Confirm Swap dialog. * Updated Confirm Swap styles. * Updated Swap info after Swap, added max button to init screen. (#44) * Update ui library version (#46) * Update ui library version * Update wallet * BP-312: Fixes for pool * Fix icons position (#47) * Fix icons position * Fix logo * PSS-287: Swap Amount Fields Formatting (#45) * Added Swap fields formatter. * Fixed Slippage Tolerance editing and Swap fields formatting. * Updated wallet version. * Change toString to toFixed * Change formatNumber to toFixed * Fix remove liquidity price * Move back toFixed to toString * Fixed estimated label existence for zero values (#50) * Refactored, added some comments, fixed estimated label existence for zero values. * Modify env config file (#49) Co-authored-by: Bulat Saifullin * Add custom notifications & notification tracking service (#51) * Add custom notifications & notification tracking service * Update notifications & strings according to latest changes * Update api * Update soramitsu-variables.scss * PSS-335: Designer Feedback Fixes FE (#53) * Fixed functionality and layout bugs. * Added draft component to fix layout behaviour. * Fixed Settings behaviour. * Swap: removed Result dialog, edited Network Fee tooltip. * Fixed translation bugs. * Account info implementation & fix loading state (#54) * Add account info * Fix styles * Hide test assets (#55) * Update connection * Remove usdt mock * Add liquidity issues & update notifications (#56) * Add missing notifications * Update RemoveLiquidity * Fix add liquidity screen * Add async loading of liquidity * Fix pool issues * Updated not connected pool interface message. (#60) * PSS-300: Swap confirmation dialog message update (#61) * Updated Swap confirmation dialog message. * Confirm Swap Dialog: Updated message for max sold behaviour. * Swap screen: Fixed Min Received/Max Sold area asset symbol. (#62) * PSS-379: WEB UI. Add liquidity. Click MAX button on 0 balance of XOR (#59) * Updated wallet version. Swap, Add Liquidity, Create Pair components: Updated Max button availability, refactored. * Refactored due to PR comments. * Swap, Add Liquidity: Fixed negative amount after max. Updated wallet version. * Create pair implementation & fix liquidity issues (#63) * Add create pair implementation & fix logic for add liquidity * PSS-297: WEB UI: Restrict Adding liquidity if balance is insufficient (#64) * Add Liquidity: Refactored Insufficient Balance. * Create Pair, Remove Liquidity: Updated Max functionality. * Add insufficient liquidity message for swap (#66) * link @soramitsu/soraneo-wallet-web 0.4.6 * return network address * use wallet routes in app.vue to correctly handle wallet icon click * set changePage method as private * removed local model for inputs: createPairModel * refactoring CreatePair methods * add input maxlength check * fix inputMaxLength method * improve formatNumberField method * refactoring inputMaxLength method * refactoring AddLiquidity view * create TokenPair mixin * wip refactoring * add maxlength to removeLiquidity view inputs * create TokenInputMixin * add input handlers on removeLiquidity view * handle swap inputs * return commented line * PSS-400: WEB UI. Minimum receive/Maximum sold token not changed (#69) * Fixed min received/max sold symbol. * Update wallet & api version (#70) * fixes after review * add store state interfaces * PSS-467: On the swap screen user should be able to select all tokens excecpt pool tokens (#71) * Update wallet & api version * Fix swap with assets created by user * Update wallet & api version * add watcher for slippageTolerance in Swap.vue * remove console lgos * use state types in store mutations & getters * apply transaction mixin changes from wallet * update @soramitsu/soraneo-wallet-web dependency * navigate to wallet connection view on wallet click (#75) * PSS-419: restrict precision in inputs (#74) * add TokenInput component * use TokenInput in Swap.vue * add ConfirmDialogMixin * prepare to refactoring modals * remove comments * remove unneccessary actions * add TODO comments * fix TokenInput handler * link js-ui-library with input fix * PSS-398: WEB UI. Multiple click on Confirm - create multiple transactions. (#76) * Fix multiple confirm for operations * Fix notifications view * Update env.json * PSS-364: reuse s-float-input component (#77) * prepare TokenInput component for export * use s-float-input instead of TokenInput * refactoring Settings component * refactoring RemoveLiquidity * Update wallet (#79) Co-authored-by: alexnatalia Co-authored-by: Aleksandr Makhnev Co-authored-by: Bulat Saifullin Co-authored-by: Alex Natalia <38787212+alexnatalia@users.noreply.github.com> Co-authored-by: Dmitriy Creed Co-authored-by: alexnatalia Co-authored-by: Nikita Polyakov Co-authored-by: Nikita-Polyakov Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> * Release 0.1.3 (#97) * Add base project files * Add About page * Add unit tests * Remove unused files * Update library version * Moved images to img folder. * Refactored some styles, added normalize css. * Fixed article card header font weight. * Fix About snapshot * Fix styles and its imports * PSS-132: Token list store * Add env.json and readme * PSS-134 DevOps: Develop CI and CD processes for Polkaswap web project (#5) * add ci cd Signed-off-by: Bulat Saifullin * fix Dockerfile Signed-off-by: Bulat Saifullin * add pull_request_template.md Signed-off-by: Bulat Saifullin * fix template Signed-off-by: Bulat Saifullin * PSS-132: Select token screen * PSS-132: Refactoring * PSS-132: Change short name to symbol * PSS-132: Add i18n to select token * PSS-132: Add unit tests * PSS-132: Remove elements from tests * Added Swap Interface draft (#4) * Swap Interface: Added screen, Unit Tests, Updated UI Lib version. * PSS-132: Create pair * PSS-132: Fixes for select token * PSS-132: Fix title style * PSS-132: UPdate snaphots * PSS-132: Fix shadow * PSS-132: Fix variable style using * Swap Interface Confirmation Screens (#8) * Added Transaction Submit dialog. * Swap Interface: Moved some variables to store for better relations between different screens and dialogs. * Confirm Swap Dialog: Fixed dialog opening, added confirmation flag to the store. * Added token default logo image, refactored translation call for liquidity. * Added SelectToken dialog on click. * PSS-126: Confirm supply modal * Confirmation screens for create pair * Design fixes * Update ui lib * PSS-126: Logo component * Update tests * Wallet integration and styles issues (#10) * Wallet integration * Fix routing issues * Update UI library version * Refactor all styles * Fix wallet connected state * Update tests * Update test * Update Dockerfile (#12) * PSS-129: Add and remove liquidity page * Design fixes * Token logo check fixes * Refactoring and fixes * Add pair token logo for add liquidity * Settings implementation (#15) * Add settings dialog * Add tests * Update tests * Fix titles for info card * Pool Interface Start Screens (#11) * Pool Interface: Added Start Screen. * Refactored components due to UI Lib updates: set size and border-radius of elements. * Created Dialog wrapper component, refactored dialogs, added fixed top position, fixed close behaviour. * Refactored components imports. * Converted logo icon to link to the home page. * Fixed error in console for Create pair component. * Added Back link behaviour for several components. * Updated unit tests. * PSS-172: Dynamic Page Title (#14) * Added dynamic page title. * PSS-128: Add confirmation screens for pool (#16) * PSS-128: Add confirmation screens for pool Co-authored-by: alexnatalia * Mocks for pool screen * Refactoring * Update tests * Add liquidity button for pairs * Design Fixes and Refactoring (#17) * Refactored TokenLogo and PairTokenLogo components, fixed some bugs, updated unit tests. Refactored components headers. * Added Popper class for info tooltips. Fixed default prop value for Object types. Updated Unit tests. * Design Issues Fix (#19) * Updated configuration variables and Exchange tabs styles. * Updated About page images and styles, Header styles and Menu colors settings. Hid unused links and buttons in header. * Updeted typography variables and Font Styles: Updated Font Size, Line Height and Font Weight Configuration. * Updated Create Pair button styles. Updated Ui Lib version. * Fixed tokens icons for Pool screen. * Updated tooltips to one consistent style. Fixed Pool screen bug. * Refactored: Created special component for Generic Header. Fixed Back icon. * Updated some fonts and Pool screen styles. * Added Empty icon for Select token popup. * Added First Liquidity Provider message to Create a Pair screen. * Hid tooltip for Slider element on Settings screen, hid tooltips for Swap Confirmation. * Updated unit tests. * PSS-205: Remove liquidity: everything should be clickable and with recalculation * Update tests * Fix set remove part to 0 * Inpur for remove part * Fixes * Price container fixes * Update tests * PS-223: Fix remove liquidity in safari * PSS-205: Design Review Issues (#21) * Fixed titles case. Updated buttons with text and icons. Updated typography styles. * Update wallet version & add blockchain integration (#23) * Update wallet version & add blockchain integration * Commented out unit tests. Co-authored-by: alexnatalia * PSS-123: Select token integration * Fix async behavior for dexApi (#25) * Fix async behavior for dexApi * Update .eslintrc.js * PSS-247: Custom Slippage Tolerance Fix (#27) * Updated STab styles. * Updated UI Lib and Wallet versions and styles according to UI Lib fixes. * PSS-129: Add liquiditiy integration * PSS-74 Swap Interface Integration (#26) * Hid swap info for not connected wallet. * Updated SelectToken search by name, added check for translation existance. * Added Swap Integration. * Refactored formatNumber calls. * Hid swap info under buttons for zero amount. * Fixed Header Menu colors. * Fixed swap from Wallet assets. * Updated tooltips. * Updated About page text and Main menu links order. * Fixed Card title color for About page. * Updated Default token setting. * Updated Wallet version. * Hid Transaction Deadline area for Settings. * Removed unneeded tooltip from Settings dialog. * Added validation for Settings. * Added validation for Insufficient Amount error from server. * Added loading while not conencted, changed store to not strict mode, updated tokens setting in store. * Fixed focused behaviour for Swap input fields. * Fix wallet connection & select token behavior * Fixed Min Received format. Co-authored-by: Stefan Popov * Swap result calculation for non connected mode (#28) * Fixed Swap result calculation for non connected mode. * Fixed About page text and styles. * Fix i18n (#30) * Updated Swap input width and Max swap behaviour. Updated Swap Info styles. (#29) * PSS-271: Medium and GitHub links (#31) * Added Github and Medium links for About page. * Upated the Wallet version. * Fixed wallet button color on hover. * Calculate total suply * PSS-216: Design Issues Fixing (#32) * Updated content primary color. * Fixed Price and Token areas horizontal alignment. * Updated tooltips. * Updated Generic Header tooltip. * Updated Token item height for Select Token dialog. * Added Token icons. * Updated token icons names. * PSS-129: Create pair integration * Remove mocks * Refactoring * Add network fee calculation * Fixes * PSS-281: Recalculate Input Values On Select Token (#33) * Added util method to check isNumber value. Removed Max button from token To area. * Added Max sold for reversed swap. * Updated Swap Integration. * Updated UI Lib version. * Added recalc on Select Token. * Fixed Swap for Polkadot.js * Updated isExchangeB param in methods. * Hid Node Address area for Settings popup. * Added Network Fee field to Swap component. * Updated Custom slippage tolerance for Settings. * Fixed paste string value to Swap fields. * Updated Network Fee calls, updated Wallet version, fixed swap tokens balance. * Added isExchangeB parameter to swap call. * Refactoring * fix total supply * PSS-129: Share of pool * Remove share of pool mock * Fix get asset symbol * Hide add liquidity Fix slippage tolerance for add liquidity Fix share of pool Fix unsupprted assets error message * Disable max button for add liquidity Reset values after change tokens * Fixes * Updated Tokens Icons, added PAL icon. (#35) * Wallet connection issues (#38) * Fix wallet connection issues * Fix styles * Update wallet version * Update favicon.ico * PSS-297: check fee on max amount * PSS-295: Added Insufficient Balance Checking (#37) * Added Insufficient balance checking. * Updated FPNumber parameters. * Removed formatNumber usage from Swap screens. * Fixed focus and placeholders values for Swap. * Updated some styles for huge number values. * Refactored due to PR comments. * Result Dialog Styles Fix (#41) * Fixed Result Dialog button styles. * Renamed USD icon. * Update library * Fix swap, liquidity behavior * Update index.ts * TODO: Revert this commit after PSS-309 * Updated wallet version. Co-authored-by: Stefan Popov * PSS-273: WEB UI: Connect Wallet - Close button leads always on Exchange page, not to the previous page (#42) * Fix routing issue * Update wallet version * PSS-295: Confirm Swap Insufficient Balance Checking (#43) * Fixed console error on tokens switch. * Added Is Insufficient Balance checking for Confirm Swap dialog. * Updated Confirm Swap styles. * Updated Swap info after Swap, added max button to init screen. (#44) * Update ui library version (#46) * Update ui library version * Update wallet * BP-312: Fixes for pool * Fix icons position (#47) * Fix icons position * Fix logo * PSS-287: Swap Amount Fields Formatting (#45) * Added Swap fields formatter. * Fixed Slippage Tolerance editing and Swap fields formatting. * Updated wallet version. * Change toString to toFixed * Change formatNumber to toFixed * Fix remove liquidity price * Move back toFixed to toString * Fixed estimated label existence for zero values (#50) * Refactored, added some comments, fixed estimated label existence for zero values. * Modify env config file (#49) Co-authored-by: Bulat Saifullin * Add custom notifications & notification tracking service (#51) * Add custom notifications & notification tracking service * Update notifications & strings according to latest changes * Update api * Update soramitsu-variables.scss * PSS-335: Designer Feedback Fixes FE (#53) * Fixed functionality and layout bugs. * Added draft component to fix layout behaviour. * Fixed Settings behaviour. * Swap: removed Result dialog, edited Network Fee tooltip. * Fixed translation bugs. * Account info implementation & fix loading state (#54) * Add account info * Fix styles * Hide test assets (#55) * Update connection * Remove usdt mock * Add liquidity issues & update notifications (#56) * Add missing notifications * Update RemoveLiquidity * Fix add liquidity screen * Add async loading of liquidity * Fix pool issues * Updated not connected pool interface message. (#60) * PSS-300: Swap confirmation dialog message update (#61) * Updated Swap confirmation dialog message. * Confirm Swap Dialog: Updated message for max sold behaviour. * Swap screen: Fixed Min Received/Max Sold area asset symbol. (#62) * PSS-379: WEB UI. Add liquidity. Click MAX button on 0 balance of XOR (#59) * Updated wallet version. Swap, Add Liquidity, Create Pair components: Updated Max button availability, refactored. * Refactored due to PR comments. * Swap, Add Liquidity: Fixed negative amount after max. Updated wallet version. * Create pair implementation & fix liquidity issues (#63) * Add create pair implementation & fix logic for add liquidity * PSS-297: WEB UI: Restrict Adding liquidity if balance is insufficient (#64) * Add Liquidity: Refactored Insufficient Balance. * Create Pair, Remove Liquidity: Updated Max functionality. * Add insufficient liquidity message for swap (#66) * link @soramitsu/soraneo-wallet-web 0.4.6 * return network address * use wallet routes in app.vue to correctly handle wallet icon click * set changePage method as private * removed local model for inputs: createPairModel * refactoring CreatePair methods * add input maxlength check * fix inputMaxLength method * improve formatNumberField method * refactoring inputMaxLength method * refactoring AddLiquidity view * create TokenPair mixin * wip refactoring * add maxlength to removeLiquidity view inputs * create TokenInputMixin * add input handlers on removeLiquidity view * handle swap inputs * return commented line * PSS-400: WEB UI. Minimum receive/Maximum sold token not changed (#69) * Fixed min received/max sold symbol. * Update wallet & api version (#70) * fixes after review * add store state interfaces * PSS-467: On the swap screen user should be able to select all tokens excecpt pool tokens (#71) * Update wallet & api version * Fix swap with assets created by user * Update wallet & api version * add watcher for slippageTolerance in Swap.vue * remove console lgos * use state types in store mutations & getters * apply transaction mixin changes from wallet * update @soramitsu/soraneo-wallet-web dependency * navigate to wallet connection view on wallet click (#75) * PSS-419: restrict precision in inputs (#74) * add TokenInput component * use TokenInput in Swap.vue * add ConfirmDialogMixin * prepare to refactoring modals * remove comments * remove unneccessary actions * add TODO comments * fix TokenInput handler * link js-ui-library with input fix * PSS-398: WEB UI. Multiple click on Confirm - create multiple transactions. (#76) * Fix multiple confirm for operations * Fix notifications view * Update env.json * PSS-364: reuse s-float-input component (#77) * prepare TokenInput component for export * use s-float-input instead of TokenInput * refactoring Settings component * refactoring RemoveLiquidity * Update wallet (#79) * SFloatInput Fixes (#82) * Reseted values and tokens for Add Liquidity and Create Pair components, added placeholders for all SFloatInput elements. * PSS-378: WEB UI. Remove liquidity. Troubles with entering of amount manually (#83) * Reseted values and tokens for Add Liquidity and Create Pair components, added placeholders for all SFloatInput elements. * Remove liquidity: fixed fields editing and insufficient balance calculation. * Remove Liquidity: Fixed editing behaviour. * Updated due to PR comments. * PSS-486: reset vuex values after transaction (#81) * PSS-351: Show balance in select token dialog (#84) * wip assetList * fixes in swap * fix types * remove unused imports * Refactoring Modals: add ConfirmTokenPairDialog component (#78) * add ConfirmTokenPairDialog component * add modal props fix and throw error on create pair failure * fix openSelectTokenDialog method in Swap.vue(#86) * PSS-350: Add clear button to select token search input (#85) * add clear button * refactoring mixin * remove global style in SelectToken * use global style for input button * Update wallet (#87) * Update wallet * Change s-form-item to div in SelectToken dialog (#88) * remove s-form-item * change wrapper classname * Refactoring swap view (#89) * wip * remove formModel * add reset fields method * wip swap values * refactoring minMaxRecieved calls * wip refactoring * use exchangeB as source of truth * use isExchangeB instead of activeField * disable switch during values calculation * recounting check * use promise all for parallel calculation * update ui library * discarding env.json * fixes after revie * Hide balance in SelectToken dialog, if wallet not connected (#91) * Add license (#92) * PSS-248 Web UI: Settings - Problems with input in Custom field (#90) * allow type any value * fix error * add local model * PSS-418: Precision management (#93) * Create NumberFormatterMixin.ts * Improve precision management for pool * Improve precision management for swap operation * Improve precision management for select token dialog * Update AddLiquidity.vue * Improve precision management for remove liquidity operation * Update todo sections * Fix issues * Update wallet & api versions * Add balance updates * Add zero string const * update wallet (#94) * PSS-351 Select Token fixes (#95) * select-token fixes * show 0 balance as - Co-authored-by: alexnatalia Co-authored-by: Aleksandr Makhnev Co-authored-by: Bulat Saifullin Co-authored-by: Alex Natalia <38787212+alexnatalia@users.noreply.github.com> Co-authored-by: Dmitriy Creed Co-authored-by: alexnatalia Co-authored-by: Nikita Polyakov Co-authored-by: Nikita-Polyakov Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> * Release 0.1.3 (#100) * PSS-516: WEB UI. Can go to remove liquidity page without liquidity on account (#96) * Added Page Not Found Draft. * Fixed Add and Remove Liquidity router bags, hid some screens for unauthorized access. Added redirect to exchange for Page Not Found error. * Disabled selects for existed liquidity addition. * Update Swap.vue (#99) * Release 0.1.4 (#126) * Add base project files * Add About page * Add unit tests * Remove unused files * Update library version * Moved images to img folder. * Refactored some styles, added normalize css. * Fixed article card header font weight. * Fix About snapshot * Fix styles and its imports * PSS-132: Token list store * Add env.json and readme * PSS-134 DevOps: Develop CI and CD processes for Polkaswap web project (#5) * add ci cd Signed-off-by: Bulat Saifullin * fix Dockerfile Signed-off-by: Bulat Saifullin * add pull_request_template.md Signed-off-by: Bulat Saifullin * fix template Signed-off-by: Bulat Saifullin * PSS-132: Select token screen * PSS-132: Refactoring * PSS-132: Change short name to symbol * PSS-132: Add i18n to select token * PSS-132: Add unit tests * PSS-132: Remove elements from tests * Added Swap Interface draft (#4) * Swap Interface: Added screen, Unit Tests, Updated UI Lib version. * PSS-132: Create pair * PSS-132: Fixes for select token * PSS-132: Fix title style * PSS-132: UPdate snaphots * PSS-132: Fix shadow * PSS-132: Fix variable style using * Swap Interface Confirmation Screens (#8) * Added Transaction Submit dialog. * Swap Interface: Moved some variables to store for better relations between different screens and dialogs. * Confirm Swap Dialog: Fixed dialog opening, added confirmation flag to the store. * Added token default logo image, refactored translation call for liquidity. * Added SelectToken dialog on click. * PSS-126: Confirm supply modal * Confirmation screens for create pair * Design fixes * Update ui lib * PSS-126: Logo component * Update tests * Wallet integration and styles issues (#10) * Wallet integration * Fix routing issues * Update UI library version * Refactor all styles * Fix wallet connected state * Update tests * Update test * Update Dockerfile (#12) * PSS-129: Add and remove liquidity page * Design fixes * Token logo check fixes * Refactoring and fixes * Add pair token logo for add liquidity * Settings implementation (#15) * Add settings dialog * Add tests * Update tests * Fix titles for info card * Pool Interface Start Screens (#11) * Pool Interface: Added Start Screen. * Refactored components due to UI Lib updates: set size and border-radius of elements. * Created Dialog wrapper component, refactored dialogs, added fixed top position, fixed close behaviour. * Refactored components imports. * Converted logo icon to link to the home page. * Fixed error in console for Create pair component. * Added Back link behaviour for several components. * Updated unit tests. * PSS-172: Dynamic Page Title (#14) * Added dynamic page title. * PSS-128: Add confirmation screens for pool (#16) * PSS-128: Add confirmation screens for pool Co-authored-by: alexnatalia * Mocks for pool screen * Refactoring * Update tests * Add liquidity button for pairs * Design Fixes and Refactoring (#17) * Refactored TokenLogo and PairTokenLogo components, fixed some bugs, updated unit tests. Refactored components headers. * Added Popper class for info tooltips. Fixed default prop value for Object types. Updated Unit tests. * Design Issues Fix (#19) * Updated configuration variables and Exchange tabs styles. * Updated About page images and styles, Header styles and Menu colors settings. Hid unused links and buttons in header. * Updeted typography variables and Font Styles: Updated Font Size, Line Height and Font Weight Configuration. * Updated Create Pair button styles. Updated Ui Lib version. * Fixed tokens icons for Pool screen. * Updated tooltips to one consistent style. Fixed Pool screen bug. * Refactored: Created special component for Generic Header. Fixed Back icon. * Updated some fonts and Pool screen styles. * Added Empty icon for Select token popup. * Added First Liquidity Provider message to Create a Pair screen. * Hid tooltip for Slider element on Settings screen, hid tooltips for Swap Confirmation. * Updated unit tests. * PSS-205: Remove liquidity: everything should be clickable and with recalculation * Update tests * Fix set remove part to 0 * Inpur for remove part * Fixes * Price container fixes * Update tests * PS-223: Fix remove liquidity in safari * PSS-205: Design Review Issues (#21) * Fixed titles case. Updated buttons with text and icons. Updated typography styles. * Update wallet version & add blockchain integration (#23) * Update wallet version & add blockchain integration * Commented out unit tests. Co-authored-by: alexnatalia * PSS-123: Select token integration * Fix async behavior for dexApi (#25) * Fix async behavior for dexApi * Update .eslintrc.js * PSS-247: Custom Slippage Tolerance Fix (#27) * Updated STab styles. * Updated UI Lib and Wallet versions and styles according to UI Lib fixes. * PSS-129: Add liquiditiy integration * PSS-74 Swap Interface Integration (#26) * Hid swap info for not connected wallet. * Updated SelectToken search by name, added check for translation existance. * Added Swap Integration. * Refactored formatNumber calls. * Hid swap info under buttons for zero amount. * Fixed Header Menu colors. * Fixed swap from Wallet assets. * Updated tooltips. * Updated About page text and Main menu links order. * Fixed Card title color for About page. * Updated Default token setting. * Updated Wallet version. * Hid Transaction Deadline area for Settings. * Removed unneeded tooltip from Settings dialog. * Added validation for Settings. * Added validation for Insufficient Amount error from server. * Added loading while not conencted, changed store to not strict mode, updated tokens setting in store. * Fixed focused behaviour for Swap input fields. * Fix wallet connection & select token behavior * Fixed Min Received format. Co-authored-by: Stefan Popov * Swap result calculation for non connected mode (#28) * Fixed Swap result calculation for non connected mode. * Fixed About page text and styles. * Fix i18n (#30) * Updated Swap input width and Max swap behaviour. Updated Swap Info styles. (#29) * PSS-271: Medium and GitHub links (#31) * Added Github and Medium links for About page. * Upated the Wallet version. * Fixed wallet button color on hover. * Calculate total suply * PSS-216: Design Issues Fixing (#32) * Updated content primary color. * Fixed Price and Token areas horizontal alignment. * Updated tooltips. * Updated Generic Header tooltip. * Updated Token item height for Select Token dialog. * Added Token icons. * Updated token icons names. * PSS-129: Create pair integration * Remove mocks * Refactoring * Add network fee calculation * Fixes * PSS-281: Recalculate Input Values On Select Token (#33) * Added util method to check isNumber value. Removed Max button from token To area. * Added Max sold for reversed swap. * Updated Swap Integration. * Updated UI Lib version. * Added recalc on Select Token. * Fixed Swap for Polkadot.js * Updated isExchangeB param in methods. * Hid Node Address area for Settings popup. * Added Network Fee field to Swap component. * Updated Custom slippage tolerance for Settings. * Fixed paste string value to Swap fields. * Updated Network Fee calls, updated Wallet version, fixed swap tokens balance. * Added isExchangeB parameter to swap call. * Refactoring * fix total supply * PSS-129: Share of pool * Remove share of pool mock * Fix get asset symbol * Hide add liquidity Fix slippage tolerance for add liquidity Fix share of pool Fix unsupprted assets error message * Disable max button for add liquidity Reset values after change tokens * Fixes * Updated Tokens Icons, added PAL icon. (#35) * Wallet connection issues (#38) * Fix wallet connection issues * Fix styles * Update wallet version * Update favicon.ico * PSS-297: check fee on max amount * PSS-295: Added Insufficient Balance Checking (#37) * Added Insufficient balance checking. * Updated FPNumber parameters. * Removed formatNumber usage from Swap screens. * Fixed focus and placeholders values for Swap. * Updated some styles for huge number values. * Refactored due to PR comments. * Result Dialog Styles Fix (#41) * Fixed Result Dialog button styles. * Renamed USD icon. * Update library * Fix swap, liquidity behavior * Update index.ts * TODO: Revert this commit after PSS-309 * Updated wallet version. Co-authored-by: Stefan Popov * PSS-273: WEB UI: Connect Wallet - Close button leads always on Exchange page, not to the previous page (#42) * Fix routing issue * Update wallet version * PSS-295: Confirm Swap Insufficient Balance Checking (#43) * Fixed console error on tokens switch. * Added Is Insufficient Balance checking for Confirm Swap dialog. * Updated Confirm Swap styles. * Updated Swap info after Swap, added max button to init screen. (#44) * Update ui library version (#46) * Update ui library version * Update wallet * BP-312: Fixes for pool * Fix icons position (#47) * Fix icons position * Fix logo * PSS-287: Swap Amount Fields Formatting (#45) * Added Swap fields formatter. * Fixed Slippage Tolerance editing and Swap fields formatting. * Updated wallet version. * Change toString to toFixed * Change formatNumber to toFixed * Fix remove liquidity price * Move back toFixed to toString * Fixed estimated label existence for zero values (#50) * Refactored, added some comments, fixed estimated label existence for zero values. * Modify env config file (#49) Co-authored-by: Bulat Saifullin * Add custom notifications & notification tracking service (#51) * Add custom notifications & notification tracking service * Update notifications & strings according to latest changes * Update api * Update soramitsu-variables.scss * PSS-335: Designer Feedback Fixes FE (#53) * Fixed functionality and layout bugs. * Added draft component to fix layout behaviour. * Fixed Settings behaviour. * Swap: removed Result dialog, edited Network Fee tooltip. * Fixed translation bugs. * Account info implementation & fix loading state (#54) * Add account info * Fix styles * Hide test assets (#55) * Update connection * Remove usdt mock * Add liquidity issues & update notifications (#56) * Add missing notifications * Update RemoveLiquidity * Fix add liquidity screen * Add async loading of liquidity * Fix pool issues * Updated not connected pool interface message. (#60) * PSS-300: Swap confirmation dialog message update (#61) * Updated Swap confirmation dialog message. * Confirm Swap Dialog: Updated message for max sold behaviour. * Swap screen: Fixed Min Received/Max Sold area asset symbol. (#62) * PSS-379: WEB UI. Add liquidity. Click MAX button on 0 balance of XOR (#59) * Updated wallet version. Swap, Add Liquidity, Create Pair components: Updated Max button availability, refactored. * Refactored due to PR comments. * Swap, Add Liquidity: Fixed negative amount after max. Updated wallet version. * Create pair implementation & fix liquidity issues (#63) * Add create pair implementation & fix logic for add liquidity * PSS-297: WEB UI: Restrict Adding liquidity if balance is insufficient (#64) * Add Liquidity: Refactored Insufficient Balance. * Create Pair, Remove Liquidity: Updated Max functionality. * Add insufficient liquidity message for swap (#66) * link @soramitsu/soraneo-wallet-web 0.4.6 * return network address * use wallet routes in app.vue to correctly handle wallet icon click * set changePage method as private * removed local model for inputs: createPairModel * refactoring CreatePair methods * add input maxlength check * fix inputMaxLength method * improve formatNumberField method * refactoring inputMaxLength method * refactoring AddLiquidity view * create TokenPair mixin * wip refactoring * add maxlength to removeLiquidity view inputs * create TokenInputMixin * add input handlers on removeLiquidity view * handle swap inputs * return commented line * PSS-400: WEB UI. Minimum receive/Maximum sold token not changed (#69) * Fixed min received/max sold symbol. * Update wallet & api version (#70) * fixes after review * add store state interfaces * PSS-467: On the swap screen user should be able to select all tokens excecpt pool tokens (#71) * Update wallet & api version * Fix swap with assets created by user * Update wallet & api version * add watcher for slippageTolerance in Swap.vue * remove console lgos * use state types in store mutations & getters * apply transaction mixin changes from wallet * update @soramitsu/soraneo-wallet-web dependency * navigate to wallet connection view on wallet click (#75) * PSS-419: restrict precision in inputs (#74) * add TokenInput component * use TokenInput in Swap.vue * add ConfirmDialogMixin * prepare to refactoring modals * remove comments * remove unneccessary actions * add TODO comments * fix TokenInput handler * link js-ui-library with input fix * PSS-398: WEB UI. Multiple click on Confirm - create multiple transactions. (#76) * Fix multiple confirm for operations * Fix notifications view * Update env.json * PSS-364: reuse s-float-input component (#77) * prepare TokenInput component for export * use s-float-input instead of TokenInput * refactoring Settings component * refactoring RemoveLiquidity * Update wallet (#79) * SFloatInput Fixes (#82) * Reseted values and tokens for Add Liquidity and Create Pair components, added placeholders for all SFloatInput elements. * PSS-378: WEB UI. Remove liquidity. Troubles with entering of amount manually (#83) * Reseted values and tokens for Add Liquidity and Create Pair components, added placeholders for all SFloatInput elements. * Remove liquidity: fixed fields editing and insufficient balance calculation. * Remove Liquidity: Fixed editing behaviour. * Updated due to PR comments. * PSS-486: reset vuex values after transaction (#81) * PSS-351: Show balance in select token dialog (#84) * wip assetList * fixes in swap * fix types * remove unused imports * Refactoring Modals: add ConfirmTokenPairDialog component (#78) * add ConfirmTokenPairDialog component * add modal props fix and throw error on create pair failure * fix openSelectTokenDialog method in Swap.vue(#86) * PSS-350: Add clear button to select token search input (#85) * add clear button * refactoring mixin * remove global style in SelectToken * use global style for input button * Update wallet (#87) * Update wallet * Change s-form-item to div in SelectToken dialog (#88) * remove s-form-item * change wrapper classname * Refactoring swap view (#89) * wip * remove formModel * add reset fields method * wip swap values * refactoring minMaxRecieved calls * wip refactoring * use exchangeB as source of truth * use isExchangeB instead of activeField * disable switch during values calculation * recounting check * use promise all for parallel calculation * update ui library * discarding env.json * fixes after revie * Hide balance in SelectToken dialog, if wallet not connected (#91) * Add license (#92) * PSS-248 Web UI: Settings - Problems with input in Custom field (#90) * allow type any value * fix error * add local model * PSS-418: Precision management (#93) * Create NumberFormatterMixin.ts * Improve precision management for pool * Improve precision management for swap operation * Improve precision management for select token dialog * Update AddLiquidity.vue * Improve precision management for remove liquidity operation * Update todo sections * Fix issues * Update wallet & api versions * Add balance updates * Add zero string const * update wallet (#94) * PSS-351 Select Token fixes (#95) * select-token fixes * show 0 balance as - * PSS-516: WEB UI. Can go to remove liquidity page without liquidity on account (#96) * Added Page Not Found Draft. * Fixed Add and Remove Liquidity router bags, hid some screens for unauthorized access. Added redirect to exchange for Page Not Found error. * Disabled selects for existed liquidity addition. * Update Swap.vue (#99) * Add namespace & types for swap (#101) * Fix price and swap info (#104) * Fix price calculations * Update SwapInfo.vue * Update wallet & api (#105) * Fix swap links (#106) * Fix swap links * Update wallet * Update api (#111) * up wallet version (#112) * Updated wallet version to 0.6.3 (#113) * Updated wallet version to 0.6.4. (#114) * Polkaswap layout redesign (#98) (#102) * Polkaswap layout redesign (#98) * pss-498 header redesign * wip pss-496 * style fixes * add HelpDialog component * reexport package.json * exchange routing fix * add Rewards stub with coming soon text * refactoring SidebarItemContent * refactoring styles * add FAUCET_URL to env.json * fixes after review * fix sidebar item hover css * fix disabled item css * Move bridge functionality (#103) * pss-498 header redesign * wip pss-496 * style fixes * add HelpDialog component * reexport package.json * exchange routing fix * add Rewards stub with coming soon text * refactoring SidebarItemContent * refactoring styles * add FAUCET_URL to env.json * fixes after review * Move bridge functionality Co-authored-by: Nikita-Polyakov * Update wallet & api * PSS-524: Bridge (#107) * pss-498 header redesign * wip pss-496 * style fixes * add HelpDialog component * reexport package.json * exchange routing fix * add Rewards stub with coming soon text * refactoring SidebarItemContent * refactoring styles * add FAUCET_URL to env.json * fixes after review * Move bridge functionality * Bridge: Updated unauthorized routes. * Updated Generic Page Header, updated Bridge screens. * Fixed token icons. * Bridge: Updated styles. * Updated tooltips. * Removed unused token images. * Refactored due to PR comments. Co-authored-by: Nikita-Polyakov Co-authored-by: Stefan Popov * Fix/pss 539 metamsk lock issue (#108) * improve subscribers * add check account is connected * Fix/balance flickering (#109) * wip update balance flow * refactoring views and store modules * remove unused code * fixes after review * Update yarn.lock * Updated wallet version. * Updated wallet version to 0.6.4. * Updated wallet version to 0.6.5. * PSS-540: Add Pending Transactions to Bridge History (#115) * pss-498 header redesign * wip pss-496 * style fixes * add HelpDialog component * reexport package.json * exchange routing fix * add Rewards stub with coming soon text * refactoring SidebarItemContent * refactoring styles * add FAUCET_URL to env.json * fixes after review * Move bridge functionality * Bridge: Updated unauthorized routes. * Updated Generic Page Header, updated Bridge screens. * Fixed token icons. * Bridge: Updated styles. * Updated tooltips. * Removed btc icon. * Updated due to PR comments. * Updated due to PR comments. * Reverted formatAddress changes. * Added pending state. * Updated wallet version. * Fix bridge functionality Co-authored-by: Nikita-Polyakov Co-authored-by: Stefan Popov Co-authored-by: Alex Natalia * Select dialog updates (#118) * Modify select dialog * Remove all symbol dependencies * PSS-502: Swap And Pool Redesign (#117) * Separated Swap and Pool. * Changed assets filter from symbol to address. * Updated wallet version to 0.7.1. * Fixed assets addresses behaviour for bridge. * Reverted previous version of the wallet, fixed some places due to PR comments. Co-authored-by: Alex Natalia * Update styles and icons (#119) * Fix styles and icons * Update BrandedTooltip.vue * Update wallet & ui library versions * Update LICENSE * Update package.json * Fix issues Co-authored-by: Stefan Popov Co-authored-by: Alex Natalia <38787212+alexnatalia@users.noreply.github.com> Co-authored-by: Alex Natalia * Redesign Updates (#120) * Refactored buttons styles, changed some translation to common one. * Updated tooltips, screens info area. * Updated info blocks. * Updated info blocks in confirmation and pool screens. * Combined input area styles. * Update About.vue * GenericPageHeader: Changed default prop of tooltip placement. Signed-off-by: alexnatalia Co-authored-by: Stefan Popov * update wallet to 0.7.4 (#121) * remove getAssets from select-token dialog (#123) * PSS-573 WEB UI. MAX button for bridge work incorrect. (#124) * fix calc max value * remove console.log * update wallet 0.7.7 & hide farming in menu * refactoring (#122) * Fix issues (#125) * Remove default values from props * Fix issues Co-authored-by: alexnatalia Co-authored-by: Aleksandr Makhnev Co-authored-by: Bulat Saifullin Co-authored-by: Alex Natalia <38787212+alexnatalia@users.noreply.github.com> Co-authored-by: Dmitriy Creed Co-authored-by: alexnatalia Co-authored-by: Nikita Polyakov Co-authored-by: Nikita-Polyakov Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> Co-authored-by: Alex Natalia * Release 0.1.5 (#158) * Release 0.1.5 (#161) * Release 0.1.6 (#170) * Release 0.1.6 (#174) * Release 0.1.7 (#190) * Release 0.1.8 (#200) * Release 0.1.9 (#206) * Release 1.0.0 (#208) * Update styles * Update wallet * Fix wait message for bridge eth->sora flow * Fix page amount for bridge * Fix bridge icons * Fix swap checks for XOR output without XOR or with XOR balance < network fee * Release 1.0.0 (#212) * Release 1.0.0 (#215) * Release 1.0.0 (#219) * Release 1.0.1 (#226) * Release 1.0.2 (#234) * Release 1.1.0 (#244) * PSS-281: Recalculate Input Values On Select Token (#33) * Added util method to check isNumber value. Removed Max button from token To area. * Added Max sold for reversed swap. * Updated Swap Integration. * Updated UI Lib version. * Added recalc on Select Token. * Fixed Swap for Polkadot.js * Updated isExchangeB param in methods. * Hid Node Address area for Settings popup. * Added Network Fee field to Swap component. * Updated Custom slippage tolerance for Settings. * Fixed paste string value to Swap fields. * Updated Network Fee calls, updated Wallet version, fixed swap tokens balance. * Added isExchangeB parameter to swap call. * Refactoring * fix total supply * PSS-129: Share of pool * Remove share of pool mock * Fix get asset symbol * Hide add liquidity Fix slippage tolerance for add liquidity Fix share of pool Fix unsupprted assets error message * Disable max button for add liquidity Reset values after change tokens * Fixes * Updated Tokens Icons, added PAL icon. (#35) * Wallet connection issues (#38) * Fix wallet connection issues * Fix styles * Update wallet version * Update favicon.ico * PSS-297: check fee on max amount * PSS-295: Added Insufficient Balance Checking (#37) * Added Insufficient balance checking. * Updated FPNumber parameters. * Removed formatNumber usage from Swap screens. * Fixed focus and placeholders values for Swap. * Updated some styles for huge number values. * Refactored due to PR comments. * Result Dialog Styles Fix (#41) * Fixed Result Dialog button styles. * Renamed USD icon. * Update library * Fix swap, liquidity behavior * Update index.ts * TODO: Revert this commit after PSS-309 * Updated wallet version. Co-authored-by: Stefan Popov * PSS-273: WEB UI: Connect Wallet - Close button leads always on Exchange page, not to the previous page (#42) * Fix routing issue * Update wallet version * PSS-295: Confirm Swap Insufficient Balance Checking (#43) * Fixed console error on tokens switch. * Added Is Insufficient Balance checking for Confirm Swap dialog. * Updated Confirm Swap styles. * Updated Swap info after Swap, added max button to init screen. (#44) * Update ui library version (#46) * Update ui library version * Update wallet * BP-312: Fixes for pool * Fix icons position (#47) * Fix icons position * Fix logo * PSS-287: Swap Amount Fields Formatting (#45) * Added Swap fields formatter. * Fixed Slippage Tolerance editing and Swap fields formatting. * Updated wallet version. * Change toString to toFixed * Change formatNumber to toFixed * Fix remove liquidity price * Move back toFixed to toString * Fixed estimated label existence for zero values (#50) * Refactored, added some comments, fixed estimated label existence for zero values. * Modify env config file (#49) Co-authored-by: Bulat Saifullin * Add custom notifications & notification tracking service (#51) * Add custom notifications & notification tracking service * Update notifications & strings according to latest changes * Update api * Update soramitsu-variables.scss * PSS-335: Designer Feedback Fixes FE (#53) * Fixed functionality and layout bugs. * Added draft component to fix layout behaviour. * Fixed Settings behaviour. * Swap: removed Result dialog, edited Network Fee tooltip. * Fixed translation bugs. * Account info implementation & fix loading state (#54) * Add account info * Fix styles * Hide test assets (#55) * Update connection * Remove usdt mock * Add liquidity issues & update notifications (#56) * Add missing notifications * Update RemoveLiquidity * Fix add liquidity screen * Add async loading of liquidity * Fix pool issues * Updated not connected pool interface message. (#60) * PSS-300: Swap confirmation dialog message update (#61) * Updated Swap confirmation dialog message. * Confirm Swap Dialog: Updated message for max sold behaviour. * Swap screen: Fixed Min Received/Max Sold area asset symbol. (#62) * PSS-379: WEB UI. Add liquidity. Click MAX button on 0 balance of XOR (#59) * Updated wallet version. Swap, Add Liquidity, Create Pair components: Updated Max button availability, refactored. * Refactored due to PR comments. * Swap, Add Liquidity: Fixed negative amount after max. Updated wallet version. * Create pair implementation & fix liquidity issues (#63) * Add create pair implementation & fix logic for add liquidity * PSS-297: WEB UI: Restrict Adding liquidity if balance is insufficient (#64) * Add Liquidity: Refactored Insufficient Balance. * Create Pair, Remove Liquidity: Updated Max functionality. * Add insufficient liquidity message for swap (#66) * link @soramitsu/soraneo-wallet-web 0.4.6 * return network address * use wallet routes in app.vue to correctly handle wallet icon click * set changePage method as private * removed local model for inputs: createPairModel * refactoring CreatePair methods * add input maxlength check * fix inputMaxLength method * improve formatNumberField method * refactoring inputMaxLength method * refactoring AddLiquidity view * create TokenPair mixin * wip refactoring * add maxlength to removeLiquidity view inputs * create TokenInputMixin * add input handlers on removeLiquidity view * handle swap inputs * return commented line * PSS-400: WEB UI. Minimum receive/Maximum sold token not changed (#69) * Fixed min received/max sold symbol. * Update wallet & api version (#70) * fixes after review * add store state interfaces * PSS-467: On the swap screen user should be able to select all tokens excecpt pool tokens (#71) * Update wallet & api version * Fix swap with assets created by user * Update wallet & api version * add watcher for slippageTolerance in Swap.vue * remove console lgos * use state types in store mutations & getters * apply transaction mixin changes from wallet * update @soramitsu/soraneo-wallet-web dependency * navigate to wallet connection view on wallet click (#75) * PSS-419: restrict precision in inputs (#74) * add TokenInput component * use TokenInput in Swap.vue * add ConfirmDialogMixin * prepare to refactoring modals * remove comments * remove unneccessary actions * add TODO comments * fix TokenInput handler * link js-ui-library with input fix * PSS-398: WEB UI. Multiple click on Confirm - create multiple transactions. (#76) * Fix multiple confirm for operations * Fix notifications view * Update env.json * PSS-364: reuse s-float-input component (#77) * prepare TokenInput component for export * use s-float-input instead of TokenInput * refactoring Settings component * refactoring RemoveLiquidity * Update wallet (#79) * SFloatInput Fixes (#82) * Reseted values and tokens for Add Liquidity and Create Pair components, added placeholders for all SFloatInput elements. * PSS-378: WEB UI. Remove liquidity. Troubles with entering of amount manually (#83) * Reseted values and tokens for Add Liquidity and Create Pair components, added placeholders for all SFloatInput elements. * Remove liquidity: fixed fields editing and insufficient balance calculation. * Remove Liquidity: Fixed editing behaviour. * Updated due to PR comments. * PSS-486: reset vuex values after transaction (#81) * PSS-351: Show balance in select token dialog (#84) * wip assetList * fixes in swap * fix types * remove unused imports * Refactoring Modals: add ConfirmTokenPairDialog component (#78) * add ConfirmTokenPairDialog component * add modal props fix and throw error on create pair failure * fix openSelectTokenDialog method in Swap.vue(#86) * PSS-350: Add clear button to select token search input (#85) * add clear button * refactoring mixin * remove global style in SelectToken * use global style for input button * Update wallet (#87) * Update wallet * Change s-form-item to div in SelectToken dialog (#88) * remove s-form-item * change wrapper classname * Refactoring swap view (#89) * wip * remove formModel * add reset fields method * wip swap values * refactoring minMaxRecieved calls * wip refactoring * use exchangeB as source of truth * use isExchangeB instead of activeField * disable switch during values calculation * recounting check * use promise all for parallel calculation * update ui library * discarding env.json * fixes after revie * Hide balance in SelectToken dialog, if wallet not connected (#91) * Add license (#92) * PSS-248 Web UI: Settings - Problems with input in Custom field (#90) * allow type any value * fix error * add local model * PSS-418: Precision management (#93) * Create NumberFormatterMixin.ts * Improve precision management for pool * Improve precision management for swap operation * Improve precision management for select token dialog * Update AddLiquidity.vue * Improve precision management for remove liquidity operation * Update todo sections * Fix issues * Update wallet & api versions * Add balance updates * Add zero string const * update wallet (#94) * PSS-351 Select Token fixes (#95) * select-token fixes * show 0 balance as - * PSS-516: WEB UI. Can go to remove liquidity page without liquidity on account (#96) * Added Page Not Found Draft. * Fixed Add and Remove Liquidity router bags, hid some screens for unauthorized access. Added redirect to exchange for Page Not Found error. * Disabled selects for existed liquidity addition. * Update Swap.vue (#99) * Add namespace & types for swap (#101) * Fix price and swap info (#104) * Fix price calculations * Update SwapInfo.vue * Update wallet & api (#105) * Fix swap links (#106) * Fix swap links * Update wallet * Update api (#111) * up wallet version (#112) * Updated wallet version to 0.6.3 (#113) * Updated wallet version to 0.6.4. (#114) * Polkaswap layout redesign (#98) (#102) * Polkaswap layout redesign (#98) * pss-498 header redesign * w… * fix (#1172) * Fix release 1.21 issues (#1175) * Bump version * Demeter dialog remove extra padding * Update yarn.lock --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> Co-authored-by: shlavik * Enable supply chart for all tokens (#1170) * Enable supply chart for all tokens * Update package.json --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> * [Bridge] Add Min & Max limits (#1151) * remove vue-svg-loader * remove cache-loader from vue-loader * rewrite vue.config.js * update wallet * css fixes * remove sass warnings * fix spacing * add alt attrs to RoadMap * remove some todo * update ethers usage * refactoring ethers utils * add type annotaions * small fixes * wip external fee * refactoring adapter to remove hardcoded networks usage * add prefix for external fee * history restoration console info * fix sub bridge max btn * remove external network fee getter * refactoring * fix sonar issues * refactoring bridge utils * update api.query usage * improve tracking * refactoring sub reducers * improve sub history restoration * sonar issue refactoring * wip external fiat values * add nativeTOken getter to bridge * fix BridgeTransaction address * refactoring balance utils * remove bridgeApi from getters * fix transaction view prefix * update wallet 1.21.2 * add asset limit subscription * rework asset transfer limit update * update bridge subscription logic * bridge view computed * remove unused variable * prepare for subscription update * asset max limit subscription * update bridge transaction view * add min limit fetching * add getters to bridge views * add bridge limit card * update translations * replace relayChainBlockNumber call * bridge ui fixes * reset bridge form, fix network change * connection additional checks * await isReady promises * open sora parachain connection after select network * refactoring sub networks connector * refactoring web3 store * improve loading states & refactoring actions * fix bridge loading logix * refactoring bridge balances fetching * fix sub network fee & bridge container * update bridge quote * update bridge quote * fix bridge loading state * fix bridge actions promise.all reject * fix connection open * fix locked balance calc * rename web3 method * change CodecString to FPNumber in store balances * refactoring sonar issues * fix bridge amount decimals in form * update eth bridge locked balance * update wallet 1.22.0 * refactoring sonar issues * update filter fn * Fix sub bridge address issues (#1180) * fix address format checks * format sub bridge account address in ss58 * improve externalAccount usage * update wallet 1.22.1 * add xcm fee info * Remove ~ sign (#1179) * Remove ~ sign * Remove not used component * fix address format in hsitory restoration --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> Co-authored-by: Nikita-Polyakov * Fix assets sorting order in swap and bridge (#1181) * fix assets sorting order in swap and bridge * improve sortByBalance * Add scroll into view (#1182) Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Fix sub bridge sora fee & fix eth history restoration (#1183) * update bridge sora fee & history restoration * update message, remove bad util fn * sore fee update optimization * update translations * Add XCM fee to transaction details & some fixes (#1185) * get xcm fee in history * await connection * show xcm fee transaction details * refactoring sub adapter connection * improve connection logs * fix clear history * improve api connections reuse * improve connector check * Update marketing.json (#1186) * Update marketing.json * Update package.json * Update marketing images * Fix long asset names * Improve tokens page --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> * Subsquid support implementation (#1049) * Subsquid support implementation * Update yarn.lock * Indexer selector * Changed indexer names * Changed icon for indexer selection * Fixes after merge * Update package,json * Fixes * Update sora2-wallet-web version * Remove graphql-ws * Update wallet version * Update wallet version * Empty commit * Updated indexer selector * Updated wallet-web * Update wallet * Status * Update wallet * Fix statistics dialog * Some fixes * Some fixes * Update wallet version * Fix queries * Update yarn.lock * fix tokens page * update dev env.json * remove unused import --------- Co-authored-by: Nikita-Polyakov * card balance appearance (#1173) * add balance fetching logic * prework * make reject reason * add fees * Update Payment.vue * add translations * Update ConfirmationInfo.vue * Update Payment.vue * referenceNumber duplcation * reference number duplication remove * Update Dashboard.vue * fix referenceNumber duplication * make explicit conversion * fix sonar issues * fix css --------- Co-authored-by: safinsaf <45899673+safinsaf@users.noreply.github.com> * UI improvements (#1189) * update SyntheticSwitcher & ExternalLink components * update wallet * update indexer translations * update address book input translation * remove incorrect price from chart * update SelectIndexer modal (#1190) * add walletconnect verification txt file (#1193) * Fix assets query (#1196) * Remove assets liquidity filter * Fix subsquid assets query * Fix assets parse * Update Jenkinsfile (#1197) * fix subquery bridge history (#1200) * Add xorless transfer history support (#1203) * add xorless transfer history support * update translations * remove misleading option (#1204) * remove misleading option * add iban missing feature * Update Dashboard.vue * add focused css * add langs (#1205) * SORA Card: Add country selector (#1206) * SORA CARD: Add country selector * Translate placeholder * Fix lokalise * show balance when iban available only * Update Dashboard.vue --------- Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> Co-authored-by: RustemYuzlibaev * remove css and if-statement (#1207) * Delete SoraCardIcon.vue * Update package.json * Update env.json --------- Signed-off-by: BAStos525 Signed-off-by: Nikita Zaporozhets Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com> Co-authored-by: Rustem Co-authored-by: Pavel Varfolomeev Co-authored-by: wpi86 <86880521+wpi86@users.noreply.github.com> Co-authored-by: frodan Co-authored-by: Daniil Fronts Co-authored-by: Viacheslav Co-authored-by: BAStos525 Co-authored-by: BAStos525 <66615487+BAStos525@users.noreply.github.com> Co-authored-by: Aleksey Kazakov Co-authored-by: C4tWithShell Co-authored-by: Dmitriy Creed Co-authored-by: Vladimir Shelkovnikov <99356504+C4tWithShell@users.noreply.github.com> Co-authored-by: William Richter <88400283+WRRicht3r@users.noreply.github.com> Co-authored-by: Timofey Trepalin Co-authored-by: Maksim Baranov <33489381+MaksimBaranov98@users.noreply.github.com> Co-authored-by: timofeytrepalin <97504184+timofeytrepalin@users.noreply.github.com> Co-authored-by: alexnatalia Co-authored-by: Aleksandr Makhnev Co-authored-by: Bulat Saifullin Co-authored-by: Alex Natalia <38787212+alexnatalia@users.noreply.github.com> Co-authored-by: alexnatalia Co-authored-by: Nikita Polyakov Co-authored-by: Nikita-Polyakov Co-authored-by: Alex Natalia Co-authored-by: Pavel Golovkin Co-authored-by: Pavel Co-authored-by: Pobepto Co-authored-by: Tarmo Vannas Co-authored-by: 武宮誠 Co-authored-by: Denis Nikiforov <45266099+DenisNikiforov@users.noreply.github.com> Co-authored-by: Ahmed Elkashef Co-authored-by: Nikita Zaporozhets Co-authored-by: Nikita Zaporozhets <95526886+f33r0@users.noreply.github.com> Co-authored-by: sunlucky163 Co-authored-by: sunlucky163 <44086186+sunlucky163@users.noreply.github.com> Co-authored-by: Bao Tran Co-authored-by: Bao Nguyen Tran Co-authored-by: Pavel Varfolomeev Co-authored-by: German Vechtomov <89127595+ox7a59@users.noreply.github.com> Co-authored-by: Aleksandr Iakimov Co-authored-by: safinsaf <45899673+safinsaf@users.noreply.github.com> Co-authored-by: Aleksandr Iakimov --- package.json | 4 +- src/components/App/Menu/AppMenu.vue | 27 +-- .../App/Menu/SidebarItemContent.vue | 23 +-- src/components/App/Menu/SoraCardIcon.vue | 16 -- .../pages/SoraCard/Dashboard/Dashboard.vue | 77 ++++++++- .../SoraCard/common/BalanceIndicator.vue | 20 +-- src/components/pages/SoraCard/steps/Phone.vue | 143 ++++++++++----- .../SoraCard/steps/SelectCountryDialog.vue | 163 ++++++++++++++++++ src/components/pages/X1/X1Dialog.vue | 6 + .../shared/Input/TokenSelectButton.vue | 2 +- src/consts/index.ts | 3 +- src/indexer/queries/assetSupply.ts | 14 +- src/indexer/queries/assets.ts | 10 +- src/lang/card/cs.json | 7 +- src/lang/card/de.json | 7 +- src/lang/card/en.json | 7 +- src/lang/card/es.json | 7 +- src/lang/card/fr.json | 7 +- src/lang/card/hr.json | 7 +- src/lang/card/hu.json | 7 +- src/lang/card/hy.json | 7 +- src/lang/card/id.json | 7 +- src/lang/card/it.json | 7 +- src/lang/card/nl.json | 7 +- src/lang/card/no.json | 7 +- src/lang/card/pl.json | 7 +- src/lang/card/ru.json | 9 +- src/lang/card/sk.json | 7 +- src/lang/card/sr.json | 7 +- src/lang/card/sv.json | 7 +- src/lang/card/vi.json | 7 +- src/lang/card/yo.json | 7 +- src/lang/card/zh_CN.json | 7 +- src/lang/cs.json | 3 +- src/lang/de.json | 3 +- src/lang/en.json | 3 +- src/lang/es.json | 3 +- src/lang/fr.json | 3 +- src/lang/hr.json | 3 +- src/lang/hu.json | 3 +- src/lang/hy.json | 3 +- src/lang/id.json | 3 +- src/lang/it.json | 3 +- src/lang/nl.json | 3 +- src/lang/no.json | 3 +- src/lang/pl.json | 3 +- src/lang/ru.json | 3 +- src/lang/sk.json | 3 +- src/lang/sr.json | 3 +- src/lang/sv.json | 3 +- src/lang/vi.json | 3 +- src/lang/yo.json | 3 +- src/lang/zh_CN.json | 3 +- src/types/card.ts | 14 ++ src/utils/card.ts | 16 +- src/views/SoraCard.vue | 9 +- yarn.lock | 8 +- 57 files changed, 562 insertions(+), 195 deletions(-) delete mode 100644 src/components/App/Menu/SoraCardIcon.vue create mode 100644 src/components/pages/SoraCard/steps/SelectCountryDialog.vue diff --git a/package.json b/package.json index c74e36d32..ccb098289 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polkaswap-exchange-web", - "version": "1.23.2", + "version": "1.24.0", "repository": { "type": "git", "url": "https://github.com/sora-xor/polkaswap-exchange-web.git" @@ -24,7 +24,7 @@ }, "dependencies": { "@metamask/detect-provider": "^2.0.0", - "@soramitsu/soraneo-wallet-web": "1.23.3", + "@soramitsu/soraneo-wallet-web": "1.23.4", "@walletconnect/web3-provider": "^1.8.0", "core-js": "^3.26.0", "country-code-emoji": "^2.3.0", diff --git a/src/components/App/Menu/AppMenu.vue b/src/components/App/Menu/AppMenu.vue index c4016ca22..d2f1e73f6 100644 --- a/src/components/App/Menu/AppMenu.vue +++ b/src/components/App/Menu/AppMenu.vue @@ -248,34 +248,13 @@ export default class AppMenu extends Mixins(TranslationMixin) { background-color: unset !important; } } -} - -// TODO: [TECH] move from fonts provided values -.sora-card-sidebar-icon { - path { - fill: var(--s-color-base-content-tertiary) !important; - } -} -.el-menu-item:not(.is-active):not(.is-disabled) { - .sidebar-item-content { - &:hover .sora-card-sidebar-icon path { - fill: var(--s-color-base-content-secondary) !important; + .el-menu-item { + i.el-icon-bank-card { + width: 28px; } } } - -.el-menu-item.is-disabled { - &:hover path { - fill: var(--s-color-base-content-tertiary) !important; - } -} - -.is-active .sora-card-sidebar-icon { - path { - fill: var(--s-color-theme-accent) !important; - } -} diff --git a/src/components/App/Menu/SoraCardIcon.vue b/src/components/App/Menu/SoraCardIcon.vue deleted file mode 100644 index 7de7d30a9..000000000 --- a/src/components/App/Menu/SoraCardIcon.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/src/components/pages/SoraCard/Dashboard/Dashboard.vue b/src/components/pages/SoraCard/Dashboard/Dashboard.vue index cd94ddbe8..e62676090 100644 --- a/src/components/pages/SoraCard/Dashboard/Dashboard.vue +++ b/src/components/pages/SoraCard/Dashboard/Dashboard.vue @@ -9,7 +9,17 @@ draggable="false" class="unselectable sora-card-hub-image" /> - + +

+ {{ t('card.cardHub.comingSoon') }} +

+
+

{{ t('card.cardHub.ibanLabel') }}

+

+

{{ t('card.cardHub.logout') }} @@ -74,6 +88,12 @@ export default class Dashboard extends Mixins(mixins.LoadingMixin, TranslationMi @state.soraCard.userInfo userInfo!: UserInfo; @state.wallet.settings.shouldBalanceBeHidden private shouldBalanceBeHidden!: boolean; + email = 'techsupport@soracard.com'; + + get emailLink(): string { + return `${this.email}`; + } + options: Array = [ { icon: OptionsIcon.TopUp, type: Option.TopUp }, { icon: OptionsIcon.Transfer, type: Option.Transfer }, @@ -88,9 +108,9 @@ export default class Dashboard extends Mixins(mixins.LoadingMixin, TranslationMi get balance(): string { const balance = this.userInfo.availableBalance; - if (balance === 0) return '0'; + if (!balance) return '0'; - return balance ? `${balance / 100}` : ''; + return `${balance / 100}`; } handleClick(type: Option): void {} @@ -114,6 +134,7 @@ export default class Dashboard extends Mixins(mixins.LoadingMixin, TranslationMi .sora-card { &-hub { &-balance { + margin-bottom: $basic-spacing; .formatted-amount { font-size: 28px; letter-spacing: -0.56px; @@ -167,28 +188,60 @@ export default class Dashboard extends Mixins(mixins.LoadingMixin, TranslationMi margin-right: $inner-spacing-mini; } } + + &-management-coming { + text-align: center; + color: var(--s-color-base-content-secondary); + font-size: var(--s-font-size-medium); + margin-bottom: $basic-spacing-mini; + font-weight: 500; + } + &-logout { margin-top: $inner-spacing-mini; display: flex; align-items: center; justify-content: space-between; background: var(--s-color-utility-body); - font-size: var(--s-font-size-big); + font-size: var(--s-font-size-medium); font-weight: 500; border-radius: var(--s-border-radius-small); padding: 18px $basic-spacing; color: var(--s-color-theme-accent-hover); - i { - color: var(--s-color-base-content-tertiary); - } &:hover { cursor: pointer; } + &:hover i { color: var(--s-color-base-content-secondary); } } + + &-info { + &-iban-missing { + margin-top: $inner-spacing-mini; + background: var(--s-color-utility-body); + font-size: var(--s-font-size-medium); + font-weight: 400; + border-radius: var(--s-border-radius-small); + padding: 18px $basic-spacing; + line-height: 140%; + + .label { + color: var(--s-color-base-content-secondary); + margin-bottom: 5px; + } + + &:hover i { + color: var(--s-color-base-content-secondary); + } + } + + i { + color: var(--s-color-base-content-tertiary); + } + } } &-hub-info { @@ -215,3 +268,13 @@ export default class Dashboard extends Mixins(mixins.LoadingMixin, TranslationMi } } + + diff --git a/src/components/pages/SoraCard/common/BalanceIndicator.vue b/src/components/pages/SoraCard/common/BalanceIndicator.vue index 9222ecc70..f62254115 100644 --- a/src/components/pages/SoraCard/common/BalanceIndicator.vue +++ b/src/components/pages/SoraCard/common/BalanceIndicator.vue @@ -25,14 +25,12 @@ import TranslationMixin from '@/components/mixins/TranslationMixin'; import { state } from '@/store/decorators'; import { delay } from '@/utils'; -const hundred = 100; - @Component export default class BalanceIndicator extends Mixins(TranslationMixin, mixins.LoadingMixin) { @state.soraCard.xorToDeposit private xorToDeposit!: FPNumber; @state.soraCard.euroBalance private euroBalance!: string; - @Ref('progress') private readonly progressBar!: HTMLInputElement; + @Ref('progress') private readonly progressBar!: Nullable; @Watch('euroBalance') private handleEuroBalanceChange() { @@ -47,17 +45,19 @@ export default class BalanceIndicator extends Mixins(TranslationMixin, mixins.Lo } async runProgressBarAnimation(): Promise { - if (this.progressBar) { - const balanceInteger = Math.round(Number(this.euroBalance)); - for (let i = 0; i < balanceInteger; i = i + 0.12) { - await delay(1); - this.progressBar.style.setProperty('width', `${i}%`); - } + if (!this.progressBar) return; + + const balanceInteger = Math.round(Number(this.euroBalance)); + for (let i = 0; i < balanceInteger; i = i + 0.12) { + await delay(1); + this.progressBar?.style?.setProperty?.('width', `${i}%`); } } mounted(): void { - setTimeout(this.runProgressBarAnimation, 2500); + this.$nextTick().then(() => { + setTimeout(this.runProgressBarAnimation, 2_500); + }); } } diff --git a/src/components/pages/SoraCard/steps/Phone.vue b/src/components/pages/SoraCard/steps/Phone.vue index 19fd4947e..341351bfd 100644 --- a/src/components/pages/SoraCard/steps/Phone.vue +++ b/src/components/pages/SoraCard/steps/Phone.vue @@ -1,17 +1,32 @@ + + + + diff --git a/src/components/pages/X1/X1Dialog.vue b/src/components/pages/X1/X1Dialog.vue index 787ad07a1..9503901fe 100644 --- a/src/components/pages/X1/X1Dialog.vue +++ b/src/components/pages/X1/X1Dialog.vue @@ -6,10 +6,12 @@ :id="widgetId" data-from-currency="EUR" data-locale="en" + :data-to-blockchain="blockchainSymbol" :data-address="accountAddress" :data-from-amount="restEuroToDeposit" :data-hide-buy-more-button="true" :data-hide-try-again-button="false" + :data-disable-to-blockchain="true" />
@@ -77,6 +79,10 @@ export default class X1Dialog extends Mixins(mixins.DialogMixin, mixins.LoadingM return this.X1Widget.widgetId; } + get blockchainSymbol(): string { + return this.soraNetwork === WALLET_CONSTS.SoraNetwork.Prod ? 'XOR' : 'TXOR'; + } + async loadX1(): Promise { try { await ScriptLoader.load(this.X1Widget.sdkUrl, false); diff --git a/src/components/shared/Input/TokenSelectButton.vue b/src/components/shared/Input/TokenSelectButton.vue index 64d5fe3d1..9018b9bab 100644 --- a/src/components/shared/Input/TokenSelectButton.vue +++ b/src/components/shared/Input/TokenSelectButton.vue @@ -41,7 +41,7 @@ import type { Asset, AccountAsset } from '@sora-substrate/util/build/assets/type export default class TokenSelectButton extends Mixins(TranslationMixin) { @Prop({ type: Object, default: () => null }) readonly token!: AccountAsset | Asset; @Prop({ type: Array, default: () => [] }) readonly tokens!: Array; - @Prop({ type: String, default: '' }) readonly icon!: boolean; + @Prop({ type: String, default: '' }) readonly icon!: string; @Prop({ type: [Number, String], default: 0 }) readonly tabindex!: number | string; get hasToken(): boolean { diff --git a/src/consts/index.ts b/src/consts/index.ts index d31c1e0d4..1578b59b0 100644 --- a/src/consts/index.ts +++ b/src/consts/index.ts @@ -172,6 +172,7 @@ export enum Components { ConfirmationInfo = 'pages/SoraCard/ConfirmationInfo', TermsAndConditions = 'pages/SoraCard/steps/TermsAndConditions', ToSDialog = 'pages/SoraCard/steps/ToSDialog', + SelectCountryDialog = 'pages/SoraCard/steps/SelectCountryDialog', Phone = 'pages/SoraCard/steps/Phone', Email = 'pages/SoraCard/steps/Email', Payment = 'pages/SoraCard/steps/Payment', @@ -330,7 +331,7 @@ const OtherPagesMenu: Array = [ href: '/#/stats', }, { - icon: 'sora-card', + icon: 'el-icon-bank-card', title: PageNames.SoraCard, href: '/#/card', }, diff --git a/src/indexer/queries/assetSupply.ts b/src/indexer/queries/assetSupply.ts index 33a43ba19..fa1665aaf 100644 --- a/src/indexer/queries/assetSupply.ts +++ b/src/indexer/queries/assetSupply.ts @@ -1,14 +1,10 @@ import { FPNumber } from '@sora-substrate/math'; import { getCurrentIndexer, WALLET_CONSTS } from '@soramitsu/soraneo-wallet-web'; import { SubqueryIndexer, SubsquidIndexer } from '@soramitsu/soraneo-wallet-web/lib/services/indexer'; -import { SubsquidAssetSnapshotEntity } from '@soramitsu/soraneo-wallet-web/lib/services/indexer/subsquid/types'; import { gql } from '@urql/core'; -import type { - SubqueryAssetSnapshotEntity, - SubqueryConnectionQueryResponse, -} from '@soramitsu/soraneo-wallet-web/lib/services/indexer/subquery/types'; -import type { SnapshotTypes } from '@soramitsu/soraneo-wallet-web/lib/services/indexer/types'; +import type { SubqueryConnectionQueryResponse } from '@soramitsu/soraneo-wallet-web/lib/services/indexer/subquery/types'; +import type { SnapshotTypes, AssetSnapshotEntity } from '@soramitsu/soraneo-wallet-web/lib/services/indexer/types'; const { IndexerType } = WALLET_CONSTS; @@ -19,7 +15,7 @@ export type ChartData = { burn: number; }; -const SubqueryAssetSupplyQuery = gql>` +const SubqueryAssetSupplyQuery = gql>` query AssetSupplyQuery($after: Cursor, $type: SnapshotType, $id: String, $from: Int, $to: Int) { data: assetSnapshots( after: $after @@ -49,7 +45,7 @@ const SubqueryAssetSupplyQuery = gql>` +const SubsquidAssetSupplyQuery = gql>` query AssetSupplyQuery($after: String, $type: SnapshotType, $id: String, $from: Int, $to: Int) { data: assetSnapshotsConnection( after: $after @@ -78,7 +74,7 @@ const toNumber = (value: string): number => { return fp.isFinity() ? fp.toNumber() : 0; }; -const parse = (node: SubqueryAssetSnapshotEntity | SubsquidAssetSnapshotEntity): ChartData => { +const parse = (node: AssetSnapshotEntity): ChartData => { return { timestamp: +node.timestamp * 1000, value: toNumber(node.supply), diff --git a/src/indexer/queries/assets.ts b/src/indexer/queries/assets.ts index 0fabceaa0..9105f13f5 100644 --- a/src/indexer/queries/assets.ts +++ b/src/indexer/queries/assets.ts @@ -7,12 +7,10 @@ import last from 'lodash/fp/last'; import type { Asset } from '@sora-substrate/util/build/assets/types'; import type { SubqueryAssetEntity, - SubqueryAssetSnapshotEntity, SubqueryConnectionQueryResponse, } from '@soramitsu/soraneo-wallet-web/lib/services/indexer/subquery/types'; import type { SubsquidAssetEntity, - SubsquidAssetSnapshotEntity, SubsquidConnectionQueryResponse, } from '@soramitsu/soraneo-wallet-web/lib/services/indexer/subsquid/types'; import type { AssetSnapshotEntity } from '@soramitsu/soraneo-wallet-web/lib/services/indexer/types'; @@ -31,16 +29,16 @@ export type TokenData = { type SubqueryAssetData = SubqueryAssetEntity & { hourSnapshots: { - nodes: SubqueryAssetSnapshotEntity[]; + nodes: AssetSnapshotEntity[]; }; daySnapshots: { - nodes: SubqueryAssetSnapshotEntity[]; + nodes: AssetSnapshotEntity[]; }; }; type SubsquidAssetData = SubsquidAssetEntity & { - hourSnapshots: SubsquidAssetSnapshotEntity[]; - daySnapshots: SubsquidAssetSnapshotEntity[]; + hourSnapshots: AssetSnapshotEntity[]; + daySnapshots: AssetSnapshotEntity[]; }; const SubqueryAssetsQuery = gql>` diff --git a/src/lang/card/cs.json b/src/lang/card/cs.json index 9d44ec0d8..4f763d1b4 100644 --- a/src/lang/card/cs.json +++ b/src/lang/card/cs.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, jsem připraven", "emailPlaceholder": "E-mailem", + "noSpamText": "Žádný spam! Pouze pro zabezpečení vašeho účtu", "sendCodeBtn": "Pošlete SMS kód", "firstNamePlaceholder": "Jméno", "lastNamePlaceholder": "Příjmení", + "verificationCodeText": "Obdržíte ověřovací kód prostřednictvím SMS", "phonePlaceholder": "Telefonní číslo", "statusPendingTitle": "Probíhá ověřování", "sendEmailLinkBtn": "Poslat odkaz", @@ -94,6 +96,9 @@ "or": "nebo", "oneTimeApplicationFee": "Jednorázový poplatek za vydání karty", "applicationFeeNote": "Poznámka: Vydání placené karty bude k dispozici později.", - "statusRejectReasonMultiple": "Vaše přihláška byla zamítnuta z několika důvodů:" + "statusRejectReasonMultiple": "Vaše přihláška byla zamítnuta z několika důvodů:", + "selectCountryText": "Vyberte vaší zemi", + "filterCountries": "Filtrovat podle země nebo volacího kódu", + "ibanPendingDesc": "Vaše vydání IBAN čeká na vyřízení.\n V případě, že čekáte déle než 72 hodin, kontaktujte nás prostřednictvím {email}" } } \ No newline at end of file diff --git a/src/lang/card/de.json b/src/lang/card/de.json index 30931659b..7cb66ce03 100644 --- a/src/lang/card/de.json +++ b/src/lang/card/de.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, ich bin bereit", "emailPlaceholder": "E-Mail", + "noSpamText": "Kein Spam! Nur um Ihr Konto zu sichern", "sendCodeBtn": "SMS Code senden", "firstNamePlaceholder": "Vorname", "lastNamePlaceholder": "Familienname, Nachname", + "verificationCodeText": "Sie erhalten einen Verifizierungscode per SMS", "phonePlaceholder": "Telefonnummer", "statusPendingTitle": "Überprüfung läuft", "sendEmailLinkBtn": "Link senden", @@ -94,6 +96,9 @@ "or": "oder", "oneTimeApplicationFee": "Einmalige Gebühr für die Ausstellung einer Karte", "applicationFeeNote": "Hinweis: Die Ausstellung einer kostenpflichtigen Karte wird zu einem späteren Zeitpunkt verfügbar sein.", - "statusRejectReasonMultiple": "Ihr Antrag wurde aus mehreren Gründen abgelehnt:" + "statusRejectReasonMultiple": "Ihr Antrag wurde aus mehreren Gründen abgelehnt:", + "selectCountryText": "Wähle dein Land", + "filterCountries": "Nach Land oder Vorwahl filtern", + "ibanPendingDesc": "Die Ausstellung Ihrer IBAN steht noch aus.\n Falls die Wartezeit länger als 72 Stunden dauert, kontaktieren Sie uns per {email}" } } \ No newline at end of file diff --git a/src/lang/card/en.json b/src/lang/card/en.json index c49f04f08..91022a372 100644 --- a/src/lang/card/en.json +++ b/src/lang/card/en.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, I’m ready", "emailPlaceholder": "Email", + "noSpamText": "No spam! Only to secure your account", "sendCodeBtn": "Send SMS code", "firstNamePlaceholder": "First name", "lastNamePlaceholder": "Last name", + "verificationCodeText": "You will receive a verification code via SMS", "phonePlaceholder": "Phone Number", "statusPendingTitle": "Verification in progress", "sendEmailLinkBtn": "Send link", @@ -94,6 +96,9 @@ "or": "or", "oneTimeApplicationFee": "One-time fee to issue a card", "applicationFeeNote": "Note: paid card issuance will be available at a later stage.", - "statusRejectReasonMultiple": "Your application has been rejected for multiple reasons:" + "statusRejectReasonMultiple": "Your application has been rejected for multiple reasons:", + "selectCountryText": "Select your country", + "filterCountries": "Filter by Country or Dial code", + "ibanPendingDesc": "Your IBAN issuance is pending.
In case the wait longer than 72h contact us via {email}" } } \ No newline at end of file diff --git a/src/lang/card/es.json b/src/lang/card/es.json index d9e0a374e..edb03ca13 100644 --- a/src/lang/card/es.json +++ b/src/lang/card/es.json @@ -21,9 +21,11 @@ }, "okReadyText": "De acuerdo, estoy listo", "emailPlaceholder": "Correo electrónico", + "noSpamText": "Sin spam! Sólo para asegurar tu cuenta", "sendCodeBtn": "Enviar código SMS", "firstNamePlaceholder": "Nombre", "lastNamePlaceholder": "Apellido", + "verificationCodeText": "Recibirá un código de verificación por SMS", "phonePlaceholder": "Número de teléfono", "statusPendingTitle": "Verificación en progreso", "sendEmailLinkBtn": "Enviar enlace", @@ -94,6 +96,9 @@ "or": "o", "oneTimeApplicationFee": "Tarifa única para emitir una tarjeta", "applicationFeeNote": "Nota: la emisión de tarjetas pagas estará disponible en una etapa posterior.", - "statusRejectReasonMultiple": "Su solicitud ha sido rechazada por múltiples motivos:" + "statusRejectReasonMultiple": "Su solicitud ha sido rechazada por múltiples motivos:", + "selectCountryText": "Selecciona tu pais", + "filterCountries": "Filtrar por país o código de marcación", + "ibanPendingDesc": "Tu emisión de IBAN está pendiente.\n En caso de que la espera supere las 72h contáctenos vía {email}" } } \ No newline at end of file diff --git a/src/lang/card/fr.json b/src/lang/card/fr.json index 64f9e7b2f..958820ccf 100644 --- a/src/lang/card/fr.json +++ b/src/lang/card/fr.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, je suis prêt(e)", "emailPlaceholder": "E-mail", + "noSpamText": "Pas de spam. Seulement pour sécuriser votre compte", "sendCodeBtn": "Envoyer le code", "firstNamePlaceholder": "Prénom", "lastNamePlaceholder": "Nom de famille", + "verificationCodeText": "Vous allez recevoir un code de vérification par SMS", "phonePlaceholder": "Numéro de téléphone", "statusPendingTitle": "Vérification en cours", "sendEmailLinkBtn": "Envoyer le lien", @@ -94,6 +96,9 @@ "or": "ou", "oneTimeApplicationFee": "Frais uniques pour émettre une carte", "applicationFeeNote": "Remarque : l'émission de cartes payantes sera disponible ultérieurement.", - "statusRejectReasonMultiple": "Votre candidature a été rejetée pour plusieurs raisons :" + "statusRejectReasonMultiple": "Votre candidature a été rejetée pour plusieurs raisons :", + "selectCountryText": "Sélectionnez votre pays", + "filterCountries": "Filtrer par pays ou code d'appel", + "ibanPendingDesc": "Votre émission d'IBAN est en attente.\n En cas d'attente supérieure à 72 heures, contactez-nous via {email}" } } \ No newline at end of file diff --git a/src/lang/card/hr.json b/src/lang/card/hr.json index bafbd4d76..5d2e91bcf 100644 --- a/src/lang/card/hr.json +++ b/src/lang/card/hr.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, spreman sam", "emailPlaceholder": "E-mail", + "noSpamText": "Bez spama! Samo da osigurate svoj račun", "sendCodeBtn": "Pošalji SMS kod", "firstNamePlaceholder": "Ime", "lastNamePlaceholder": "Prezime", + "verificationCodeText": "Primit ćete kontrolni kod putem SMS-a", "phonePlaceholder": "Broj telefona", "statusPendingTitle": "Provjera u tijeku", "sendEmailLinkBtn": "Pošalji link", @@ -94,6 +96,9 @@ "or": "ili", "oneTimeApplicationFee": "Jednokratna naknada za izdavanje kartice", "applicationFeeNote": "Napomena: izdavanje plaćene kartice bit će dostupno naknadno.", - "statusRejectReasonMultiple": "Vaša prijava je odbijena iz više razloga:" + "statusRejectReasonMultiple": "Vaša prijava je odbijena iz više razloga:", + "selectCountryText": "Izaberite svoju zemlju", + "filterCountries": "Filtrirajte po zemlji ili pozivnom broju", + "ibanPendingDesc": "Vaše izdavanje IBAN-a je na čekanju.\n U slučaju čekanja dužeg od 72h kontaktirajte nas putem {email}" } } \ No newline at end of file diff --git a/src/lang/card/hu.json b/src/lang/card/hu.json index a8c45a1b3..075d452b1 100644 --- a/src/lang/card/hu.json +++ b/src/lang/card/hu.json @@ -21,9 +21,11 @@ }, "okReadyText": "Rendben, készen állok", "emailPlaceholder": "Email", + "noSpamText": "Nincs spam! Csak a fiók biztonsága érdekében", "sendCodeBtn": "SMS kód küldése", "firstNamePlaceholder": "Keresztnév", "lastNamePlaceholder": "Vezetéknév", + "verificationCodeText": "SMS-ben fog kapni egy ellenőrző kódot", "phonePlaceholder": "Telefonszám", "statusPendingTitle": "Ellenőrzés folyamatban", "sendEmailLinkBtn": "Link elküldése", @@ -94,6 +96,9 @@ "or": "vagy", "oneTimeApplicationFee": "A kártya kiállításának egyszeri díja", "applicationFeeNote": "Megjegyzés: a fizetős kártya kibocsátása egy későbbi szakaszban lesz elérhető.", - "statusRejectReasonMultiple": "Jelentkezését több okból is elutasították:" + "statusRejectReasonMultiple": "Jelentkezését több okból is elutasították:", + "selectCountryText": "Válaszd ki az országod", + "filterCountries": "Szűrés ország vagy hívószám szerint", + "ibanPendingDesc": "Az Ön IBAN-kibocsátása függőben van.\n 72 óránál hosszabb várakozás esetén vegye fel velünk a kapcsolatot a következő címen {email}" } } \ No newline at end of file diff --git a/src/lang/card/hy.json b/src/lang/card/hy.json index d2dbd400e..e8d75768b 100644 --- a/src/lang/card/hy.json +++ b/src/lang/card/hy.json @@ -21,9 +21,11 @@ }, "okReadyText": "Լավ, ես պատրաստ եմ", "emailPlaceholder": "Էլ", + "noSpamText": "Ոչ մի սպամ: Միայն ձեր հաշիվը պաշտպանելու համար", "sendCodeBtn": "Ուղարկեք SMS կոդը", "firstNamePlaceholder": "Անուն", "lastNamePlaceholder": "Ազգանուն", + "verificationCodeText": "Դուք կստանաք հաստատման կոդ SMS-ի միջոցով", "phonePlaceholder": "Հեռախոսահամար", "statusPendingTitle": "Ստուգումն ընթացքի մեջ է", "sendEmailLinkBtn": "Ուղարկել հղումը", @@ -94,6 +96,9 @@ "or": "կամ", "oneTimeApplicationFee": "Քարտի թողարկման միանվագ վճար", "applicationFeeNote": "Նշում. վճարովի քարտի թողարկումը հասանելի կլինի ավելի ուշ:", - "statusRejectReasonMultiple": "Ձեր դիմումը մերժվել է մի քանի պատճառներով." + "statusRejectReasonMultiple": "Ձեր դիմումը մերժվել է մի քանի պատճառներով.", + "selectCountryText": "Ընտրեք ձեր երկիրը", + "filterCountries": "Բնորոշել ըստ երկիրի կամ զանգացման կոդի", + "ibanPendingDesc": "Ձեր IBAN-ի թողարկումը սպասվում է:\n 72 ժամից ավելի սպասելու դեպքում կապվեք մեզ հետ {email} ի միջոցով" } } \ No newline at end of file diff --git a/src/lang/card/id.json b/src/lang/card/id.json index 6cc43a4cb..1b5d208ea 100644 --- a/src/lang/card/id.json +++ b/src/lang/card/id.json @@ -21,9 +21,11 @@ }, "okReadyText": "Baik saya siap", "emailPlaceholder": "Surel", + "noSpamText": "Tidak ada email spam! Hanya untuk mengamankan akun Anda", "sendCodeBtn": "Kirim kode SMS", "firstNamePlaceholder": "Nama depan", "lastNamePlaceholder": "nama keluarga", + "verificationCodeText": "Anda akan menerima kode verifikasi melalui SMS", "phonePlaceholder": "Nomor telepon", "statusPendingTitle": "Verifikasi sedang berlangsung", "sendEmailLinkBtn": "Kirim tautan", @@ -94,6 +96,9 @@ "or": "atau", "oneTimeApplicationFee": "Biaya satu kali untuk menerbitkan kartu", "applicationFeeNote": "Catatan: Penerbitan kartu berbayar akan tersedia pada tahap selanjutnya.", - "statusRejectReasonMultiple": "Permohonan Anda telah ditolak karena beberapa alasan:" + "statusRejectReasonMultiple": "Permohonan Anda telah ditolak karena beberapa alasan:", + "selectCountryText": "Pilih negaramu", + "filterCountries": "Filter berdasarkan Negara atau Kode Panggilan", + "ibanPendingDesc": "Penerbitan IBAN Anda tertunda.\n Jika menunggu lebih dari 72 jam, hubungi kami melalui {email}" } } \ No newline at end of file diff --git a/src/lang/card/it.json b/src/lang/card/it.json index 2599481c0..2a4d978ef 100644 --- a/src/lang/card/it.json +++ b/src/lang/card/it.json @@ -21,9 +21,11 @@ }, "okReadyText": "Ok sono pronto", "emailPlaceholder": "E-mail", + "noSpamText": "Niente spam! Solo per proteggere il tuo account", "sendCodeBtn": "Invia codice SMS", "firstNamePlaceholder": "Nome di battesimo", "lastNamePlaceholder": "Cognome", + "verificationCodeText": "Riceverai un codice di verifica via SMS", "phonePlaceholder": "Numero di telefono", "statusPendingTitle": "Verifica in corso", "sendEmailLinkBtn": "Invia il link", @@ -94,6 +96,9 @@ "or": "O", "oneTimeApplicationFee": "Tariffa una tantum per l'emissione di una carta", "applicationFeeNote": "Nota: l'emissione delle carte a pagamento sarà disponibile in una fase successiva.", - "statusRejectReasonMultiple": "La tua richiesta è stata respinta per molteplici motivi:" + "statusRejectReasonMultiple": "La tua richiesta è stata respinta per molteplici motivi:", + "selectCountryText": "Seleziona il tuo paese", + "filterCountries": "Filtra per Paese o Codice di chiamata", + "ibanPendingDesc": "L'emissione del tuo IBAN è in sospeso.\n Nel caso in cui l'attesa superi le 72 ore contattaci tramite {email}" } } \ No newline at end of file diff --git a/src/lang/card/nl.json b/src/lang/card/nl.json index 49254376f..5cfc58786 100644 --- a/src/lang/card/nl.json +++ b/src/lang/card/nl.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, ik ben klaar", "emailPlaceholder": "E-mail", + "noSpamText": "Geen spam! Alleen om uw account te beveiligen", "sendCodeBtn": "SMS code verzenden", "firstNamePlaceholder": "Voornaam", "lastNamePlaceholder": "Achternaam", + "verificationCodeText": "U ontvangt een verificatiecode via SMS.", "phonePlaceholder": "Telefoonnummer", "statusPendingTitle": "Verificatie is gaande", "sendEmailLinkBtn": "Link nogmaals versturen", @@ -94,6 +96,9 @@ "or": "of", "oneTimeApplicationFee": "Eenmalige kosten voor het uitgeven van een kaart", "applicationFeeNote": "Let op: de uitgifte van betaalde kaarten zal in een later stadium beschikbaar zijn.", - "statusRejectReasonMultiple": "Uw aanvraag is om meerdere redenen afgewezen:" + "statusRejectReasonMultiple": "Uw aanvraag is om meerdere redenen afgewezen:", + "selectCountryText": "Kies je land", + "filterCountries": "Filteren op land of netnummer", + "ibanPendingDesc": "Uw IBAN-uitgifte is in behandeling.\n Neem contact met ons op via {email} als de wachttijd langer dan 72 uur is" } } \ No newline at end of file diff --git a/src/lang/card/no.json b/src/lang/card/no.json index e95281de3..88bd88f84 100644 --- a/src/lang/card/no.json +++ b/src/lang/card/no.json @@ -21,9 +21,11 @@ }, "okReadyText": "Ok jeg er klar", "emailPlaceholder": "E-post", + "noSpamText": "Ingen spam! Kun for å sikre kontoen din", "sendCodeBtn": "Send SMS-kode", "firstNamePlaceholder": "Fornavn", "lastNamePlaceholder": "Etternavn", + "verificationCodeText": "Du vil motta en bekreftelseskode via SMS", "phonePlaceholder": "Telefonnummer", "statusPendingTitle": "Verifisering pågår", "sendEmailLinkBtn": "Send lenke", @@ -94,6 +96,9 @@ "or": "eller", "oneTimeApplicationFee": "Engangsavgift for å utstede et kort", "applicationFeeNote": "Merk: utstedelse av betalingskort vil være tilgjengelig på et senere tidspunkt.", - "statusRejectReasonMultiple": "Søknaden din har blitt avvist av flere årsaker:" + "statusRejectReasonMultiple": "Søknaden din har blitt avvist av flere årsaker:", + "selectCountryText": "Velg ditt land", + "filterCountries": "Filtrer etter land eller kodenr.", + "ibanPendingDesc": "Din IBAN-utstedelse venter.\n Hvis ventetiden er lengre enn 72 timer, kontakt oss via {email}" } } \ No newline at end of file diff --git a/src/lang/card/pl.json b/src/lang/card/pl.json index d979e2a71..8adb430ae 100644 --- a/src/lang/card/pl.json +++ b/src/lang/card/pl.json @@ -21,9 +21,11 @@ }, "okReadyText": "Ok, jestem gotowy", "emailPlaceholder": "E-mail", + "noSpamText": "Bez spamu! Tylko w celu zabezpieczenia Twojego konta", "sendCodeBtn": "Wyślij kod SMS", "firstNamePlaceholder": "Imię", "lastNamePlaceholder": "Nazwisko", + "verificationCodeText": "Otrzymasz kod weryfikacyjny SMS-em", "phonePlaceholder": "Numer telefonu", "statusPendingTitle": "Trwa weryfikacja", "sendEmailLinkBtn": "Wyślij link", @@ -94,6 +96,9 @@ "or": "Lub", "oneTimeApplicationFee": "Opłata jednorazowa za wydanie karty", "applicationFeeNote": "Uwaga: wydawanie kart płatnych będzie możliwe w późniejszym terminie.", - "statusRejectReasonMultiple": "Twój wniosek został odrzucony z wielu powodów:" + "statusRejectReasonMultiple": "Twój wniosek został odrzucony z wielu powodów:", + "selectCountryText": "Wybierz swój kraj", + "filterCountries": "Filtruj według kraju lub kodu kierunkowego", + "ibanPendingDesc": "Wydanie Twojego numeru IBAN oczekuje na realizację.\n W przypadku, gdy czas oczekiwania będzie dłuższy niż 72 godziny, skontaktuj się z nami za pośrednictwem {email}" } } \ No newline at end of file diff --git a/src/lang/card/ru.json b/src/lang/card/ru.json index 95bbd54a3..da41b647e 100644 --- a/src/lang/card/ru.json +++ b/src/lang/card/ru.json @@ -17,13 +17,15 @@ "personalTitle": "Отправьте свою личную информацию", "personalDesc": "Заполните форму, указав свое имя и адрес", "proofAddressNote": "Примечание. Заявления таких необанков, как Revolut и N26, в настоящее время не считаются действительным подтверждением адреса.", - "paidAttemptDisclaimer": "У вас есть только {count} бесплатных попыток пройти процедуру KYC. Каждая следующая попытка после этого будет стоить €{cost}. Платные попытки станут доступны после следующего обновления приложения." + "paidAttemptDisclaimer": "У вас есть только {count} бесплатных попыток пройти процедуру KYC. Каждая следующая попытка после этого будет стоить € {cost} . Платные попытки станут доступны после следующего обновления приложения." }, "okReadyText": "Хорошо, я готов", "emailPlaceholder": "Электронная почта", + "noSpamText": "Никакого спама! Только для защиты вашего аккаунта", "sendCodeBtn": "Отправить SMS-код", "firstNamePlaceholder": "Имя", "lastNamePlaceholder": "Фамилия", + "verificationCodeText": "Вы получите код подтверждения по SMS", "phonePlaceholder": "Номер телефона", "statusPendingTitle": "Выполняется проверка", "sendEmailLinkBtn": "Отправить ссылку", @@ -94,6 +96,9 @@ "or": "или", "oneTimeApplicationFee": "Единоразовая плата за выпуск карты", "applicationFeeNote": "Примечание: выпуск платной карты будет доступен позднее.", - "statusRejectReasonMultiple": "Ваша заявка была отклонена по нескольким причинам:" + "statusRejectReasonMultiple": "Ваша заявка была отклонена по нескольким причинам:", + "selectCountryText": "Выберите свою страну", + "filterCountries": "Фильтр по стране или коду", + "ibanPendingDesc": "Выдача вашего IBAN ожидается.\nВ случае ожидания более 72 часов свяжитесь с нами по адресу {email}" } } \ No newline at end of file diff --git a/src/lang/card/sk.json b/src/lang/card/sk.json index 23a54b3c3..c475d5000 100644 --- a/src/lang/card/sk.json +++ b/src/lang/card/sk.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, som pripravený", "emailPlaceholder": "Email", + "noSpamText": "Žiadny spam! Iba na zabezpečenie vášho účtu", "sendCodeBtn": "Pošlite SMS kód", "firstNamePlaceholder": "Krstné meno", "lastNamePlaceholder": "Priezvisko", + "verificationCodeText": "Dostanete overovací kód prostredníctvom SMS", "phonePlaceholder": "Telefónne číslo", "statusPendingTitle": "Prebieha overovanie", "sendEmailLinkBtn": "Odoslať odkaz", @@ -94,6 +96,9 @@ "or": "alebo", "oneTimeApplicationFee": "Jednorazový poplatok za vydanie karty", "applicationFeeNote": "Poznámka: Vydanie platenej karty bude k dispozícii neskôr.", - "statusRejectReasonMultiple": "Vaša žiadosť bola zamietnutá z viacerých dôvodov:" + "statusRejectReasonMultiple": "Vaša žiadosť bola zamietnutá z viacerých dôvodov:", + "selectCountryText": "Vyber svoju krajinu", + "filterCountries": "Filtrovať podľa krajiny alebo kódového čísla", + "ibanPendingDesc": "Čaká sa na vydanie vášho čísla IBAN.\n V prípade čakania dlhšieho ako 72 hodín nás kontaktujte na {email}" } } \ No newline at end of file diff --git a/src/lang/card/sr.json b/src/lang/card/sr.json index 1951bf204..a3a9c9074 100644 --- a/src/lang/card/sr.json +++ b/src/lang/card/sr.json @@ -21,9 +21,11 @@ }, "okReadyText": "Ок ја сам спреман", "emailPlaceholder": "Емаил", + "noSpamText": "Нема нежељене поште! Само да бисте заштитили свој налог", "sendCodeBtn": "Пошаљите СМС код", "firstNamePlaceholder": "Име", "lastNamePlaceholder": "Презиме", + "verificationCodeText": "Добићете верификациони код путем СМС-а", "phonePlaceholder": "Број телефона", "statusPendingTitle": "Верификација је у току", "sendEmailLinkBtn": "Пошаљи линк", @@ -94,6 +96,9 @@ "or": "или", "oneTimeApplicationFee": "Једнократна накнада за издавање картице", "applicationFeeNote": "Напомена: издавање плаћене картице биће доступно касније.", - "statusRejectReasonMultiple": "Ваша пријава је одбијена из више разлога:" + "statusRejectReasonMultiple": "Ваша пријава је одбијена из више разлога:", + "selectCountryText": "Изаберите своју земљу", + "filterCountries": "Filtrirajte po zemlji ili pozivnom kodu", + "ibanPendingDesc": "Ваше ИБАН издавање је на чекању.\n У случају да чекате дуже од 72х контактирајте нас путем {email}" } } \ No newline at end of file diff --git a/src/lang/card/sv.json b/src/lang/card/sv.json index 944c1cc1a..3e856651a 100644 --- a/src/lang/card/sv.json +++ b/src/lang/card/sv.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK jag är redo", "emailPlaceholder": "E-post", + "noSpamText": "Ingen spam! Endast för att säkra ditt konto", "sendCodeBtn": "Skicka SMS-kod", "firstNamePlaceholder": "Förnamn", "lastNamePlaceholder": "Efternamn", + "verificationCodeText": "Du kommer att få en verifieringskod via SMS", "phonePlaceholder": "Telefonnummer", "statusPendingTitle": "Verifiering pågår", "sendEmailLinkBtn": "Skicka länk", @@ -94,6 +96,9 @@ "or": "eller", "oneTimeApplicationFee": "Engångsavgift för att utfärda ett kort", "applicationFeeNote": "Obs! Utfärdande av betalkort kommer att vara tillgängligt i ett senare skede.", - "statusRejectReasonMultiple": "Din ansökan har avvisats av flera skäl:" + "statusRejectReasonMultiple": "Din ansökan har avvisats av flera skäl:", + "selectCountryText": "Välj ditt land", + "filterCountries": "Filtrera efter land eller riktnummer", + "ibanPendingDesc": "Ditt IBAN-utfärdande väntar.\n Om väntan är längre än 72 timmar kontakta oss via {email}" } } \ No newline at end of file diff --git a/src/lang/card/vi.json b/src/lang/card/vi.json index 7d0dcae29..641a5ef71 100644 --- a/src/lang/card/vi.json +++ b/src/lang/card/vi.json @@ -21,9 +21,11 @@ }, "okReadyText": "OK, tôi đã sẵn sàng", "emailPlaceholder": "Email", + "noSpamText": "Không có thư rác! Chỉ để bảo mật tài khoản của bạn", "sendCodeBtn": "Gửi mã SMS", "firstNamePlaceholder": "Họ", "lastNamePlaceholder": "Tên", + "verificationCodeText": "Bạn sẽ nhận được mã xác minh qua SMS", "phonePlaceholder": "Số điện thoại", "statusPendingTitle": "Đang xác minh", "sendEmailLinkBtn": "Gửi link", @@ -94,6 +96,9 @@ "or": "hoặc", "oneTimeApplicationFee": "Phí phát hành thẻ một lần", "applicationFeeNote": "Lưu ý: việc phát hành thẻ trả phí sẽ được thực hiện ở giai đoạn sau.", - "statusRejectReasonMultiple": "Đơn đăng ký của bạn đã bị từ chối vì nhiều lý do:" + "statusRejectReasonMultiple": "Đơn đăng ký của bạn đã bị từ chối vì nhiều lý do:", + "selectCountryText": "Chọn đất nước của bạn", + "filterCountries": "Lọc theo Quốc gia hoặc Mã quay số", + "ibanPendingDesc": "Việc cấp IBAN của bạn đang chờ xử lý.\n Trong trường hợp chờ đợi lâu hơn 72h, hãy liên hệ với chúng tôi qua {email}" } } \ No newline at end of file diff --git a/src/lang/card/yo.json b/src/lang/card/yo.json index 810403ef6..24c9166a7 100644 --- a/src/lang/card/yo.json +++ b/src/lang/card/yo.json @@ -21,9 +21,11 @@ }, "okReadyText": "O DARA, Mo setan", "emailPlaceholder": "Imeeli", + "noSpamText": "Ko si àwúrúju! Nikan lati ni aabo akọọlẹ rẹ", "sendCodeBtn": "Fi koodu SMS ranṣẹ", "firstNamePlaceholder": "Orukọ akọkọ", "lastNamePlaceholder": "Oruko idile", + "verificationCodeText": "Iwọ yoo gba koodu idaniloju nipasẹ SMS", "phonePlaceholder": "Nomba fonu", "statusPendingTitle": "Ijerisi ni ilọsiwaju", "sendEmailLinkBtn": "Fi ọna asopọ ranṣẹ", @@ -94,6 +96,9 @@ "or": "tabi", "oneTimeApplicationFee": "Owo-akoko kan lati fun kaadi kan", "applicationFeeNote": "Akiyesi: ipinfunni kaadi sisan yoo wa ni ipele nigbamii.", - "statusRejectReasonMultiple": "Ohun elo rẹ ti kọ fun awọn idi pupọ:" + "statusRejectReasonMultiple": "Ohun elo rẹ ti kọ fun awọn idi pupọ:", + "selectCountryText": "Yan orilẹ-ede rẹ", + "filterCountries": "Sàngan lori orilẹ́-èdè tabi koodu orọ", + "ibanPendingDesc": "Ipinfunni IBAN rẹ ti wa ni isunmọtosi.\n Ti idaduro to gun ju wakati 72 lọ kan si wa nipasẹ {email}" } } \ No newline at end of file diff --git a/src/lang/card/zh_CN.json b/src/lang/card/zh_CN.json index d00f93a2a..1c8854eef 100644 --- a/src/lang/card/zh_CN.json +++ b/src/lang/card/zh_CN.json @@ -21,9 +21,11 @@ }, "okReadyText": "好的,我准备好了", "emailPlaceholder": "电子邮件", + "noSpamText": "不要垃圾邮件!只是为了保护您的账户", "sendCodeBtn": "发送短信代码", "firstNamePlaceholder": "名", "lastNamePlaceholder": "姓", + "verificationCodeText": "您将通过短信收到验证码", "phonePlaceholder": "电话号码", "statusPendingTitle": "正在进行验证", "sendEmailLinkBtn": "发送链接", @@ -94,6 +96,9 @@ "or": "或者", "oneTimeApplicationFee": "一次性发卡费用", "applicationFeeNote": "注:付费卡发行将在稍后阶段提供。", - "statusRejectReasonMultiple": "您的申请因多种原因被拒绝:" + "statusRejectReasonMultiple": "您的申请因多种原因被拒绝:", + "selectCountryText": "选择您所在的国家\/地区", + "filterCountries": "按国家或拨号码筛选", + "ibanPendingDesc": "您的 IBAN 正在等待签发。\n如果等待时间超过 72 小时,请通过{email}联系我们" } } \ No newline at end of file diff --git a/src/lang/cs.json b/src/lang/cs.json index e77b4ea7a..450bca43f 100644 --- a/src/lang/cs.json +++ b/src/lang/cs.json @@ -305,7 +305,8 @@ "viewIn": "Zobrazit v {explorer}", "referrer": "Doporučitel", "referral": "Doporučení", - "adarTxDetailsTitle": "Podrobnosti transakce" + "adarTxDetailsTitle": "Podrobnosti transakce", + "comment": "Komentář" }, "appName": "{AppName}", "changeNetworkText": "Změnit síť v {Metamask}", diff --git a/src/lang/de.json b/src/lang/de.json index 7350f6aab..fc5740802 100644 --- a/src/lang/de.json +++ b/src/lang/de.json @@ -305,7 +305,8 @@ "viewIn": "Auf {explorer} ansehen", "referrer": "Referrer", "referral": "Referral", - "adarTxDetailsTitle": "Transaktionsdetails" + "adarTxDetailsTitle": "Transaktionsdetails", + "comment": "Kommentar" }, "appName": "{AppName}", "changeNetworkText": "Netzwerk in {Metamask} ändern", diff --git a/src/lang/en.json b/src/lang/en.json index c4b6da451..364da3907 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -305,7 +305,8 @@ "viewIn": "View in {explorer}", "referrer": "Referrer", "referral": "Referral", - "adarTxDetailsTitle": "Transaction details" + "adarTxDetailsTitle": "Transaction details", + "comment": "Comment" }, "appName": "{AppName}", "changeNetworkText": "Change network in {Metamask}", diff --git a/src/lang/es.json b/src/lang/es.json index 886467af2..42af145f3 100644 --- a/src/lang/es.json +++ b/src/lang/es.json @@ -305,7 +305,8 @@ "viewIn": "Ver en {explorer}", "referrer": "Referente", "referral": "Referencia", - "adarTxDetailsTitle": "Detalles de la transacción" + "adarTxDetailsTitle": "Detalles de la transacción", + "comment": "Comentario" }, "appName": "{AppName}", "changeNetworkText": "Cambiar de red en {Metamask}", diff --git a/src/lang/fr.json b/src/lang/fr.json index 346c2b455..0472d6ed1 100644 --- a/src/lang/fr.json +++ b/src/lang/fr.json @@ -305,7 +305,8 @@ "viewIn": "Visualisez dans {explorer}", "referrer": "Référent", "referral": "Référence", - "adarTxDetailsTitle": "Détails de la transaction" + "adarTxDetailsTitle": "Détails de la transaction", + "comment": "Commentaire" }, "appName": "{AppName}", "changeNetworkText": "Changer de réseau dans {Metamask}", diff --git a/src/lang/hr.json b/src/lang/hr.json index bdb6bb90f..ccaf4d0ae 100644 --- a/src/lang/hr.json +++ b/src/lang/hr.json @@ -305,7 +305,8 @@ "viewIn": "Pogledajte u {explorer}", "referrer": "Preporučitelj", "referral": "Preporuka", - "adarTxDetailsTitle": "Detalji transakcije" + "adarTxDetailsTitle": "Detalji transakcije", + "comment": "Komentar" }, "appName": "{AppName}", "changeNetworkText": "Promijenite mrežu u {Metamask}", diff --git a/src/lang/hu.json b/src/lang/hu.json index 647910098..4ba84a68a 100644 --- a/src/lang/hu.json +++ b/src/lang/hu.json @@ -305,7 +305,8 @@ "viewIn": "Megtekintés {explorer}-ben", "referrer": "Ajánló", "referral": "Ajánlás", - "adarTxDetailsTitle": "Tranzakció részlete" + "adarTxDetailsTitle": "Tranzakció részlete", + "comment": "Megjegyzés" }, "appName": "{AppName}", "changeNetworkText": "Hálózatváltás a {Metamask}", diff --git a/src/lang/hy.json b/src/lang/hy.json index 6a27ddd79..3140e5254 100644 --- a/src/lang/hy.json +++ b/src/lang/hy.json @@ -305,7 +305,8 @@ "viewIn": "Դիտել {explorer}- ում", "referrer": "Ուղղորդող", "referral": "Ուղղորդում", - "adarTxDetailsTitle": "գործարքի մանրամասներ" + "adarTxDetailsTitle": "գործարքի մանրամասներ", + "comment": "Մեկնաբանություն" }, "appName": "{AppName} (Փոլքասվափ)", "changeNetworkText": "Փոխել ցանցը {Metamask}- ում", diff --git a/src/lang/id.json b/src/lang/id.json index e2ede92de..82a8e7ca8 100644 --- a/src/lang/id.json +++ b/src/lang/id.json @@ -305,7 +305,8 @@ "viewIn": "Lihat di {explorer}", "referrer": "Perujuk", "referral": "Rujukan", - "adarTxDetailsTitle": "Rincian transaksi" + "adarTxDetailsTitle": "Rincian transaksi", + "comment": "Komentar" }, "appName": "{AppName}", "changeNetworkText": "Ubah jaringan di {Metamask}", diff --git a/src/lang/it.json b/src/lang/it.json index 21f3957e6..b653988c6 100644 --- a/src/lang/it.json +++ b/src/lang/it.json @@ -305,7 +305,8 @@ "viewIn": "Visualizza in {explorer}", "referrer": "Referente", "referral": "Referral", - "adarTxDetailsTitle": "Dettagli della transazione" + "adarTxDetailsTitle": "Dettagli della transazione", + "comment": "Commento" }, "appName": "{AppName}", "changeNetworkText": "Cambia rete in {Metamask}", diff --git a/src/lang/nl.json b/src/lang/nl.json index 6157194ff..4cfeaae21 100644 --- a/src/lang/nl.json +++ b/src/lang/nl.json @@ -305,7 +305,8 @@ "viewIn": "Bekijk in {explorer}", "referrer": "Verwijzer", "referral": "Verwijzing", - "adarTxDetailsTitle": "Transactiegegevens" + "adarTxDetailsTitle": "Transactiegegevens", + "comment": "Opmerking" }, "appName": "{AppName}", "changeNetworkText": "Netwerk wijzigen in {Metamask}", diff --git a/src/lang/no.json b/src/lang/no.json index 02490fda2..8866d678f 100644 --- a/src/lang/no.json +++ b/src/lang/no.json @@ -305,7 +305,8 @@ "viewIn": "Vis i {explorer}", "referrer": "Henviser", "referral": "Henvisning", - "adarTxDetailsTitle": "Transaksjonsdetaljer" + "adarTxDetailsTitle": "Transaksjonsdetaljer", + "comment": "Kommentar" }, "appName": "{AppName}", "changeNetworkText": "Bytt nettverk i {Metamask}", diff --git a/src/lang/pl.json b/src/lang/pl.json index 80cc739f9..95dc0e123 100644 --- a/src/lang/pl.json +++ b/src/lang/pl.json @@ -305,7 +305,8 @@ "viewIn": "Pokaż w {explorer}", "referrer": "Osoba polecająca", "referral": "Kod polecający", - "adarTxDetailsTitle": "Szczegóły transakcji" + "adarTxDetailsTitle": "Szczegóły transakcji", + "comment": "Komentarz" }, "appName": "{AppName}", "changeNetworkText": "Zmień sieć w portfelu {Metamask}", diff --git a/src/lang/ru.json b/src/lang/ru.json index a7a43c2fa..f03dd8f08 100644 --- a/src/lang/ru.json +++ b/src/lang/ru.json @@ -305,7 +305,8 @@ "viewIn": "Смотреть в {explorer}", "referrer": "Реферер", "referral": "Реферал", - "adarTxDetailsTitle": "Детали транзакции" + "adarTxDetailsTitle": "Детали транзакции", + "comment": "Комментарий" }, "appName": "{AppName}", "changeNetworkText": "Сменить сеть в {Metamask}", diff --git a/src/lang/sk.json b/src/lang/sk.json index ac8feeb50..a54d8ac3b 100644 --- a/src/lang/sk.json +++ b/src/lang/sk.json @@ -305,7 +305,8 @@ "viewIn": "Zobraziť v {explorer}", "referrer": "Sprostredkovateľ", "referral": "Doporučenie", - "adarTxDetailsTitle": "Detaily transakcie" + "adarTxDetailsTitle": "Detaily transakcie", + "comment": "Komentujte" }, "appName": "{AppName}", "changeNetworkText": "Zmeňiť sieť v {Metamask}", diff --git a/src/lang/sr.json b/src/lang/sr.json index b4283aecf..e795dff8b 100644 --- a/src/lang/sr.json +++ b/src/lang/sr.json @@ -305,7 +305,8 @@ "viewIn": "Прикажите у {explorer}", "referrer": "Предложилтељ", "referral": "Препорука", - "adarTxDetailsTitle": "Detalji transakcije" + "adarTxDetailsTitle": "Detalji transakcije", + "comment": "Коментар" }, "appName": "{AppName}", "changeNetworkText": "Промените мрежу у {Metamask}", diff --git a/src/lang/sv.json b/src/lang/sv.json index a14036cc8..fe8411c4c 100644 --- a/src/lang/sv.json +++ b/src/lang/sv.json @@ -305,7 +305,8 @@ "viewIn": "Visa i {explorer}", "referrer": "Referrer", "referral": "Hänvisning", - "adarTxDetailsTitle": "Transaktionsdetaljer" + "adarTxDetailsTitle": "Transaktionsdetaljer", + "comment": "Kommentar" }, "appName": "{AppName}", "changeNetworkText": "Ändra nätverk i {Metamask}", diff --git a/src/lang/vi.json b/src/lang/vi.json index 49bebb4d7..eb632e0f6 100644 --- a/src/lang/vi.json +++ b/src/lang/vi.json @@ -305,7 +305,8 @@ "viewIn": "Xem trong {explorer}", "referrer": "Người giới thiệu", "referral": "Giới thiệu", - "adarTxDetailsTitle": "Chi tiết giao dịch" + "adarTxDetailsTitle": "Chi tiết giao dịch", + "comment": "Bình luận" }, "appName": "{AppName}", "changeNetworkText": "Thay đổi mạng trong {Metamask}", diff --git a/src/lang/yo.json b/src/lang/yo.json index 900134860..13d378bd6 100644 --- a/src/lang/yo.json +++ b/src/lang/yo.json @@ -305,7 +305,8 @@ "viewIn": "Wo ni {explorer}", "referrer": "Atọkasi", "referral": "Ifiranṣẹ", - "adarTxDetailsTitle": "Àwọn àwọn èrò akójọ awoṣe" + "adarTxDetailsTitle": "Àwọn àwọn èrò akójọ awoṣe", + "comment": "Ọrọìwòye" }, "appName": "{AppName}", "changeNetworkText": "Yi nẹtiwọọki pada ni {Metamask}", diff --git a/src/lang/zh_CN.json b/src/lang/zh_CN.json index 07951385f..cb251fc6e 100644 --- a/src/lang/zh_CN.json +++ b/src/lang/zh_CN.json @@ -305,7 +305,8 @@ "viewIn": "在{explorer}中查看", "referrer": "推荐人", "referral": "推荐", - "adarTxDetailsTitle": "交易详情" + "adarTxDetailsTitle": "交易详情", + "comment": "评论" }, "appName": "{AppName}", "changeNetworkText": "在 {Metamask} 中更改网络", diff --git a/src/types/card.ts b/src/types/card.ts index 298bd0564..7f79a2b96 100644 --- a/src/types/card.ts +++ b/src/types/card.ts @@ -48,3 +48,17 @@ export interface AttemptCounter { freeAttemptsLeft: Nullable; totalFreeAttempts: Nullable; } + +export interface PhoneCode { + name: string; + // eslint-disable-next-line camelcase + dial_code: string; +} + +export type CountryInfo = { + name: string; + translatedName: string; + key: string; + flag: string; + dialCode: string; +}; diff --git a/src/utils/card.ts b/src/utils/card.ts index 5ed7b97ae..41a0a1d1b 100644 --- a/src/utils/card.ts +++ b/src/utils/card.ts @@ -4,7 +4,7 @@ import jwtDecode, { JwtPayload } from 'jwt-decode'; import store from '@/store'; import { waitForSoraNetworkFromEnv } from '@/utils'; -import { AttemptCounter, Fees, KycStatus, Status, UserInfo, VerificationStatus } from '../types/card'; +import { AttemptCounter, Fees, KycStatus, PhoneCode, Status, UserInfo, VerificationStatus } from '../types/card'; const soraCardTestBaseEndpoint = 'https://backend.dev.sora-card.tachi.soramitsu.co.jp'; const soraCardProdBaseEndpoint = 'https://backend.sora-card.odachi.soramitsu.co.jp'; @@ -16,6 +16,7 @@ const SoraProxyEndpoints = { priceOracleEndpoint: `${soraCardTestBaseEndpoint}/prices/xor_euro`, ibanEndpoint: `${soraCardTestBaseEndpoint}/ibans`, fees: `${soraCardTestBaseEndpoint}/fees`, + countries: `${soraCardTestBaseEndpoint}/country-codes`, x1TransactionStatus: `${soraCardTestBaseEndpoint}/ws/x1-payment-status`, newAccessTokenEndpoint: 'https://api-auth-test.soracard.com/RequestNewAccessToken', }, @@ -26,6 +27,7 @@ const SoraProxyEndpoints = { priceOracleEndpoint: `${soraCardProdBaseEndpoint}/prices/xor_euro`, ibanEndpoint: `${soraCardProdBaseEndpoint}/ibans`, fees: `${soraCardProdBaseEndpoint}/fees`, + countries: `${soraCardProdBaseEndpoint}/country-codes`, x1TransactionStatus: `${soraCardProdBaseEndpoint}/ws/x1-payment-status`, newAccessTokenEndpoint: 'https://api-auth.soracard.com/RequestNewAccessToken', }, @@ -219,6 +221,18 @@ export const getFees = async (): Promise => { } }; +export const getPhoneCodes = async (): Promise> => { + const soraNetwork = store.state.wallet.settings.soraNetwork ?? (await waitForSoraNetworkFromEnv()); + + try { + const data = await fetch(getSoraProxyEndpoints(soraNetwork).countries); + return await data.json(); + } catch (error) { + console.error(error); + return {}; + } +}; + export const getUserIbanInfo = async (): Promise => { const sessionRefreshToken = localStorage.getItem('PW-refresh-token'); let sessionAccessToken = localStorage.getItem('PW-token'); diff --git a/src/views/SoraCard.vue b/src/views/SoraCard.vue index 63db736bc..926db681f 100644 --- a/src/views/SoraCard.vue +++ b/src/views/SoraCard.vue @@ -124,13 +124,8 @@ export default class SoraCard extends Mixins(mixins.LoadingMixin, SubscriptionsM if (this.currentStatus === VerificationStatus.Accepted) { await this.getUserIban(); - if (this.userInfo.iban) { - this.step = Step.Dashboard; - return; - } else { - this.step = Step.ConfirmationInfo; - return; - } + this.step = Step.Dashboard; + return; } if ([VerificationStatus.Pending, VerificationStatus.Rejected].includes(this.currentStatus)) { diff --git a/yarn.lock b/yarn.lock index 04fadbb5f..fd43e4be1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2357,10 +2357,10 @@ vue-property-decorator "^9.1.2" vuex "^3.6.2" -"@soramitsu/soraneo-wallet-web@1.23.3": - version "1.23.3" - resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.23.3.tgz#5236a91badaa266ed42416ed568fc4981c94cd2a" - integrity sha512-TkfqRlbwT2XvzKASTL6RCXTl/OfV3OI0/sB76/5E+AroBM8flxHjtJsHs0aLAu5Hc8OF8l80R/1M92qOn10Geg== +"@soramitsu/soraneo-wallet-web@1.23.4": + version "1.23.4" + resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.23.4.tgz#352dd2751fc685ad36eaeae691c7dc3565356f1a" + integrity sha512-7PnMBkbvL4N7hiKOUA/e5OmN5qibIqMkXXKI90ZBS2kBDNA7ZandUWr2XdOeFPBrfiw9A5S7fsU1JsON+/BY6g== dependencies: "@polkadot/vue-identicon" "2.12.1" "@sora-substrate/util" "1.23.9"