@distrohelena/canton-typescript-sdk 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -140,7 +140,7 @@ class TemplateBindingEmitter {
140
140
  `export class ${binding.className} extends ${this.getSdkName("DamlTemplate", runtimeWrapperTypeNames)} implements ${binding.createFieldsTypeName} {`,
141
141
  ` public static readonly templateId = ${JSON.stringify(binding.templateIdLiteral)};`,
142
142
  ...(binding.packageName === undefined ? [] : [` public static readonly packageName = ${JSON.stringify(binding.packageName)};`]),
143
- ` private static readonly descriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitTemplateDescriptor(binding)};`,
143
+ ` public static readonly descriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitTemplateDescriptor(binding)};`,
144
144
  "",
145
145
  ...binding.createFields.map((field) => ` public readonly ${field.propertyName}: ${field.typeName};`),
146
146
  ...(binding.createFields.length === 0 ? [] : [""]),
@@ -176,8 +176,8 @@ class TemplateBindingEmitter {
176
176
  emitChoiceEventClass(binding, choice, runtimeWrapperTypeNames) {
177
177
  return [
178
178
  `export class ${choice.exercisedEventTypeName} {`,
179
- ` private static readonly argumentDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.parameterType)};`,
180
- ` private static readonly resultDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.returnType)};`,
179
+ ` public static readonly argumentDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.parameterType)};`,
180
+ ` public static readonly resultDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.returnType)};`,
181
181
  "",
182
182
  ` public readonly choiceName = ${JSON.stringify(choice.name)} as const;`,
183
183
  " public readonly contractId: string;",
@@ -137,7 +137,7 @@ export class TemplateBindingEmitter {
137
137
  `export class ${binding.className} extends ${this.getSdkName("DamlTemplate", runtimeWrapperTypeNames)} implements ${binding.createFieldsTypeName} {`,
138
138
  ` public static readonly templateId = ${JSON.stringify(binding.templateIdLiteral)};`,
139
139
  ...(binding.packageName === undefined ? [] : [` public static readonly packageName = ${JSON.stringify(binding.packageName)};`]),
140
- ` private static readonly descriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitTemplateDescriptor(binding)};`,
140
+ ` public static readonly descriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitTemplateDescriptor(binding)};`,
141
141
  "",
142
142
  ...binding.createFields.map((field) => ` public readonly ${field.propertyName}: ${field.typeName};`),
143
143
  ...(binding.createFields.length === 0 ? [] : [""]),
@@ -173,8 +173,8 @@ export class TemplateBindingEmitter {
173
173
  emitChoiceEventClass(binding, choice, runtimeWrapperTypeNames) {
174
174
  return [
175
175
  `export class ${choice.exercisedEventTypeName} {`,
176
- ` private static readonly argumentDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.parameterType)};`,
177
- ` private static readonly resultDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.returnType)};`,
176
+ ` public static readonly argumentDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.parameterType)};`,
177
+ ` public static readonly resultDescriptor: ${this.getSdkName("DamlTypeDescriptor", runtimeWrapperTypeNames)} = ${this.emitDescriptor(choice.returnType)};`,
178
178
  "",
179
179
  ` public readonly choiceName = ${JSON.stringify(choice.name)} as const;`,
180
180
  " public readonly contractId: string;",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distrohelena/canton-typescript-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",