feat(wallet-sdk,core-acs-reader): add caching to acs reader#1650
feat(wallet-sdk,core-acs-reader): add caching to acs reader#1650mateuszpiatkowski-da wants to merge 17 commits into
Conversation
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
PHOL-DA
left a comment
There was a problem hiding this comment.
LGTM, would love to see some tests to verify it works 😄
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
@PHOL-DA thx :) As for the tests: did you mean something else than https://github.com/hyperledger-labs/splice-wallet-kernel/pull/1650/changes#diff-2ee7e591adb0144ab65f486142a3a38609bbe819ddaf25ea0e63c3c88ea372b3? |
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
| "dependencies": { | ||
| "@canton-network/core-ledger-client-types": "workspace:^", | ||
| "@canton-network/core-provider-ledger": "workspace:^", | ||
| "@canton-network/core-token-standard": "workspace:^", |
There was a problem hiding this comment.
why does the acs reader need token standard ?
| // Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import { ContractId } from '@canton-network/core-token-standard' |
There was a problem hiding this comment.
ContractId should be a primitive further down that token standard, so we should probably move that (a ContractId is not unique to token standard, but rather a primitive type for all daml contracts)
| } from '@canton-network/core-ledger-client-types' | ||
| import { Logger, PartyId } from '@canton-network/core-types' | ||
| import { AcsReader, AcsOptions } from '@canton-network/core-acs-reader' | ||
| import { ACSReader, AcsOptions } from '@canton-network/core-acs-reader' |
There was a problem hiding this comment.
because you import token standard into the acs reader, you effectively have a circular dependency here
| ) | ||
| } | ||
|
|
||
| acs = { |
There was a problem hiding this comment.
we don't have the liberty anymore to just remove stuff, we should mark with @deprecated where applicable
| ] | ||
| ], | ||
| "analytics": false, | ||
| "nxCloudId": "6a05b93522efcb8f608e1a3d" |
There was a problem hiding this comment.
this is probably why the static test was failing.
.