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 / 4.17.0 #2995

Merged
merged 254 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
c378cd7
fix i18n en-us
paulclindo Dec 28, 2021
3de0ecb
Merge remote-tracking branch 'origin/develop' into add-reward-history
vsubhuman Mar 10, 2022
a63e390
merge fixes
vsubhuman Mar 10, 2022
c20841e
Add switcher between old and new themes
neuodev Jun 12, 2022
8e1bfbf
Update eg-US.json
neuodev Jun 12, 2022
d2345b2
Render warning text
neuodev Jun 12, 2022
abf9f4a
Make radio buttons small
neuodev Jun 12, 2022
f6b44fc
Remove render layout
neuodev Jun 13, 2022
a9d924d
Move fiat paring option to be on the top
neuodev Jun 13, 2022
682b264
Add yoroi modern theme logo
neuodev Jun 13, 2022
c40bcb5
Remove unused components
neuodev Jun 13, 2022
502b2c0
Flow & eslint
neuodev Jun 13, 2022
2ef1e53
Merge branch 'develop' into Ahmed/revamp-switcher
neuodev Jun 13, 2022
2bd6139
Create NFTs pages wrapper
neuodev Jun 17, 2022
5908909
Create seperate routes for NFT page
neuodev Jun 17, 2022
66f53d6
Siwth to use token id insead into name
neuodev Jun 17, 2022
065cddd
Add default nft image
neuodev Jun 19, 2022
828d17c
Check for '721' token metadata
neuodev Jun 20, 2022
7d873f9
Add NFT Gallary page title
neuodev Jun 20, 2022
fb39ee8
Add nft not found message
neuodev Jun 20, 2022
4db2603
Render Empty page
neuodev Jun 20, 2022
add1a2c
Add NFT image skeleton
neuodev Jun 20, 2022
9f67a7c
Display nfts count
neuodev Jun 20, 2022
2d792ea
Display number of tokens
neuodev Jun 20, 2022
3f4d712
Merge branch 'add-epoch-history' of github.com:Emurgo/yoroi-frontend …
Jun 28, 2022
78ca22a
Merge branch 'develop' into Ahmed/revamp-switcher
neuodev Jul 1, 2022
cbede72
Merge branch 'add-epoch-history' of github.com:Emurgo/yoroi-frontend …
nistadev Jul 7, 2022
dfcfde6
Redo of rewards history modal styles
nistadev Jul 7, 2022
57ca0d6
Add en-US literal
nistadev Jul 12, 2022
dcac9c7
Merge branch 'add-epoch-history' of github.com:Emurgo/yoroi-frontend …
nistadev Jul 12, 2022
de1a73b
Removed mock data
nistadev Jul 12, 2022
83b6d57
Lint changes
nistadev Jul 12, 2022
f675212
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into add-e…
nistadev Jul 18, 2022
caf8338
Merge branch 'add-epoch-history' into add-reward-history
nistadev Jul 18, 2022
4af351e
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jul 19, 2022
f609a37
Add new grid
neuodev Jul 19, 2022
83e4ff1
Add tabs
neuodev Jul 21, 2022
e264ce1
Display & copy metadata
neuodev Jul 21, 2022
8070e00
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into add-e…
nistadev Jul 21, 2022
bbeea06
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into add-r…
nistadev Jul 21, 2022
5593b7c
Add image overlay view
neuodev Jul 21, 2022
fd32c57
Paginate through NFTs list
neuodev Jul 22, 2022
2bfd328
Remove imports
neuodev Jul 22, 2022
aa0d529
Update spacing & intl
neuodev Jul 25, 2022
41c721c
remove explorer for ergo wallets
neuodev Jul 26, 2022
374aa79
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Jul 26, 2022
6fed686
Display assets metadata
neuodev Jul 26, 2022
b38be12
Update image styles
neuodev Jul 26, 2022
095c631
Flow 1
neuodev Jul 26, 2022
d92fa64
Flow 2
neuodev Jul 26, 2022
62d6216
Merge branch 'develop' into Ahmed/revamp-switcher
vsubhuman Jul 26, 2022
00b2021
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into add-e…
nistadev Jul 26, 2022
95d77a8
Merge branch 'add-epoch-history' into add-reward-history
nistadev Jul 26, 2022
4285eb6
Merge branch 'develop' into Ahmed/nft-gallery
neuodev Jul 27, 2022
b12ebfb
Search NFTs by fingerprint
neuodev Jul 27, 2022
457c61c
Merge branch 'Ahmed/nft-gallery' of https://github.com/Emurgo/yoroi-f…
neuodev Jul 27, 2022
62a56db
Fix NFT page some times crashs
neuodev Jul 28, 2022
ff4113f
Add the close button
neuodev Jul 28, 2022
62e152e
Remove dead code
neuodev Jul 28, 2022
e437335
Merge branch 'develop' into Ahmed/nft-gallery
neuodev Jul 29, 2022
b33dbb6
Remove created at date
neuodev Jul 29, 2022
345d6cc
Refresh the nft page when resyncing
neuodev Jul 29, 2022
d0e13bd
Merge branch 'Ahmed/nft-gallery' of https://github.com/Emurgo/yoroi-f…
neuodev Jul 29, 2022
efb2c6f
Handle smaller screens
neuodev Jul 29, 2022
d30beb7
Remove unused imports
neuodev Jul 29, 2022
f6fe81d
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into pat/r…
nistadev Aug 1, 2022
ec3fe2f
Show Summary of Staking Dashboard
nistadev Aug 1, 2022
9c53bb9
removed duplicated keys
nistadev Aug 1, 2022
ea1a85b
Merge branch 'add-epoch-history' of github.com:Emurgo/yoroi-frontend …
nistadev Aug 1, 2022
43f7b5a
Merge branch 'develop' into Ahmed/nft-gallery
neuodev Aug 1, 2022
66df850
Merge branch 'add-epoch-history' into pat/revamp-stacking-page
nistadev Aug 1, 2022
da2693b
Add some responsiveness to the NFTs page
neuodev Aug 1, 2022
ee11fdc
Merge branch 'Ahmed/nft-gallery' of https://github.com/Emurgo/yoroi-f…
neuodev Aug 1, 2022
9c1c038
Sidebar Footer Flex
leebickmtu Jul 28, 2022
3df803f
Merge branch 'develop' into Ahmed/nft-gallery
Nebyt Aug 4, 2022
a807a2d
Merge branch 'develop' into sidebar-footer
vsubhuman Aug 5, 2022
d3a95f9
Stake Pool Delegated with placeholders
nistadev Aug 5, 2022
de3953b
Merge branch 'develop' into sidebar-footer
neuodev Aug 8, 2022
dabad84
Merge branch 'develop' into sidebar-footer
leebickmtu Aug 9, 2022
0990ae4
only apply footer class if sidebar is expanded
leebickmtu Aug 9, 2022
48addb0
Fix page overflow on firfox
neuodev Aug 10, 2022
9ba822a
Merge branch 'Ahmed/nft-gallery' of https://github.com/Emurgo/yoroi-f…
neuodev Aug 10, 2022
8f7a66f
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Aug 10, 2022
212cae2
fix styles
nistadev Aug 11, 2022
1f80560
- Remove alert on close
nistadev Aug 11, 2022
c07c29c
- Hide undelegate button if there's no function
nistadev Aug 11, 2022
756efe6
Merge branch 'develop' into pat/revamp-stacking-page
nistadev Aug 11, 2022
0625b02
Fix asset page on firfox
neuodev Aug 11, 2022
d8db6c8
Refresh the assets page when tokens is ready
neuodev Aug 11, 2022
f9e45fd
Fix token name overflow
neuodev Aug 11, 2022
54c15c0
Use function name instead of
neuodev Aug 11, 2022
bb096a9
Update naming convention
neuodev Aug 11, 2022
044ff5f
Added changes to trezor-emulator tests
cmerloglb Aug 11, 2022
370bef7
Replace overlay value for overflow css prop
nistadev Aug 12, 2022
a1f33be
Added changes to press yes 4 times on Trezor emulator
cmerloglb Aug 12, 2022
fc4ea89
Merge pull request #2966 from Emurgo/production
vsubhuman Aug 15, 2022
46dbd05
Merge branch 'develop' into pat/staking-center-fixes
neuodev Aug 16, 2022
17773e4
Merge branch 'develop' into pat/fix-firefox-send-bug
neuodev Aug 16, 2022
8fc6bbc
Update sorting column state
neuodev Aug 16, 2022
01538da
Fix assets number
neuodev Aug 16, 2022
ba20a04
Remove hardcoded string
neuodev Aug 16, 2022
f2d7c49
Added changes for getting rewards for trezor emulator
cmerloglb Aug 16, 2022
ad86842
Merge branch 'develop' into sidebar-footer
leebickmtu Aug 18, 2022
275ac2b
Fix flow
neuodev Aug 18, 2022
4f69c2f
Add paper wallet validation
neuodev Aug 18, 2022
79b5cc7
Fix min-ada error message
neuodev Aug 18, 2022
78cf5f0
Update wallet already exits error
neuodev Aug 18, 2022
3b7bae9
Fix transfer status error
neuodev Aug 18, 2022
c937e5e
Update crash screen
neuodev Aug 19, 2022
85fe9eb
Update Catalyst page
neuodev Aug 19, 2022
2dbd459
Merge pull request #2974 from Emurgo/production
vsubhuman Aug 21, 2022
f5cf450
Merge branch 'develop' into Ahmed/assets-sorting
neuodev Aug 22, 2022
d073594
Merge branch 'develop' into Ahmed/nft-gallery
neuodev Aug 22, 2022
d05680d
Check for password length
neuodev Aug 22, 2022
2cff38f
Merge branch 'develop' into pat/staking-center-fixes
neuodev Aug 22, 2022
e8699a6
Merge branch 'develop' into Ahmed/errors-update
neuodev Aug 22, 2022
342b74e
Added new wallet
cmerloglb Aug 22, 2022
b8fd1c7
Finished tests for assets
cmerloglb Aug 22, 2022
79f4edb
Merge branch 'develop' into e2e-tests-trezor-emulator
cmerloglb Aug 22, 2022
1e3b2eb
return trezor Byron to hardware.feature
cmerloglb Aug 22, 2022
83e2484
Merge pull request #2967 from Emurgo/Ahmed/assets-sorting
vsubhuman Aug 23, 2022
2bb8b84
Added test for transfers funds from trezor wallet
cmerloglb Aug 23, 2022
a1dfbf0
Merge branch 'develop' into e2e-tests-trezor-emulator
Nebyt Aug 23, 2022
8b01a84
Merge branch 'develop' into pat/fix-firefox-send-bug
nistadev Aug 24, 2022
bc92f88
Convert error object into json string
neuodev Aug 24, 2022
9165656
Revert the mock error
neuodev Aug 24, 2022
707c6ff
Fix typo
neuodev Aug 24, 2022
0430fd1
changed After function to work with Firefox correctly
cmerloglb Aug 24, 2022
634eb2f
fix tests failures for firefox
cmerloglb Aug 24, 2022
257dd3b
Merge pull request #2978 from Emurgo/production
vsubhuman Aug 25, 2022
262a6e9
Merge branch 'develop' into Ahmed/tx-logs-fix
vsubhuman Aug 25, 2022
aefd96d
Merge pull request #2976 from Emurgo/Ahmed/tx-logs-fix
vsubhuman Aug 25, 2022
d4f9765
Merge branch 'develop' into e2e-tests-trezor-emulator
vsubhuman Aug 25, 2022
b516492
Merge pull request #2962 from Emurgo/e2e-tests-trezor-emulator
vsubhuman Aug 25, 2022
614fa21
Merge branch 'develop' into Ahmed/errors-update
vsubhuman Aug 26, 2022
2121ed5
Flow
neuodev Aug 26, 2022
f37aedd
Merge branch 'Ahmed/errors-update' of https://github.com/Emurgo/yoroi…
neuodev Aug 26, 2022
5866eb9
Fixing tests
vsubhuman Aug 26, 2022
5ca5e18
Merge branch 'develop' into Ahmed/errors-update
vsubhuman Aug 26, 2022
8c1bf00
Merge branch 'develop' into pat/fix-firefox-send-bug
vsubhuman Aug 26, 2022
bcc07d8
Merge pull request #2970 from Emurgo/Ahmed/errors-update
vsubhuman Aug 26, 2022
855c1eb
Merge branch 'develop' into pat/fix-firefox-send-bug
vsubhuman Aug 26, 2022
4279491
Merge pull request #2963 from Emurgo/pat/fix-firefox-send-bug
vsubhuman Aug 26, 2022
f04a228
Merge branch 'develop' into pat/staking-center-fixes
vsubhuman Aug 26, 2022
6ed5e6b
Merge branch 'develop' into Ahmed/nft-gallery
neuodev Aug 29, 2022
35b0f8a
Fix missing categorices
neuodev Aug 29, 2022
76bcbf5
Merge branch 'develop' into Ahmed/voting
neuodev Aug 29, 2022
415d5d3
Merge branch 'develop' into sidebar-footer
vsubhuman Aug 29, 2022
bef7343
Merge pull request #2980 from Emurgo/Ahmed/voting
vsubhuman Aug 29, 2022
97ece2f
Merge branch 'develop' into pat/staking-center-fixes
vsubhuman Aug 29, 2022
d93e7c8
Merge pull request #2958 from Emurgo/pat/staking-center-fixes
vsubhuman Aug 29, 2022
d107dae
Merge branch 'develop' into sidebar-footer
vsubhuman Aug 29, 2022
ea7b78e
Merge pull request #2942 from leebickmtu/sidebar-footer
vsubhuman Aug 29, 2022
659cdb2
Merge branch 'develop' into Ahmed/nft-gallery
vsubhuman Aug 29, 2022
b6ac81b
flow fixes
vsubhuman Aug 30, 2022
8f5540b
Remove assets limit
neuodev Aug 30, 2022
6324e3c
fix ledger wallet error not reset
yushih Jul 28, 2022
c038362
Remove logs
neuodev Aug 31, 2022
348f845
Apply existing styles to YoroiRevamp
neuodev Aug 31, 2022
20192a9
Add 'asModern' flag
neuodev Aug 31, 2022
98557f2
Use MUI buttons
neuodev Aug 31, 2022
27a9a11
Remove footer styles
neuodev Aug 31, 2022
4ab08b5
Overwrite default styles
neuodev Aug 31, 2022
fe0233e
Hide ergo section title if no wallets
neuodev Aug 31, 2022
3c89d6b
Merge pull request #2982 from Emurgo/yushi/reset-hw-wallet-error
vsubhuman Aug 31, 2022
291c349
Merge branch 'develop' into Ahmed/qa-1
neuodev Aug 31, 2022
537ccf7
Merge branch 'develop' into Ahmed/nft-gallery
neuodev Sep 1, 2022
dbe05ca
Remove duplicate addresses
neuodev Sep 1, 2022
3b5d0a6
Fix autocomplete label
neuodev Sep 1, 2022
ce9e165
Remove logs
neuodev Sep 1, 2022
1fff8c4
Show info icon
neuodev Sep 1, 2022
dabe366
Update dialog title
neuodev Sep 2, 2022
6d8def3
persist catalyst round info for better UX
yushih Sep 5, 2022
76f8874
Merge pull request #2989 from Emurgo/yushi/persist-catalyst-round-info
vsubhuman Sep 5, 2022
698b7e7
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Sep 6, 2022
56d5d4d
Add copy address to the assets pages
neuodev Sep 6, 2022
766cfed
Hide explorers for ergo wallets
neuodev Sep 6, 2022
5991708
Show description
neuodev Sep 6, 2022
6eb52b1
Update page header
neuodev Sep 6, 2022
44fff00
- Fixed delegated pool card items position
nistadev Sep 6, 2022
afbb88a
preprod added
vsubhuman Sep 6, 2022
5b9218b
preprod added
vsubhuman Sep 6, 2022
1a926d7
preprod added
vsubhuman Sep 6, 2022
c8f70ed
version bump: 4.16.301 (nightly)
vsubhuman Sep 6, 2022
1b50ba3
Preprod explorer update
vsubhuman Sep 7, 2022
d758675
Update dialog layout
neuodev Sep 8, 2022
2ac16a3
Display apply new wallet button
neuodev Sep 8, 2022
5306365
Remove dead code
neuodev Sep 8, 2022
c1af0b4
Move selected wallet prop to the local state
neuodev Sep 8, 2022
737e4c4
Merge branch 'Ahmed/qa-1' of https://github.com/Emurgo/yoroi-frontend…
neuodev Sep 8, 2022
e6ffe7f
Merge branch 'develop' of https://github.com/Emurgo/yoroi-frontend in…
neuodev Sep 8, 2022
46935be
Do the same thing for ergo
neuodev Sep 8, 2022
50ee542
Fix flow
neuodev Sep 8, 2022
3a4811a
Updating tests
vsubhuman Sep 13, 2022
0895856
Merge pull request #2992 from Emurgo/ruslan/preprod-testnet
vsubhuman Sep 13, 2022
fec182c
Merge branch 'develop' into pat/fix-delegated-pool-items-position
vsubhuman Sep 13, 2022
78df553
Merge branch 'develop' into Ahmed/qa-2
vsubhuman Sep 13, 2022
736458e
Merge branch 'develop' into Ahmed/nft-gallery
vsubhuman Sep 13, 2022
7532365
Merge pull request #2988 from Emurgo/Ahmed/qa-2
vsubhuman Sep 13, 2022
9d13fae
Merge branch 'develop' into pat/fix-delegated-pool-items-position
vsubhuman Sep 13, 2022
f8a8b27
Merge pull request #2991 from Emurgo/pat/fix-delegated-pool-items-pos…
vsubhuman Sep 13, 2022
e9ec1ce
Merge branch 'develop' into Ahmed/nft-gallery
vsubhuman Sep 13, 2022
3833b9a
flow fixes
vsubhuman Sep 14, 2022
7e74d0b
Initialize time store requests
neuodev Sep 14, 2022
bab6244
Merge pull request #2937 from Emurgo/Ahmed/nft-gallery
vsubhuman Sep 14, 2022
9d80b7d
Merge branch 'develop' into Ahmed/revamp-switcher
vsubhuman Sep 14, 2022
c264b93
Merge branch 'develop' of github.com:Emurgo/yoroi-frontend into pat/r…
nistadev Sep 14, 2022
5da695d
fixed ticker render if empty
nistadev Sep 14, 2022
e674d7a
Fix sign tx page layout
neuodev Sep 15, 2022
69c766c
fix flow errors
nistadev Sep 15, 2022
ce5fc41
Merge pull request #2993 from Emurgo/Ahmed/qa-3
vsubhuman Sep 15, 2022
233655d
Merge branch 'develop' into pat/revamp-stacking-page
vsubhuman Sep 15, 2022
86eace9
Add new util to download the qr code as png image
neuodev Sep 16, 2022
0208b40
Add name, id to the output image
neuodev Sep 16, 2022
2baf801
Add props to control the qr code
neuodev Sep 16, 2022
5f4dfb8
Add default props
neuodev Sep 16, 2022
47f82a3
Add download qr code button
neuodev Sep 16, 2022
b0c9e73
Update layout
neuodev Sep 16, 2022
e1599f4
Revert commented code
neuodev Sep 16, 2022
915e00f
flow fixes
vsubhuman Sep 16, 2022
3cde7f0
lint fixes
vsubhuman Sep 16, 2022
cdf2287
lint fixes
vsubhuman Sep 16, 2022
0bc862c
Add the 'download' button to the dialog actions
neuodev Sep 16, 2022
756bb0c
Flow fix
neuodev Sep 16, 2022
00949a6
Merge pull request #2959 from Emurgo/pat/revamp-stacking-page
vsubhuman Sep 16, 2022
2e0a4c6
Merge branch 'develop' into Ahmed/revamp-switcher
vsubhuman Sep 16, 2022
b6619a1
revamp button id fix (for tests)
vsubhuman Sep 16, 2022
57896f3
Merge remote-tracking branch 'origin/Ahmed/revamp-switcher' into Ahme…
vsubhuman Sep 16, 2022
8861ea3
revamp button fix (beta)
vsubhuman Sep 16, 2022
c85b83e
Merge branch 'develop' into Ahmed/qr-download
vsubhuman Sep 16, 2022
69095f3
Merge pull request #2890 from Emurgo/Ahmed/revamp-switcher
vsubhuman Sep 16, 2022
b571271
Merge branch 'develop' into Ahmed/qr-download
vsubhuman Sep 17, 2022
9116f81
Merge pull request #2994 from Emurgo/Ahmed/qr-download
vsubhuman Sep 19, 2022
69357f9
Version bump: 4.17.0
vsubhuman Sep 19, 2022
abf1e25
Merge remote-tracking branch 'origin/develop' into Ahmed/qa-1
vsubhuman Sep 19, 2022
18aa3f9
merge fix
vsubhuman Sep 19, 2022
aa27abb
merge fix
vsubhuman Sep 19, 2022
342d333
fixing preprod network deposit value
vsubhuman Sep 21, 2022
61b0341
Merge pull request #2998 from Emurgo/ruslan/preprod-config-fix
vsubhuman Sep 21, 2022
c2ad320
fixing delegation amount display
vsubhuman Sep 21, 2022
988c1b6
Merge branch 'release/4.17' into ruslan/delegation-amount-display-fix
vsubhuman Sep 21, 2022
6b20a0b
Merge pull request #2999 from Emurgo/ruslan/delegation-amount-display…
vsubhuman Sep 21, 2022
35e906e
Merge pull request #2984 from Emurgo/Ahmed/qa-1
vsubhuman Sep 23, 2022
244ad7c
Merge remote-tracking branch 'origin/develop' into release/4.17
vsubhuman Sep 23, 2022
9cde5aa
fixing unit tests
vsubhuman Sep 23, 2022
340e8a4
bump ledgerjs version
yushih Sep 24, 2022
d3d91e9
flow
yushih Sep 26, 2022
cb82da4
Merge remote-tracking branch 'origin/release/4.17' into yushi/ledgerj…
vsubhuman Sep 26, 2022
374483b
package-lock update
vsubhuman Sep 26, 2022
701eb45
Merge pull request #3001 from Emurgo/yushi/ledgerjs-5.1.0
vsubhuman Sep 26, 2022
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 packages/yoroi-extension/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class App extends Component<Props, State> {
getContent: void => ?Node = () => {
const { stores, actions, history } = this.props;
if (this.state.crashed === true) {
return <CrashPage stores={stores} actions={actions} />;
return <CrashPage />;
}
if (stores.serverConnectionStore.isMaintenance) {
return <MaintenancePage stores={stores} actions={actions} />;
Expand Down
69 changes: 63 additions & 6 deletions packages/yoroi-extension/app/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,59 +41,88 @@ const SupportSettingsPage = React.lazy(SupportSettingsPagePromise);
// Dynamic container loading - resolver loads file relative to '/app/' directory
const LoadingPagePromise = () => import('./containers/LoadingPage');
const LoadingPage = React.lazy(LoadingPagePromise);

const NightlyPagePromise = () => import('./containers/profile/NightlyPage');
const NightlyPage = React.lazy(NightlyPagePromise);

const WalletPromise = () => import('./containers/wallet/Wallet');
const Wallet = React.lazy(WalletPromise);

const MyWalletsPagePromise = () => import('./containers/wallet/MyWalletsPage');
const MyWalletsPage = React.lazy(MyWalletsPagePromise);

const WalletSummaryPagePromise = () => import('./containers/wallet/WalletSummaryPage');
const WalletSummaryPage = React.lazy(WalletSummaryPagePromise);

const WalletSendPagePromise = () => import('./containers/wallet/WalletSendPage');
const WalletSendPage = React.lazy(WalletSendPagePromise);

const WalletAssetsPagePromise = () => import('./containers/wallet/WalletAssetsPage');
const WalletAssetsPage = React.lazy(WalletAssetsPagePromise);

const WalletReceivePagePromise = () => import('./containers/wallet/WalletReceivePage');
const WalletReceivePage = React.lazy(WalletReceivePagePromise);

const URILandingPagePromise = () => import('./containers/uri/URILandingPage');
const URILandingPage = React.lazy(URILandingPagePromise);

const TransferPromise = () => import('./containers/transfer/Transfer');
const Transfer = React.lazy(TransferPromise);

const ReceivePromise = () => import('./containers/wallet/Receive');
const Receive = React.lazy(ReceivePromise);

const StakingDashboardPagePromise = () => import('./containers/wallet/staking/StakingDashboardPage');
const StakingDashboardPage = React.lazy(StakingDashboardPagePromise);

const CardanoStakingPagePromise = () => import('./containers/wallet/staking/CardanoStakingPage');
const CardanoStakingPage = React.lazy(CardanoStakingPagePromise);

const NoticeBoardPagePromise = () => import('./containers/notice-board/NoticeBoardPage');
const NoticeBoardPage = React.lazy(NoticeBoardPagePromise);

const VotingPagePromise = () => import('./containers/wallet/voting/VotingPage');
const VotingPage = React.lazy(VotingPagePromise);

const ComplexityLevelSettingsPagePromise = () => import('./containers/settings/categories/ComplexityLevelSettingsPage');
const ComplexityLevelSettingsPage = React.lazy(ComplexityLevelSettingsPagePromise);

const ComplexityLevelPagePromise = () => import('./containers/profile/ComplexityLevelPage');
const ComplexityLevelPage = React.lazy(ComplexityLevelPagePromise);

const BlockchainSettingsPagePromise = () => import('./containers/settings/categories/BlockchainSettingsPage');
const BlockchainSettingsPage = React.lazy(BlockchainSettingsPagePromise);

const WalletSwitchPromise = () => import('./containers/WalletSwitch');
const WalletSwitch = React.lazy(WalletSwitchPromise);

const StakingPagePromise = () => import('./containers/wallet/staking/StakingPage');
const StakingPage = React.lazy(StakingPagePromise);

const AssetsWrapperPromise = () => import('./containers/wallet/AssetsWrapper');
const AssetsWrapper = React.lazy(AssetsWrapperPromise);

const NFTsWrapperPromise = () => import('./containers/wallet/NFTsWrapper');
const NFTsWrapper = React.lazy(NFTsWrapperPromise);

const TokensPageRevampPromise = () => import('./containers/wallet/TokensPageRevamp');
const TokensPageRevamp = React.lazy(TokensPageRevampPromise);

const TokensDetailPageRevampPromise = () => import('./containers/wallet/TokenDetailPageRevamp');
const TokensDetailPageRevamp = React.lazy(TokensDetailPageRevampPromise);

const NFTsPageRevampPromise = () => import('./containers/wallet/NFTsPageRevamp');
const NFTsPageRevamp = React.lazy(NFTsPageRevampPromise);

const NFTDetailPageRevampPromise = () => import('./containers/wallet/NFTDetailPageRevamp');
const NFTDetailPageRevamp = React.lazy(NFTDetailPageRevampPromise);

const ConnectedWebsitesPagePromise = () => import('./containers/dapp-connector/ConnectedWebsitesContainer');
const ConnectedWebsitesPage = React.lazy(ConnectedWebsitesPagePromise);

const YoroiPalettePagePromise = () => import('./containers/experimental/YoroiPalette');
const YoroiPalettePage = React.lazy(YoroiPalettePagePromise);

const YoroiThemesPagePromise = () => import('./containers/experimental/yoroiThemes');
const YoroiThemesPage = React.lazy(YoroiThemesPagePromise);

Expand Down Expand Up @@ -198,6 +227,17 @@ export const Routes = (
)
)}
/>

<Route
path={ROUTES.NFTS.ROOT}
component={(props) => (
wrapNFTs(
{ ...props, stores, actions },
NFTsSubPages(stores, actions)
)
)}
/>

<Route
exact
path={ROUTES.WALLETS.ADD}
Expand Down Expand Up @@ -360,27 +400,31 @@ const AssetsSubpages = (stores, actions) => (
<Switch>
<Route
exact
path={ROUTES.ASSETS.TOKENS}
path={ROUTES.ASSETS.ROOT}
component={(props) => <TokensPageRevamp {...props} stores={stores} actions={actions} />}
/>
<Route
exact
path={ROUTES.ASSETS.TOKEN_DETAILS}
path={ROUTES.ASSETS.DETAILS}
component={(props) => <TokensDetailPageRevamp {...props} stores={stores} actions={actions} />}
/>
</Switch>
);

const NFTsSubPages = (stores, actions) => (
<Switch>
<Route
exact
path={ROUTES.ASSETS.NFTS}
path={ROUTES.NFTS.ROOT}
component={(props) => <NFTsPageRevamp {...props} stores={stores} actions={actions} />}
/>
<Route
exact
path={ROUTES.ASSETS.NFT_DETAILS}
path={ROUTES.NFTS.DETAILS}
component={(props) => <NFTDetailPageRevamp {...props} stores={stores} actions={actions} />}
/>
<Redirect to={ROUTES.ASSETS.TOKENS} />
</Switch>
);
)
/* eslint-enable max-len */

