-
Notifications
You must be signed in to change notification settings - Fork 15
Sanchonet Integration Branch #727
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
Merged
Merged
Changes from all commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
d35778d
chore/Bump cardano-js-sdk (#559)
lgobbi-atix 7914ecf
[LW-7983] [LW-7984] dRep confirmation screens (#554)
5b5d96b
feat(extension): [LW-7984] voting procedures (#655)
renanvalentin e5f30b6
[LW-8491] Voting delegation confirmation (#648)
fc0ba66
chore: modify sanchonet urls (#667)
mchappell a8918c8
feat: drep update certificate signing (#664)
e4641e1
fix(extension): updated padding and missing bech32 addressing
mchappell 481b966
fix: no explorer for sanchonet
mchappell dbf9ded
chore(extension): add unit tests for dapp/confirm-tx (#743)
vetalcore 56cdc4f
fix: update drep id casing
mchappell cab3760
fix: update title translations for cip95 popups
mchappell 9b192a8
fix(extension): [LW-9163] nullish check on existence of stakeKeyDepos…
mchappell 41bdb55
Merge branch 'main' into feat/sanchonet
mchappell 93e6cbb
fix: e2e no unresolved imports
mchappell 3c3aae7
chore(extension): resolve pr comments (#748)
vetalcore 6de1ebe
fix(extension): translation keys casing and unit tests (#756)
przemyslaw-wlodek fcc660f
chore(all): exclude stories and tests from the rollup builds (#752)
przemyslaw-wlodek 5b81b19
Chore/update for sdk conway era (#734)
mirceahasegan 049fd31
Revert "Chore/update for sdk conway era (#734)" (#767)
przemyslaw-wlodek 595aafe
test(extension): add test ids for governance actions (#765)
wklos-iohk 1bc62f0
Merge main into feat/sanchonet (#763)
przemyslaw-wlodek f95077f
Merge remote-tracking branch 'origin/main' into feat/sanchonet
przemyslaw-wlodek c2ad8b4
feat(extension): add drep retirement id mismatch modal (#758)
przemyslaw-wlodek e42bf90
Merge branch 'main' into feat/sanchonet
mchappell bc0cf3b
chore: update cardano-sdk packages
mchappell 658ebe8
refactor: update lace based on cardano-sdk breaking changes
mchappell 0e385a4
fix: typos in translation
mchappell 394dcf8
feat: stake and vote confirmation screens (#683)
a7e84ad
[LW-8490] Governance Actions (#670)
renanvalentin 8b26339
Merge branch 'main' into feat/sanchonet
mchappell ac642a1
Merge branch 'main' into feat/sanchonet
mchappell 8bbdbfc
fix(extension): resolve pr comments
vetalcore b110052
fix(extension): remove code duplications for metadata and metadata li…
vetalcore 8f8b6e3
feat(extension): lw-8600 (#819)
vetalcore 7d00230
Merge branch 'main' into feat/sanchonet
mchappell 6c44737
Merge branch 'main' into feat/sanchonet
mchappell 73bd8a2
refactor: remove need to target dev endpoints in CI
mchappell b2e8fa2
refactor: remove sanchonet as default network option
mchappell 40a1625
refactor: remove sanchonet explorer check
mchappell eecbe1d
feat(extension): update drep mapper check
mchappell c9b69a1
fix(extension): conway-era tx activities line items (#860)
vetalcore 610107e
feat(extension): update drep mapper check
mchappell 8bae01f
Merge branch 'feat/sanchonet' of https://github.com/input-output-hk/l…
mchappell 8032c9a
fix(extension): convert drepid and stakekeyhash to bech32, fix transl…
vetalcore 169b125
fix(extension): lw-9688: unable to see transaction details for conway…
vetalcore 46171d9
fix(extension): resolve lw-9621 pe comments
vetalcore eb63035
fix(extension): resolve lw-9621 pr comments
vetalcore 26e7199
fix(extension): lw-9621 add storybook showing all conway era governan…
vetalcore f624a9d
chore(core): fix storybook build
przemyslaw-wlodek 1564869
fix: use correct stake address bech32
mchappell df46845
fix(core): sanchonet-related storybook errors [LW-9721] (#880)
przemyslaw-wlodek 04966cc
refactor: rename useCexplorerBaseUrl typo
mchappell 6767c85
Merge branch 'feat/sanchonet' of https://github.com/input-output-hk/l…
mchappell 5716562
fix: add storybook back for core package
mchappell 8ae22a2
feat: update stories for conway-era tx activity history
mchappell a086b77
fix: add retry fallback for matching last active tab based on non-sta…
mchappell b7cc3eb
Merge branch 'main' into feat/sanchonet
mchappell e728967
chore: update dev preview env file
mchappell 954fc2b
Merge branch 'main' into feat/sanchonet
mchappell de50216
feat(extension): update conway era tx details to the latest figma (#868)
vetalcore 9a3622b
Merge branch 'main' into feat/sanchonet
mchappell 5a2d1f7
chore(core): mock @lace/cardano for storybook
przemyslaw-wlodek 3769e20
fix(extension): fix tests
vetalcore bf8c53d
Merge branch 'main' into feat/sanchonet
mchappell e35d6d2
chore: downgrade uuid package to same used by pouchdb
mchappell 7177189
refactor: remove unintended config changes
mchappell d709213
Merge branch 'main' into feat/sanchonet
mchappell 5a4dd1a
fix: no wallet dapp test
mchappell c3617f4
fix(extension): resolve lw-9622 sdet comments
vetalcore 5a9b0d3
Merge branch 'main' into feat/sanchonet
mchappell f50c169
Merge branch 'main' into feat/sanchonet
mchappell d5a3e4f
feat(extension): update conway era history line items
mchappell 09c2bd5
Merge branch 'main' into feat/sanchonet
mchappell 2a340fb
fix(extension): make anchor url clickable
vetalcore 5746ee3
fix(extension): resolve pr comments
vetalcore 14d7f74
fix: lw-8940 casing in reward account
mchappell ebb79b2
Merge branch 'feat/sanchonet' of https://github.com/input-output-hk/l…
mchappell 554baf6
feat(extension): update sign with hw
mchappell b725680
chore: reword stakeVoteDelegation title
mchappell 3cfda85
feat(extension): handle requests from non registered users (#935)
vetalcore 83af2e5
fix(extension): fix labels
wklos-iohk 2353b30
refactor: rename proprosal procedure call
mchappell 4474dd6
Merge branch 'feat/sanchonet' of https://github.com/input-output-hk/l…
mchappell 70b3e95
Merge branch 'main' into feat/sanchonet
mchappell 895e221
fix: broken hook test
mchappell e9d9270
feat: revert useTxSummary hook
mchappell f12c4cb
Merge branch 'main' into feat/sanchonet
mchappell 3605010
feat(extension): fix test
vetalcore c21f964
refactor: revert story change
mchappell 7100e40
Merge branch 'main' into feat/sanchonet
mchappell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
apps/browser-extension-wallet/src/features/dapp/components/DappError.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| import React, { ReactNode, useCallback } from 'react'; | ||
| import { Image } from 'antd'; | ||
| import { useTranslation } from 'react-i18next'; | ||
| import Empty from '../../../assets/icons/empty.svg'; | ||
| import styles from './Layout.module.scss'; | ||
| import { Button } from '@lace/common'; | ||
|
|
||
| type DappErrorProps = { | ||
| title: string; | ||
| description: ReactNode; | ||
| closeButtonLabel?: string; | ||
| onCloseClick?: () => void; | ||
| containerTestId: string; | ||
| imageTestId: string; | ||
| titleTestId: string; | ||
| descriptionTestId: string; | ||
| closeButtonTestId: string; | ||
| }; | ||
| export const DappError = ({ | ||
| title, | ||
| description, | ||
| closeButtonLabel, | ||
| onCloseClick, | ||
| containerTestId, | ||
| imageTestId, | ||
| titleTestId, | ||
| descriptionTestId, | ||
| closeButtonTestId | ||
| }: DappErrorProps): React.ReactElement => { | ||
| const { t } = useTranslation(); | ||
| const handleClose = useCallback(() => { | ||
| onCloseClick?.(); | ||
| }, [onCloseClick]); | ||
|
|
||
| return ( | ||
| <div data-testid={containerTestId} className={styles.dappErrorContainer}> | ||
| <div className={styles.dappErrorContent}> | ||
| <Image data-testid={imageTestId} preview={false} width={112} src={Empty} /> | ||
| <div className={styles.heading} data-testid={titleTestId}> | ||
| {title} | ||
| </div> | ||
| <div className={styles.description} data-testid={descriptionTestId}> | ||
| {description} | ||
| </div> | ||
| </div> | ||
| <div className={styles.footer}> | ||
| <Button data-testid={closeButtonTestId} className={styles.footerBtn} onClick={handleClose}> | ||
| {closeButtonLabel || t('dapp.dappErrorPage.closeButton')} | ||
| </Button> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
apps/browser-extension-wallet/src/features/dapp/components/NoWallet.tsx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...let/src/features/dapp/components/confirm-transaction/ConfirmDRepRegistrationContainer.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| import React, { useEffect, useState } from 'react'; | ||
| import { useTranslation } from 'react-i18next'; | ||
| import { ConfirmDRepRegistration } from '@lace/core'; | ||
| import { certificateInspectorFactory, depositPaidWithSymbol, drepIDasBech32FromHash } from './utils'; | ||
| import { Wallet } from '@lace/cardano'; | ||
| import { useWalletStore } from '@src/stores'; | ||
| import { useViewsFlowContext } from '@providers'; | ||
| import { Skeleton } from 'antd'; | ||
|
|
||
| const { CertificateType } = Wallet.Cardano; | ||
|
|
||
| export const ConfirmDRepRegistrationContainer = (): React.ReactElement => { | ||
| const { t } = useTranslation(); | ||
| const { | ||
| walletUI: { cardanoCoin } | ||
| } = useWalletStore(); | ||
| const { | ||
| signTxRequest: { request }, | ||
| dappInfo | ||
| } = useViewsFlowContext(); | ||
|
|
||
| const [certificate, setCertificate] = useState<Wallet.Cardano.RegisterDelegateRepresentativeCertificate>(); | ||
|
|
||
| useEffect(() => { | ||
| const getCertificateData = async () => { | ||
| const txCertificate = await certificateInspectorFactory<Wallet.Cardano.RegisterDelegateRepresentativeCertificate>( | ||
| CertificateType.RegisterDelegateRepresentative | ||
| )(request?.transaction.toCore()); | ||
| setCertificate(txCertificate); | ||
| }; | ||
|
|
||
| getCertificateData(); | ||
| }, [request]); | ||
|
|
||
| if (!certificate) { | ||
| return <Skeleton loading />; | ||
| } | ||
|
|
||
| const depositPaidWithCardanoSymbol = depositPaidWithSymbol(certificate.deposit, cardanoCoin); | ||
|
|
||
| // TODO: might be changed in scope of https://input-output.atlassian.net/browse/LW-9034 | ||
| return ( | ||
| <ConfirmDRepRegistration | ||
| dappInfo={dappInfo} | ||
| metadata={{ | ||
| depositPaid: depositPaidWithCardanoSymbol, | ||
| drepId: drepIDasBech32FromHash(certificate.dRepCredential.hash), | ||
vetalcore marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| hash: certificate.anchor?.dataHash, | ||
| url: certificate.anchor?.url | ||
| }} | ||
| translations={{ | ||
| metadata: t('core.DRepRegistration.metadata'), | ||
| labels: { | ||
| depositPaid: t('core.DRepRegistration.depositPaid'), | ||
| drepId: t('core.DRepRegistration.drepId'), | ||
| hash: t('core.DRepRegistration.hash'), | ||
| url: t('core.DRepRegistration.url') | ||
| } | ||
| }} | ||
| /> | ||
| ); | ||
| }; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.