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.30.0 #1326

Merged
merged 1,394 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1394 commits
Select commit Hold shift + click to select a range
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
d00a6dc
Fix release 1.20 (#1141)
stefashkaa Aug 21, 2023
a515c1a
added wallet translations for swap transfer batch extrinsic
timofeytrepalin Aug 22, 2023
49aeecd
Vue 2.7.14 & update packages (#1145)
Nikita-Polyakov Aug 24, 2023
714ac41
Pools & Explore pages default sort (#1146)
Nikita-Polyakov Aug 25, 2023
9abf901
send sora card refresh token (#1140)
MaksimBaranov98 Aug 31, 2023
6945bcd
Refactoring (#1148)
MaksimBaranov98 Aug 31, 2023
b0a90cd
unify payment systems (#1048)
RustemYuzlibaev Sep 5, 2023
b8977a8
Update ethers library to v6 (#1147)
Nikita-Polyakov Sep 5, 2023
68cdf23
ADAR name is const now
timofeytrepalin Sep 6, 2023
0f1769a
Merge branch 'develop' into feature/adar-wallet-translations
timofeytrepalin Sep 6, 2023
004e16b
updated localize for adar
timofeytrepalin Sep 6, 2023
9e8f5b2
Update swap subscription (#1150)
Nikita-Polyakov Sep 6, 2023
377195c
Fix dev branch issues (#1152)
stefashkaa Sep 8, 2023
5d50dfb
fix json import (#1153)
Nikita-Polyakov Sep 8, 2023
343d69c
Merge branch 'develop' into feature/adar-wallet-translations
timofeytrepalin Sep 11, 2023
5d5ef7a
bump wallet version and update yarn lock
timofeytrepalin Sep 11, 2023
26ab290
Merge pull request #1144 from sora-xor/feature/adar-wallet-translations
timofeytrepalin Sep 11, 2023
3dce06c
Swap quote subscription (#1156)
Nikita-Polyakov Sep 12, 2023
d5c4d18
add try catch to subscriptions (#1157)
Nikita-Polyakov Sep 13, 2023
5d770f5
update wallet 1.21.8 (#1158)
Nikita-Polyakov Sep 13, 2023
b761952
allow select node while node is connecting (#1159)
Nikita-Polyakov Sep 14, 2023
556c9f7
revise & dashboard (#1129)
RustemYuzlibaev Sep 15, 2023
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
674c890
Merge branch 'develop' into release/1.30.0
stefashkaa Feb 20, 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
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.29.2",
"version": "1.30.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.29.10",
"@soramitsu/soraneo-wallet-web": "1.30.0",
"@walletconnect/ethereum-provider": "^2.11.0",
"@walletconnect/modal": "^2.6.2",
"core-js": "^3.33.2",
Expand Down
4 changes: 2 additions & 2 deletions src/components/App/Footer/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ export default class AppFooter extends Mixins(TranslationMixin) {
@state.settings.blockNumber blockNumber!: number;
@getter.libraryTheme libraryTheme!: Theme;

get blockExplorerLink(): Nullable<string> {
get blockExplorerLink(): string | undefined {
const links = getExplorerLinks(this.soraNetwork);
if (!links.length) {
return null;
return undefined;
}
return links[0].value;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/pages/Bridge/SelectNetwork.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

<script lang="ts">
import { BridgeNetworkType } from '@sora-substrate/util/build/bridgeProxy/consts';
import { SubNetworkId } from '@sora-substrate/util/build/bridgeProxy/sub/consts';
import { components } from '@soramitsu/soraneo-wallet-web';
import { Component, Mixins } from 'vue-property-decorator';

Expand Down
228 changes: 228 additions & 0 deletions src/components/pages/Kensetsu/BurnDialog.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
<template>
<dialog-base :visible.sync="isVisible" title="Reserve KEN token" custom-class="dialog--confirm-burn">
<token-input
class="token-input"
max="10000"
title="HOW MUCH KEN DO YOU WANT?"
:is-fiat-editable="false"
:token="ken"
:value="value"
@input="handleInputField"
/>
<info-line
label="XOR TO BE BURNED"
:key="getKey('xor-burned')"
:value="formattedXorWillBeBurned"
:asset-symbol="xor.symbol"
:fiat-value="formattedFiatXorWillBeBurned"
is-formatted
/>
<info-line
label="YOUR XOR BALANCE LEFT"
:key="getKey('xor-left')"
:value="formattedXorLeft"
:asset-symbol="xor.symbol"
:fiat-value="formattedFiatXorLeft"
is-formatted
value-can-be-hidden
/>
<info-line
v-if="isLoggedIn"
:label="t('networkFeeText')"
:label-tooltip="t('networkFeeTooltipText')"
:value="networkFeeFormatted"
:asset-symbol="xor.symbol"
:fiat-value="getFiatAmountByCodecString(networkFee)"
is-formatted
/>
<div class="disclaimer s-flex">
<p class="disclaimer__text p3">
Disclaimer: Burning your XOR tokens is an irreversible action that permanently removes them from your wallet.
Please proceed with caution and ensure you fully understand the implications of this transaction
</p>
<div class="disclaimer__badge s-flex">
<s-icon class="disclaimer__icon" name="notifications-alert-triangle-24" size="24" />
</div>
</div>
<template #footer>
<s-button type="primary" class="s-typography-button--large" :disabled="isBurnDisabled" @click="handleConfirmBurn">
<template v-if="isZeroAmount">
{{ t('buttons.enterAmount') }}
</template>
<template v-else-if="isAmountLessThanOne">NEED TO RESERVE MORE THAN 1</template>
<template v-else-if="isInsufficientBalance">
{{ t('insufficientBalanceText', { tokenSymbol: xor.symbol }) }}
</template>
<template v-else>RESERVE</template>
</s-button>
</template>
</dialog-base>
</template>

<script lang="ts">
import { Operation } from '@sora-substrate/util';
import { XOR } from '@sora-substrate/util/build/assets/consts';
import { api, components, mixins } from '@soramitsu/soraneo-wallet-web';
import { Component, Mixins, Watch } from 'vue-property-decorator';

import { Components } from '@/consts';
import { lazyComponent } from '@/router';
import { state, getter } from '@/store/decorators';
import { asZeroValue } from '@/utils';

import type { CodecString, NetworkFeesObject } from '@sora-substrate/util';
import type { AccountAsset, Asset } from '@sora-substrate/util/build/assets/types';

@Component({
components: {
DialogBase: components.DialogBase,
TokenLogo: components.TokenLogo,
InfoLine: components.InfoLine,
SwapTransactionDetails: lazyComponent(Components.SwapTransactionDetails),
TokenInput: lazyComponent(Components.TokenInput),
},
})
export default class BurnDialog extends Mixins(
mixins.TransactionMixin,
mixins.DialogMixin,
mixins.FormattedAmountMixin
) {
private readonly million = 1_000_000;
readonly xor = XOR;
readonly ken: Asset = {
address: '',
decimals: 18,
isMintable: true,
name: 'KEN',
symbol: 'KEN',
} as const;

@state.wallet.settings.networkFees private networkFees!: NetworkFeesObject;
@getter.assets.xor private accountXor!: Nullable<AccountAsset>;
@getter.wallet.account.isLoggedIn isLoggedIn!: boolean;

value = '';

@Watch('visible')
private async handleDialogVisibility(value: boolean): Promise<void> {
await this.$nextTick();

if (!value) return;
this.value = '';
}

/** We need to force re-render InfoLine components with dynamic content */
getKey(key: string): string {
return this.isVisible ? `${key}-opened` : `${key}-closed`;
}

private get xorWillBeBurned() {
return this.getFPNumber(+(this.value || '0') * this.million);
}

get isAmountLessThanOne(): boolean {
return +(this.value || '0') < 1;
}

get formattedXorWillBeBurned(): string {
return this.xorWillBeBurned.toLocaleString();
}

get formattedFiatXorWillBeBurned(): Nullable<string> {
return this.getFiatAmountByFPNumber(this.xorWillBeBurned, this.xor);
}

get networkFee(): CodecString {
return this.networkFees[Operation.Burn];
}

get networkFeeFormatted(): string {
return this.formatCodecNumber(this.networkFee);
}

private get xorBalance() {
return this.getFPNumberFromCodec(this.accountXor?.balance?.transferable ?? '0');
}

private get xorLeft() {
return this.xorBalance.gte(this.xorWillBeBurned) ? this.xorBalance.sub(this.xorWillBeBurned) : this.Zero;
}

get formattedXorLeft(): string {
return this.xorLeft.toLocaleString();
}

get formattedFiatXorLeft(): Nullable<string> {
return this.getFiatAmountByFPNumber(this.xorLeft, this.xor);
}

get isZeroAmount(): boolean {
return asZeroValue(this.value);
}

get isInsufficientBalance(): boolean {
const xorLeft = this.xorBalance.sub(this.xorWillBeBurned).sub(this.getFPNumberFromCodec(this.networkFee));
return xorLeft.isLtZero();
}

get isBurnDisabled(): boolean {
return this.loading || this.isZeroAmount || this.isAmountLessThanOne || this.isInsufficientBalance;
}

handleInputField(value: string): void {
if (this.value === value) return;

this.value = value;
}

async handleConfirmBurn(): Promise<void> {
if (this.isInsufficientBalance) {
this.$alert(this.t('insufficientBalanceText', { tokenSymbol: this.xor.symbol }), {
title: this.t('errorText'),
});
this.$emit('confirm');
} else {
try {
await this.withNotifications(async () => {
await api.assets.burn(this.xor, this.xorWillBeBurned.toString());
});
this.$emit('confirm', true);
} catch (error) {
this.$emit('confirm');
}
}
this.isVisible = false;
}
}
</script>

<style lang="scss" scoped>
.token-input {
margin-bottom: $basic-spacing;
}
.disclaimer {
align-items: flex-start;
margin-top: $basic-spacing;
padding: $inner-spacing-medium;
width: 100%;
background-color: var(--s-color-base-background);
border-radius: var(--s-border-radius-small);
box-shadow: var(--s-shadow-dialog);
&__text {
flex: 1;
}
&__badge {
border-radius: 50%;
background-color: var(--s-color-status-error);
box-shadow: var(--s-shadow-element-pressed);
margin-left: $inner-spacing-mini;
width: 42px;
height: 42px;
align-items: center;
justify-content: center;
}
&__icon {
color: white;
}
}
</style>
Loading