export function wrapSettings(
Expand Down Expand Up @@ -409,6 +453,19 @@ export function wrapAssets(
);
}

export function wrapNFTs(
assetsProps: InjectedOrGenerated<AssetsData>,
children: Node,
): Node {
return (
<NFTsWrapper
{...assetsProps}
>
{children}
</NFTsWrapper>
);
}

export function wrapWallet(
walletProps: InjectedOrGenerated<WalletData>,
children: Node,
Expand Down
8 changes: 5 additions & 3 deletions packages/yoroi-extension/app/api/ada/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import moment from 'moment';
import BigNumber from 'bignumber.js';
import type { lf$Database } from 'lovefield';
import { Logger, stringifyData, stringifyError } from '../../utils/logging';
import { fullErrStr, Logger, stringifyData, stringifyError } from '../../utils/logging';
import CardanoByronTransaction from '../../domain/CardanoByronTransaction';
import CardanoShelleyTransaction from '../../domain/CardanoShelleyTransaction';
import {
Expand Down Expand Up @@ -862,13 +862,14 @@ export default class AdaApi {
request.signRequest.metadata,
);

const response = request.sendTx({
const response = await request.sendTx({
network: request.publicDeriver.getParent().getNetworkInfo(),
id: Buffer.from(
RustModule.WalletV4.hash_transaction(signedTx.body()).to_bytes()
).toString('hex'),
encodedTx: signedTx.to_bytes(),
});

Logger.debug(
`${nameof(AdaApi)}::${nameof(this.signAndBroadcast)} success: ` + stringifyData(response)
);
Expand All @@ -877,7 +878,8 @@ export default class AdaApi {
if (error instanceof WrongPassphraseError) {
throw new IncorrectWalletPasswordError();
}
Logger.error(`${nameof(AdaApi)}::${nameof(this.signAndBroadcast)} error: ` + stringifyError(error));

Logger.error(`${nameof(AdaApi)}::${nameof(this.signAndBroadcast)} error: ${fullErrStr(error)}` );
if (error instanceof InvalidWitnessError) {
throw new InvalidWitnessError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,12 @@ export class RemoteFetcher implements IFetcher {
txId: body.id
}))
.catch((error) => {
Logger.error(`${nameof(RemoteFetcher)}::${nameof(this.sendTx)} error: ` + stringifyError(error));
const err = {
msg: error.message,
res: error.response?.data || null,
}

Logger.error(`${nameof(RemoteFetcher)}::${nameof(this.sendTx)} error: ${stringifyError(err)}`);
if (error.request.response.includes('Invalid witness')) {
throw new InvalidWitnessError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,22 @@ Array [
"NetworkId": 400,
"TokenId": 5,
},
Object {
"Digest": 6.262633522161549e-167,
"Identifier": "",
"IsDefault": true,
"IsNFT": false,
"Metadata": Object {
"assetName": "",
"longName": null,
"numberOfDecimals": 6,
"policyId": "",
"ticker": "TADA",
"type": "Cardano",
},
"NetworkId": 250,
"TokenId": 6,
},
],
},
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,22 @@ Array [
"NetworkId": 400,
"TokenId": 5,
},
Object {
"Digest": 6.262633522161549e-167,
"Identifier": "",
"IsDefault": true,
"IsNFT": false,
"Metadata": Object {
"assetName": "",
"longName": null,
"numberOfDecimals": 6,
"policyId": "",
"ticker": "TADA",
"type": "Cardano",
},
"NetworkId": 250,
"TokenId": 6,
},
],
},
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,22 @@ Array [
"NetworkId": 400,
"TokenId": 5,
},
Object {
"Digest": 6.262633522161549e-167,
"Identifier": "",
"IsDefault": true,
"IsNFT": false,
"Metadata": Object {
"assetName": "",
"longName": null,
"numberOfDecimals": 6,
"policyId": "",
"ticker": "TADA",
"type": "Cardano",
},
"NetworkId": 250,
"TokenId": 6,
},
],
},
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,22 @@ Array [
"NetworkId": 400,
"TokenId": 5,
},
Object {
"Digest": 6.262633522161549e-167,
"Identifier": "",
"IsDefault": true,
"IsNFT": false,
"Metadata": Object {
"assetName": "",
"longName": null,
"numberOfDecimals": 6,
"policyId": "",
"ticker": "TADA",
"type": "Cardano",
},
"NetworkId": 250,
"TokenId": 6,
},
],
},
Object {
Expand Down Expand Up @@ -2144,6 +2160,22 @@ Array [
"NetworkId": 400,
"TokenId": 5,
},
Object {
"Digest": 6.262633522161549e-167,
"Identifier": "",
"IsDefault": true,
"IsNFT": false,
"Metadata": Object {
"assetName": "",
"longName": null,
"numberOfDecimals": 6,
"policyId": "",
"ticker": "TADA",
"type": "Cardano",
},
"NetworkId": 250,
"TokenId": 6,
},
],
},
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,22 @@ const CardanoTestnetExplorers: Array<$ReadOnly<ExplorerRow>> = [
},
];

