@devtion/actions 0.0.0-270e9e0 → 0.0.0-5d170d3

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.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @p0tion/actions
3
- * @version 1.0.4
3
+ * @version 1.0.5
4
4
  * @file A set of actions and helpers for CLI commands
5
5
  * @copyright Ethereum Foundation 2022
6
6
  * @license MIT
@@ -1168,35 +1168,53 @@ const parseCeremonyFile = async (path, cleanup = false) => {
1168
1168
  // check that the timeout is provided for the correct configuration
1169
1169
  let dynamicThreshold;
1170
1170
  let fixedTimeWindow;
1171
+ let circuit = {};
1171
1172
  if (data.timeoutMechanismType === "DYNAMIC" /* CeremonyTimeoutType.DYNAMIC */) {
1172
1173
  if (circuitData.dynamicThreshold <= 0)
1173
1174
  throw new Error("The dynamic threshold should be > 0.");
1174
1175
  dynamicThreshold = circuitData.dynamicThreshold;
1176
+ // the Circuit data for the ceremony setup
1177
+ circuit = {
1178
+ name: circuitData.name,
1179
+ description: circuitData.description,
1180
+ prefix: circuitPrefix,
1181
+ sequencePosition: i + 1,
1182
+ metadata: metadata,
1183
+ files: files,
1184
+ template: template,
1185
+ compiler: compiler,
1186
+ verification: verification,
1187
+ dynamicThreshold: dynamicThreshold,
1188
+ avgTimings: {
1189
+ contributionComputation: 0,
1190
+ fullContribution: 0,
1191
+ verifyCloudFunction: 0
1192
+ },
1193
+ };
1175
1194
  }
1176
1195
  if (data.timeoutMechanismType === "FIXED" /* CeremonyTimeoutType.FIXED */) {
1177
1196
  if (circuitData.fixedTimeWindow <= 0)
1178
1197
  throw new Error("The fixed time window threshold should be > 0.");
1179
1198
  fixedTimeWindow = circuitData.fixedTimeWindow;
1199
+ // the Circuit data for the ceremony setup
1200
+ circuit = {
1201
+ name: circuitData.name,
1202
+ description: circuitData.description,
1203
+ prefix: circuitPrefix,
1204
+ sequencePosition: i + 1,
1205
+ metadata: metadata,
1206
+ files: files,
1207
+ template: template,
1208
+ compiler: compiler,
1209
+ verification: verification,
1210
+ fixedTimeWindow: fixedTimeWindow,
1211
+ avgTimings: {
1212
+ contributionComputation: 0,
1213
+ fullContribution: 0,
1214
+ verifyCloudFunction: 0
1215
+ },
1216
+ };
1180
1217
  }
1181
- // the Circuit data for the ceremony setup
1182
- const circuit = {
1183
- name: circuitData.name,
1184
- description: circuitData.description,
1185
- prefix: circuitPrefix,
1186
- sequencePosition: i + 1,
1187
- metadata: metadata,
1188
- files: files,
1189
- template: template,
1190
- compiler: compiler,
1191
- verification: verification,
1192
- fixedTimeWindow: fixedTimeWindow,
1193
- // dynamicThreshold: dynamicThreshold,
1194
- avgTimings: {
1195
- contributionComputation: 0,
1196
- fullContribution: 0,
1197
- verifyCloudFunction: 0
1198
- },
1199
- };
1200
1218
  circuits.push(circuit);
1201
1219
  // remove the local r1cs download (if used for verifying the config only vs setup)
1202
1220
  if (cleanup)
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @p0tion/actions
3
- * @version 1.0.4
3
+ * @version 1.0.5
4
4
  * @file A set of actions and helpers for CLI commands
5
5
  * @copyright Ethereum Foundation 2022
6
6
  * @license MIT
@@ -1170,35 +1170,53 @@ const parseCeremonyFile = async (path, cleanup = false) => {
1170
1170
  // check that the timeout is provided for the correct configuration
1171
1171
  let dynamicThreshold;
1172
1172
  let fixedTimeWindow;
1173
+ let circuit = {};
1173
1174
  if (data.timeoutMechanismType === "DYNAMIC" /* CeremonyTimeoutType.DYNAMIC */) {
1174
1175
  if (circuitData.dynamicThreshold <= 0)
1175
1176
  throw new Error("The dynamic threshold should be > 0.");
1176
1177
  dynamicThreshold = circuitData.dynamicThreshold;
1178
+ // the Circuit data for the ceremony setup
1179
+ circuit = {
1180
+ name: circuitData.name,
1181
+ description: circuitData.description,
1182
+ prefix: circuitPrefix,
1183
+ sequencePosition: i + 1,
1184
+ metadata: metadata,
1185
+ files: files,
1186
+ template: template,
1187
+ compiler: compiler,
1188
+ verification: verification,
1189
+ dynamicThreshold: dynamicThreshold,
1190
+ avgTimings: {
1191
+ contributionComputation: 0,
1192
+ fullContribution: 0,
1193
+ verifyCloudFunction: 0
1194
+ },
1195
+ };
1177
1196
  }
1178
1197
  if (data.timeoutMechanismType === "FIXED" /* CeremonyTimeoutType.FIXED */) {
1179
1198
  if (circuitData.fixedTimeWindow <= 0)
1180
1199
  throw new Error("The fixed time window threshold should be > 0.");
1181
1200
  fixedTimeWindow = circuitData.fixedTimeWindow;
1201
+ // the Circuit data for the ceremony setup
1202
+ circuit = {
1203
+ name: circuitData.name,
1204
+ description: circuitData.description,
1205
+ prefix: circuitPrefix,
1206
+ sequencePosition: i + 1,
1207
+ metadata: metadata,
1208
+ files: files,
1209
+ template: template,
1210
+ compiler: compiler,
1211
+ verification: verification,
1212
+ fixedTimeWindow: fixedTimeWindow,
1213
+ avgTimings: {
1214
+ contributionComputation: 0,
1215
+ fullContribution: 0,
1216
+ verifyCloudFunction: 0
1217
+ },
1218
+ };
1182
1219
  }
1183
- // the Circuit data for the ceremony setup
1184
- const circuit = {
1185
- name: circuitData.name,
1186
- description: circuitData.description,
1187
- prefix: circuitPrefix,
1188
- sequencePosition: i + 1,
1189
- metadata: metadata,
1190
- files: files,
1191
- template: template,
1192
- compiler: compiler,
1193
- verification: verification,
1194
- fixedTimeWindow: fixedTimeWindow,
1195
- // dynamicThreshold: dynamicThreshold,
1196
- avgTimings: {
1197
- contributionComputation: 0,
1198
- fullContribution: 0,
1199
- verifyCloudFunction: 0
1200
- },
1201
- };
1202
1220
  circuits.push(circuit);
1203
1221
  // remove the local r1cs download (if used for verifying the config only vs setup)
1204
1222
  if (cleanup)
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/helpers/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAW,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;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1,6 @@
1
1
  {
2
2
  "name": "@devtion/actions",
3
- "version": "0.0.0-270e9e0",
3
+ "version": "0.0.0-5d170d3",
4
4
  "description": "A set of actions and helpers for CLI commands",
5
5
  "repository": "git@github.com:privacy-scaling-explorations/p0tion.git",
6
6
  "homepage": "https://github.com/privacy-scaling-explorations/p0tion",
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "558cd8e1ece3f6f3cde816d3bb0b88fea90a86a9"
86
+ "gitHead": "ff032e8717f4aac3f66730e0a256660c2e741505"
87
87
  }