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

Enable Liberland #1414

Merged
merged 1,463 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1463 commits
Select commit Hold shift + click to select a range
42296ad
Fix release 1.21 issues (#1160)
stefashkaa Sep 15, 2023
f4a5536
Remove synths blockers from Add LP (#1162)
stefashkaa Sep 15, 2023
29c7c56
Add synthetic switcher to select asset (#1161)
Nikita-Polyakov Sep 15, 2023
752e022
Improve ads (#1163)
stefashkaa Sep 18, 2023
e79d1cf
Add debounce to resize event (#1164)
stefashkaa Sep 18, 2023
f002538
Fix content bottom margin (#1165)
stefashkaa Sep 18, 2023
e45e836
Update App.vue (#1167)
stefashkaa Sep 18, 2023
fa38021
Merge master (#1168)
stefashkaa Sep 18, 2023
ddf64de
fix (#1172)
RustemYuzlibaev Sep 21, 2023
fd511d0
Fix release 1.21 issues (#1175)
stefashkaa Sep 21, 2023
dfe112c
Enable supply chart for all tokens (#1170)
stefashkaa Sep 26, 2023
d3c3d70
[Bridge] Add Min & Max limits (#1151)
Nikita-Polyakov Sep 26, 2023
c101945
Fix sub bridge address issues (#1180)
Nikita-Polyakov Sep 28, 2023
5e7bc27
Remove ~ sign (#1179)
stefashkaa Sep 28, 2023
2162c06
Fix assets sorting order in swap and bridge (#1181)
Nikita-Polyakov Sep 28, 2023
1b63084
Add scroll into view (#1182)
stefashkaa Sep 28, 2023
ae2c902
Fix sub bridge sora fee & fix eth history restoration (#1183)
Nikita-Polyakov Sep 29, 2023
c64df58
Add XCM fee to transaction details & some fixes (#1185)
Nikita-Polyakov Oct 2, 2023
4dd1431
Update marketing.json (#1186)
stefashkaa Oct 3, 2023
ea6ea75
Subsquid support implementation (#1049)
Sociopacific Oct 10, 2023
ea66e0e
card balance appearance (#1173)
RustemYuzlibaev Oct 10, 2023
6421b3c
UI improvements (#1189)
Nikita-Polyakov Oct 11, 2023
58b96d8
update SelectIndexer modal (#1190)
Nikita-Polyakov Oct 11, 2023
86a055e
add walletconnect verification txt file (#1193)
Nikita-Polyakov Oct 12, 2023
b64cf68
Fix assets query (#1196)
Sociopacific Oct 16, 2023
53c79ce
Update Jenkinsfile (#1197)
f33r0 Oct 17, 2023
45cf5b6
fix subquery bridge history (#1200)
Nikita-Polyakov Oct 23, 2023
7a9736a
Add xorless transfer history support (#1203)
Nikita-Polyakov Oct 26, 2023
b5439cb
remove misleading option (#1204)
RustemYuzlibaev Oct 27, 2023
a4d9c6c
add langs (#1205)
RustemYuzlibaev Oct 27, 2023
51b08e1
SORA Card: Add country selector (#1206)
stefashkaa Oct 30, 2023
bd66c12
remove css and if-statement (#1207)
RustemYuzlibaev Oct 30, 2023
33dc26d
Sustrate bridge prod prepare (#1211)
Nikita-Polyakov Nov 2, 2023
65999bd
Ceres fiat option (#1212)
Nikita-Polyakov Nov 2, 2023
63dbf8b
Update Jenkinsfile
f33r0 Nov 3, 2023
85ebc2e
Update Jenkinsfile
f33r0 Nov 3, 2023
e9aba41
Merge pull request #1213 from sora-xor/f33r0-patch-1
f33r0 Nov 3, 2023
0c2e517
Fix circulating supply for VAL & PSWAP on prod env (#1215)
stefashkaa Nov 7, 2023
7a27601
[WIP] WalletConnect support (#1195)
Nikita-Polyakov Nov 7, 2023
ea8b2bf
update wallet to 1.25.1 (#1216)
Nikita-Polyakov Nov 8, 2023
4cef624
Add crowdloan banner (#1217)
stefashkaa Nov 8, 2023
6e39c81
Update Payment.vue (#1220)
RustemYuzlibaev Nov 9, 2023
10cf54a
Update KycView.vue (#1224)
RustemYuzlibaev Nov 16, 2023
2d5986b
Update subquery request for Tokens page (#1201)
Nikita-Polyakov Nov 20, 2023
56377b8
[Bridge] Add max prefix to external network fee (#1227)
Nikita-Polyakov Nov 20, 2023
8d01124
Sora staking implementation
Sociopacific Nov 21, 2023
318fae5
[Bridge] Enable WalletConnect (#1228)
Nikita-Polyakov Nov 21, 2023
4df2a88
[Bridge] UI improvements (#1222)
Nikita-Polyakov Nov 21, 2023
36b317a
Merge branch 'develop' into feature/sora-staking
stefashkaa Nov 22, 2023
5200af6
Fixes
Sociopacific Nov 23, 2023
4349ce8
Fixes
Sociopacific Nov 28, 2023
5d19655
add sora parachain for network selection
Nikita-Polyakov Nov 22, 2023
f3e55b7
prepare connector for refactoring
Nikita-Polyakov Nov 22, 2023
0f8789f
refactoring SubNetworksConnector
Nikita-Polyakov Nov 23, 2023
1add0c1
wip outgoing reducer
Nikita-Polyakov Nov 23, 2023
5fcec37
fix network fee
Nikita-Polyakov Nov 23, 2023
b43137a
parachain tx tracking
Nikita-Polyakov Nov 23, 2023
8a9dfd3
refactoring connector
Nikita-Polyakov Nov 23, 2023
ee427fd
add sora parachain icon example
Nikita-Polyakov Nov 23, 2023
f1817c9
add scrollbar to networks list
Nikita-Polyakov Nov 23, 2023
ec326d8
sora parachain history restoration
Nikita-Polyakov Nov 24, 2023
864bdb0
small fixes
Nikita-Polyakov Nov 24, 2023
86ed87d
sonar refactoring
Nikita-Polyakov Nov 24, 2023
1e457ee
update short names
Nikita-Polyakov Nov 24, 2023
09d3991
improve sub bridge history restoration
Nikita-Polyakov Nov 24, 2023
ae00847
restore refunded transactions
Nikita-Polyakov Nov 25, 2023
9fb75bb
improve history restoration parachain part
Nikita-Polyakov Nov 26, 2023
5295203
[fix] clean history only for selected network
Nikita-Polyakov Nov 27, 2023
96d3e02
revert env.json
Nikita-Polyakov Nov 27, 2023
30b9bb8
refactoring history restoration
Nikita-Polyakov Nov 27, 2023
6e1daf2
update wallet 1.26.3
Nikita-Polyakov Nov 28, 2023
c46d295
up version
Nikita-Polyakov Nov 28, 2023
9d0cbd1
set detectEthereumProvider arg mustBeMetaMask to true
Nikita-Polyakov Nov 28, 2023
f941867
Fixes
Sociopacific Nov 28, 2023
55a622c
Bond and nominate in one action
Sociopacific Nov 28, 2023
55a6626
Fix keys
Sociopacific Nov 28, 2023
106a2a9
SORA parachain bridge (#1231)
Nikita-Polyakov Nov 28, 2023
94e9936
Show swap distribution (#1191)
Nikita-Polyakov Nov 28, 2023
c94ef69
Fix bridge issues (#1232)
Nikita-Polyakov Nov 30, 2023
78f09f1
Whitelist usage rationalization (#1234)
Nikita-Polyakov Nov 30, 2023
e60ddc7
Fixes
Sociopacific Dec 1, 2023
7cd7058
SORA parachain bridge (#1231)
Nikita-Polyakov Nov 28, 2023
051458e
Show swap distribution (#1191)
Nikita-Polyakov Nov 28, 2023
742bc20
Fix bridge issues (#1232)
Nikita-Polyakov Nov 30, 2023
520ce64
Whitelist usage rationalization (#1234)
Nikita-Polyakov Nov 30, 2023
157744f
Merge branch 'develop' into feature/sora-staking
Sociopacific Dec 1, 2023
dcaf51f
tokens page fallback & wallet 1.26.5 (#1238)
Nikita-Polyakov Dec 5, 2023
97e7fe5
fix prices precision on chart (#1240)
Nikita-Polyakov Dec 5, 2023
7138e47
Fix chart Y axis for assets with very low price (#1241)
Nikita-Polyakov Dec 5, 2023
85deb89
Fix release 1.26.0 issues (#1239)
stefashkaa Dec 5, 2023
e3f6667
Bridge sub account & token autoselects (#1242)
Nikita-Polyakov Dec 5, 2023
d55d41d
fix bridge max value precision (#1244)
Nikita-Polyakov Dec 6, 2023
7b0ca36
Fix bridge fees issues (#1246)
Nikita-Polyakov Dec 6, 2023
7928d33
Some fixes
Sociopacific Dec 11, 2023
9f0687b
Chart, Bridge, Wallet, ADAR fixes (#1247)
Nikita-Polyakov Dec 11, 2023
9eea875
Merge branch 'develop' into feature/sora-staking
stefashkaa Dec 11, 2023
7a1959d
Merge remote-tracking branch 'origin/develop' into feature/sora-staking
Nikita-Polyakov Dec 11, 2023
2391ec4
Merge branch 'feature/sora-staking' of github.com:sora-xor/polkaswap-…
Nikita-Polyakov Dec 11, 2023
f8f3239
Update ValidatorsDialog.vue
stefashkaa Dec 11, 2023
987eade
Fix
Sociopacific Dec 12, 2023
a38e306
Xor commission fix
Sociopacific Dec 12, 2023
df1f4bc
Add vote on survey and new banner (#1251)
stefashkaa Dec 19, 2023
657da31
Fixes
Sociopacific Dec 19, 2023
adbc179
Merge branch 'develop' into feature/sora-staking
Naghme98 Dec 19, 2023
5daa766
Fixes
Sociopacific Dec 20, 2023
bbf4c9d
Fixes
Sociopacific Dec 20, 2023
4a62515
Translation fix
Sociopacific Dec 20, 2023
f58bc60
Editable fiat amount in input (#1250)
Nikita-Polyakov Dec 20, 2023
977281b
Fix colors
Sociopacific Dec 21, 2023
3bd225e
Fix
Sociopacific Dec 21, 2023
3c881e4
Merge branch 'develop' into feature/sora-staking
C4tWithShell Dec 21, 2023
249e92f
Fixes
Sociopacific Dec 22, 2023
277f6bd
Fixes
Sociopacific Dec 26, 2023
7492e59
Fix
Sociopacific Dec 26, 2023
b399b9c
Remove imports
Sociopacific Dec 26, 2023
b8e21fc
fix chart current price (#1256)
Nikita-Polyakov Dec 26, 2023
d9452fc
Merge branch 'develop' into feature/sora-staking
Nikita-Polyakov Dec 26, 2023
214246d
refactoring
Nikita-Polyakov Dec 26, 2023
e49ca26
remove lib from resolutions
Nikita-Polyakov Dec 26, 2023
58a72cb
fix retry button visibility (#1254)
Nikita-Polyakov Dec 27, 2023
60f3a14
Sidebar hide button (#1249)
Nikita-Polyakov Dec 27, 2023
f14f11e
Improve Eth bridge fees calculation (#1257)
Nikita-Polyakov Dec 27, 2023
10b9d60
Fix rewards destination
Sociopacific Dec 26, 2023
bed4316
Fixes
Sociopacific Dec 28, 2023
c12193f
Fixes
Sociopacific Dec 28, 2023
8826ed6
Revert env.json
Sociopacific Dec 28, 2023
6c3644b
Fixes
Sociopacific Dec 28, 2023
350822e
Remove tooltip
Sociopacific Dec 28, 2023
db6a4d5
Merge branch 'develop' into feature/sora-staking
Sociopacific Dec 28, 2023
b8c7bbc
Translation fix
Sociopacific Dec 28, 2023
3661053
Remove utils
Sociopacific Dec 28, 2023
4682b79
Rename function
Sociopacific Dec 28, 2023
cf2bd56
Fix translation file
Sociopacific Dec 28, 2023
21c2917
Remove all rewards info
Sociopacific Dec 28, 2023
6f6ab1f
Fix styles
Sociopacific Dec 28, 2023
2ac0c6f
Merge pull request #1230 from sora-xor/feature/sora-staking
Sociopacific Dec 28, 2023
19b77e0
Staking badge click (#1258)
Sociopacific Dec 29, 2023
39cc198
Validators search input fix (#1262)
Sociopacific Dec 29, 2023
0a45bb4
Fix release issues 1.27 (#1261)
stefashkaa Dec 29, 2023
9ad9676
Refactor staking (#1263)
stefashkaa Dec 30, 2023
822bb7c
Add staking routing in menu (#1265)
stefashkaa Jan 4, 2024
411cdd8
Correct staking balance formatting (#1267)
Sociopacific Jan 10, 2024
df83289
Add 6M filter for stats page (#1270)
stefashkaa Jan 12, 2024
8009b46
Add sora card maintenance page (#1269) (#1271)
stefashkaa Jan 12, 2024
5712950
Improve zh_CN keys (#1272)
stefashkaa Jan 12, 2024
08cf030
Update dojoProductType
marat-biriushev Jan 18, 2024
0a0d250
[Bridge] Add Polkadot bridge support (#1277)
Nikita-Polyakov Jan 19, 2024
fb9725d
[BRIDGE] check for asset valid address on bridge contract (#1283)
Nikita-Polyakov Jan 22, 2024
5f22b5b
Prepare prod config (#1285)
stefashkaa Jan 23, 2024
d9c7ddd
Merge branch 'develop' into feature/DOPS-2950
marat-biriushev Jan 24, 2024
1f0ba51
Merge pull request #1279 from sora-xor/feature/DOPS-2950
marat-biriushev Jan 24, 2024
60f0902
fix ss58 check (#1289)
Nikita-Polyakov Jan 25, 2024
5eddda7
set kusama incoming xcm fee 0.01KSM (#1290)
Nikita-Polyakov Jan 27, 2024
92a0f50
order book (#1089)
RustemYuzlibaev Jan 29, 2024
f8e2afe
Fix 1.29 release (#1292)
stefashkaa Jan 29, 2024
abb496f
Update BuySell.vue (#1295)
RustemYuzlibaev Jan 30, 2024
8f3f355
Single chart filter (#1293)
Nikita-Polyakov Jan 30, 2024
54aef36
fix (#1296)
RustemYuzlibaev Jan 31, 2024
237061a
Feature/order book translations (#1284)
RustemYuzlibaev Feb 2, 2024
bb664a9
Explore order books (#1276)
Nikita-Polyakov Feb 5, 2024
837581c
Fix explore books sorting (#1299)
Nikita-Polyakov Feb 8, 2024
6031a44
Fix release 1.29 (#1294)
stefashkaa Feb 9, 2024
2ea408d
Fix orderbook notifications and orders history (#1300)
stefashkaa Feb 10, 2024
ec5768f
Fix 1.29 issues (#1303)
stefashkaa Feb 12, 2024
70c9f83
Update AppMenu.vue (#1304)
stefashkaa Feb 12, 2024
161d6c3
Fix 1.29.0 issues (#1306)
stefashkaa Feb 13, 2024
3813dd1
Update subquery endpoint (#1308)
stefashkaa Feb 13, 2024
9cb738b
update wallet 1.29.8 (#1309)
Nikita-Polyakov Feb 13, 2024
ff3dee4
Fix explore menu navigation (#1310)
stefashkaa Feb 14, 2024
b0b689c
Fix cancel all orders (#1313)
stefashkaa Feb 14, 2024
91397ab
Replace explore tabs with dropdown
stefashkaa Feb 15, 2024
48dbf65
Update soramitsuUI.ts
stefashkaa Feb 15, 2024
063d921
Update Container.vue
stefashkaa Feb 15, 2024
4ba41b0
Fix selected colors
stefashkaa Feb 15, 2024
01612cc
Update BuySell.vue (#1301)
RustemYuzlibaev Feb 15, 2024
3829696
add missing balance to token (#1315)
RustemYuzlibaev Feb 15, 2024
729a82e
Merge branch 'develop' into feature/responsive-explore-page-menu
Sociopacific Feb 15, 2024
e7eb5b8
Merge pull request #1316 from sora-xor/feature/responsive-explore-pag…
Sociopacific Feb 15, 2024
eb77030
Fix bridge tx sign with google & mint\burn translations (#1323)
Nikita-Polyakov Feb 20, 2024
6ca8ea0
Add KEN distribution page (#1320)
stefashkaa Feb 20, 2024
f6af950
validation refactoring (#1319)
RustemYuzlibaev Feb 21, 2024
9e631df
Update en.json (#1327)
RustemYuzlibaev Feb 21, 2024
20939f5
Fix ken title (#1330)
stefashkaa Feb 21, 2024
ef37fab
fix (#1331)
RustemYuzlibaev Feb 22, 2024
5abcf60
Staking fixes (#1268)
Sociopacific Feb 22, 2024
4d6b7a5
expand total text (#1333)
RustemYuzlibaev Feb 23, 2024
a120ce4
[Bridge] fix insufficient balance check (#1329)
Nikita-Polyakov Feb 23, 2024
4880a46
update order book quote subscription (#1335)
Nikita-Polyakov Feb 26, 2024
9f09df4
[Tech] queries from wallet (#1336)
Nikita-Polyakov Feb 28, 2024
5ecb54d
Сhart volume update (#1332)
Nikita-Polyakov Feb 28, 2024
87c6ed3
[Tech] update packages (#1337)
Nikita-Polyakov Feb 28, 2024
853c393
Fix SubsquidOrderBooksQuery
Sociopacific Mar 6, 2024
9aff6b2
Merge pull request #1344 from sora-xor/fix/subsquid-order-books-query
Sociopacific Mar 7, 2024
bda74c6
Fix chart volume update for XOR (#1348)
Nikita-Polyakov Mar 14, 2024
06bf20b
Fix Eth bridge tx replacement (#1350)
Nikita-Polyakov Mar 15, 2024
af885fe
Update package.json (#1353)
stefashkaa Mar 21, 2024
4fa7252
Demeter fixes (#1355)
Nikita-Polyakov Mar 22, 2024
32646a4
Fix quote rpc (#1356)
stefashkaa Mar 22, 2024
fa1824d
Remove new stake page (#1343)
Sociopacific Mar 25, 2024
6ecf97f
Add swap last transactions widget (#1342)
Nikita-Polyakov Mar 25, 2024
357bdbf
Fix issues after PRs merge (#1360)
stefashkaa Mar 25, 2024
d969809
[Sub Bridge] add ability to select substrate node (#1346)
Nikita-Polyakov Mar 26, 2024
1339fca
Add skeleton to swap distribution widget (#1361)
Nikita-Polyakov Mar 26, 2024
742a1cf
Fix 1.32 issues (#1363)
stefashkaa Mar 28, 2024
4713ea3
Add links to bridge transfer modal (#1362)
Nikita-Polyakov Mar 28, 2024
4714977
Improve bridge icons (#1364)
stefashkaa Mar 29, 2024
1a1b78d
Add orderbook research link (#1366)
stefashkaa Mar 29, 2024
f6f826f
improve external links (#1367)
Nikita-Polyakov Mar 29, 2024
4bd0f2d
Improve bridge sora links (#1370)
Nikita-Polyakov Mar 29, 2024
205d12a
improve sora links & refactoring (#1371)
Nikita-Polyakov Apr 1, 2024
136ffd8
update network & xcm fees (#1373)
Nikita-Polyakov Apr 1, 2024
9030879
Add ability to hide swap widgets (#1374)
Nikita-Polyakov Apr 2, 2024
7fc805f
update wallet 1.32.7 (#1376)
Nikita-Polyakov Apr 3, 2024
7ce866b
Fix liberland adapter balance for custom tokens (#1378)
stefashkaa Apr 4, 2024
668d704
Reduce network icons svg size (#1380)
stefashkaa Apr 5, 2024
959554b
Improve bridge locked amount check (#1381)
Nikita-Polyakov Apr 5, 2024
233d17c
Set Tokens as default tab for Explore page (#1383)
stefashkaa Apr 8, 2024
82aa0a4
Use PSWAP token instead of file-file-text-24 (#1384)
stefashkaa Apr 9, 2024
332a8e9
Fix default explore page (#1386)
stefashkaa Apr 9, 2024
11c1dd2
bump wallet (#1389)
RustemYuzlibaev Apr 17, 2024
8c697f4
Acala support (#1382)
Nikita-Polyakov Apr 25, 2024
d964ada
fix adapter withConnection & selectNetwork action (#1391)
Nikita-Polyakov Apr 26, 2024
0f99640
Fix bridge tx account address issues (#1393)
Nikita-Polyakov Apr 26, 2024
32f8c07
update ethers & eth fee request (#1396)
Nikita-Polyakov May 6, 2024
ecfa1e1
improve eth fee calculation (#1397)
Nikita-Polyakov May 8, 2024
3bfb128
Account signature settings (#1394)
Nikita-Polyakov May 8, 2024
cd4b775
Burn page (#1401)
stefashkaa May 16, 2024
4597330
Add changes from master (#1403)
stefashkaa May 16, 2024
7342937
Fix min max block for Burn page (#1404)
stefashkaa May 16, 2024
f6c9b06
Remove orderbook research banner (#1405)
stefashkaa May 17, 2024
5281927
Add disabled state for Burn page items (#1406)
stefashkaa May 17, 2024
30c72d1
Hide SORA Card from menu (#1407)
stefashkaa May 17, 2024
5bcb394
fix history restoration & balance deposit & transaction view account …
Nikita-Polyakov May 17, 2024
dcf97e3
Improve calc algo & loading state for Burn page (#1410)
stefashkaa May 18, 2024
b08b79d
formatted amount & lp fixes (#1413)
Nikita-Polyakov May 20, 2024
de15ce7
Merge remote-tracking branch 'origin/develop' into tech/liberalnd-prod
Nikita-Polyakov May 20, 2024
fd25120
kensetsu (#1352)
stefashkaa May 21, 2024
0d2b42b
merge develop
Nikita-Polyakov May 21, 2024
798abfb
remove orderbook ad
Nikita-Polyakov May 21, 2024
aab93e2
add missing translation (#1415)
RustemYuzlibaev May 21, 2024
2f6abb2
Merge remote-tracking branch 'origin/develop' into tech/liberalnd-prod
Nikita-Polyakov May 21, 2024
c11a203
fix Burn page request
Nikita-Polyakov May 21, 2024
9c6d6cd
remove merge conflicts
Nikita-Polyakov May 21, 2024
b84c7a3
Borrow -> Kensetsu (#1417)
stefashkaa May 22, 2024
71b2e60
cede payment integration (#1398)
RustemYuzlibaev May 22, 2024
aed193a
Add pagination to Vault history (#1416)
Nikita-Polyakov May 22, 2024
5cbcffa
fix bridge sora link (#1418)
Nikita-Polyakov May 22, 2024
12bafae
Merge remote-tracking branch 'origin/develop' into tech/liberalnd-prod
Nikita-Polyakov May 22, 2024
04a5730
Add KEN icon (#1420)
stefashkaa May 22, 2024
bedc408
Merge remote-tracking branch 'origin/develop' into tech/liberalnd-prod
Nikita-Polyakov May 22, 2024
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
6 changes: 4 additions & 2 deletions env.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"x1ex": false,
"charts": true,
"soraCard": false,
"orderBook": true
"orderBook": true,
"kensetsu": true,
"assetOwner": false
},
"SUBQUERY_ENDPOINT": "https://api.subquery.network/sq/sora-xor/sora-prod",
"SUBSQUID_ENDPOINT": "",
Expand Down Expand Up @@ -57,7 +59,7 @@
"Polkadot": true,
"PolkadotSora": true,
"PolkadotAcala": true,
"Liberland": false
"Liberland": true
},
"EVM_NETWORKS_IDS": [56, 8217],
"ETH_BRIDGE": {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkaswap-exchange-web",
"version": "1.34.2",
"version": "1.35.0",
"repository": {
"type": "git",
"url": "https://github.com/sora-xor/polkaswap-exchange-web.git"
Expand All @@ -27,7 +27,7 @@
},
"dependencies": {
"@metamask/detect-provider": "^2.0.0",
"@soramitsu/soraneo-wallet-web": "1.34.3-1",
"@soramitsu/soraneo-wallet-web": "1.34.7",
"@walletconnect/ethereum-provider": "^2.12.2",
"@walletconnect/modal": "^2.6.2",
"core-js": "^3.37.0",
Expand All @@ -53,7 +53,7 @@
"@types/electron-devtools-installer": "^2.2.5",
"@types/jest": "^29.5.12",
"@types/jsdom": "^21.1.6",
"@types/lodash": "^4.17.1",
"@types/lodash": "^4.17.3",
"@types/node": "^20.12.10",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
Expand All @@ -72,7 +72,7 @@
"@vue/vue2-jest": "^27.0.0",
"babel-plugin-require-context-hook": "^1.0.0",
"css-unicode-loader": "^1.0.3",
"electron": "^13.0.0",
"electron": "^30.0.6",
"electron-devtools-installer": "^3.2.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.29.1",
Expand Down
Binary file added public/asset-owner/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/asset-owner/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion public/env.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"x1ex": false,
"charts": true,
"soraCard": false,
"orderBook": true
"orderBook": true,
"kensetsu": true,
"assetOwner": false
},
"FAUCET_URL": "https://faucet.dev.sora2.tachi.soramitsu.co.jp/",
"DEFAULT_NETWORKS": [
Expand Down
5 changes: 0 additions & 5 deletions public/marketing.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[
{
"title": "ORDERBOOK SURVEY",
"img": "/marketing/orderbook.png",
"link": "https://form.typeform.com/to/DMieGaJI"
},
{
"title": "GET SORA CARD",
"img": "/marketing/card.png",
Expand Down
30 changes: 11 additions & 19 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ import NodeErrorMixin from '@/components/mixins/NodeErrorMixin';
import SoraLogo from '@/components/shared/Logo/Sora.vue';
import { PageNames, Components, Language, BreakpointClass, Breakpoint, WalletPermissions } from '@/consts';
import { getLocale } from '@/lang';
import { isDashboardPage } from '@/modules/dashboard/router';
import { isVaultPage } from '@/modules/vault/router';
import router, { goTo, lazyComponent } from '@/router';
import { action, getter, mutation, state } from '@/store/decorators';
import { getMobileCssClasses, preloadFontFace, updateDocumentTitle } from '@/utils';
Expand Down Expand Up @@ -95,9 +97,9 @@ export default class App extends Mixins(mixins.TransactionMixin, NodeErrorMixin)
menuVisibility = false;
showConfirmInviteUser = false;
showNotifsDarkPage = false;
responsiveClass = BreakpointClass.LargeDesktop;

@state.settings.appConnection appConnection!: NodesConnection;
@state.settings.screenBreakpointClass private responsiveClass!: BreakpointClass;
@state.settings.appConnection private appConnection!: NodesConnection;
@state.settings.browserNotifPopupVisibility private browserNotifPopup!: boolean;
@state.settings.browserNotifPopupBlockedVisibility private browserNotifPopupBlocked!: boolean;
@state.wallet.account.assetsToNotifyQueue assetsToNotifyQueue!: Array<WhitelistArrayItem>;
Expand All @@ -123,7 +125,7 @@ export default class App extends Mixins(mixins.TransactionMixin, NodeErrorMixin)
@mutation.settings.setBrowserNotifsPopupBlocked private setBrowserNotifsPopupBlocked!: (flag: boolean) => void;
@mutation.settings.toggleDisclaimerDialogVisibility private toggleDisclaimerDialogVisibility!: FnWithoutArgs;
@mutation.settings.resetBlockNumberSubscription private resetBlockNumberSubscription!: FnWithoutArgs;
@mutation.settings.setScreenBreakpointClass private setScreenBreakpointClass!: (cssClass: string) => void;
@mutation.settings.setScreenBreakpointClass private setScreenBreakpointClass!: (windowWidth: number) => void;
@mutation.referrals.unsubscribeFromInvitedUsers private unsubscribeFromInvitedUsers!: FnWithoutArgs;
@mutation.web3.setEvmNetworksApp private setEvmNetworksApp!: (data: EvmNetwork[]) => void;
@mutation.web3.setSubNetworkApps private setSubNetworkApps!: (data: SubNetworkApps) => void;
Expand Down Expand Up @@ -198,21 +200,7 @@ export default class App extends Mixins(mixins.TransactionMixin, NodeErrorMixin)
}

private setResponsiveClass(): void {
const width = window.innerWidth;
if (width >= Breakpoint.HugeDesktop) {
this.responsiveClass = BreakpointClass.HugeDesktop;
} else if (width >= Breakpoint.LargeDesktop) {
this.responsiveClass = BreakpointClass.LargeDesktop;
} else if (width >= Breakpoint.Desktop) {
this.responsiveClass = BreakpointClass.Desktop;
} else if (width >= Breakpoint.Tablet) {
this.responsiveClass = BreakpointClass.Tablet;
} else if (width >= Breakpoint.LargeMobile) {
this.responsiveClass = BreakpointClass.LargeMobile;
} else if (width < Breakpoint.LargeMobile) {
this.responsiveClass = BreakpointClass.Mobile;
}
this.setScreenBreakpointClass(this.responsiveClass);
this.setScreenBreakpointClass(window.innerWidth);
}

private setResponsiveClassDebounced = debounce(this.setResponsiveClass, 250);
Expand Down Expand Up @@ -572,7 +560,11 @@ i.icon-divider {
}

@include desktop {
.app-main--swap {
.app-main--swap,
.app-main--vaults,
.app-main--vaultdetails,
.app-main--assetowner,
.app-main--assetownerdetails {
&.app-main {
.app-menu {
&:not(.collapsed) {
Expand Down
Binary file modified src/assets/fonts/polkaswap_icons.ttf
Binary file not shown.
14 changes: 8 additions & 6 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const isDevelopment = process.env.NODE_ENV !== 'production';
// Scheme must be registered before the app is ready
protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }]);

async function createWindow() {
async function createWindow(): Promise<void> {
const ELECTRON_NODE_INTEGRATION = !!process.env.ELECTRON_NODE_INTEGRATION;
// Create the browser window.
const win = new BrowserWindow({
width: 800,
Expand All @@ -17,14 +18,14 @@ async function createWindow() {
webPreferences: {
// Use pluginOptions.nodeIntegration, leave this alone
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION as unknown as boolean,
contextIsolation: !process.env.ELECTRON_NODE_INTEGRATION,
nodeIntegration: ELECTRON_NODE_INTEGRATION,
contextIsolation: !ELECTRON_NODE_INTEGRATION,
},
});

if (process.env.WEBPACK_DEV_SERVER_URL) {
// Load the url of the dev server if in development mode
await win.loadURL(process.env.WEBPACK_DEV_SERVER_URL as string);
await win.loadURL(process.env.WEBPACK_DEV_SERVER_URL);
if (!process.env.IS_TEST) win.webContents.openDevTools();
} else {
createProtocol('app');
Expand All @@ -33,9 +34,10 @@ async function createWindow() {
}

// It's required for external links
win.webContents.on('new-window', function (e, url) {
e.preventDefault();
win.webContents.setWindowOpenHandler(({ url }) => {
// Prevent default behavior
shell.openExternal(url);
return { action: 'deny' };
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/App/Alerts/AlertList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ $list-items: 5;
font-weight: 300;
font-size: var(--s-font-size-medium);
line-height: 150%;
letter-spacing: -0.02em;
letter-spacing: var(--s-letter-spacing-small);
span {
margin-left: $inner-spacing-mini;
Expand Down
49 changes: 45 additions & 4 deletions src/components/App/Menu/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ import {
PoolChildPages,
BridgeChildPages,
RewardsChildPages,
StakingChildPages,
ExploreChildPages,
SidebarMenuGroups,
SidebarMenuItemLink,
FaucetLink,
} from '@/consts';
import { DashboardPageNames } from '@/modules/dashboard/consts';
import { isDashboardPage } from '@/modules/dashboard/router';
import { StakingPageNames } from '@/modules/staking/consts';
import { isStakingPage } from '@/modules/staking/router';
import { VaultPageNames } from '@/modules/vault/consts';
import { isVaultPage } from '@/modules/vault/router';
import { getter, mutation, state } from '@/store/decorators';

import AppInfoPopper from './AppInfoPopper.vue';
Expand All @@ -135,12 +139,34 @@ export default class AppMenu extends Mixins(TranslationMixin) {
@state.settings.menuCollapsed collapsed!: boolean;

@getter.settings.orderBookEnabled private orderBookEnabled!: boolean;
@getter.settings.kensetsuEnabled private kensetsuEnabled!: boolean;
@getter.settings.assetOwnerEnabled private assetOwnerEnabled!: boolean;
@getter.libraryTheme private libraryTheme!: Theme;

@mutation.settings.setMenuCollapsed private setMenuCollapsed!: (collapsed: boolean) => void;

readonly FaucetLink = FaucetLink;

private resizeObserver: Nullable<ResizeObserver> = null;

private onMenuWidthChange(): void {
const width = this.$el?.clientWidth ?? 0;
if (!width) return;

document.documentElement.style.setProperty('--sidebar-width', `${width}px`);
}

async mounted(): Promise<void> {
await this.$nextTick();
if (!(this.$el && window.ResizeObserver)) return;
this.resizeObserver = new ResizeObserver(this.onMenuWidthChange);
this.resizeObserver.observe(this.$el);
}

beforeDestroy(): void {
this.resizeObserver?.disconnect();
}

get collapseIcon(): string {
return this.collapsed ? 'arrows-chevron-right-24' : 'arrows-chevron-left-24';
}
Expand All @@ -154,10 +180,19 @@ export default class AppMenu extends Mixins(TranslationMixin) {
}

get sidebarMenuItems(): Array<SidebarMenuItemLink> {
let menuItems = SidebarMenuGroups;

if (!this.orderBookEnabled) {
return SidebarMenuGroups.filter(({ title }) => title !== PageNames.OrderBook);
menuItems = menuItems.filter(({ title }) => title !== PageNames.OrderBook);
}
if (!this.kensetsuEnabled) {
menuItems = menuItems.filter(({ title }) => title !== PageNames.VaultsContainer);
}
if (!this.assetOwnerEnabled) {
menuItems = menuItems.filter(({ title }) => title !== PageNames.AssetOwnerContainer);
}
return SidebarMenuGroups;

return menuItems;
}

get currentPath(): string {
Expand All @@ -171,12 +206,18 @@ export default class AppMenu extends Mixins(TranslationMixin) {
if (RewardsChildPages.includes(currentName)) {
return PageNames.Rewards;
}
if (StakingChildPages.includes(currentName)) {
if (isStakingPage(currentName)) {
return StakingPageNames.Staking;
}
if (ExploreChildPages.includes(currentName)) {
return PageNames.ExploreTokens;
}
if (isDashboardPage(currentName)) {
return DashboardPageNames.AssetOwner;
}
if (isVaultPage(currentName)) {
return VaultPageNames.Vaults;
}
return currentName as string;
}

Expand Down
11 changes: 7 additions & 4 deletions src/components/pages/Bridge/SelectAccount.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<dialog-base :visible.sync="visibility" :title="t('connection.selectAccount')" custom-class="account-select-dialog">
<div class="account-select">
<address-book-input v-model="address" :is-valid="validAddress" ref="input" />
<address-book-input ref="input" v-model="address" :is-valid="validAddress" @update-name="updateName" />

<s-button
class="s-typography-button--large account-select-button"
Expand Down Expand Up @@ -35,6 +35,7 @@ export default class BridgeSelectAccount extends Mixins(mixins.LoadingMixin, Tra
@mutation.web3.setSubAddress private setSubAddress!: (opts: { address: string; name: string }) => Promise<void>;

address = '';
private name = '';

@Watch('visibility')
private updateAddress(isVisible: boolean) {
Expand All @@ -54,11 +55,13 @@ export default class BridgeSelectAccount extends Mixins(mixins.LoadingMixin, Tra
}

handleSelectAddress(): void {
// [TODO] emit name from address-book-input
const name = this.address ? (this.$refs.input as any).name : '';
this.setSubAddress({ address: this.address, name });
this.setSubAddress({ address: this.address, name: this.name });
this.visibility = false;
}

updateName(name: string): void {
this.name = name;
}
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/OrderBook/BuySell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ export default class BuySellWidget extends Mixins(
}

async singlePriceReachedLimit(): Promise<boolean> {
if (this.isMarketType) return false;
if (this.isMarketType || !this.quoteValue) return false;

const limitReached = !(await api.orderBook.isOrderPlaceable(
this.baseAsset.address,
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/SoraCard/steps/TermsAndConditions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class TermsAndConditions extends Mixins(TranslationMixin, mixins.
text-align: center;
font-weight: 300;
line-height: 150%;
letter-spacing: -0.02em;
letter-spacing: var(--s-letter-spacing-small);
width: 95%;
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/pages/Stats/NetworkStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default class NetworkStats extends Mixins(mixins.LoadingMixin, Translatio
readonly FontSizeRate = WALLET_CONSTS.FontSizeRate;
readonly FontWeightRate = WALLET_CONSTS.FontWeightRate;
readonly filters = NETWORK_STATS_FILTERS;
readonly Arrow = String.fromCodePoint(0x2192);

filter = NETWORK_STATS_FILTERS[0];

Expand All @@ -91,7 +92,6 @@ export default class NetworkStats extends Mixins(mixins.LoadingMixin, Translatio

get columns() {
const { Sora, Ethereum } = this.TranslationConsts;
const Arrow = String.fromCodePoint(0x2192);

return [
{
Expand All @@ -105,12 +105,12 @@ export default class NetworkStats extends Mixins(mixins.LoadingMixin, Translatio
prop: 'accounts',
},
{
title: [Ethereum, Arrow, Sora].join(' '),
title: [Ethereum, this.Arrow, Sora].join(' '),
tooltip: this.t('tooltips.bridgeTransactions', { from: Ethereum, to: Sora }),
prop: 'bridgeIncomingTransactions',
},
{
title: [Sora, Arrow, Ethereum].join(' '),
title: [Sora, this.Arrow, Ethereum].join(' '),
tooltip: this.t('tooltips.bridgeTransactions', { from: Sora, to: Ethereum }),
prop: 'bridgeOutgoingTransactions',
},
Expand Down
Loading