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.28.0 #1286

Merged
merged 1,362 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1362 commits
Select commit Hold shift + click to select a range
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
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
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
edba765
Merge branch 'develop' into release/1.28.0
stefashkaa Jan 23, 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: 3 additions & 1 deletion env.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
"CHAIN_GENESIS_HASH": "0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5",
"SUB_NETWORKS": {
"Kusama": "wss://kusama-rpc.polkadot.io",
"KusamaSora": "wss://ws.parachain-collator-1.c1.sora2.soramitsu.co.jp"
"KusamaSora": "wss://ws.parachain-collator-2.c2.sora2.soramitsu.co.jp",
"Polkadot": "wss://rpc.polkadot.io",
"PolkadotSora": "wss://ws.parachain-collator-3.pc3.sora2.soramitsu.co.jp"
},
"EVM_NETWORKS_IDS": [56, 8217],
"ETH_BRIDGE": {
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.27.3",
"version": "1.28.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.27.3",
"@soramitsu/soraneo-wallet-web": "1.28.0",
"@walletconnect/ethereum-provider": "^2.11.0",
"@walletconnect/modal": "^2.6.2",
"core-js": "^3.33.2",
Expand Down
2 changes: 2 additions & 0 deletions src/components/mixins/NetworkFormatterMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export default class NetworkFormatterMixin extends Mixins(TranslationMixin) {
// sub
case SubNetworkId.Polkadot:
return 'polkadot';
case SubNetworkId.PolkadotSora:
return 'sora-polkadot';
case SubNetworkId.Kusama:
return 'kusama';
case SubNetworkId.Rococo:
Expand Down
8 changes: 2 additions & 6 deletions src/components/pages/Bridge/SelectNetwork.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,8 @@ export default class BridgeSelectNetwork extends Mixins(NetworkFormatterMixin) {
return networks.reduce<NetworkItem[]>((buffer, { disabled, data: { id, name } }) => {
let content = '';
let link = false;
if (id === SubNetworkId.Polkadot) {
content = 'https://parachains.info/details/sora_polkadot';
link = true;
} else if (disabled) {
if (disabled) {
content = this.t('comingSoonText');
}
Expand All @@ -100,7 +96,7 @@ export default class BridgeSelectNetwork extends Mixins(NetworkFormatterMixin) {
disabled,
info: {
content,
link,
link: false, // if content should be a link
},
});
Expand Down
18 changes: 18 additions & 0 deletions src/consts/sub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ export const SUB_NETWORKS: Partial<Record<SubNetwork, NetworkData>> = {
blockExplorerUrls: [],
shortName: 'SORA KSM',
},
[SubNetworkId.PolkadotSora]: {
id: SubNetworkId.PolkadotSora,
name: 'SORA Polkadot Parachain',
nativeCurrency: {
name: 'XOR',
symbol: 'XOR',
decimals: 18,
},
endpointUrls: [],
blockExplorerUrls: [],
shortName: 'SORA DOT',
},
};

export const SUB_TRANSFER_FEES: SubNetworksFees = {
Expand All @@ -82,4 +94,10 @@ export const SUB_TRANSFER_FEES: SubNetworksFees = {
[BridgeTxDirection.Incoming]: '0',
},
},
[SubNetworkId.Polkadot]: {
DOT: {
[BridgeTxDirection.Outgoing]: '21062795',
[BridgeTxDirection.Incoming]: '0',
},
},
};
13 changes: 9 additions & 4 deletions src/indexer/queries/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const SubqueryAssetsQuery = gql<SubqueryConnectionQueryResponse<SubqueryAssetEnt
priceChangeWeek
volumeDayUSD
volumeWeekUSD
liquidityUSD
liquidity
velocity
}
}
Expand All @@ -63,7 +63,7 @@ const SubsquidAssetsQuery = gql<SubsquidConnectionQueryResponse<SubsquidAssetEnt
priceChangeWeek
volumeDayUSD
volumeWeekUSD
liquidityUSD
liquidity
velocity
}
}
Expand All @@ -72,14 +72,19 @@ const SubsquidAssetsQuery = gql<SubsquidConnectionQueryResponse<SubsquidAssetEnt
`;

const parse = (item: SubqueryAssetEntity | SubsquidAssetEntity): Record<string, TokenData> => {
const priceUSD = new FPNumber(item.priceUSD ?? 0);
const liquidityPools = FPNumber.fromCodecValue(item.liquidity ?? 0);
const liquidity = liquidityPools;
const tvlUSD = liquidity.mul(priceUSD);

return {
[item.id]: {
priceUSD: new FPNumber(item.priceUSD ?? 0),
priceUSD,
priceChangeDay: new FPNumber(item.priceChangeDay ?? 0),
priceChangeWeek: new FPNumber(item.priceChangeWeek ?? 0),
volumeDayUSD: new FPNumber(item.volumeDayUSD ?? 0),
volumeWeekUSD: new FPNumber(item.volumeWeekUSD ?? 0),
tvlUSD: new FPNumber(item.liquidityUSD ?? 0),
tvlUSD,
velocity: new FPNumber(item.velocity ?? 0),
},
};
Expand Down
8 changes: 8 additions & 0 deletions src/store/web3/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ const actions = defineActions({
});
},

/**
* Only for assets, created in SORA network!
* "Thischain" for SORA, "Sidechain" for EVM
*/
async getEvmTokenAddressByAssetId(context, soraAssetId: string): Promise<string> {
const { getters } = web3ActionContext(context);
try {
Expand All @@ -210,6 +214,10 @@ const actions = defineActions({
const contractInstance = new ethers.Contract(contractAddress, contractAbi, signer);
const methodArgs = [soraAssetId];
const externalAddress = await contractInstance._sidechainTokens(...methodArgs);
// Not (wrong) registered Sora asset on bridge contract return '0' address (like native token)
if (ethersUtil.isNativeEvmTokenAddress(externalAddress)) {
throw new Error('Asset is not registered');
}
return externalAddress;
} catch (error) {
console.error(soraAssetId, error);
Expand Down
2 changes: 1 addition & 1 deletion src/styles/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $country-emoji-font: 'Twemoji Country Flags';
}

$networks: 'sora', 'ethereum', 'ethereum-classic', 'avalanche', 'klaytn', 'polygon', 'binance-smart-chain', 'rococo', 'karura', 'polkadot', 'kusama';
$sora-parachains: 'sora' 'rococo', 'sora' 'kusama';
$sora-parachains: 'sora' 'rococo', 'sora' 'kusama', 'sora' 'polkadot';
/* Networks Icons */
.network-icon {
display: inline-block;
Expand Down
25 changes: 17 additions & 8 deletions src/utils/bridge/sub/classes/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class SoraParachainAdapter extends SubAdapter {
}
}

class KusamaAdapter extends SubAdapter {
class RelaychainAdapter extends SubAdapter {
protected getTransferExtrinsic(asset: RegisteredAsset, recipient: string, amount: number | string) {
const value = new FPNumber(amount, asset.externalDecimals).toCodecString();

Expand Down Expand Up @@ -202,12 +202,19 @@ class KusamaAdapter extends SubAdapter {
try {
return await super.getNetworkFee(asset, sender, recipient);
} catch {
// Hardcoded value for Rococo - 0.000125 ROC
if (this.subNetwork === SubNetworkId.Rococo) {
return '125810197';
switch (this.subNetwork) {
case SubNetworkId.Rococo:
// Hardcoded value for Rococo - 0.000125 ROC
return '125810197';
case SubNetworkId.Kusama:
// Hardcoded value for Kusama - 0.0007 KSM
return '700000000';
case SubNetworkId.Polkadot:
// Hardcoded value for Polkadot - 0.01836 DOT
return '183600000';
default:
return '0';
}
// Hardcoded value for Kusama - 0.0007 KSM
return '700000000';
}
}
}
Expand All @@ -228,10 +235,12 @@ export class SubNetworksConnector {
public static endpoints: SubNetworkApps = {};

public readonly adapters = {
[SubNetworkId.Rococo]: () => new KusamaAdapter(SubNetworkId.Rococo),
[SubNetworkId.Kusama]: () => new KusamaAdapter(SubNetworkId.Kusama),
[SubNetworkId.Rococo]: () => new RelaychainAdapter(SubNetworkId.Rococo),
[SubNetworkId.Kusama]: () => new RelaychainAdapter(SubNetworkId.Kusama),
[SubNetworkId.Polkadot]: () => new RelaychainAdapter(SubNetworkId.Polkadot),
[SubNetworkId.RococoSora]: () => new SoraParachainAdapter(SubNetworkId.RococoSora),
[SubNetworkId.KusamaSora]: () => new SoraParachainAdapter(SubNetworkId.KusamaSora),
[SubNetworkId.PolkadotSora]: () => new SoraParachainAdapter(SubNetworkId.PolkadotSora),
};

get uniqueConnections(): SubNetworkConnection<SubAdapter>[] {
Expand Down
2 changes: 2 additions & 0 deletions src/views/BridgeTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ export default class BridgeTransaction extends Mixins(
}
get txInternalHash(): string {
if (!this.isOutgoing) return this.txSoraHash;
return this.txSoraHash || this.txSoraBlockId || this.txSoraId;
}
Expand Down
84 changes: 42 additions & 42 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2349,68 +2349,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.27.9":
version "1.27.9"
resolved "https://registry.yarnpkg.com/@sora-substrate/api/-/api-1.27.9.tgz#7a6ff8ddde286eccdd8e3dba123c1ee53eaee2d9"
integrity sha512-OS0fOKcNAGd5dsYi46lXJof9+ekNefimeaDPQ56tQ96mEQC1374Xjwsp3VbymTLy/Mf6gq+YZCZccIktcMOIsw==
"@sora-substrate/api@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@sora-substrate/api/-/api-1.28.0.tgz#9534b4621db69d457e758de8d2d8477f5743d04d"
integrity sha512-2OlJE4AVKw22QLJWMQOLRmAnPOY2IdRpo15Vb410dQZ//whAWeCdb+z2gso/xzBbBAKkJMTDN18TdCSHLhwEnQ==
dependencies:
"@open-web3/orml-api-derive" "1.1.4"
"@polkadot/api" "9.14.2"
"@sora-substrate/types" "1.27.9"
"@sora-substrate/types" "1.28.0"

"@sora-substrate/connection@1.27.9":
version "1.27.9"
resolved "https://registry.yarnpkg.com/@sora-substrate/connection/-/connection-1.27.9.tgz#985fb485bf94b904c4aa92485c0673a0b844a1cd"
integrity sha512-SSEzQOLvrhYyXZbVTvRfShf+9YJcA84jSsOtl81WaRSNd9AGv/v8LxoGfMS7PrJHzAPzziM+0Gd1wK0kqMI4qQ==
"@sora-substrate/connection@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@sora-substrate/connection/-/connection-1.28.0.tgz#9ca8790b561ee417e67f3fcd91001593f522807e"
integrity sha512-11HEICfy3JwtdRGJwJMB4/Z4SINUf4kcn5PcsCKwZMC5DZDQADylp7pcy6UwGcr/Eq4hwvl6iI6R5XH9lXLuqQ==
dependencies:
"@sora-substrate/api" "1.27.9"
"@sora-substrate/api" "1.28.0"

"@sora-substrate/liquidity-proxy@1.27.9":
version "1.27.9"
resolved "https://registry.yarnpkg.com/@sora-substrate/liquidity-proxy/-/liquidity-proxy-1.27.9.tgz#86877b25e28c1730c45aaf0d171b37a2ccdf8246"
integrity sha512-gSZlo9976G6WXewpEeX8GB30T8UPMpvrTWen71jEEYl4T+EYVSG5HGEpbN5Ijbe+wd5lhZENs+23CnBYTIlmXg==
"@sora-substrate/liquidity-proxy@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@sora-substrate/liquidity-proxy/-/liquidity-proxy-1.28.0.tgz#c036dc55219116aaffb3ba78efb849241d492f32"
integrity sha512-IwF4rJtq/6GzkeyRgP9/gIPZ6McxxKjLonQXMqGFKdZVy/1rnZXWXhZQLJ+V3btRdSNszsgM6Mzoi26Civ7vsw==
dependencies:
"@sora-substrate/math" "1.27.9"
"@sora-substrate/math" "1.28.0"

"@sora-substrate/math@1.27.9":
version "1.27.9"
resolved "https://registry.yarnpkg.com/@sora-substrate/math/-/math-1.27.9.tgz#c8b3803f35f6d767c01c61c20066ab1445fb786c"
integrity sha512-xiFBE3XBNtnLhPJrknO5eSGXVdZ2ligqnuO3Sh9IbZAobteqOm9chRxDr3qFDV1+wrT6w6pdXYYz5Ohm+/vSTw==
"@sora-substrate/math@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@sora-substrate/math/-/math-1.28.0.tgz#289681ad1b9d23b52a5158c5eadfa8a94391504e"
integrity sha512-ouTCvQPAyiIAT2hqkGIXqPVVbK3Q7tHQC6PUhTPVIjljL+64ybI9+z1LZz08oK2KHu1kHU3x3Txz9yHMMr+U/w==
dependencies:
"@polkadot/types" "9.14.2"
bignumber.js "^9.0.1"
lodash "^4.17.15"

"@sora-substrate/type-definitions@1.27.9":
version "1.27.9"
resolved "https://registry.yarnpkg.com/@sora-substrate/type-definitions/-/type-definitions-1.27.9.tgz#b564c6cf4b0d6abb5b4aabbf388d105cf78ea140"
integrity sha512-G/coyt9QOf4XeqMzMfu4fPJaa75EOhH7ys1y3ESDfMK7pCsrzzDmClfJ3cTRDb1cO/HHsUBAMcVlyXPTM/vHgQ==
"@sora-substrate/type-definitions@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@sora-substrate/type-definitions/-/type-definitions-1.28.0.tgz#64b99491622ad4923c70c652db28e39ef17c5403"
integrity sha512-BYfv5ZXl8fGnXoUgQkB55UaF5jM2k1aCjVz0l6o19dlXJeXDRNAeLzr2GRcvuEyb57AifqceTPEchcghDqe1Pw==
dependencies:
"@open-web3/orml-type-definitions" "1.1.4"

"@sora-substrate/types@1.27.9":
version "1.27.9"
resolved "https://registry.yarnpkg.com/@sora-substrate/types/-/types-1.27.9.tgz#a8f3ebacb0aaaeb598ffcf7bc16a2a8bf284fcd3"
integrity sha512-Q4vP0Lq6Xi9r/75If/12HSUiFVQEKa/vH/eF1sdvWFYSUikOuyWeJKOhuE+YYwzq2utUNF+W9peAveWXPkShxg==
"@sora-substrate/types@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@sora-substrate/types/-/types-1.28.0.tgz#332e0af02496436ccf9f4ea26b90fb3686c20872"
integrity sha512-ce2OhFr5BWKUCY4ot6OGOllt1EwHvC7WBZ/ORWmSMVtYr5qVbl13gwBnU94MVUD9T//gw9/Y28fb0CVQ4674fA==
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.27.9"
"@sora-substrate/type-definitions" "1.28.0"

"@sora-substrate/util@1.27.9":
version "1.27.9"
resolved "https://registry.yarnpkg.com/@sora-substrate/util/-/util-1.27.9.tgz#8d1862278496e21f9aa40e3967149b86bba27ea0"
integrity sha512-aaVnLAAY8gAvCm4vQJjP/cibsisZv2EkDhuuL1UFlaCKBKFfU+CJTBy/CmxR7lIExEYzQBQfNIVMaqc8K76ASQ==
"@sora-substrate/util@1.28.0":
version "1.28.0"
resolved "https://registry.yarnpkg.com/@sora-substrate/util/-/util-1.28.0.tgz#2fa20c0252f03da8d9ffd170b478b2d97168f941"
integrity sha512-FoN6dyEIgqUbYjBPKKBJwKCK4MIRpHcs0rLRqqqB0GCcp1hfCwihYmru/mhZOs5qFmq9WqMFzK0k0FgPYlCRdw==
dependencies:
"@polkadot/ui-keyring" "2.12.1"
"@sora-substrate/api" "1.27.9"
"@sora-substrate/connection" "1.27.9"
"@sora-substrate/liquidity-proxy" "1.27.9"
"@sora-substrate/math" "1.27.9"
"@sora-substrate/types" "1.27.9"
"@sora-substrate/api" "1.28.0"
"@sora-substrate/connection" "1.28.0"
"@sora-substrate/liquidity-proxy" "1.28.0"
"@sora-substrate/math" "1.28.0"
"@sora-substrate/types" "1.28.0"
axios "^0.21.1"
crypto-js "^4.0.0"
lodash "^4.17.15"
Expand Down Expand Up @@ -2443,13 +2443,13 @@
vue-property-decorator "^9.1.2"
vuex "^3.6.2"

"@soramitsu/soraneo-wallet-web@1.27.3":
version "1.27.3"
resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.27.3.tgz#b2439ec0d44fc07a3bce0f010a38d2bb6353bd19"
integrity sha512-ufr2Ll/bYFLPw5897uR02bK7YlGUg90fNEtaLN/gg1ZMys5hyVUt//dCoy+SRzAapqPHnhNJx+JbmnyyEPuSAg==
"@soramitsu/soraneo-wallet-web@1.28.0":
version "1.28.0"
resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.28.0.tgz#a0bbc34aecd369aba3259e322eb9e0b23734d726"
integrity sha512-+n8Y3FpeG511FaszYpqeIziSTtFKOfYg7WjAvZ1TxtKCk14zuRijcYnR8awd4aJA2v5+SOBvg2h/Tw2s6VF9TQ==
dependencies:
"@polkadot/vue-identicon" "2.12.1"
"@sora-substrate/util" "1.27.9"
"@sora-substrate/util" "1.28.0"
"@sora-test/wallet-connect" "^0.0.9"
"@soramitsu/soramitsu-js-ui" "^1.0.46"
"@urql/core" "^4.1.2"
Expand Down