@maci-protocol/contracts 0.0.0-ci.26f28d6 → 0.0.0-ci.b4e6be4
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.
|
@@ -46,15 +46,13 @@ const types_1 = require("../helpers/types");
|
|
|
46
46
|
// deploy MACI
|
|
47
47
|
const steps = await deployment.start("full", { incremental: true, verify: false });
|
|
48
48
|
await deployment.runSteps(steps, 0);
|
|
49
|
+
// update poll start and end dates to ensure it's in the future and we have time to send votes
|
|
50
|
+
const timeNow = Math.floor(Date.now() / 1000);
|
|
51
|
+
deployment.updateDeployConfig(types_1.EContracts.Poll, "pollStartDate", timeNow);
|
|
52
|
+
deployment.updateDeployConfig(types_1.EContracts.Poll, "pollEndDate", timeNow + 1000000);
|
|
49
53
|
// deploy a Poll
|
|
50
|
-
// get original tree depth
|
|
51
|
-
const messageTreeDepth = deployment.getDeployConfigField(types_1.EContracts.VkRegistry, "messageTreeDepth");
|
|
52
|
-
// update it
|
|
53
|
-
deployment.updateDeployConfig(types_1.EContracts.VkRegistry, "messageTreeDepth", 3);
|
|
54
54
|
const pollSteps = await deployment.start("poll", { incremental: true, verify: false });
|
|
55
55
|
await deployment.runSteps(pollSteps, 0);
|
|
56
|
-
// restore it
|
|
57
|
-
deployment.updateDeployConfig(types_1.EContracts.VkRegistry, "messageTreeDepth", messageTreeDepth);
|
|
58
56
|
try {
|
|
59
57
|
const startBalance = await deployer.provider.getBalance(deployer);
|
|
60
58
|
const maxBatchSize = 100;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benchmarks.js","sourceRoot":"","sources":["../../../tasks/runner/benchmarks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,0DAA8D;AAC9D,2CAAsC;AAEtC,4CAAqD;AACrD,sDAAmD;AACnD,4CAA8C;AAE9C,IAAA,aAAI,EAAC,WAAW,EAAE,gBAAgB,CAA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