From 84f6673c0b320adeb591fc38f258f460aeeb879f Mon Sep 17 00:00:00 2001 From: Rhys Bartels-Waller Date: Sun, 26 Jan 2025 04:28:10 +1100 Subject: [PATCH 1/4] refactor: always use Blockfrost input resolver and address discovery (#1664) --- .../src/lib/scripts/background/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/browser-extension-wallet/src/lib/scripts/background/config.ts b/apps/browser-extension-wallet/src/lib/scripts/background/config.ts index 87483ec2e2..f697469bb7 100644 --- a/apps/browser-extension-wallet/src/lib/scripts/background/config.ts +++ b/apps/browser-extension-wallet/src/lib/scripts/background/config.ts @@ -68,8 +68,8 @@ export const getProviders = async (chainName: Wallet.ChainName): Promise Date: Sat, 25 Jan 2025 17:28:38 +0000 Subject: [PATCH 2/4] chore: bump version to 1.18.3 --- apps/browser-extension-wallet/manifest.json | 2 +- apps/browser-extension-wallet/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/browser-extension-wallet/manifest.json b/apps/browser-extension-wallet/manifest.json index 59e078e8df..cbe0206ee8 100644 --- a/apps/browser-extension-wallet/manifest.json +++ b/apps/browser-extension-wallet/manifest.json @@ -1,7 +1,7 @@ { "name": "$WALLET_MANIFEST_NAME", "description": "One fast, accessible, and secure platform for digital assets, DApps, NFTs, and DeFi.", - "version": "1.18.2", + "version": "1.18.3", "manifest_version": 3, "key": "$LACE_EXTENSION_KEY", "icons": { diff --git a/apps/browser-extension-wallet/package.json b/apps/browser-extension-wallet/package.json index 432ccd7df6..d09598f85d 100644 --- a/apps/browser-extension-wallet/package.json +++ b/apps/browser-extension-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@lace/browser-extension-wallet", - "version": "1.18.2", + "version": "1.18.3", "description": "A fully capable wallet packaged as browser extensions for Chrome, Firefox, and Edge", "homepage": "https://github.com/input-output-hk/lace/blob/master/apps/browser-extension-wallet/README.md", "bugs": { From 1866df52d3d4d803d5650caff0cd07fbb2546151 Mon Sep 17 00:00:00 2001 From: vetalcore Date: Sun, 26 Jan 2025 15:10:35 +0200 Subject: [PATCH 3/4] feat: display end txs message in the activity tab in namo mode (#1665) --- packages/nami/src/ui/app/components/historyViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nami/src/ui/app/components/historyViewer.tsx b/packages/nami/src/ui/app/components/historyViewer.tsx index 4340e5fea8..b860ce1246 100644 --- a/packages/nami/src/ui/app/components/historyViewer.tsx +++ b/packages/nami/src/ui/app/components/historyViewer.tsx @@ -84,7 +84,7 @@ const HistoryViewer = () => { fontWeight="bold" color="gray.400" > - ... nothing more + Use a Cardano explorer to see full transaction history. ) : ( From 5dc3410d194522f509418f679b548056c24a82e7 Mon Sep 17 00:00:00 2001 From: mirceahasegan Date: Sun, 26 Jan 2025 15:46:33 +0100 Subject: [PATCH 4/4] fix(extension): tx history limit 10 and input resolution timeout increase (#1666) --- .../src/stores/slices/wallet-activities-slice.ts | 6 ++++-- .../features/activity/helpers/common-tx-transformer.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/browser-extension-wallet/src/stores/slices/wallet-activities-slice.ts b/apps/browser-extension-wallet/src/stores/slices/wallet-activities-slice.ts index f7d1ac660c..1a072a273f 100644 --- a/apps/browser-extension-wallet/src/stores/slices/wallet-activities-slice.ts +++ b/apps/browser-extension-wallet/src/stores/slices/wallet-activities-slice.ts @@ -140,6 +140,8 @@ const mapWalletActivities = memoize( Pick & Pick ) => { + const TX_LIMIT_SIZE = 10; + const txHistorySlice = transactions.history.slice(-TX_LIMIT_SIZE); const epochRewardsMapper = (earnedEpoch: Wallet.Cardano.EpochNo, rewards: Reward[]): ExtendedActivityProps => { const REWARD_SPENDABLE_DELAY_EPOCHS = 2; const spendableEpoch = (earnedEpoch + REWARD_SPENDABLE_DELAY_EPOCHS) as Wallet.Cardano.EpochNo; @@ -276,8 +278,8 @@ const mapWalletActivities = memoize( const getHistoricalTransactions = async () => { const filtered = !assetDetails || assetDetails?.id === cardanoCoin.id - ? transactions.history.map((tx) => ({ tx })) - : await filterTransactionByAssetId(transactions.history); + ? txHistorySlice.map((tx) => ({ tx })) + : await filterTransactionByAssetId(txHistorySlice); return flatten(await Promise.all(filtered.map((tx) => historicTransactionMapper(tx)))); }; diff --git a/apps/browser-extension-wallet/src/views/browser-view/features/activity/helpers/common-tx-transformer.ts b/apps/browser-extension-wallet/src/views/browser-view/features/activity/helpers/common-tx-transformer.ts index 2cc479634b..b8ace53f56 100644 --- a/apps/browser-extension-wallet/src/views/browser-view/features/activity/helpers/common-tx-transformer.ts +++ b/apps/browser-extension-wallet/src/views/browser-view/features/activity/helpers/common-tx-transformer.ts @@ -14,7 +14,7 @@ import { hasPhase2ValidationFailed } from '@src/utils/phase2-validation'; import { createTxInspector, Milliseconds, transactionSummaryInspector } from '@cardano-sdk/core'; // eslint-disable-next-line no-magic-numbers -const TIMEOUT = 1000 as Milliseconds; +const TIMEOUT = 2000 as Milliseconds; export interface TxTransformerInput { tx: Wallet.TxInFlight | Wallet.Cardano.HydratedTx | Wallet.KeyManagement.WitnessedTx;