Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.20.0 #1138

Merged
merged 1,192 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1192 commits
Select commit Hold shift + click to select a range
440426a
Sora Card (#841)
RustemYuzlibaev Nov 30, 2022
bdda254
move to separate module (#871)
RustemYuzlibaev Dec 5, 2022
c8872d3
Update Dockerfile
Dec 5, 2022
2544b09
Merge pull request #873 from sora-xor/fix-vulns
Dec 5, 2022
5da109e
Update Dockerfile
Dec 5, 2022
9d440a1
Merge pull request #874 from sora-xor/alpine_tag
Dec 5, 2022
dc58e43
Add reserves subscription to addLiquidity (#870)
Nikita-Polyakov Dec 7, 2022
b61982b
update prod env.json (#878)
Nikita-Polyakov Dec 7, 2022
b3c2d96
Fix page document title for the first load (#880)
stefashkaa Dec 8, 2022
67ba64f
Fix confirm buttons loading state (#881)
Nikita-Polyakov Dec 9, 2022
758ef47
Update ReferralProgram.vue (#884)
stefashkaa Dec 9, 2022
a86d1f4
From master to develop (#885)
stefashkaa Dec 12, 2022
d2f5c3a
fix calculator fields (#888)
Nikita-Polyakov Dec 12, 2022
85c82e4
Fix bridge loader styles (#886)
stefashkaa Dec 12, 2022
4e7766e
Reduce assets size (#887)
stefashkaa Dec 12, 2022
bb10b2c
Explore page (#857)
Nikita-Polyakov Dec 13, 2022
f64ffed
Add desktop support (#891)
stefashkaa Dec 16, 2022
c6dc58d
improve connection process (#892)
Nikita-Polyakov Dec 16, 2022
5069f36
Fix css for swap fiat values (#893)
Nikita-Polyakov Dec 19, 2022
7b520e7
Refactoring pools rendering (#890)
Nikita-Polyakov Dec 20, 2022
39d58a1
Update for new subquery (#894)
Nikita-Polyakov Dec 21, 2022
f25d83a
charts button on swap view (#895)
Nikita-Polyakov Dec 22, 2022
49f4234
Swap Chart: Invert tokens (#896)
Nikita-Polyakov Dec 23, 2022
404d4f2
rename investment to balance (#899)
Nikita-Polyakov Dec 26, 2022
5a80060
use reactive instead of router (#897)
Nikita-Polyakov Dec 26, 2022
e7d3564
fix staking page title (#898)
Nikita-Polyakov Dec 26, 2022
2695e80
add restore history button (#900)
Nikita-Polyakov Dec 26, 2022
060433f
Fix rewards screen flashing (#901)
Nikita-Polyakov Dec 26, 2022
3e2261f
update formattedAmount component & add prefix to explore balance (#902)
Nikita-Polyakov Dec 27, 2022
36efb06
Update referral system messages (#903)
Nikita-Polyakov Dec 28, 2022
37918af
Fix candlestick chart empty space (#907)
Nikita-Polyakov Dec 29, 2022
e2d1a80
Fix referral system delay (#906)
stefashkaa Dec 29, 2022
3ec1053
Fix custom token logic (#905)
stefashkaa Dec 29, 2022
f5213ed
Add switch to explore (#908)
Nikita-Polyakov Dec 29, 2022
e3605e5
Fix fee warning dialog behavior (#910)
stefashkaa Dec 30, 2022
996e754
Fix Demeter explore active positions (#909)
Nikita-Polyakov Dec 30, 2022
e18a020
fix address css (#911)
Nikita-Polyakov Dec 30, 2022
24c63de
Fix asset-asset search in pools on explore page (#913)
stefashkaa Jan 11, 2023
f866ee0
Add tooltips to TVL & ROI (#912)
Nikita-Polyakov Jan 12, 2023
939f7fc
XST tokenomics & remove market maker countdown (#917)
Nikita-Polyakov Jan 13, 2023
8d31912
update wallet 1.13.1 (#918)
Nikita-Polyakov Jan 13, 2023
e40aa00
deploy trigger removal
Jan 16, 2023
fd52bb4
Merge pull request #920 from sora-xor/feature/dops-2188/fix_jf
f33r0 Jan 16, 2023
6bfc131
Liiquidity proxy 1.6 (#923)
Nikita-Polyakov Jan 20, 2023
0939cda
improve btn loading state (#924)
Nikita-Polyakov Jan 20, 2023
fde3f23
up wallet version 1.13.4 (#925)
Nikita-Polyakov Jan 20, 2023
1c30450
up wallet version to 1.13.5 (#926)
Nikita-Polyakov Jan 23, 2023
6f42524
Feature/x1-widget (#876)
RustemYuzlibaev Jan 25, 2023
3a8d80b
Fix/chart precision (#928)
Nikita-Polyakov Jan 26, 2023
6325528
optional fee popup (#919)
RustemYuzlibaev Jan 26, 2023
5338829
[Remove Liquidity] Show ceres locked liquidity (#922)
Nikita-Polyakov Jan 26, 2023
880f138
Use settingsStorage from wallet (#929)
stefashkaa Jan 27, 2023
1c68adb
Fix search focus behavior (#932)
stefashkaa Jan 27, 2023
c26e945
Add fearless (#934)
stefashkaa Jan 27, 2023
0e56ab0
Fix fearless integration (#936)
stefashkaa Jan 28, 2023
fd61b18
Fix Fearless wallet (#937)
stefashkaa Jan 28, 2023
abd1533
Fix Fearless link for Mozilla (#938)
stefashkaa Jan 28, 2023
155c895
update wallet to TBCD (#940)
Nikita-Polyakov Jan 30, 2023
01a5c73
Update wallet (#943)
stefashkaa Feb 5, 2023
9503a29
Upgrade PW SDK (#930)
RustemYuzlibaev Feb 8, 2023
034d8d8
update wallet 1.15.0 (#945)
Nikita-Polyakov Feb 8, 2023
a5507b5
fixes (#946)
RustemYuzlibaev Feb 8, 2023
58f835d
Fix styles issues related to card (#948)
stefashkaa Feb 9, 2023
1e8ff36
[Explore Page] Hide tokens & pools with zero tvl (#941)
Nikita-Polyakov Feb 9, 2023
30d5a39
improve routing (#947)
stefashkaa Feb 9, 2023
4234a70
fix (#949)
RustemYuzlibaev Feb 9, 2023
0461863
Fix lokalise and SORA Card issues (#950)
stefashkaa Feb 9, 2023
e02c0d1
Fix phone and styles for card (#951)
stefashkaa Feb 9, 2023
5769ed2
Fix sora card phone and route (#952)
stefashkaa Feb 10, 2023
801ad77
Fix phone inputs (#953)
stefashkaa Feb 10, 2023
6027d8b
Fix email, first, last name length (#954)
stefashkaa Feb 10, 2023
28db6b9
git (#955)
RustemYuzlibaev Feb 14, 2023
850bb2d
test push
wpi86 Feb 14, 2023
4235a28
refactor
wpi86 Feb 14, 2023
a12a2e1
tmp disable sonar
wpi86 Feb 14, 2023
50c5e5b
fix cred name
wpi86 Feb 14, 2023
6aa2c2d
update wallet to 1.15.2 (#957)
Nikita-Polyakov Feb 14, 2023
316e2dc
change value
wpi86 Feb 15, 2023
9fa3397
fix json error (#958)
Nikita-Polyakov Feb 15, 2023
8eff36d
fix path
wpi86 Feb 15, 2023
ff44e9e
Merge branch 'develop' into feature/DOPS-2232/pr-deploy
wpi86 Feb 16, 2023
0f41fe5
fix path
wpi86 Feb 16, 2023
9a54ea6
switch to tachi
wpi86 Feb 16, 2023
e532067
test
wpi86 Feb 16, 2023
81f19a5
revert lib
wpi86 Feb 16, 2023
7df9cd7
test values check
wpi86 Feb 16, 2023
a8cb5eb
fix lib
wpi86 Feb 16, 2023
26f7486
DAST pipeline update
Frodan Feb 16, 2023
b712e88
Update Jenkinsfile-dast
Frodan Feb 16, 2023
14a92c3
revert lib
wpi86 Feb 16, 2023
5642a12
Merge pull request #956 from sora-xor/feature/DOPS-2232/pr-deploy
wpi86 Feb 17, 2023
3b85b8d
fix (#961)
RustemYuzlibaev Feb 18, 2023
d4539bd
Fix connection disconnected event (#960)
Nikita-Polyakov Feb 20, 2023
18c9058
Update Jenkinsfile-dast
Frodan Feb 20, 2023
48b056d
Update Jenkinsfile-dast
Frodan Feb 20, 2023
5d8aec8
Update Jenkinsfile-dast
Frodan Feb 28, 2023
475207c
Update Jenkinsfile-dast
Frodan Feb 28, 2023
78b303c
Update Jenkinsfile-dast
Frodan Mar 1, 2023
2ac40a8
Otp resend try fix (#964)
RustemYuzlibaev Mar 3, 2023
b314d9f
SORA Card translation (#959)
RustemYuzlibaev Mar 6, 2023
9a8a46b
Update Jenkinsfile-dast
Frodan Mar 6, 2023
a9e0b6f
Free KYC attempts counter (#962)
RustemYuzlibaev Mar 6, 2023
f938706
email fix resend (#967)
RustemYuzlibaev Mar 7, 2023
661ce68
Hide LP fee (#968)
stefashkaa Mar 7, 2023
0adf80f
Fix liqudity proxy route and args (#969)
Nikita-Polyakov Mar 10, 2023
f3f7c0e
multiple otp send fix (#970)
RustemYuzlibaev Mar 12, 2023
6adfceb
update wallet 1.15.9 (#973)
Nikita-Polyakov Mar 13, 2023
7ccb50d
update wallet to 1.15.10 (#974)
Nikita-Polyakov Mar 15, 2023
3567e82
Status bar & SORA Card fixes (#882)
stefashkaa Mar 15, 2023
2ae9b87
Update Jenkinsfile
Frodan Mar 16, 2023
ba1d7a5
Reduce bundle size (#942)
stefashkaa Mar 16, 2023
620c5df
Feature/network stats (#931)
Nikita-Polyakov Mar 16, 2023
f0da2ca
Merge branch 'develop' into feature/SNE-261/Arachni
Frodan Mar 16, 2023
ba831d1
Update Jenkinsfile-dast
Frodan Mar 16, 2023
e5439f4
Merge branch 'feature/SNE-261/Arachni' of https://github.com/sora-xor…
Frodan Mar 16, 2023
53c2ff6
Merge pull request #966 from sora-xor/feature/SNE-261/Arachni
Frodan Mar 16, 2023
9f26c23
Move disclaimer to front page (#965)
RustemYuzlibaev Mar 16, 2023
a62a738
Fix/bridge select asset (#976)
Nikita-Polyakov Mar 16, 2023
b5ea039
upfate wallet 1.15.11 (#977)
Nikita-Polyakov Mar 17, 2023
4d9f892
move disclaimer (#914)
RustemYuzlibaev Mar 17, 2023
ecd090f
fix (#980)
RustemYuzlibaev Mar 20, 2023
b894527
Fix max limit speed for internet connection (#975)
stefashkaa Mar 21, 2023
3fa9c03
Add Token Velocity column to Tokens Page (#979)
Nikita-Polyakov Mar 21, 2023
267dd27
remove keys (#981)
RustemYuzlibaev Mar 21, 2023
44435b8
Demeter dialogs bottom padding adding (#982)
shlavik Mar 21, 2023
4d61f58
update wallet 1.15.12 (#983)
Nikita-Polyakov Mar 22, 2023
08a769d
Add routing for pairs (#971)
stefashkaa Mar 24, 2023
57422d2
Fix release issues (#984)
stefashkaa Mar 24, 2023
a9b36cd
Move disclaimer to App Header (#986)
stefashkaa Mar 24, 2023
503d7c3
Move disclaimer to App Header (#986)
stefashkaa Mar 24, 2023
5d88ecb
fix swap container and chart align (#987)
Nikita-Polyakov Mar 24, 2023
6bd6ccf
fix supply chart axis label (#989)
Nikita-Polyakov Mar 27, 2023
b9edd5d
Fix release issues (#990)
stefashkaa Mar 28, 2023
91ea5a4
Update Jenkinsfile to use PR-generator SecretStore bot secret
BAStos525 Mar 28, 2023
e4fb21b
Fix flag (#992)
stefashkaa Mar 28, 2023
6e16093
Fix styles (#994)
stefashkaa Mar 29, 2023
dc267db
Update card.ts (#997)
RustemYuzlibaev Mar 29, 2023
0a35cf1
add formula to velocity tooltip (#996)
Nikita-Polyakov Mar 29, 2023
700cde9
apply suggestions
BAStos525 Mar 29, 2023
4891fc8
Merge branch 'develop' into feature/DOPS-2337/pr-generator-eso-secret
wpi86 Mar 30, 2023
ec257a1
Reuse subscriptions in SubscriptionsMixin (#998)
Nikita-Polyakov Mar 30, 2023
5c48c3a
update router config (#999)
Nikita-Polyakov Mar 30, 2023
e2400eb
Improve sora card styles (#1000)
stefashkaa Mar 31, 2023
1a15b7e
Fix seo logo (#1001)
stefashkaa Mar 31, 2023
d22c225
fix camera translation (#1002)
RustemYuzlibaev Mar 31, 2023
710f035
fix (#1003)
RustemYuzlibaev Mar 31, 2023
a4ed4d6
fix subscription hooks (#1004)
Nikita-Polyakov Apr 1, 2023
9255f53
add DialogTitle component (#1005)
Nikita-Polyakov Apr 1, 2023
496fc43
Add nodes location for prod (#1006)
stefashkaa Apr 1, 2023
1fed155
change text from accounts to new accounts (#1010)
Nikita-Polyakov Apr 4, 2023
c8d99dd
Merge branch 'develop' into feature/DOPS-2337/pr-generator-eso-secret
BAStos525 Apr 10, 2023
c8588c8
try fix
BAStos525 Apr 10, 2023
ca6a22e
Merge branch 'feature/DOPS-2337/pr-generator-eso-secret' of https://g…
BAStos525 Apr 10, 2023
dc7a6e7
try fix
BAStos525 Apr 10, 2023
11a6d93
try fix
BAStos525 Apr 10, 2023
5f4cb60
try fix
BAStos525 Apr 10, 2023
090c61d
try fix
BAStos525 Apr 10, 2023
f0e7f55
Merge pull request #991 from sora-xor/feature/DOPS-2337/pr-generator-…
BAStos525 Apr 10, 2023
a9b63ac
update polkadot deps and fix account length (#1014)
stefashkaa Apr 11, 2023
15abe2a
Explore page improvements (#1012)
Nikita-Polyakov Apr 12, 2023
5961632
refactoring token approve (#1008)
Nikita-Polyakov Apr 12, 2023
9d44045
update wallet to 1.16.2 (#1017)
Nikita-Polyakov Apr 13, 2023
62105d7
Refactoring getters (#1018)
Nikita-Polyakov Apr 19, 2023
2208018
Update crowdloans (#1022)
Nikita-Polyakov Apr 20, 2023
dc86365
up wallet (#1024)
RustemYuzlibaev Apr 20, 2023
46f98ce
update wallet for crowdloans fixes (#1025)
Nikita-Polyakov Apr 20, 2023
2ba2fa9
Update xst swaps (#1027)
Nikita-Polyakov Apr 24, 2023
fb30371
update genesis hash check (#1028)
Nikita-Polyakov Apr 24, 2023
48f68a9
Update env.json (#1029)
stefashkaa Apr 25, 2023
03d105a
Update env.json (#1030)
stefashkaa Apr 25, 2023
2cf1af6
Google wallet (#978)
Nikita-Polyakov Apr 26, 2023
33e9cf7
filter zero tvl snapshots (#1033)
Nikita-Polyakov May 2, 2023
432168e
remove unused contracts (#1034)
Nikita-Polyakov May 3, 2023
d70eb3f
fix Jenkinsfile PR-generator part
BAStos525 May 4, 2023
cf0a68c
Merge pull request #1037 from sora-xor/duty/04-05-23/secret-store-var…
BAStos525 May 4, 2023
14911bf
add downstreamJob (#1042)
Nikita-Polyakov May 10, 2023
5945c09
Add fearless (#1038)
stefashkaa May 10, 2023
fe045ab
price alerts (#1013)
RustemYuzlibaev May 16, 2023
4a43b0f
Trustless EVM Bridge support (#792)
Nikita-Polyakov May 23, 2023
18d8861
update translations (#1047)
RustemYuzlibaev May 23, 2023
79927e1
remove tilda sign (#1045)
RustemYuzlibaev May 23, 2023
9641a0d
fix pw sdk & add countries (#1044)
RustemYuzlibaev May 25, 2023
fd64904
Create hideFromSearchEngine.sh (#1046)
RustemYuzlibaev May 29, 2023
15552bc
Improve ext connection and linting (#1053)
stefashkaa Jun 5, 2023
2574bae
fix trailing char (#1056)
RustemYuzlibaev Jun 7, 2023
b3d3563
Fix synths (#1057)
stefashkaa Jun 8, 2023
33fd4d7
Substrate bridge outgoing (#1059)
Nikita-Polyakov Jun 9, 2023
80fbb5b
Fix/disclaimer btn show (#1058)
RustemYuzlibaev Jun 13, 2023
1bbe045
Fix Sub bridge issues (#1060)
Nikita-Polyakov Jun 14, 2023
cce5272
add text for scroll (#1064)
RustemYuzlibaev Jun 15, 2023
c141dbd
Fix bridge network update from metamask (#1065)
Nikita-Polyakov Jun 16, 2023
ee8982c
Add fee multiplier support (#1066)
stefashkaa Jun 19, 2023
8ea87d7
change welcome text (#1069)
RustemYuzlibaev Jun 21, 2023
f4ec6f3
Fix/substrate outgoing network select (#1076)
Nikita-Polyakov Jun 22, 2023
e2ba23b
Set up coverage
C4tWithShell Jun 22, 2023
52819be
Merge branch 'develop' into test/DOPS-2461
C4tWithShell Jun 22, 2023
56a43c9
separate prod and stage
wpi86 Jun 27, 2023
1b9bab5
fix var
wpi86 Jun 29, 2023
9f895dc
add pre branch
wpi86 Jun 29, 2023
09be8a6
fix var
wpi86 Jun 29, 2023
409b7b8
revert lib
wpi86 Jun 29, 2023
1af3e30
Merge pull request #1080 from sora-xor/feature/DOPS-2441/separate-fle…
wpi86 Jun 29, 2023
235af9c
Update actions.ts (#1078)
RustemYuzlibaev Jun 29, 2023
24d6f23
Substrate bridge incoming transaction tracking (#1081)
Nikita-Polyakov Jun 30, 2023
dd3433d
fix (#1082)
RustemYuzlibaev Jul 1, 2023
3afae70
Fix sub assets fetching & hashi bridge issues (#1083)
Nikita-Polyakov Jul 3, 2023
92cce9f
Change jenkins lib
C4tWithShell Jul 3, 2023
6e908e8
Update KycView.vue (#1084)
RustemYuzlibaev Jul 3, 2023
9e4355e
Fix bridge account link (#1085)
Nikita-Polyakov Jul 4, 2023
86488db
Fix xst & sorting on explore page (#1075)
stefashkaa Jul 4, 2023
d225060
Fix issues 1.17 (#1086)
stefashkaa Jul 4, 2023
8cbdf8f
Merge branch 'develop' into test/DOPS-2461
Cre-eD Jul 5, 2023
f37c0cc
Check changes for errors
C4tWithShell Jul 5, 2023
6ab22b4
Revert
C4tWithShell Jul 5, 2023
0e6b753
Merge pull request #1050 from sora-xor/test/DOPS-2461
C4tWithShell Jul 5, 2023
b340cab
Fix notification links (#1092)
stefashkaa Jul 6, 2023
105b79d
Add params
C4tWithShell Jul 7, 2023
fa6d7f7
Merge fixes from release 1.17.0 (#1097)
Nikita-Polyakov Jul 10, 2023
671305f
Fix evm expected fee (#1091)
Nikita-Polyakov Jul 10, 2023
0625c1c
Save sub bridge transaction fees in runtime tx processing (#1088)
Nikita-Polyakov Jul 11, 2023
6d5d153
Bridge balances refactoring (#1100)
Nikita-Polyakov Jul 14, 2023
2142af3
Merge branch 'develop' into feature/SNE-245
C4tWithShell Jul 17, 2023
c5715f7
Change jenkins lib
C4tWithShell Jul 17, 2023
93a0008
spam reminder & bridge fee fix (#1103)
RustemYuzlibaev Jul 18, 2023
0e2f18a
address book (#1099)
RustemYuzlibaev Jul 19, 2023
c38f67d
update wallet 1.18.5 (#1106)
Nikita-Polyakov Jul 19, 2023
48a9a3d
Merge branch 'develop' into feature/SNE-245
Cre-eD Jul 19, 2023
a5c0014
Merge pull request #1102 from sora-xor/feature/SNE-245
C4tWithShell Jul 20, 2023
51a6bd5
[SORA Card]: change camera access request (#1107)
RustemYuzlibaev Jul 24, 2023
6705f3b
Update SECURITY.md (#1105)
WRRicht3r Jul 24, 2023
6de6264
[Swap] Show loss warning dialog (#1108)
Nikita-Polyakov Jul 25, 2023
4fed4fe
update wallet 1.18.8 (#1110)
Nikita-Polyakov Jul 25, 2023
0641d9d
Fix sub bridge tracking issues (#1104)
Nikita-Polyakov Jul 26, 2023
fd7a208
[Bridge UI] Use xcm fee in amount calculations (#1112)
Nikita-Polyakov Jul 27, 2023
c340b96
Fix node name in status bar (#1113)
stefashkaa Jul 28, 2023
78e3464
Add soramitsu node (#1114)
stefashkaa Aug 1, 2023
ba2e3b3
update wallet 1.18.9 (#1115)
Nikita-Polyakov Aug 1, 2023
99af856
Update nodes names (#1116)
stefashkaa Aug 1, 2023
5e58e89
[Tech] Testing workflow (#1111)
RustemYuzlibaev Aug 2, 2023
9f9cef6
remove sora parachain xcm fee, update rococo event (#1120)
Nikita-Polyakov Aug 3, 2023
f53ab26
update wallet with google login (#1121)
Nikita-Polyakov Aug 4, 2023
ce84d36
Get blacklisted countries from ipfs (#1122)
stefashkaa Aug 7, 2023
2090809
update wallet with google seed fix (#1124)
Nikita-Polyakov Aug 9, 2023
514efe6
Sub history restoration update (#1127)
Nikita-Polyakov Aug 14, 2023
df9ab2d
fix decimals in locked balance check (#1128)
Nikita-Polyakov Aug 15, 2023
4101a04
Update KycView.vue (#1131)
RustemYuzlibaev Aug 15, 2023
fe33582
Fix release 1.19 (#1134)
stefashkaa Aug 17, 2023
cbcfc49
fix decimals usage (#1136)
Nikita-Polyakov Aug 17, 2023
7dad309
Use address book in sub bridge (#1133)
Nikita-Polyakov Aug 18, 2023
a202e17
Merge branch 'develop' into release/1.20.0
stefashkaa Aug 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.19.0",
"version": "1.20.0",
"repository": {
"type": "git",
"url": "https://github.com/sora-xor/polkaswap-exchange-web.git"
Expand All @@ -23,7 +23,7 @@
},
"dependencies": {
"@metamask/detect-provider": "^2.0.0",
"@soramitsu/soraneo-wallet-web": "1.19.1",
"@soramitsu/soraneo-wallet-web": "1.20.0",
"@walletconnect/web3-provider": "^1.8.0",
"base-64": "^1.0.0",
"core-js": "^3.26.0",
Expand Down
1 change: 1 addition & 0 deletions src/components/mixins/BridgeMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class BridgeMixin extends Mixins(mixins.LoadingMixin, WalletConne
@state.bridge.assetLockedBalance assetLockedBalance!: Nullable<CodecString>;

@getter.web3.isValidNetwork isValidNetwork!: boolean;
@getter.bridge.asset asset!: Nullable<RegisteredAccountAsset>;
@getter.bridge.sender sender!: string;
@getter.bridge.recipient recipient!: string;
@getter.bridge.soraNetworkFee soraNetworkFee!: CodecString;
Expand Down
92 changes: 13 additions & 79 deletions src/components/pages/Bridge/SelectAccount.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
<template>
<dialog-base :visible.sync="visibility" :title="t('connection.selectAccount')" custom-class="account-select-dialog">
<div class="account-select">
<search-input
ref="search"
v-model="query"
:placeholder="t('addressText')"
autofocus
@clear="handleClearSearch"
class="asset-search"
/>
<address-book-input v-model="address" />

<s-button
class="s-typography-button--large account-select-button"
Expand All @@ -18,52 +11,35 @@
>
{{ t('saveText') }}
</s-button>

<connection-items v-loading="loading" :size="accountList.length" :visible="3">
<wallet-account
v-button
v-for="{ account, isConnected } in accountList"
:key="account.address"
:polkadotAccount="account"
tabindex="0"
@click.native="handleSelectAccount(account)"
>
<s-button v-if="isConnected" size="small" disabled>
{{ t('connection.wallet.connected') }}
</s-button>
</wallet-account>
</connection-items>
</div>
</dialog-base>
</template>

<script lang="ts">
import { api, mixins, components, WALLET_TYPES, WALLET_CONSTS, getWalletAccounts } from '@soramitsu/soraneo-wallet-web';
import { api, mixins, components } from '@soramitsu/soraneo-wallet-web';
import { Component, Mixins, Watch } from 'vue-property-decorator';

import SearchInputMixin from '@/components/mixins/SearchInputMixin';
import TranslationMixin from '@/components/mixins/TranslationMixin';
import { action, state, mutation, getter } from '@/store/decorators';
import { action, state, mutation } from '@/store/decorators';

@Component({
components: {
DialogBase: components.DialogBase,
SearchInput: components.SearchInput,
WalletAccount: components.WalletAccount,
ConnectionItems: components.ConnectionItems,
AddressBookInput: components.AddressBookInput,
},
})
export default class BridgeSelectAccount extends Mixins(mixins.LoadingMixin, TranslationMixin, SearchInputMixin) {
export default class BridgeSelectAccount extends Mixins(mixins.LoadingMixin, TranslationMixin) {
@state.web3.subAddress private subAddress!: string;
@state.web3.selectAccountDialogVisibility private selectAccountDialogVisibility!: boolean;
@mutation.web3.setSelectAccountDialogVisibility private setSelectAccountDialogVisibility!: (flag: boolean) => void;
@action.web3.connectSubAccount private connectSubAccount!: (address: string) => Promise<void>;

@state.wallet.account.source private source!: Nullable<WALLET_CONSTS.AppWallet>;
@getter.wallet.account.isConnectedAccount private isConnectedAccount!: (
account: WALLET_TYPES.PolkadotJsAccount
) => boolean;
address = '';

private accounts: Array<WALLET_TYPES.PolkadotJsAccount> = [];
@Watch('visibility')
private updateAddress(isVisible: boolean) {
this.address = isVisible ? this.subAddress : '';
}

get visibility(): boolean {
return this.selectAccountDialogVisibility;
Expand All @@ -73,54 +49,12 @@ export default class BridgeSelectAccount extends Mixins(mixins.LoadingMixin, Tra
this.setSelectAccountDialogVisibility(flag);
}

@Watch('visibility')
private updateAccountsSubscription(visibility: boolean): void {
if (visibility) {
this.clearAndFocusSearch();
this.getAccounts();
} else {
this.resetAccounts();
}
}

get accountList() {
return this.accounts.map((account) => ({
account,
isConnected: this.isConnectedAccount(account),
}));
}

get validAddress(): boolean {
return !!this.query && api.validateAddress(this.query);
}

private async getAccounts(): Promise<void> {
await this.withLoading(async () => {
try {
if (!this.source) return;
this.accounts = await getWalletAccounts(this.source);
} catch {
this.resetAccounts();
this.visibility = false;
}
});
}

private resetAccounts(): void {
this.accounts = [];
}

handleSelectAccount(account: WALLET_TYPES.PolkadotJsAccount): void {
const subAddress = api.formatAddress(account.address);
this.updateSubAccount(subAddress);
return !!this.address && api.validateAddress(this.address);
}

handleSelectAddress(): void {
this.updateSubAccount(this.query);
}

private updateSubAccount(address: string): void {
this.connectSubAccount(address);
this.connectSubAccount(this.address);
this.visibility = false;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/views/Bridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ export default class Bridge extends Mixins(
@state.bridge.isSoraToEvm isSoraToEvm!: boolean;
@state.assets.registeredAssetsFetching registeredAssetsFetching!: boolean;

@getter.bridge.asset asset!: Nullable<RegisteredAccountAsset>;
@getter.bridge.isRegisteredAsset isRegisteredAsset!: boolean;
@getter.bridge.operation private operation!: Operation;
@getter.settings.nodeIsConnected nodeIsConnected!: boolean;
Expand Down
6 changes: 2 additions & 4 deletions src/views/BridgeTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ export default class BridgeTransaction extends Mixins(
@state.bridge.inProgressIds private inProgressIds!: Record<string, boolean>;
@state.router.prev private prevRoute!: Nullable<PageNames>;

@getter.bridge.asset asset!: Nullable<RegisteredAccountAsset>;
@getter.bridge.historyItem private historyItem!: Nullable<IBridgeTransaction>;
@getter.web3.externalAccount private externalAccount!: string;

Expand Down Expand Up @@ -452,9 +451,8 @@ export default class BridgeTransaction extends Mixins(
get isInsufficientLiquidity(): boolean {
if (!(this.asset && this.assetLockedBalance && this.isSoraToEvm)) return false;

const decimals = this.asset.decimals;
const fpAmount = new FPNumber(this.amount, decimals);
const fpLocked = FPNumber.fromCodecValue(this.assetLockedBalance, decimals);
const fpAmount = new FPNumber(this.amount, this.asset.decimals);
const fpLocked = FPNumber.fromCodecValue(this.assetLockedBalance, this.asset.externalDecimals);

return FPNumber.gt(fpAmount, fpLocked);
}
Expand Down
84 changes: 42 additions & 42 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2338,68 +2338,68 @@
resolved "https://registry.yarnpkg.com/@soda/get-current-script/-/get-current-script-1.0.2.tgz#a53515db25d8038374381b73af20bb4f2e508d87"
integrity sha512-T7VNNlYVM1SgQ+VsMYhnDkcGmWhQdL0bDyGm5TlQ3GBXnJscEClUUOKduWTmm2zCnvNLC1hc3JpuXjs/nFOc5w==

"@sora-substrate/api@1.18.11":
version "1.18.11"
resolved "https://registry.yarnpkg.com/@sora-substrate/api/-/api-1.18.11.tgz#e5df60e5b71827e5a11b1595b1064c2d55613ebe"
integrity sha512-wAOcyljYdaPhsGCumX3KQ6YOY/BwM41nZmlDQYDkbkEQU5iwRKEWAz88xsnVFeRsgKKy8NRxmRujMiI8SKQyog==
"@sora-substrate/api@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@sora-substrate/api/-/api-1.20.1.tgz#64012f8431f099a06f01c9218a02005e27f9a47e"
integrity sha512-kA6g3AGAmrSKTvTWZPoaXJt9HtY+asFtMzH01vpiB51dZaAT+aMNqeEqpvYTVP7kGQA15eti96uuBNMtQFoBUw==
dependencies:
"@open-web3/orml-api-derive" "1.1.4"
"@polkadot/api" "9.14.2"
"@sora-substrate/types" "1.18.11"
"@sora-substrate/types" "1.20.1"

"@sora-substrate/connection@1.18.11":
version "1.18.11"
resolved "https://registry.yarnpkg.com/@sora-substrate/connection/-/connection-1.18.11.tgz#def76832484fc33a0ec45b17acc8e41b1722adb8"
integrity sha512-ljhfno3EMainm4LBp15TstPPJttxYS0xucnug9C/9hIjYuYbfTeEquoPUPvDNVDKa2saRn1OX0pCVGIT33PxEw==
"@sora-substrate/connection@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@sora-substrate/connection/-/connection-1.20.1.tgz#17673b65564d955adeab0e2caf99dc101cbcdda7"
integrity sha512-U3+AxlIngyUFpOJf05OlkOaqioQI/JbfzMPFzzXCp7gYrkkmajxTLgLLdz2Kq2SbjwezBIDoiS1txr9ysPi19w==
dependencies:
"@sora-substrate/api" "1.18.11"
"@sora-substrate/api" "1.20.1"

"@sora-substrate/liquidity-proxy@1.18.11":
version "1.18.11"
resolved "https://registry.yarnpkg.com/@sora-substrate/liquidity-proxy/-/liquidity-proxy-1.18.11.tgz#1d279871849f854cb81353a911878647b8268481"
integrity sha512-ToZHgs0ZYRnQX4M9cckMlfcyIKLE5sJ5MN2YddEk0UYKk1lHdwWMj3pp5dVI5yiRqGXa9NPP/OTn1b7rYGppPA==
"@sora-substrate/liquidity-proxy@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@sora-substrate/liquidity-proxy/-/liquidity-proxy-1.20.1.tgz#d55d6a6e65dce697928e9559a9a5a9b5cee3ebbe"
integrity sha512-lHGHA8XzT2AagNgxbNcyR4M8YJqM+gvFLNBp9Z8Neje6PVtaL+SQEiW3/upY6ItR9JnN1bvQ1krZaL5XqigQqg==
dependencies:
"@sora-substrate/math" "1.18.11"
"@sora-substrate/math" "1.20.1"

"@sora-substrate/math@1.18.11":
version "1.18.11"
resolved "https://registry.yarnpkg.com/@sora-substrate/math/-/math-1.18.11.tgz#1c532a9476c9e94e1d4a0f5ea04b789278b55cef"
integrity sha512-0Rgg7sYiztl2yAoavUfLPZBfgMBoj5VBRbWyvUs7xXJIijAUivMmLQmunF3hF+aqkK0n7UZzg/siCO93mod1jQ==
"@sora-substrate/math@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@sora-substrate/math/-/math-1.20.1.tgz#d6a84f4c42c4c48907702549791db4a30d9b150c"
integrity sha512-aC0xJGZoo7roTzup0fFr1gsGHmPShpJ74hVf/kQTIpHVhKRpplPrneP+aS/GehRoN1aU+AmcfADCUYwWP7Xxaw==
dependencies:
"@polkadot/types" "9.14.2"
bignumber.js "^9.0.1"
lodash "^4.17.15"

"@sora-substrate/type-definitions@1.18.11":
version "1.18.11"
resolved "https://registry.yarnpkg.com/@sora-substrate/type-definitions/-/type-definitions-1.18.11.tgz#e94b620fae36186e13cbe8a9401bc23502927d82"
integrity sha512-nHtlvwmwSMUFz4Y0fLHZhHQjN5Q+3HeF6WhQ4DqwWwBL3DynXquihMmej66BqV+8khy3d8SGN0iNqxcoielGsw==
"@sora-substrate/type-definitions@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@sora-substrate/type-definitions/-/type-definitions-1.20.1.tgz#d4cafa99e02812ebe4f4b111a4262ccd14673857"
integrity sha512-+0vQuUCKdHXzyoL4qLQ4bFGQaiMvTVbCuj+ZnMgyO8M7xFwPUQDEhOzodGXt0BlL6iY0gjk1KGANb1wgT2eoMg==
dependencies:
"@open-web3/orml-type-definitions" "1.1.4"

"@sora-substrate/types@1.18.11":
version "1.18.11"
resolved "https://registry.yarnpkg.com/@sora-substrate/types/-/types-1.18.11.tgz#bda1228a0abde4b245f9eb46a26d4658ee2a2de6"
integrity sha512-JPFxWRZXX92hV8hEAVRtcEMpxG2W7N5NHxfkXNP3xt7hGds8gW/lsHdjia2fnd9+CXFHYvxL8DWJstVAStN6qA==
"@sora-substrate/types@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@sora-substrate/types/-/types-1.20.1.tgz#6c426e38bdf54980359688a690b7791de2f458d4"
integrity sha512-Ss1GGTIrcq8UvNa2q/3FXaN2N6zzsio33E39YM6tqy/+IeSEIW09NXy66fTz8tndgfySrPu6b8e4xIiQLUxE0Q==
dependencies:
"@open-web3/api-mobx" "0.9.4-26"
"@open-web3/orml-types" "1.1.4"
"@polkadot/api" "9.14.2"
"@polkadot/typegen" "9.14.2"
"@polkadot/types" "9.14.2"
"@sora-substrate/type-definitions" "1.18.11"
"@sora-substrate/type-definitions" "1.20.1"

"@sora-substrate/util@1.18.11":
version "1.18.11"
resolved "https://registry.yarnpkg.com/@sora-substrate/util/-/util-1.18.11.tgz#2c3ebaad08c7dfc7d5d6b61928bc27d46b5cecfd"
integrity sha512-xBhwvbzknMfvjQDBR+aMrLWA4NYxfTIUlzoiJIsyzrfq5z7NY8sh+Nz7ttOsWq7Za55nyExYnotzVPYdPR6ZgA==
"@sora-substrate/util@1.20.1":
version "1.20.1"
resolved "https://registry.yarnpkg.com/@sora-substrate/util/-/util-1.20.1.tgz#7547e8ff65c3e1a0771c71f5beed6d94cc1ed3ee"
integrity sha512-rcFdbspD86xS9yJ/u4TwLzvyCkNd/gEEkprCdCsoP4CiKtLAUM8aJkeDconyu8HUWKec0ZrXo/eIPL/1PzcEYA==
dependencies:
"@polkadot/ui-keyring" "2.12.1"
"@sora-substrate/api" "1.18.11"
"@sora-substrate/connection" "1.18.11"
"@sora-substrate/liquidity-proxy" "1.18.11"
"@sora-substrate/math" "1.18.11"
"@sora-substrate/types" "1.18.11"
"@sora-substrate/api" "1.20.1"
"@sora-substrate/connection" "1.20.1"
"@sora-substrate/liquidity-proxy" "1.20.1"
"@sora-substrate/math" "1.20.1"
"@sora-substrate/types" "1.20.1"
axios "^0.21.1"
crypto-js "^4.0.0"
lodash "^4.17.15"
Expand Down Expand Up @@ -2432,13 +2432,13 @@
vue-property-decorator "^9.1.2"
vuex "^3.6.2"

"@soramitsu/soraneo-wallet-web@1.19.1":
version "1.19.1"
resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.19.1.tgz#27439c067a24758c9e3e42a3cc891b7604207f97"
integrity sha512-p+mHpq4a80WL10SSUeO5GdIwRxtWCZen0LXJ3Tk15bgByMj7UirUs4AHyV8uv214sUYBnEJaB3m3+xrxxWQ4lw==
"@soramitsu/soraneo-wallet-web@1.20.0":
version "1.20.0"
resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.20.0.tgz#70dd781fc410d1e340c70b9b1ce60e851051fee7"
integrity sha512-YrOonDxrVxvdvTWNvGbA6c5JD6NaS1IyE9lGiRcRHcfbCsh/yKzwJcN9FeWrLEMmnJyIzvbUTVV2cbuMjDeRPg==
dependencies:
"@polkadot/vue-identicon" "2.12.1"
"@sora-substrate/util" "1.18.11"
"@sora-substrate/util" "1.20.1"
"@sora-test/wallet-connect" "^0.0.9"
"@soramitsu/soramitsu-js-ui" "^1.0.45"
"@urql/core" "^3.0.5"
Expand Down