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

v2.0.15 #551

Merged
merged 222 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
c70d7f5
feat: Change border radius to left when Activity tab is selected
Nov 16, 2023
42dccd0
chore: improve coingecko 429
lucaslovato Nov 16, 2023
aa213a0
Merge branch 'develop' of github.com:syscoin/pali-wallet into improve…
lucaslovato Nov 16, 2023
8b900e9
chore: add state to avoid unnecessary calls
lucaslovato Nov 16, 2023
5ca08ed
feat: Finishing changes at the main Assets tab at Home for SYS UTXO
Nov 20, 2023
a439736
feat: Change the header styles at the Import Token and Assets Details…
Nov 20, 2023
0ba6fd7
feat: Implement new styles and icons to SyscoinImport component, the …
Nov 21, 2023
0252d46
feat: Remove duplicated colors on pallete and finish the Import Token…
Nov 22, 2023
46408e5
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Nov 22, 2023
36a3374
fix: remove not used imports
GabrielPrediger Nov 22, 2023
6f00f19
fix: changed the modal of Token Successfuly Added
GabrielPrediger Nov 22, 2023
ee34bee
feat: Finishing styles for Assets Details page component for SYS UTXO
Nov 22, 2023
db493d9
Merge branch 'feat/new-assets-ui' of https://github.com/syscoin/pali-…
Nov 22, 2023
1fe8424
fix: Fix the padding and gap values at SyscoinList component
Nov 23, 2023
ca01793
feat: Implement new styles and fix the names and functions to work pr…
Nov 23, 2023
05a4117
feat: Implement new styles to Assets Details component on EVM
Nov 23, 2023
7ea7361
feat: Change the styles on the EVM Assets List at the Home page
Nov 23, 2023
ed3144c
feat: Starting to implement the Assets Header for EVM
Nov 28, 2023
93bc96b
feat: Assets filters based on the Assets Header is working now
Nov 28, 2023
59ff3ae
feat: created the states to the error
GabrielPrediger Nov 29, 2023
8a281cc
feat: header and warn text
GabrielPrediger Nov 29, 2023
088c4be
fix: colors and details
GabrielPrediger Nov 29, 2023
98a6932
feat: create network list component
GabrielPrediger Nov 29, 2023
aa97701
fix: conditions utxo to evm
GabrielPrediger Nov 29, 2023
d5e99fc
feat: create the logic arround the change network
GabrielPrediger Nov 29, 2023
4209413
fix: state fixes
GabrielPrediger Nov 29, 2023
4ccfa12
chore: fix build error on routes
GabrielPrediger Nov 29, 2023
4eb0242
fix: set modal off on connect
GabrielPrediger Nov 29, 2023
2a01ac1
chore: implement alternative flow in connect account
lucasgabrielgsp Nov 30, 2023
4e21b4d
fix: style fixes and remoeved consoles
GabrielPrediger Dec 1, 2023
84a8ab1
feat: add isTestnet property in network object
lucasgabrielgsp Dec 1, 2023
c257aa8
chore: merge changes from develop
lucasgabrielgsp Dec 1, 2023
4d72135
feat: chain connect fail page UI and logic
GabrielPrediger Dec 4, 2023
fa6a6a6
fix: usenavigate problem
GabrielPrediger Dec 4, 2023
1655a2f
style: edit rpc
GabrielPrediger Dec 5, 2023
e9271d9
feat: NetworkList component change to receive infos from chain error …
GabrielPrediger Dec 5, 2023
813449b
fix: edit rpc and change network validations problems
GabrielPrediger Dec 5, 2023
a59c27a
feat: Starting to implement sysweb3 functions to get and display user…
Dec 6, 2023
04b4fd0
feat: Now we storage the NFTs value received from the default request…
Dec 6, 2023
92fc694
feat: created nft list
GabrielPrediger Dec 6, 2023
25127a5
Merge branch 'feat/add-istestnet-prop' of https://github.com/syscoin/…
GabrielPrediger Dec 6, 2023
3590a9e
fix: isTestnet from networks state
GabrielPrediger Dec 6, 2023
29a0bb9
Merge branch 'feat/implement-nfts' of https://github.com/syscoin/pali…
GabrielPrediger Dec 6, 2023
9654240
feat: Implement comparation method as like we use to assets but for n…
Dec 6, 2023
9030b92
chore: fix merge problems
Dec 6, 2023
5574106
feat: Create the NFTs Details page, it's almost done per now
Dec 7, 2023
12cd9db
feat: Finishing Nfts Details page
Dec 7, 2023
0720368
fix: created a condition for nft that can be mp4 format
GabrielPrediger Dec 7, 2023
a93b377
Merge branch 'feat/implement-nfts' of https://github.com/syscoin/pali…
GabrielPrediger Dec 7, 2023
4e67a4a
remove unnecessary files
GabrielPrediger Dec 7, 2023
d6138a1
style: default collection image
GabrielPrediger Dec 7, 2023
040bc80
style: default collection image
GabrielPrediger Dec 7, 2023
b71bfb2
fix: getchainimage
GabrielPrediger Dec 7, 2023
aa9f2e7
fix: Fix NFTs state comparations, now we keep the NFTs that was in st…
Dec 7, 2023
7a650f9
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
Dec 7, 2023
e24f310
feat: Fix token_id display to be with ellipsis on NftsDetails if the…
Dec 7, 2023
abfbe93
feat: Validate getUserNftsByNetwork to only fetch NFTs to Syscoin and…
Dec 7, 2023
f92b5a6
chore: review changes
GabrielPrediger Dec 7, 2023
978cfa9
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Dec 7, 2023
fed7bf7
style: changed colors from Eli feedback
GabrielPrediger Dec 7, 2023
f5a1766
chore: comment unused fake button
lucasgabrielgsp Dec 8, 2023
0775b55
chore: Implement migration code to validate if NFTs state exists and …
Dec 8, 2023
fcc9d03
chore: Clear unecessary imports and codes and did some requested changes
Dec 8, 2023
437106b
fix: Fix NFTs updated state not being displayed at NFTs list after st…
Dec 8, 2023
40613dc
chore: lint
GabrielPrediger Dec 8, 2023
05cea1a
fix: solve wrong behavior in explorer field
lucasgabrielgsp Dec 8, 2023
0120dbd
Merge pull request #518 from syscoin/fix/explorer-field
lucasgabrielgsp Dec 8, 2023
938c23d
chore: merge changes from develop
lucasgabrielgsp Dec 8, 2023
68074f8
Merge pull request #516 from syscoin/style/layout-mini-review
lucasgabrielgsp Dec 8, 2023
2eaa161
chore: merge changes from develop
lucasgabrielgsp Dec 8, 2023
96151f3
chore: update packages version
lucasgabrielgsp Dec 8, 2023
c29afca
Merge pull request #512 from syscoin/feat/new-switch-network-page
lucasgabrielgsp Dec 8, 2023
72d95c4
chore: merge changes from develop
lucasgabrielgsp Dec 8, 2023
845ba20
fix: type error
lucasgabrielgsp Dec 8, 2023
58b032e
fix: type error
lucasgabrielgsp Dec 8, 2023
074a6e8
chore: merge changes
lucasgabrielgsp Dec 8, 2023
453016a
Merge pull request #515 from syscoin/feat/new-chain-conect-fail-page
lucasgabrielgsp Dec 8, 2023
76d2ed2
chore: merge changes from develop
lucasgabrielgsp Dec 8, 2023
c5a720d
chore: merge changes
lucasgabrielgsp Dec 8, 2023
6acba2d
Merge pull request #514 from syscoin/feat/implement-nfts
lucasgabrielgsp Dec 8, 2023
fbb4347
chore: added translation on new files
GabrielPrediger Dec 11, 2023
07ac564
chore: added translation on new files
GabrielPrediger Dec 11, 2023
5d8ac12
style: new style when you have not transaction
GabrielPrediger Dec 11, 2023
8795276
feat: create a hook to infos from transactinos and organized the code
GabrielPrediger Dec 11, 2023
5f8ab35
feat: EVM acitivity transactions layout
GabrielPrediger Dec 12, 2023
7568690
chore: types and files organization
GabrielPrediger Dec 13, 2023
cf4fd45
feat: utxo transaction new layout
GabrielPrediger Dec 13, 2023
fa68a5d
feat: new edit tx layout
GabrielPrediger Dec 13, 2023
3023843
chore: merge changes from develop
lucasgabrielgsp Dec 14, 2023
c81ded8
Merge pull request #522 from syscoin/improve-coingecko-429
lucasgabrielgsp Dec 14, 2023
1fae52d
feat: new tx detail layout
GabrielPrediger Dec 14, 2023
ac015a1
fix: tx details value
GabrielPrediger Dec 15, 2023
a5fb60a
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Dec 15, 2023
c58fd90
feat: merge changes from dev and get token symbol from tx
lucasgabrielgsp Dec 19, 2023
10f15ab
feat: get tx value
lucasgabrielgsp Dec 19, 2023
33baca2
Merge branch 'feat/new-activity-layout' of https://github.com/syscoin…
GabrielPrediger Dec 19, 2023
e436f6c
style: changed and fixed styles from review
GabrielPrediger Dec 19, 2023
b6d406d
fix: remove scientifc notation
lucasgabrielgsp Dec 19, 2023
0c829d2
chore: merge changes
lucasgabrielgsp Dec 19, 2023
032469a
fix: solve token balance bug
lucasgabrielgsp Dec 20, 2023
5da4708
Merge pull request #524 from syscoin/fix/token-balance
lucasgabrielgsp Dec 20, 2023
1f7a15f
fix[wip]: solve cancel/speed tx bug partially
lucasgabrielgsp Dec 20, 2023
9a3f483
chore: merge changes from develop
lucasgabrielgsp Dec 20, 2023
e07bd90
fix: general fixes
lucasgabrielgsp Dec 21, 2023
2e49fd9
fix: general fixes
lucasgabrielgsp Dec 21, 2023
3a4a260
style: new forhet wallet UI/UX layout
GabrielPrediger Jan 2, 2024
4cb9700
style: new wallet phrase UI/UX layout
GabrielPrediger Jan 2, 2024
a67bc4d
fix: seed and button style
GabrielPrediger Jan 2, 2024
3884883
style: new language page layout
GabrielPrediger Jan 3, 2024
ca79c1d
style: new info/help page
GabrielPrediger Jan 3, 2024
1f4690a
style: new autlock page layout and new input feature
GabrielPrediger Jan 3, 2024
3c707bc
chore: unused imports, consoles, improve code
GabrielPrediger Jan 10, 2024
7a6e860
chore: improve code
GabrielPrediger Jan 10, 2024
53e72b0
chore: improve code
GabrielPrediger Jan 10, 2024
9a31cbf
chore: improve code, removed unused imports
GabrielPrediger Jan 10, 2024
e11fc79
chore: removed unused things
GabrielPrediger Jan 10, 2024
1c90242
chore: improve code
GabrielPrediger Jan 10, 2024
001b305
chore: removed unused imports
GabrielPrediger Jan 10, 2024
dba8130
chore: already defined variable
GabrielPrediger Jan 10, 2024
26caf3f
chore: removed component
GabrielPrediger Jan 10, 2024
a8aa630
chore: removed unused imports
GabrielPrediger Jan 10, 2024
9d42173
fix: removed getChainIdPriority fnc from .sort
GabrielPrediger Jan 15, 2024
6dbddd8
chore: put fnc on util path
GabrielPrediger Jan 15, 2024
1f884bd
fix: add removed save button
lucasgabrielgsp Jan 16, 2024
c467d39
Merge pull request #530 from syscoin/style/new-language-page-layout
lucasgabrielgsp Jan 16, 2024
dc5a526
chore: merge changes from develop
lucasgabrielgsp Jan 16, 2024
aba9117
Merge pull request #529 from syscoin/style/new-autolock-page-layout
lucasgabrielgsp Jan 16, 2024
66d367e
chore: merge changes from develop
lucasgabrielgsp Jan 16, 2024
dbd8ebb
Merge pull request #528 from syscoin/style/new-info-help-page/layout
lucasgabrielgsp Jan 16, 2024
be9c46d
chore: merge changes from develop
lucasgabrielgsp Jan 16, 2024
c771eea
Merge pull request #527 from syscoin/feat/new-forget-wallet-layout
lucasgabrielgsp Jan 16, 2024
86453ec
chore: merge changes from develop
lucasgabrielgsp Jan 16, 2024
1ecd76a
Merge pull request #526 from syscoin/feat/new-wallet-seed-phares-layout
lucasgabrielgsp Jan 16, 2024
d7691d3
chore: merge changes from develop
lucasgabrielgsp Jan 16, 2024
41fac2d
fix: general fixes
lucasgabrielgsp Jan 16, 2024
be6464c
Merge pull request #525 from syscoin/feat/new-activity-layout
lucasgabrielgsp Jan 16, 2024
c2686e9
chore: merge changes from develop
lucasgabrielgsp Jan 16, 2024
0e779f0
Merge pull request #523 from syscoin/style/switch-chain-review
lucasgabrielgsp Jan 16, 2024
810de78
chore: merge changes from develop
lucasgabrielgsp Jan 16, 2024
029faa5
Merge pull request #520 from syscoin/chore/translation-on-new-files
lucasgabrielgsp Jan 16, 2024
362998b
style: account header zindex
GabrielPrediger Jan 22, 2024
116f7f5
fix: timestamp fn
GabrielPrediger Jan 22, 2024
d9a90a3
chore: remove clg
GabrielPrediger Jan 22, 2024
7d5c471
feat(create-account): new layout
GabrielPrediger Jan 22, 2024
505aedc
style(import-account): removed some styles
GabrielPrediger Jan 22, 2024
9377cb0
style(import-account): changed input style
GabrielPrediger Jan 22, 2024
71571dc
chore: update package version
lucasgabrielgsp Jan 22, 2024
6b6e121
Merge pull request #532 from syscoin/fix/review-adjustments
lucasgabrielgsp Jan 22, 2024
b8bfb60
style(import-account): left styles
GabrielPrediger Jan 22, 2024
228fe29
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 22, 2024
bda5bfb
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 22, 2024
ec4b50f
feat(currency-page): new layout
GabrielPrediger Jan 22, 2024
df43369
feat(SendTransactions):method, value, type new UI
GabrielPrediger Jan 22, 2024
44c7fab
feat(SendTransactions): tx details tab
GabrielPrediger Jan 22, 2024
6ccb642
feat(SendTransactions): tx data tab
GabrielPrediger Jan 22, 2024
fa1d4c3
feat(SendTransactions): tx hex tab
GabrielPrediger Jan 22, 2024
e1c2e08
feat(SendTransactions): tx hex tab
GabrielPrediger Jan 22, 2024
43f9d67
feat(SendTransactions): buttons
GabrielPrediger Jan 23, 2024
146e315
feat(ConfirmTransactions): style
GabrielPrediger Jan 23, 2024
e75642e
feat(Signature): new layout
GabrielPrediger Jan 23, 2024
20a49df
feat(Signature): new layout
GabrielPrediger Jan 23, 2024
bcb778e
chore(Icon): removed unussed import
GabrielPrediger Jan 23, 2024
39a9385
chore(Icon): removed unussed import
GabrielPrediger Jan 23, 2024
6571066
chore(state): removed unussed import
GabrielPrediger Jan 23, 2024
e2ed7a1
fix(inputs): resized
GabrielPrediger Jan 24, 2024
81ad4d4
Merge branch 'feat/signature-new-layout' of https://github.com/syscoi…
GabrielPrediger Jan 24, 2024
be9ac0b
feat(SendEvm): new layout of step 1
GabrielPrediger Jan 24, 2024
1a71d07
feat(SendEvm): new layout of step 2 confirm
GabrielPrediger Jan 24, 2024
1b61588
feat: implement EIP-6963
lucasgabrielgsp Jan 25, 2024
2189aa8
feat(SendEvm): new layout of step 2 edit fee
GabrielPrediger Jan 25, 2024
995307e
feat(SendEvm): new layout of step 2 edit fee
GabrielPrediger Jan 25, 2024
8bdcf27
Merge pull request #540 from syscoin/fix/inputs-size
lucasgabrielgsp Jan 26, 2024
96e433d
fix(ImportToken): icons position
GabrielPrediger Jan 26, 2024
275ded5
feat(SendEvm): select token layout
GabrielPrediger Jan 26, 2024
2ae8816
feat(Receive): receive new style
GabrielPrediger Jan 26, 2024
976277d
feat(Receive): receive new style
GabrielPrediger Jan 26, 2024
c5a3862
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 26, 2024
1cc4181
feat(SendUtxo): new layout of step 1
GabrielPrediger Jan 26, 2024
efad21b
fix: solve internal error in send eth page
lucasgabrielgsp Jan 31, 2024
0b78c7f
feat(SendEvm): fee modal layout
GabrielPrediger Jan 31, 2024
c76345a
Merge branch 'feat/send-new-layout' of https://github.com/syscoin/pal…
GabrielPrediger Jan 31, 2024
1e52af7
chore: remove unused imports
GabrielPrediger Jan 31, 2024
8b29b55
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 31, 2024
6bdace9
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 31, 2024
b5fb007
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 31, 2024
3aa89c1
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 31, 2024
77c76f5
Merge branch 'develop' of https://github.com/syscoin/pali-wallet into…
GabrielPrediger Jan 31, 2024
d0eebb0
Merge pull request #546 from syscoin/fix/internal-error-bug
lucasgabrielgsp Feb 1, 2024
e0aa7a2
Merge pull request #541 from syscoin/feat/EIP-6963
lucasgabrielgsp Feb 1, 2024
e9d5461
Merge pull request #545 from syscoin/feat/send-utxo-new-layout
lucasgabrielgsp Feb 1, 2024
4308793
Merge pull request #543 from syscoin/feat/receive-new-layout
lucasgabrielgsp Feb 1, 2024
ede976e
fix: UI hotfix
lucasgabrielgsp Feb 1, 2024
a2cbb6f
Merge pull request #539 from syscoin/feat/signature-new-layout
lucasgabrielgsp Feb 1, 2024
7ffe138
chore: merge changes from feat/send-new-layout
lucasgabrielgsp Feb 1, 2024
8f935b5
Merge pull request #542 from syscoin/fix/import-token-icons
lucasgabrielgsp Feb 1, 2024
88d6b5f
fix: UI hotfix
lucasgabrielgsp Feb 1, 2024
236b402
chore: merge changes from develop
lucasgabrielgsp Feb 1, 2024
8c503ca
Merge pull request #538 from syscoin/feat/transactions-new-layout
lucasgabrielgsp Feb 1, 2024
427309c
chore: merge changes from develop
lucasgabrielgsp Feb 1, 2024
3c59079
Merge pull request #544 from syscoin/feat/send-new-layout
lucasgabrielgsp Feb 1, 2024
5c9f1f9
chore: merge changes from develop
lucasgabrielgsp Feb 1, 2024
576ac23
Merge pull request #535 from syscoin/feat/currency-layout
lucasgabrielgsp Feb 1, 2024
5901db8
chore: merge changes from develop
lucasgabrielgsp Feb 1, 2024
14f6163
Merge pull request #534 from syscoin/feat/import-account-layout
lucasgabrielgsp Feb 1, 2024
6cecf1d
chore: merge changes from develop
lucasgabrielgsp Feb 1, 2024
54f1635
Merge pull request #533 from syscoin/feat/new-create-account-layout
lucasgabrielgsp Feb 1, 2024
7e3eef1
fix(send): max button
GabrielPrediger Feb 6, 2024
9b213ea
chore: update pali version
lucasgabrielgsp Feb 7, 2024
da14fb7
chore: remove console.log
lucasgabrielgsp Feb 7, 2024
f0fe3e9
Merge pull request #547 from syscoin/fix/send-max-button
lucasgabrielgsp Feb 7, 2024
14b900d
fix: infinite warning loop
lucaslovato Feb 11, 2024
de67d2c
fix: create const to manage error handling
lucasgabrielgsp Feb 16, 2024
5b0021c
chore: remove to-do comments
lucasgabrielgsp Feb 16, 2024
964cfb2
chore: change pali version
lucasgabrielgsp Feb 16, 2024
3e57f0b
chore: up to date with master
lucasgabrielgsp Feb 16, 2024
6e1c8eb
Merge pull request #549 from syscoin/fix-infinite-warning-lopp
lucasgabrielgsp Feb 16, 2024
cad7776
chore: update sysweb3 version
lucasgabrielgsp Feb 16, 2024
b4d0a0b
chore: merge changes from develop
lucasgabrielgsp Feb 16, 2024
503fb04
Merge pull request #550 from syscoin/fix-infinite-warning-lopp
lucasgabrielgsp Feb 16, 2024
848e3db
fix: import-btnc-import-link-tx-opt-modal
lucaslovato Feb 20, 2024
808c574
fix: solve pending tx bug
lucasgabrielgsp Feb 20, 2024
e666cf2
Merge pull request #552 from syscoin/fix/import-btnc-import-link-tx-o…
lucasgabrielgsp Feb 21, 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
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Pali Wallet",
"version": "2.0.14",
"version": "2.0.15",
"icons": {
"16": "assets/icons/favicon-16.png",
"32": "assets/icons/favicon-32.png",
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": "paliwallet",
"version": "2.0.14",
"version": "2.0.15",
"description": "A Non-Custodial Crypto Wallet",
"private": true,
"repository": {
Expand Down Expand Up @@ -48,7 +48,7 @@
"@babel/runtime": "^7.21.5",
"@headlessui/react": "^1.6.0",
"@heroicons/react": "^1.0.5",
"@pollum-io/sysweb3-keyring": "^1.0.477",
"@pollum-io/sysweb3-keyring": "^1.0.478",
"@pollum-io/sysweb3-network": "^1.0.95",
"@pollum-io/sysweb3-utils": "^1.1.232",
"@reduxjs/toolkit": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion source/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
"formValue": "Form value",
"tokenDecimals": "Token Decimals",
"tokenSuccessfullyAdded": "Token successfully added!",
"wasSucessfullyAdded": "was successfully added to your wallet.",
"wasSuccessfullyAdded": "was successfully added to your wallet.",
"verifyTheCurrentNetwork": "Verify the current network",
"verifyTheCurrentNetworkMessage": "This token probably is not available in the current network. Verify the token network and try again.",
"verifyTheCurrentNetworkLog": "Invalid contract address. Verify the current contract address.",
Expand Down
2 changes: 1 addition & 1 deletion source/assets/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
"formValue": "Valor del formulario",
"tokenDecimals": "Decimales del token",
"tokenSuccessfullyAdded": "Token agregado correctamente!",
"wasSucessfullyAdded": "se ha agregado con éxito a su monedero.",
"wasSuccessfullyAdded": "se ha agregado con éxito a su monedero.",
"verifyTheCurrentNetwork": "Verificar la red actual",
"verifyTheCurrentNetworkMessage": "Este token probablemente no está disponible en la red actual. Verifique la red del token e inténtelo de nuevo.",
"verifyTheCurrentNetworkLog": "Dirección de contrato no válida. Verifique la dirección de contrato actual.",
Expand Down
2 changes: 1 addition & 1 deletion source/assets/locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
"formValue": "Form value",
"tokenDecimals": "Token Decimals",
"tokenSuccessfullyAdded": "Token successfully added!",
"wasSucessfullyAdded": "was successfully added to your wallet.",
"wasSuccessfullyAdded": "was successfully added to your wallet.",
"verifyTheCurrentNetwork": "Verify the current network",
"verifyTheCurrentNetworkMessage": "This token probably is not available in the current network. Verify the token network and try again.",
"verifyTheCurrentNetworkLog": "Invalid contract address. Verify the current contract address.",
Expand Down
7 changes: 3 additions & 4 deletions source/components/Modal/WarningBaseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const ImportWalletWarning = ({
);
};

export const TokenSuccessfulyAdded = ({
export const TokenSuccessfullyAdded = ({
phraseOne,
onClose,
show = true,
Expand All @@ -169,7 +169,7 @@ export const TokenSuccessfulyAdded = ({
</ModalBase>
);

export const TimeSetSuccessfuly = ({
export const TimeSetSuccessfully = ({
phraseOne,
onClose,
show = true,
Expand Down Expand Up @@ -238,7 +238,6 @@ export const TxSuccessful = ({
title,
}: IDefaultModal) => {
const { t } = useTranslation();
const navigate = useNavigate();

return (
<ModalBase onClose={onClose} show={show}>
Expand All @@ -253,7 +252,7 @@ export const TxSuccessful = ({
id="unlock-btn"
type="submit"
className="bg-white w-[22rem] h-10 text-brand-blue200 text-base mb-12 font-base font-medium rounded-2xl"
onClick={() => navigate('/home')}
onClick={onClose}
>
{t('buttons.ok')}
</Button>
Expand Down
53 changes: 21 additions & 32 deletions source/pages/Home/Panel/components/Transactions/EVM/EvmList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react';
import React, { useEffect, useMemo, useState } from 'react';
import { useSelector } from 'react-redux';

import { useTransactionsListConfig } from '../utils/useTransactionsInfos';
Expand All @@ -16,7 +16,6 @@ import {
handleUpdateTransaction,
isERC20Transfer,
} from 'utils/transactions';

export const EvmTransactionsList = ({
userTransactions,
}: {
Expand All @@ -30,7 +29,6 @@ export const EvmTransactionsList = ({
activeNetwork: { chainId },
isLastTxConfirmed,
} = useSelector((state: RootState) => state.vault);

const {
filteredTransactions,
formatTimeStamp,
Expand All @@ -43,23 +41,27 @@ export const EvmTransactionsList = ({
const [modalData, setModalData] = useState<modalDataType>();
const [isOpenModal, setIsOpenModal] = useState<boolean>(false);
const [showModal, setShowModal] = useState(false);
const [groupedTransactions, setGroupedTransactions] = useState<{
[date: string]: ITransactionInfoEvm[];
}>({});
const { navigate } = useUtils();
const { getFiatAmount } = usePrice();
const { wallet } = getController();

const groupedTransactions = {};

filteredTransactions.forEach((tx) => {
const formattedDate = formatTimeStamp(tx.timestamp);

if (!groupedTransactions[formattedDate]) {
groupedTransactions[formattedDate] = [];
}

groupedTransactions[formattedDate].push(tx);
});

const currentAccount = accounts[activeAccount.type][activeAccount.id];
useEffect(() => {
const grouped = {};
filteredTransactions.forEach((tx) => {
const formattedDate = formatTimeStamp(tx.timestamp);
if (!grouped[formattedDate]) {
grouped[formattedDate] = [];
}
grouped[formattedDate].push(tx);
});
setGroupedTransactions(grouped);
}, [filteredTransactions]);
const currentAccount = useMemo(
() => accounts[activeAccount.type][activeAccount.id],
[accounts, activeAccount]
);
const EvmTransactionsListComponent = ({
tx,
}: {
Expand All @@ -80,25 +82,20 @@ export const EvmTransactionsList = ({
);
}
};

const isTxCanceled = tx?.isCanceled === true;
const isConfirmed = tx.confirmations > 0;
const isErc20Tx = isERC20Transfer(tx as any);

const isTxSent = isBitcoinBased
? false
: tx.from.toLowerCase() === currentAccount.address.toLowerCase();

const tokenValue = !isConfirmed
? typeof tx.value === 'string'
? tx.value
: Number(tx.value.hex) / 1e18
: Number(tx.value) / 1e18;

const finalTxValue = isErc20Tx
? Number(getERC20TransferValue(tx as any)) / 1e18
: tokenValue;

return (
<div className="flex flex-col w-full border-b border-dashed border-bkg-deepBlue">
<div className="flex justify-between py-2 w-full">
Expand All @@ -114,7 +111,7 @@ export const EvmTransactionsList = ({
<div className="flex items-center gap-4">
<div className="flex flex-col justify-end items-end">
<div className="text-white text-xs font-normal">
{Number(finalTxValue).toFixed(4)}{' '}
{Number(finalTxValue).toFixed(4)}
{getTokenSymbol(isErc20Tx, coinsList, tx)}
</div>
<div className="text-brand-gray200 text-xs font-normal">
Expand All @@ -128,10 +125,7 @@ export const EvmTransactionsList = ({
src="/assets/icons/detailArrow.svg"
onClick={() =>
navigate('/home/details', {
state: {
id: null,
hash: tx[txId],
},
state: { id: null, hash: tx[txId] },
})
}
/>
Expand All @@ -144,7 +138,6 @@ export const EvmTransactionsList = ({
</div>
);
};

useEffect(() => {
if (!currentAccount.transactions.ethereum?.[chainId]) {
return;
Expand All @@ -153,22 +146,18 @@ export const EvmTransactionsList = ({
const lastTx = currentAccount.transactions.ethereum[chainId][
lastIndex
] as IEvmTransaction;

if (isLastTxConfirmed?.[chainId]) {
return;
}

if (lastTx?.confirmations === 0) {
wallet.setIsLastTxConfirmed(chainId, false);
return;
}

if (lastTx?.confirmations > 0 && !isLastTxConfirmed?.[chainId]) {
setShowModal(true);
wallet.setIsLastTxConfirmed(chainId, true);
}
}, [currentAccount]);

return (
<>
<StatusModal
Expand Down
4 changes: 2 additions & 2 deletions source/pages/Settings/AutoLock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';

import { Layout, Button } from 'components/index';
import { TimeSetSuccessfuly } from 'components/Modal/WarningBaseModal';
import { TimeSetSuccessfully } from 'components/Modal/WarningBaseModal';
import { RootState } from 'state/store';
import { getController } from 'utils/browser';

Expand Down Expand Up @@ -67,7 +67,7 @@ const AutolockView = () => {
{t('settings.setAutoLockTime')}
</p>
</div>
<TimeSetSuccessfuly
<TimeSetSuccessfully
show={confirmed}
onClose={() => {
setConfirmed(false);
Expand Down
25 changes: 14 additions & 11 deletions source/pages/SwitchNetwork/NetworkInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useMemo } from 'react';
import { useSelector } from 'react-redux';

Check warning on line 2 in source/pages/SwitchNetwork/NetworkInfo.ts

View workflow job for this annotation

GitHub Actions / yarn test-all

'useSelector' is defined but never used

Check warning on line 2 in source/pages/SwitchNetwork/NetworkInfo.ts

View workflow job for this annotation

GitHub Actions / yarn test-all

'useSelector' is defined but never used

import { INetwork } from '@pollum-io/sysweb3-network';

Expand All @@ -25,19 +25,22 @@
const PINK_COLOR = 'text-brand-deepPink100';
const BLUE_COLOR = 'text-brand-blue200';

export const useNetworkInfo = (setedNetwork?: string): INetworkInfo => {
const isBitcoinBased = useSelector(
(state: RootState) => state.vault.isBitcoinBased
);
const networks = useSelector((state: RootState) => state.vault.networks);

export const useNetworkInfo = ({
network,
isBitcoinBased,
networks,
}: {
isBitcoinBased?: boolean;
network?: string;
networks: RootState['vault']['networks'];
}): INetworkInfo => {
const filteredNetworks = useMemo(() => {
if (setedNetwork !== '') {
return setedNetwork === 'EVM'
if (network !== '') {
return network === 'EVM'
? Object.values(networks.syscoin)
: Object.values(networks.ethereum);
}
}, [setedNetwork, isBitcoinBased, networks]);
}, [network, isBitcoinBased, networks]);

const utxoNetwork: INetworkInfo = {
connectedNetwork: NetworkType.UTXO,
Expand Down Expand Up @@ -65,8 +68,8 @@

let value: any;

if (setedNetwork) {
if (setedNetwork === 'EVM') {
if (network) {
if (network === 'EVM') {
value = otherNetworkInfo;
} else {
value = utxoNetwork;
Expand Down
46 changes: 30 additions & 16 deletions source/pages/SwitchNetwork/NetworkList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { uniqueId } from 'lodash';
import React, { useState } from 'react';
import React, { useMemo, useState } from 'react';
import { useSelector } from 'react-redux';

import { INetwork } from '@pollum-io/sysweb3-network';
Expand All @@ -14,7 +14,9 @@ import { useNetworkInfo } from './NetworkInfo';

export const NetworkList = ({ isChanging }: { isChanging: boolean }) => {
const { wallet } = getController();
const { isBitcoinBased } = useSelector((state: RootState) => state.vault);
const { isBitcoinBased, networks } = useSelector(
(state: RootState) => state.vault
);
const [selectCurrentNetwork, setSelectCurrentNetwork] = useState({
current: null,
chain: '',
Expand All @@ -29,23 +31,35 @@ export const NetworkList = ({ isChanging }: { isChanging: boolean }) => {
selectedNetworkText,
leftLogo,
rightLogo,
} = useNetworkInfo();
const chainName = isBitcoinBased ? 'ethereum' : 'syscoin';

const networks = useSelector((state: RootState) => state.vault.networks);

let newNetworks;
} = useNetworkInfo({ isBitcoinBased, networks });

isBitcoinBased
? (newNetworks = Object.values(networks.ethereum))
: (newNetworks = Object.values(networks.syscoin));
const chainName = useMemo(
() => (isBitcoinBased ? 'ethereum' : 'syscoin'),
[isBitcoinBased]
);

const testnetNetworks = newNetworks.filter((obj) => obj?.isTestnet === true);
const newNetworks = useMemo(
() =>
isBitcoinBased
? Object.values(networks.ethereum)
: Object.values(networks.syscoin),
[isBitcoinBased]
); //todo: change name

let mainetNetworks = newNetworks.filter((obj) => obj?.isTestnet !== true);
const testnetNetworks = useMemo(
() => newNetworks.filter((obj) => obj?.isTestnet),
[newNetworks]
);

mainetNetworks = mainetNetworks.sort(
(a, b) => getChainIdPriority(a.chainId) - getChainIdPriority(b.chainId)
const mainnetNetworks = useMemo(
() =>
newNetworks
.filter((obj) => !obj?.isTestnet)
.sort(
(a, b) =>
getChainIdPriority(a.chainId) - getChainIdPriority(b.chainId)
),
[]
);

const handleChangeNetwork = async (network: INetwork, chain: string) => {
Expand Down Expand Up @@ -97,7 +111,7 @@ export const NetworkList = ({ isChanging }: { isChanging: boolean }) => {
<p className="text-brand-gray200 text-xs font-medium mb-2">
{selectedNetworkText}
</p>
{mainetNetworks.map((currentNetwork: INetwork) => (
{mainnetNetworks.map((currentNetwork: INetwork) => (
<div
key={uniqueId()}
className={`${
Expand Down
6 changes: 3 additions & 3 deletions source/pages/SwitchNetwork/SwitchNetwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import { NetworkList } from './NetworkList';
export const SwitchNetwork = () => {
const { state }: { state: any } = useLocation();
const { t } = useTranslation();
const activeNetwork = useSelector(
(state: RootState) => state.vault.activeNetwork
const { isBitcoinBased, activeNetwork, networks } = useSelector(
(rootState: RootState) => rootState.vault
);
const {
connectedNetwork,
networkThatNeedsChanging,
connectedColor,
networkNeedsChangingColor,
} = useNetworkInfo();
} = useNetworkInfo({ isBitcoinBased, networks });

const networkLabel = useMemo(
() => (
Expand Down
Loading
Loading