Skip to content

Commit

Permalink
Release 1.23.0 (sora-xor#1192)
Browse files Browse the repository at this point in the history
* Feature/x1-widget (#876)

* move to separate module

* add enabling flag

* Update getters.ts

* remove route

* Update types.ts

* x1 widget

* redesign

* refactor & add X1

* Update RoadMap.vue

* improvements in flow & KYC status

* remove logs

* fixes

* take into account different statuses matches

* settings & stub

* fixes & x1 enabling

* add prod settings

* wip

* organize credentials

* change css

* Update env.json

* css refactoring

* Update env.json

* fixes

* roll out prod widget X1

* remove console.log

* refactor & fixes

* handle no record response

* Update SoraCardIntroPage.vue

* Fix/chart precision (#928)

* fix precision while loop

* improve precision calc

* optional fee popup (#919)

* add checks

* up wallet

* use exact version

* Update wallet

* Update localise files

* Update translation files

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>

* [Remove Liquidity] Show ceres locked liquidity (#922)

* show ceres locked liquidity percent

* change translation of locked

* refactoring rendering

* Update translations

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>
Co-authored-by: Stefan Popov <stefanpopov@list.ru>

* Use settingsStorage from wallet (#929)

* Use settingsStorage from wallet

* Update wallet version

* Hide switch on Explore page for !isLoggedIn

* Update lokalise

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>

* Fix search focus behavior (#932)

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>

* Add fearless (#934)

* Update package.json

* Update yarn.lock

---------

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>

* Fix fearless integration (#936)

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>

* Fix Fearless wallet (#937)

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>

* Fix Fearless link for Mozilla (#938)

Co-authored-by: Stefan Popov <17688105+stefashkaa@users.noreply.github.com>

* 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 <stefanpopov@list.ru>

* 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 <rustem.yuzlibaev@yandex.ru>

* 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 <rustem.yuzlibaev@yandex.ru>

* 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 <stefanpopov@list.ru>
Co-authored-by: Pavel Varfolomeev <wpi86@yandex.ru>

* 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 <stefanpopov@list.ru>

* remove keys (#981)

Co-authored-by: Stefan Popov <stefanpopov@list.ru>
Co-authored-by: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com>

* Demeter dialogs bottom padding adding (#982)

Co-authored-by: Rustem <rustem.yuzlibaev@yandex.ru>
Co-authored-by: Stefan Popov <stefanpopov@list.ru>

* 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 <jungle.vas@yandex.ru>

* 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 <rustem.yuzlibaev@yandex.ru>

* apply suggestions

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>

* 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 <stefanpopov@list.ru>

* 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 <jungle.vas@yandex.ru>

* try fix

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>

* try fix

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>

* try fix

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>

* try fix

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>

* 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 <stefanpopov@list.ru>

* 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 <jungle.vas@yandex.ru>

---------

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>
Co-authored-by: BAStos525 <jungle.vas@yandex.ru>

* 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 <jungle.vas@yandex.ru>

* 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 <jungle.vas@yandex.ru>

* fix PR-generation var

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>

* add typings

* update PR-generation vars

Signed-off-by: BAStos525 <jungle.vas@yandex.ru>

* 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 <jungle.vas@yandex.ru>
Co-authored-by: BAStos525 <jungle.vas@yandex.ru>

* 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 <kazakov@soramitsu.co.jp>
Co-authored-by: Stefan Popov <stefanpopov@list.ru>

* Create hideFromSearchEngine.sh (#1046)

* Create hideFromSearchEngine.sh

* Update hideFromSearchEngine.sh

* add noindex

* revert lib

* delete script

---------

Co-authored-by: Pavel Varfolomeev <wpi86@yandex.ru>

* 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 <rustem.yuzlibaev@yandex.ru>

* [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 <stefanpopov@list.ru>

* 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 <stefanpopov@list.ru>

* 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 <stefanpopov@list.ru>

* 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 <bulat@saifullin.ru>

* fix Dockerfile

Signed-off-by: Bulat Saifullin <bulat@saifullin.ru>

* add pull_request_template.md

Signed-off-by: Bulat Saifullin <bulat@saifullin.ru>

* fix template

Signed-off-by: Bulat Saifullin <bulat@saifullin.ru>

* 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 <alekseenkonn@gmail.com>

* 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 <alekseenko@soramitsu.co.jp>

* 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 <stefanpopov@list.ru>

* 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 <stefanpopov@list.ru>

* 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 <bulat@saifullin.ru>

* 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 <alekseenkonn@gmail.com>
Co-authored-by: Aleksandr Makhnev <alma2610@ya.ru>
Co-authored-by: Bulat Saifullin <bulat@saifullin.ru>
Co-authored-by: Alex Natalia <38787212+alexnatalia@users.noreply.github.com>
Co-authored-by: Dmitriy Creed <creed@soramitsu.co.jp>
Co-authored-by: alexnatalia <alekseenko@soramitsu.co.jp>
Co-authored-by: Nikita Polyakov <fargus1993nick@yandex.ru>
Co-authored-by: Nikita-Polyakov <polyakov@soramitsu.co.jp>
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 <bulat@saifullin.ru>

* fix Dockerfile

Signed-off-by: Bulat Saifullin <bulat@saifullin.ru>

* add pull_request_template.md

Signed-off-by: Bulat Saifullin <bulat@saifullin.ru>

* fix template

Signed-off-by: Bulat Saifullin <bulat@saifullin.ru>

* 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 <alekseenkonn@gmail.com>

* 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 <alekseenko@soramitsu.co.jp>

* 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 <stefanpopov@list.ru>

* 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 <stefanpopov@list.ru>

* 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 <bulat@saifullin.ru>

* 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 asy…
  • Loading branch information
1 parent feab4e9 commit bb8cf9f
Show file tree
Hide file tree
Showing 96 changed files with 16,466 additions and 15,663 deletions.
1 change: 1 addition & 0 deletions env.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"soraCard": true
},
"SUBQUERY_ENDPOINT": "https://api.subquery.network/sq/sora-xor/sora-prod-sub4",
"SUBSQUID_ENDPOINT": "",
"DEFAULT_NETWORKS": [
{
"chain": "SORA",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkaswap-exchange-web",
"version": "1.22.1",
"version": "1.23.0",
"repository": {
"type": "git",
"url": "https://github.com/sora-xor/polkaswap-exchange-web.git"
Expand All @@ -24,7 +24,7 @@
},
"dependencies": {
"@metamask/detect-provider": "^2.0.0",
"@soramitsu/soraneo-wallet-web": "1.22.2",
"@soramitsu/soraneo-wallet-web": "1.23.1",
"@walletconnect/web3-provider": "^1.8.0",
"core-js": "^3.26.0",
"country-code-emoji": "^2.3.0",
Expand Down
3 changes: 2 additions & 1 deletion public/env.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"soraCard": true
},
"FAUCET_URL": "https://faucet.dev.sora2.tachi.soramitsu.co.jp/",
"SUBQUERY_ENDPOINT": "https://api.subquery.network/sq/sora-xor/sora-dev",
"DEFAULT_NETWORKS": [
{
"chain": "SORA-dev Testnet #1",
Expand All @@ -35,6 +34,8 @@
"address": "wss://ws.framenode-3.r0.dev.sora2.soramitsu.co.jp"
}
],
"SUBQUERY_ENDPOINT": "https://api.subquery.network/sq/sora-xor/sora-dev",
"SUBSQUID_ENDPOINT": "https://squid.subsquid.io/sora-dev/v/v1/graphql",
"NETWORK_TYPE": "Dev",
"CHAIN_GENESIS_HASH": "",
"EVM_NETWORKS_IDS": [97, 1001],
Expand Down
17 changes: 14 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@
</template>

<script lang="ts">
import { api, connection, components, mixins, settingsStorage, AlertsApiService } from '@soramitsu/soraneo-wallet-web';
import {
api,
connection,
components,
mixins,
settingsStorage,
WALLET_CONSTS,
WALLET_TYPES,
AlertsApiService,
} from '@soramitsu/soraneo-wallet-web';
import debounce from 'lodash/debounce';
import { Component, Mixins, Watch } from 'vue-property-decorator';
Expand All @@ -59,7 +68,6 @@ import type { WhitelistArrayItem } from '@sora-substrate/util/build/assets/types
import type { EvmNetwork } from '@sora-substrate/util/build/bridgeProxy/evm/types';
import type DesignSystem from '@soramitsu/soramitsu-js-ui/lib/types/DesignSystem';
import type Theme from '@soramitsu/soramitsu-js-ui/lib/types/Theme';
import type { WALLET_CONSTS, WALLET_TYPES } from '@soramitsu/soraneo-wallet-web';
@Component({
components: {
Expand Down Expand Up @@ -101,6 +109,7 @@ export default class App extends Mixins(mixins.TransactionMixin, NodeErrorMixin)
@mutation.wallet.settings.setSoraNetwork private setSoraNetwork!: (network: WALLET_CONSTS.SoraNetwork) => void;
@mutation.wallet.settings.setSubqueryEndpoint private setSubqueryEndpoint!: (endpoint: string) => void;
@mutation.wallet.settings.setSubsquidEndpoint private setSubsquidEndpoint!: (endpoint: string) => void;
@mutation.settings.setDefaultNodes private setDefaultNodes!: (nodes: Array<Node>) => void;
@mutation.settings.setNetworkChainGenesisHash private setNetworkChainGenesisHash!: (hash?: string) => void;
@mutation.settings.setFaucetUrl private setFaucetUrl!: (url: string) => void;
Expand Down Expand Up @@ -226,7 +235,6 @@ export default class App extends Mixins(mixins.TransactionMixin, NodeErrorMixin)
await this.setEthBridgeSettings(data.ETH_BRIDGE);
this.setFeatureFlags(data?.FEATURE_FLAGS);
this.setSoraNetwork(data.NETWORK_TYPE);
this.setSubqueryEndpoint(data.SUBQUERY_ENDPOINT);
this.setDefaultNodes(data?.DEFAULT_NETWORKS);
this.setEvmNetworksApp(data.EVM_NETWORKS_IDS);
this.setSubNetworkApps(data.SUB_NETWORKS);
Expand All @@ -235,6 +243,9 @@ export default class App extends Mixins(mixins.TransactionMixin, NodeErrorMixin)
api.bridgeProxy.sub.parachainIds = data.PARACHAIN_IDS;
}
this.setSubqueryEndpoint(data.SUBQUERY_ENDPOINT);
this.setSubsquidEndpoint(data.SUBSQUID_ENDPOINT);
if (data.FAUCET_URL) {
this.setFaucetUrl(data.FAUCET_URL);
}
Expand Down
28 changes: 22 additions & 6 deletions src/components/App/Footer/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
:panel-text="statisticsConnectionText"
:status="statisticsConnectionClass"
:action-text="t('footer.statistics.action')"
@action="openStatisticsDialog"
@action="openIndexerSelectionDialog"
>
<template #label>
<span>{{ t('footer.statistics.label') }}</span>
Expand All @@ -58,15 +58,15 @@
</a>
</div>
<select-node-dialog />
<statistics-dialog />
<no-internet-dialog />
<statistics-dialog :visible.sync="showStatisticsDialog" />
</div>
</template>

<script lang="ts">
import { FPNumber } from '@sora-substrate/util';
import { Status } from '@soramitsu/soramitsu-js-ui/lib/types';
import { getExplorerLinks, WALLET_TYPES } from '@soramitsu/soraneo-wallet-web';
import { getExplorerLinks, WALLET_CONSTS, WALLET_TYPES } from '@soramitsu/soraneo-wallet-web';
import { Component, Mixins } from 'vue-property-decorator';
import TranslationMixin from '@/components/mixins/TranslationMixin';
Expand All @@ -81,7 +81,6 @@ import { formatLocation } from './Node/utils';
import NoInternetDialog from './NoInternetDialog.vue';
import type Theme from '@soramitsu/soramitsu-js-ui/lib/types/Theme';
import type { WALLET_CONSTS } from '@soramitsu/soraneo-wallet-web';
/** Max limit provided by navigator.connection.downlink */
const MAX_INTERNET_CONNECTION_LIMIT = 10;
Expand All @@ -91,13 +90,14 @@ const MAX_INTERNET_CONNECTION_LIMIT = 10;
SoraLogo,
FooterPopper,
NoInternetDialog,
StatisticsDialog: lazyComponent(Components.StatisticsDialog),
SelectNodeDialog: lazyComponent(Components.SelectNodeDialog),
StatisticsDialog: lazyComponent(Components.StatisticsDialog),
},
})
export default class AppFooter extends Mixins(TranslationMixin) {
// Block explorer
@state.wallet.settings.soraNetwork private soraNetwork!: Nullable<WALLET_CONSTS.SoraNetwork>;
@state.wallet.settings.indexerType private indexerType!: WALLET_CONSTS.IndexerType;
@state.settings.blockNumber blockNumber!: number;
@getter.libraryTheme libraryTheme!: Theme;
Expand All @@ -118,6 +118,9 @@ export default class AppFooter extends Mixins(TranslationMixin) {
@getter.settings.connectingNode connectingNode!: Nullable<Node>;
@getter.settings.nodeIsConnected isNodeConnected!: boolean;
@mutation.settings.setSelectNodeDialogVisibility private setSelectNodeDialogVisibility!: (flag: boolean) => void;
@mutation.settings.setSelectIndexerDialogVisibility private setSelectIndexerDialogVisibility!: (
flag: boolean
) => void;
private get isNodeConnecting(): boolean {
return !!this.connectingNode;
Expand Down Expand Up @@ -154,6 +157,10 @@ export default class AppFooter extends Mixins(TranslationMixin) {
this.setSelectNodeDialogVisibility(true);
}
openIndexerSelectionDialog(): void {
this.setSelectIndexerDialogVisibility(true);
}
// Internet connection
@mutation.settings.setInternetConnectionEnabled private setEnabled!: VoidFunction;
@mutation.settings.setInternetConnectionDisabled private setDisabled!: VoidFunction;
Expand Down Expand Up @@ -194,11 +201,20 @@ export default class AppFooter extends Mixins(TranslationMixin) {
// Statistics connection
@state.wallet.settings.subqueryStatus private subqueryStatus!: WALLET_TYPES.ConnectionStatus;
@state.wallet.settings.subsquidStatus private subsquidStatus!: WALLET_TYPES.ConnectionStatus;
showStatisticsDialog = false;
get indexerStatus(): WALLET_TYPES.ConnectionStatus {
if (this.indexerType === WALLET_CONSTS.IndexerType.SUBQUERY) {
return this.subqueryStatus;
} else {
return this.subsquidStatus;
}
}
get statisticsConnectionClass(): Status {
switch (this.subqueryStatus) {
switch (this.indexerStatus) {
case WALLET_TYPES.ConnectionStatus.Unavailable:
return Status.ERROR;
case WALLET_TYPES.ConnectionStatus.Loading:
Expand Down
155 changes: 155 additions & 0 deletions src/components/App/Footer/Indexer/SelectIndexer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<template>
<div class="statistics-dialog">
<s-scrollbar class="statistics-dialog__scrollbar">
<div class="statistics-dialog__group">
<span class="statistics-dialog__group-title">{{ t('footer.statistics.dialog.indexer') }}</span>
<s-radio-group v-model="indexerType" class="statistics-dialog__block s-flex">
<s-radio
v-for="indexer in indexers"
:key="indexer.type"
:label="indexer.type"
:value="indexer.type"
:disabled="!indexer.endpoint"
size="medium"
class="statistics-dialog__item s-flex"
>
<div class="service-item s-flex">
<div class="service-item__label s-flex">
<div class="service-item__name">{{ indexer.name }}</div>
<div v-if="indexer.endpoint" class="service-item__endpoint">{{ indexer.endpoint }}</div>
</div>
<div class="service-item__status" :class="indexer.online ? 'success' : 'error'">
{{ indexer.online ? TranslationConsts.online : TranslationConsts.offline }}
</div>
</div>
</s-radio>
</s-radio-group>
<s-divider />
<div class="statistics-dialog__group">
<div class="statistics-dialog__item">
<div class="switcher">
<s-switch disabled :value="false" />
<span>{{ t('footer.statistics.dialog.useCeres') }}</span>
</div>
</div>
</div>
</div>
</s-scrollbar>
</div>
</template>

<script lang="ts">
import { IndexerType } from '@soramitsu/soraneo-wallet-web/lib/consts';
import { Component, Mixins, Prop, ModelSync } from 'vue-property-decorator';
import TranslationMixin from '@/components/mixins/TranslationMixin';
import type { Indexer } from '@/types/indexers';
@Component
export default class SelectIndexer extends Mixins(TranslationMixin) {
@Prop({ default: () => [], type: Array }) indexers!: Array<Indexer>;
@ModelSync('value', 'input', { type: String }) readonly indexerType!: IndexerType;
}
</script>

<style lang="scss">
.statistics-dialog__item {
&.el-radio {
&.s-medium {
height: initial;
}
.el-radio__label {
flex: 1;
}
}
}
</style>

<style lang="scss" scoped>
$statistics-border-radius: 8px;
.statistics-dialog {
&__group {
&-title {
font-weight: 600;
letter-spacing: var(--s-letter-spacing-small);
line-height: var(--s-line-height-small);
font-size: var(--s-font-size-small);
}
}
&__block {
flex-direction: column;
margin-top: $inner-spacing-small;
}
&__item {
margin-right: 0;
align-items: center;
padding: $inner-spacing-small $inner-spacing-big;
white-space: normal;
}
}
.service-item {
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
letter-spacing: var(--s-letter-spacing-small);
line-height: var(--s-line-height-medium);
&__label {
flex-direction: column;
flex: 1;
margin-right: $inner-spacing-mini;
}
&__name {
color: var(--s-color-base-content-primary);
font-size: var(--s-font-size-medium);
font-weight: 600;
}
&__endpoint {
background: var(--s-color-base-background);
padding: 6px;
margin-top: 6px;
border-radius: $statistics-border-radius;
color: var(--s-color-base-content-secondary);
font-size: var(--s-font-size-mini);
font-weight: 300;
}
&__status {
$status-classes: 'error', 'success';
padding: 2px 6px;
border-radius: $statistics-border-radius;
font-weight: 400;
font-size: var(--s-font-size-mini);
letter-spacing: var(--s-letter-spacing-small);
@each $status in $status-classes {
&.#{$status} {
color: var(--s-color-status-#{$status});
background-color: var(--s-color-status-#{$status}-background);
[design-system-theme='dark'] & {
--s-color-status-#{$status}: var(--s-color-base-on-accent);
}
}
}
}
}
.switcher {
display: flex;
align-items: center;
& > span {
margin-left: $inner-spacing-small;
color: var(--s-color-base-content-primary);
font-size: var(--s-font-size-medium);
font-weight: 600;
}
}
</style>
9 changes: 9 additions & 0 deletions src/components/App/Footer/Indexer/consts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { WALLET_CONSTS } from '@soramitsu/soraneo-wallet-web';

const { IndexerType } = WALLET_CONSTS;

export const IndexerModel = {
name: '',
type: IndexerType.SUBQUERY,
address: '',
};
5 changes: 5 additions & 0 deletions src/components/App/Footer/Indexer/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { IndexerType } from '@soramitsu/soraneo-wallet-web/lib/consts';

export function getIndexerName(type: IndexerType): string {
return type.charAt(0).toUpperCase() + type.slice(1).toLowerCase();
}
Loading

0 comments on commit bb8cf9f

Please sign in to comment.