Skip to content

Commit

Permalink
update canton to 20241112.12333.0.v11bdc29a/2.10.0-snapshot.20241112.…
Browse files Browse the repository at this point in the history
…12333.0.v11bdc29a in main-2.x (#20292)

tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
  • Loading branch information
azure-pipelines[bot] and Azure Pipelines Daml Build authored Nov 13, 2024
1 parent c4a4a38 commit f716891
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
sandbox-options:
- --wall-clock-time
name: contact
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
sandbox-options:
- --wall-clock-time
name: message
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
build-options:
- --target=1.14
name: CantonExamples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
name: ai-analysis
source: AIAnalysis.daml
init-script: AIAnalysis:setup
Expand Down
2 changes: 1 addition & 1 deletion sdk/canton/community/demo/src/main/daml/bank/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
name: bank
source: Bank.daml
init-script: Bank:setup
Expand Down
2 changes: 1 addition & 1 deletion sdk/canton/community/demo/src/main/daml/doctor/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
name: doctor
source: Doctor.daml
init-script: Doctor:setup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
name: health-insurance
source: HealthInsurance.daml
init-script: HealthInsurance:setup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
name: medical-records
source: MedicalRecord.daml
init-script: MedicalRecord:setup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class StoreBackedCommandExecutorSpec

"disallow unauthorized disclosed contracts" in {
val expected =
s"Upgrading contract with $disclosedContractId failed authentication check with error: Not authorized. The following upgrading checks failed: ['signatories mismatch: Set(unexpectedSig) vs Set(signatory)', 'observers mismatch: Set(unexpectedObs) vs Set(observer)', 'key maintainers mismatch: Set(unexpectedSig) vs Set(signatory)', 'key value mismatch: Some(GlobalKey(p:m:n, ValueBool(true))) vs Some(GlobalKey(p:m:n, ValueRecord(None,ImmArray((None,ValueParty(signatory)),(None,ValueText(some key))))))']"
s"Upgrading contract with $disclosedContractId failed authentication check with error: Not authorized. The following upgrading checks failed: ['signatories mismatch: Set(unexpectedSig) vs Set(signatory)', 'observers mismatch: Set(unexpectedObs) vs Set(observer)', 'key maintainers mismatch: Set(unexpectedSig) vs Set(signatory)', 'key value mismatch: Some(GlobalKey($pvPackageName, p:m:n, ValueBool(true))) vs Some(GlobalKey($pvPackageName, p:m:n, ValueRecord(None,ImmArray((None,ValueParty(signatory)),(None,ValueText(some key))))))']"
doTest(
Some(disclosedContractId),
Some(Some(expected)),
Expand All @@ -448,7 +448,7 @@ class StoreBackedCommandExecutorSpec
"disallow unauthorized stakeholder contracts" in {
val errorMessage = "Not authorized"
val expected =
s"Upgrading contract with $stakeholderContractId failed authentication check with error: Not authorized. The following upgrading checks failed: ['signatories mismatch: Set(unexpectedSig) vs Set(signatory)', 'observers mismatch: Set() vs Set(observer)', 'key maintainers mismatch: Set() vs Set(signatory)', 'key value mismatch: None vs Some(GlobalKey(p:m:n, ValueRecord(None,ImmArray((None,ValueParty(signatory)),(None,ValueText(some key))))))']"
s"Upgrading contract with $stakeholderContractId failed authentication check with error: Not authorized. The following upgrading checks failed: ['signatories mismatch: Set(unexpectedSig) vs Set(signatory)', 'observers mismatch: Set() vs Set(observer)', 'key maintainers mismatch: Set() vs Set(signatory)', 'key value mismatch: None vs Some(GlobalKey($pvPackageName, p:m:n, ValueRecord(None,ImmArray((None,ValueParty(signatory)),(None,ValueText(some key))))))']"
doTest(
Some(stakeholderContractId),
Some(Some(expected)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,19 +651,22 @@ object CommandExecutionErrors extends CommandExecutionErrorGroup {

// TODO https://github.com/digital-asset/daml/issues/18616: use a non-Dev based error code
@Explanation("Upgrade validation fails when trying to upgrade the contract")
@Resolution("Verify that neither the signatories, nor the observers, nor the contract key, nor the key's maintainers have changed")
object UpgradeError extends ErrorCode(
id = "INTERPRETATION_UPGRADE_ERROR",
ErrorCategory.InvalidGivenCurrentSystemStateOther,
) {
@Resolution(
"Verify that neither the signatories, nor the observers, nor the contract key, nor the key's maintainers have changed"
)
object UpgradeError
extends ErrorCode(
id = "INTERPRETATION_UPGRADE_ERROR",
ErrorCategory.InvalidGivenCurrentSystemStateOther,
) {
final case class Reject(
override val cause: String,
err: LfInterpretationError.Upgrade.Error,
)(implicit
loggingContext: ContextualizedErrorLogger
) extends DamlErrorWithDefiniteAnswer(
cause = cause
) {
override val cause: String,
err: LfInterpretationError.Upgrade.Error,
)(implicit
loggingContext: ContextualizedErrorLogger
) extends DamlErrorWithDefiniteAnswer(
cause = cause
) {

override def resources: Seq[(ErrorResource, String)] =
Seq(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
build-options:
- --target=1.14
name: JsonEncodingTest
Expand Down
2 changes: 1 addition & 1 deletion sdk/canton/community/participant/src/main/daml/daml.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
name: AdminWorkflows
source: AdminWorkflows.daml
version: 2.10.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk-version: 2.10.0-snapshot.20241101.13047.0.v1e6d5c93
sdk-version: 2.10.0-snapshot.20241108.13063.0.v98eb7dfe
build-options:
- --target=1.14
name: AdminWorkflowsWithVacuuming
Expand Down
6 changes: 3 additions & 3 deletions sdk/test-common/canton/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ if [ "{local}" = "true" ]; then
exit 0
fi
CANTON_ENTERPRISE_VERSION=2.10.0-snapshot.20241108.12332.0.v1b37d87e
CANTON_ENTERPRISE_SHA=361ee176e9c6ccb2258040c1ad934315189491ec3f4d16cdf9e2d671744add3f
CANTON_ENTERPRISE_URL=https://digitalasset.jfrog.io/artifactory/assembly/daml/canton-backup/2.10.0-snapshot.20241108.12332.0.v1b37d87e/361ee176e9c6ccb2258040c1ad934315189491ec3f4d16cdf9e2d671744add3f/canton-enterprise-2.10.0-snapshot.20241108.12332.0.v1b37d87e.tar.gz
CANTON_ENTERPRISE_VERSION=2.10.0-snapshot.20241112.12333.0.v11bdc29a
CANTON_ENTERPRISE_SHA=3fcc5ce0aa9607ac92268900b539798272f214536addba2cdd445de57f82fb85
CANTON_ENTERPRISE_URL=https://digitalasset.jfrog.io/artifactory/assembly/daml/canton-backup/2.10.0-snapshot.20241112.12333.0.v11bdc29a/3fcc5ce0aa9607ac92268900b539798272f214536addba2cdd445de57f82fb85/canton-enterprise-2.10.0-snapshot.20241112.12333.0.v11bdc29a.tar.gz
url=$$CANTON_ENTERPRISE_URL
Expand Down

0 comments on commit f716891

Please sign in to comment.