Skip to content

feat(wallet-sdk,core-acs-reader): add caching to acs reader#1650

Open
mateuszpiatkowski-da wants to merge 17 commits into
mainfrom
mateuszpiatkowski-da/add-caching-to-acs-reader
Open

feat(wallet-sdk,core-acs-reader): add caching to acs reader#1650
mateuszpiatkowski-da wants to merge 17 commits into
mainfrom
mateuszpiatkowski-da/add-caching-to-acs-reader

Conversation

@mateuszpiatkowski-da
Copy link
Copy Markdown
Contributor

@mateuszpiatkowski-da mateuszpiatkowski-da commented Apr 21, 2026

.

Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
@mateuszpiatkowski-da mateuszpiatkowski-da self-assigned this Apr 21, 2026
@mateuszpiatkowski-da mateuszpiatkowski-da requested review from a team as code owners April 21, 2026 11:13
@mateuszpiatkowski-da mateuszpiatkowski-da linked an issue Apr 21, 2026 that may be closed by this pull request
mateuszpiatkowski-da and others added 5 commits April 23, 2026 19:23
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>
@mateuszpiatkowski-da mateuszpiatkowski-da marked this pull request as draft April 27, 2026 14:16
mateuszpiatkowski-da and others added 3 commits April 28, 2026 12:04
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>
@mateuszpiatkowski-da mateuszpiatkowski-da marked this pull request as ready for review April 28, 2026 12:01
Copy link
Copy Markdown
Contributor

@PHOL-DA PHOL-DA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, would love to see some tests to verify it works 😄

Comment thread sdk/wallet-sdk/src/wallet/namespace/ledger/acs/reader.ts Outdated
mateuszpiatkowski-da and others added 2 commits April 29, 2026 15:04
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>
@mateuszpiatkowski-da
Copy link
Copy Markdown
Contributor Author

mateuszpiatkowski-da commented Apr 29, 2026

LGTM, would love to see some tests to verify it works 😄

@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?

@mateuszpiatkowski-da mateuszpiatkowski-da enabled auto-merge (squash) April 29, 2026 14:18
PHOL-DA
PHOL-DA previously approved these changes May 4, 2026
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
@mateuszpiatkowski-da mateuszpiatkowski-da requested review from a team as code owners May 7, 2026 09:38
@mateuszpiatkowski-da mateuszpiatkowski-da marked this pull request as draft May 14, 2026 11:59
auto-merge was automatically disabled May 14, 2026 11:59

Pull request was converted to draft

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>
@mateuszpiatkowski-da mateuszpiatkowski-da marked this pull request as ready for review May 15, 2026 07:34
@mateuszpiatkowski-da mateuszpiatkowski-da enabled auto-merge (squash) May 15, 2026 09:02
@mateuszpiatkowski-da mateuszpiatkowski-da changed the title feat(wallet-sdk): add caching to acs reader feat(wallet-sdk, acs-reader): add caching to acs reader May 15, 2026
@mateuszpiatkowski-da mateuszpiatkowski-da changed the title feat(wallet-sdk, acs-reader): add caching to acs reader feat(wallet-sdk,core-acs-reader): add caching to acs reader May 15, 2026
"dependencies": {
"@canton-network/core-ledger-client-types": "workspace:^",
"@canton-network/core-provider-ledger": "workspace:^",
"@canton-network/core-token-standard": "workspace:^",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because you import token standard into the acs reader, you effectively have a circular dependency here

)
}

acs = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't have the liberty anymore to just remove stuff, we should mark with @deprecated where applicable

Comment thread nx.json
]
],
"analytics": false,
"nxCloudId": "6a05b93522efcb8f608e1a3d"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably why the static test was failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add caching to acs reader

2 participants