Skip to content

Commit

Permalink
[LW-11760] fix: bump cardano-js-sdk and utilize computeWalletId for w…
Browse files Browse the repository at this point in the history
…allet repository storage (#1484)

* chore: bump cardano-js-sdk package versions

* fix: add computeDocId function to wallet repository storage

@cardano-sdk/wallet has a fix to preserve the existing collection
documents by id when using CollectionStorage.setAll function

This will hopefully resolve the production bug where
users wallets gets broken for no apparent reason
  • Loading branch information
mkazlauskas authored Oct 28, 2024
1 parent 7dfc3dd commit c87b43c
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 196 deletions.
18 changes: 9 additions & 9 deletions apps/browser-extension-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@cardano-sdk/cardano-services-client": "0.21.4",
"@cardano-sdk/core": "0.41.1",
"@cardano-sdk/dapp-connector": "0.12.41",
"@cardano-sdk/input-selection": "0.13.24",
"@cardano-sdk/tx-construction": "0.21.9",
"@cardano-sdk/cardano-services-client": "0.21.5",
"@cardano-sdk/core": "0.41.2",
"@cardano-sdk/dapp-connector": "0.12.42",
"@cardano-sdk/input-selection": "0.13.25",
"@cardano-sdk/tx-construction": "0.21.10",
"@cardano-sdk/util": "0.15.5",
"@cardano-sdk/util-rxjs": "0.7.37",
"@cardano-sdk/wallet": "0.44.12",
"@cardano-sdk/web-extension": "0.34.11",
"@cardano-sdk/util-rxjs": "0.7.38",
"@cardano-sdk/wallet": "0.44.13",
"@cardano-sdk/web-extension": "0.34.12",
"@emurgo/cip14-js": "~3.0.1",
"@input-output-hk/lace-ui-toolkit": "1.21.0",
"@lace/cardano": "0.1.0",
Expand Down Expand Up @@ -96,7 +96,7 @@
"zustand": "3.5.14"
},
"devDependencies": {
"@cardano-sdk/hardware-ledger": "0.12.9",
"@cardano-sdk/hardware-ledger": "0.12.10",
"@emurgo/cardano-message-signing-asmjs": "1.0.1",
"@openpgp/web-stream-tools": "0.0.11-patch-0",
"@pdfme/common": "^4.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { logger } from '@lace/common';
export const walletRepository = new WalletRepository({
logger,
store: new Wallet.storage.PouchDbCollectionStore<AnyWallet<Wallet.WalletMetadata, Wallet.AccountMetadata>>(
{ dbName: 'walletRepository' },
{ dbName: 'walletRepository', computeDocId: (wallet) => wallet.walletId },
logger
)
});
Expand Down
18 changes: 9 additions & 9 deletions packages/cardano/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@
"watch": "yarn build --watch"
},
"dependencies": {
"@cardano-sdk/cardano-services-client": "0.21.4",
"@cardano-sdk/core": "0.41.1",
"@cardano-sdk/cardano-services-client": "0.21.5",
"@cardano-sdk/core": "0.41.2",
"@cardano-sdk/crypto": "0.1.30",
"@cardano-sdk/hardware-ledger": "0.12.9",
"@cardano-sdk/hardware-trezor": "0.6.8",
"@cardano-sdk/key-management": "0.24.7",
"@cardano-sdk/tx-construction": "0.21.9",
"@cardano-sdk/hardware-ledger": "0.12.10",
"@cardano-sdk/hardware-trezor": "0.6.9",
"@cardano-sdk/key-management": "0.24.8",
"@cardano-sdk/tx-construction": "0.21.10",
"@cardano-sdk/util": "0.15.5",
"@cardano-sdk/wallet": "0.44.12",
"@cardano-sdk/web-extension": "0.34.11",
"@cardano-sdk/wallet": "0.44.13",
"@cardano-sdk/web-extension": "0.34.12",
"@lace/common": "0.1.0",
"@ledgerhq/devices": "^8.2.1",
"@stablelib/chacha20poly1305": "1.0.1",
Expand All @@ -71,7 +71,7 @@
"webextension-polyfill": "0.10.0"
},
"devDependencies": {
"@cardano-sdk/util-dev": "0.23.6",
"@cardano-sdk/util-dev": "0.23.7",
"@emurgo/cardano-message-signing-browser": "1.0.1",
"@types/webextension-polyfill": "0.10.0",
"axios": "^1.7.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@cardano-sdk/wallet": "0.44.12",
"@cardano-sdk/web-extension": "0.34.11",
"@cardano-sdk/wallet": "0.44.13",
"@cardano-sdk/web-extension": "0.34.12",
"@input-output-hk/lace-ui-toolkit": "1.19.0",
"@lace/cardano": "0.1.0",
"@lace/common": "0.1.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/nami/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
},
"dependencies": {
"@cardano-foundation/ledgerjs-hw-app-cardano": "^6.0.0",
"@cardano-sdk/core": "0.41.1",
"@cardano-sdk/core": "0.41.2",
"@cardano-sdk/crypto": "0.1.30",
"@cardano-sdk/tx-construction": "0.21.9",
"@cardano-sdk/tx-construction": "0.21.10",
"@cardano-sdk/util": "0.15.5",
"@cardano-sdk/web-extension": "0.34.11",
"@cardano-sdk/web-extension": "0.34.12",
"@chakra-ui/css-reset": "1.0.0",
"@chakra-ui/icons": "1.0.13",
"@chakra-ui/react": "1.6.4",
Expand Down
18 changes: 9 additions & 9 deletions packages/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@cardano-sdk/core": "0.41.1",
"@cardano-sdk/input-selection": "0.13.24",
"@cardano-sdk/tx-construction": "0.21.9",
"@cardano-sdk/core": "0.41.2",
"@cardano-sdk/input-selection": "0.13.25",
"@cardano-sdk/tx-construction": "0.21.10",
"@cardano-sdk/util": "0.15.5",
"@cardano-sdk/wallet": "0.44.12",
"@cardano-sdk/web-extension": "0.34.11",
"@cardano-sdk/wallet": "0.44.13",
"@cardano-sdk/web-extension": "0.34.12",
"@storybook/addon-actions": "^7.6.7",
"@storybook/addon-essentials": "^7.6.7",
"@storybook/addon-interactions": "^7.6.7",
Expand Down Expand Up @@ -126,11 +126,11 @@
"wait-on": "^7.0.1"
},
"peerDependencies": {
"@cardano-sdk/input-selection": "0.13.24",
"@cardano-sdk/tx-construction": "0.21.9",
"@cardano-sdk/input-selection": "0.13.25",
"@cardano-sdk/tx-construction": "0.21.10",
"@cardano-sdk/util": "0.15.5",
"@cardano-sdk/wallet": "0.44.12",
"@cardano-sdk/web-extension": "0.34.11",
"@cardano-sdk/wallet": "0.44.13",
"@cardano-sdk/web-extension": "0.34.12",
"@lace/cardano": "^0.1.0",
"@lace/common": "^0.1.0",
"@lace/core": "0.1.0",
Expand Down
Loading

0 comments on commit c87b43c

Please sign in to comment.