const CardanoPreprodTestnetExplorers: Array<$ReadOnly<ExplorerRow>> = [
{
ExplorerId: 4_50,
NetworkId: networks.CardanoPreprodTestnet.NetworkId,
IsBackup: true,
Endpoints: {
address: 'https://testnet.cardanoscan.io/address/',
transaction: 'https://testnet.cardanoscan.io/transaction/',
pool: 'https://testnet.cardanoscan.io/pool/',
stakeAddress: 'https://testnet.cardanoscan.io/stakeKey/',
token: 'https://testnet.cardanoscan.io/token/',
},
Name: 'CardanoScan',
},
];

const AlonzoTestnetExplorers: Array<$ReadOnly<ExplorerRow>> = [
{
ExplorerId: 5_00,
Expand All @@ -150,6 +166,7 @@ const AlonzoTestnetExplorers: Array<$ReadOnly<ExplorerRow>> = [
export const prepackagedExplorers: Map<number, $ReadOnlyArray<$ReadOnly<ExplorerRow>>> = new Map([
[networks.CardanoMainnet.NetworkId, CardanoMainnetExplorers],
[networks.CardanoTestnet.NetworkId, CardanoTestnetExplorers],
[networks.CardanoPreprodTestnet.NetworkId, CardanoPreprodTestnetExplorers],
[networks.JormungandrMainnet.NetworkId, JormungandrExplorers],
[networks.ErgoMainnet.NetworkId, ErgoExplorers],
[networks.AlonzoTestnet.NetworkId, AlonzoTestnetExplorers],
Expand All @@ -166,6 +183,9 @@ export const prepackagedDefaultExplorers:
[networks.CardanoTestnet.NetworkId, getOrThrow(
CardanoTestnetExplorers.find(explorer => explorer.IsBackup)
)],
[networks.CardanoPreprodTestnet.NetworkId, getOrThrow(
CardanoTestnetExplorers.find(explorer => explorer.IsBackup)
)],
[networks.JormungandrMainnet.NetworkId, getOrThrow(
JormungandrExplorers.find(explorer => explorer.IsBackup)
)],
Expand Down
Loading