certora-cli-beta 8.20.2__tar.gz → 8.20.3__tar.gz
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.
- {certora_cli_beta-8.20.2/certora_cli_beta.egg-info → certora_cli_beta-8.20.3}/PKG-INFO +2 -2
- certora_cli_beta-8.20.3/README.md +1 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraCloudIO.py +6 -4
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/test_certoraCloudIO.py +29 -11
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Mutate/mutateApp.py +1 -1
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Mutate/mutateConstants.py +2 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/certoraUtils.py +38 -5
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3/certora_cli_beta.egg-info}/PKG-INFO +2 -2
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_jars/ASTExtraction.jar +0 -0
- certora_cli_beta-8.20.3/certora_jars/CERTORA-CLI-VERSION-METADATA.json +1 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_jars/Typechecker.jar +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/setup.py +2 -2
- certora_cli_beta-8.20.2/README.md +0 -1
- certora_cli_beta-8.20.2/certora_jars/CERTORA-CLI-VERSION-METADATA.json +0 -1
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/LICENSE +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/MANIFEST.in +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_bins/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/CompilerCollector.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/CompilerCollectorFactory.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/CompilerCollectorSol.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/CompilerCollectorSolBased.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/CompilerCollectorVy.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/CompilerCollectorYul.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/castingInstrumenter.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraApp.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuild.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuildCacheManager.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuildDataClasses.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuildRust.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuildSui.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraCollectConfigurationLayout.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraCollectRunMetadata.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraCompilerParameters.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraConfigIO.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraContext.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraContextAttributes.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraContextClass.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraContextValidator.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraContractFuncs.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraExtensionInfo.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraJobList.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraMiniSpecParser.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraNodeFilters.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraOffsetConverter.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraParseBuildScript.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraProjectScanner.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraSourceFinders.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraType.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraVerifyGenerator.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/erc7201.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/splitRules.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/storageExtension.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/uncheckedOverflowInstrumenter.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_default.conf +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_mc_no_out_template.spec +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_mc_template.spec +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_sanity.conf +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_template.spec +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/equivCheck.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/sanity.spec +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Mutate/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Mutate/mutateAttributes.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Mutate/mutateUtil.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Mutate/mutateValidate.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Mutate/test_mutateApp.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/ExpectedComparator.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/certoraAttrUtil.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/certoraLogging.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/certoraValidateFuncs.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/proverCommon.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/test_proverCommon.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraCVLFormatter.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraConcord.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraEVMProver.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraEqCheck.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraMutate.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraRanger.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraRun.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraSolanaProver.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraSorobanProver.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/certoraSuiProver.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/rustMutator.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli_beta.egg-info/SOURCES.txt +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli_beta.egg-info/dependency_links.txt +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli_beta.egg-info/entry_points.txt +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli_beta.egg-info/requires.txt +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli_beta.egg-info/top_level.txt +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_jars/__init__.py +0 -0
- {certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: certora-cli-beta
|
|
3
|
-
Version: 8.20.
|
|
3
|
+
Version: 8.20.3
|
|
4
4
|
Summary: Runner for the Certora Prover
|
|
5
5
|
Home-page: https://pypi.org/project/certora-cli-beta
|
|
6
6
|
Author: Certora
|
|
@@ -38,4 +38,4 @@ Dynamic: requires-dist
|
|
|
38
38
|
Dynamic: requires-python
|
|
39
39
|
Dynamic: summary
|
|
40
40
|
|
|
41
|
-
Commit
|
|
41
|
+
Commit 4ef546d. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Commit 4ef546d. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraCloudIO.py
RENAMED
|
@@ -715,6 +715,8 @@ class CloudVerification:
|
|
|
715
715
|
return auth_data
|
|
716
716
|
|
|
717
717
|
def get_group_id_url(self) -> str:
|
|
718
|
+
# The group view is on the legacy dashboard for now: the app has no page for it, so this link stays on
|
|
719
|
+
# the site host.
|
|
718
720
|
return f"{self.get_domain()}/?groupIds={self.context.group_id}"
|
|
719
721
|
|
|
720
722
|
def print_group_id_url(self) -> None:
|
|
@@ -722,7 +724,7 @@ class CloudVerification:
|
|
|
722
724
|
print(f"See all jobs generated from splitting the rules at {group_id_url}", flush=True)
|
|
723
725
|
|
|
724
726
|
def print_output_links(self) -> None:
|
|
725
|
-
print(f"Manage your jobs at {self.app_jobs_url or self.get_domain()}")
|
|
727
|
+
print(f"Manage your jobs at {self.app_jobs_url or Util.get_app_url(self.get_domain())}")
|
|
726
728
|
print(f"Follow your job and see verification results at {self.printed_report_url()}", flush=True)
|
|
727
729
|
|
|
728
730
|
def print_verification_summary(self) -> None:
|
|
@@ -762,8 +764,8 @@ class CloudVerification:
|
|
|
762
764
|
self.msg = auth_data.get("msg", "")
|
|
763
765
|
app_report_url = json_response.get("reportUrl")
|
|
764
766
|
app_jobs_url = json_response.get("jobsUrl")
|
|
765
|
-
self.app_report_url = app_report_url if isinstance(app_report_url, str) else ""
|
|
766
|
-
self.app_jobs_url = app_jobs_url if isinstance(app_jobs_url, str) else ""
|
|
767
|
+
self.app_report_url = Util.get_app_url(app_report_url) if isinstance(app_report_url, str) else ""
|
|
768
|
+
self.app_jobs_url = Util.get_app_url(app_jobs_url) if isinstance(app_jobs_url, str) else ""
|
|
767
769
|
start_message = json_response.get("message")
|
|
768
770
|
if start_message:
|
|
769
771
|
Util.print_completion_message(start_message)
|
|
@@ -1227,7 +1229,7 @@ class CloudVerification:
|
|
|
1227
1229
|
def printed_report_url(self) -> str:
|
|
1228
1230
|
"""
|
|
1229
1231
|
@return: the report link to print to the user. This is the app link from the server if there is one,
|
|
1230
|
-
else the
|
|
1232
|
+
else the report URL that the CLI builds (see set_report_url()).
|
|
1231
1233
|
"""
|
|
1232
1234
|
return self.app_report_url or self.url_print_format()
|
|
1233
1235
|
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/test_certoraCloudIO.py
RENAMED
|
@@ -65,11 +65,11 @@ class TestSendVerificationRequestMessage(unittest.TestCase):
|
|
|
65
65
|
|
|
66
66
|
APP_REPORT = "https://app.example.com/jobs/run1"
|
|
67
67
|
APP_JOBS = "https://app.example.com/jobs"
|
|
68
|
-
|
|
68
|
+
CLI_REPORT = "https://prover.certora.com/output/1/run1?anonymousKey=k"
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
def verified_cloud(**app_fields: Any) -> certoraCloudIO.CloudVerification:
|
|
72
|
-
"""Returns a CloudVerification after a verify response with the given app link fields and the
|
|
72
|
+
"""Returns a CloudVerification after a verify response with the given app link fields and the CLI-built URLs."""
|
|
73
73
|
cv = make_verification()
|
|
74
74
|
json_response: dict[str, Any] = {"anonymousKey": "k", "presigned_url": "u", "userId": 1, **app_fields}
|
|
75
75
|
result, _ = run_send_verification_request(json_response, cv)
|
|
@@ -97,19 +97,19 @@ class TestAppLinks(unittest.TestCase):
|
|
|
97
97
|
self.assertIn(f"For further details visit {APP_REPORT}\n", output)
|
|
98
98
|
self.assertNotIn("anonymousKey", output)
|
|
99
99
|
|
|
100
|
-
def
|
|
100
|
+
def test_report_links_when_fields_null_or_absent(self) -> None:
|
|
101
101
|
cases: list[dict[str, Any]] = [{"reportUrl": None, "jobsUrl": None}, {}, {"reportUrl": "", "jobsUrl": 5}]
|
|
102
102
|
for fields in cases:
|
|
103
103
|
with self.subTest(fields=fields):
|
|
104
104
|
cv = verified_cloud(**fields)
|
|
105
105
|
output = printed(cv.print_output_links)
|
|
106
|
-
self.assertIn(
|
|
107
|
-
self.assertIn(f"see verification results at {
|
|
108
|
-
self.assertIn(f"View the results at {
|
|
109
|
-
self.assertIn(f"For further details visit {
|
|
106
|
+
self.assertIn("Manage your jobs at https://app.certora.com\n", output)
|
|
107
|
+
self.assertIn(f"see verification results at {CLI_REPORT}\n", output)
|
|
108
|
+
self.assertIn(f"View the results at {CLI_REPORT}\n", printed(cv.print_verification_summary))
|
|
109
|
+
self.assertIn(f"For further details visit {CLI_REPORT}\n",
|
|
110
110
|
printed(cv.print_error_and_status_url, "err"))
|
|
111
111
|
|
|
112
|
-
def
|
|
112
|
+
def test_cli_verify_keeps_report_url_internally(self) -> None:
|
|
113
113
|
cv = make_verification()
|
|
114
114
|
cv.vscode_extension_info_writer = MagicMock()
|
|
115
115
|
json_response = {"anonymousKey": "k", "presigned_url": "u", "userId": 1,
|
|
@@ -121,10 +121,10 @@ class TestAppLinks(unittest.TestCase):
|
|
|
121
121
|
return_value=True), \
|
|
122
122
|
patch.object(certoraCloudIO, "JobList") as job_list_cls, redirect_stdout(io.StringIO()):
|
|
123
123
|
self.assertIsNotNone(cv.cli_verify("cl_args"))
|
|
124
|
-
self.assertEqual(cv.reportUrl,
|
|
124
|
+
self.assertEqual(cv.reportUrl, CLI_REPORT)
|
|
125
125
|
self.assertEqual(cv.app_report_url, APP_REPORT)
|
|
126
|
-
self.assertEqual(job_list_cls.return_value.add_job.call_args.args[1],
|
|
127
|
-
cv.vscode_extension_info_writer.add_field.assert_called_once_with("verification_report_url",
|
|
126
|
+
self.assertEqual(job_list_cls.return_value.add_job.call_args.args[1], CLI_REPORT)
|
|
127
|
+
cv.vscode_extension_info_writer.add_field.assert_called_once_with("verification_report_url", CLI_REPORT)
|
|
128
128
|
|
|
129
129
|
def test_poll_log_error_prints_app_report_url(self) -> None:
|
|
130
130
|
cv = verified_cloud(reportUrl=APP_REPORT)
|
|
@@ -152,6 +152,24 @@ class TestAppLinks(unittest.TestCase):
|
|
|
152
152
|
self.assertFalse(cv.cli_report(MagicMock(), "all"))
|
|
153
153
|
self.assertEqual(check_results.call_args.args[4], APP_REPORT)
|
|
154
154
|
|
|
155
|
+
def test_staging_links_stay_on_staging_host(self) -> None:
|
|
156
|
+
cv = make_verification()
|
|
157
|
+
cv.context.server = "staging"
|
|
158
|
+
cv.anonymousKey, cv.userId = "k", 1
|
|
159
|
+
cv.set_report_url(cv.userId, cv.anonymousKey)
|
|
160
|
+
cv.done = cv.triggered = False
|
|
161
|
+
output = printed(cv.print_output_links)
|
|
162
|
+
self.assertIn("Manage your jobs at https://vaas-stg.certora.com\n", output)
|
|
163
|
+
self.assertIn("see verification results at https://vaas-stg.certora.com/output/1/run1?anonymousKey=k\n",
|
|
164
|
+
output)
|
|
165
|
+
|
|
166
|
+
def test_api_calls_stay_on_api_host(self) -> None:
|
|
167
|
+
cv = make_verification()
|
|
168
|
+
cv.set_json_output_url(cv.userId, cv.anonymousKey)
|
|
169
|
+
self.assertEqual(cv.jsonOutputUrl, "https://data-api.certora.com/v1/domain/jobs/run1/f/output.json")
|
|
170
|
+
self.assertEqual(certoraCloudIO.Util.get_api_domain("https://app.certora.com"),
|
|
171
|
+
"https://data-api.certora.com")
|
|
172
|
+
|
|
155
173
|
|
|
156
174
|
if __name__ == "__main__":
|
|
157
175
|
unittest.main()
|
|
@@ -765,7 +765,7 @@ class MutateApp:
|
|
|
765
765
|
if self.orig_run is not None:
|
|
766
766
|
if MConstants.STAGING_DOTCOM in self.orig_run:
|
|
767
767
|
return MConstants.STAGING
|
|
768
|
-
elif MConstants.PROVER_DOTCOM in self.orig_run:
|
|
768
|
+
elif MConstants.PROVER_DOTCOM in self.orig_run or MConstants.APP_DOTCOM in self.orig_run:
|
|
769
769
|
return default
|
|
770
770
|
elif MConstants.DEV_DOTCOM in self.orig_run:
|
|
771
771
|
return MConstants.DEV
|
|
@@ -69,8 +69,10 @@ DEV = "vaas-dev"
|
|
|
69
69
|
CONF = "conf"
|
|
70
70
|
ORIG_RUN_PROVER_CONF = Path("cvt_conf_for_certoraMutate.conf")
|
|
71
71
|
PROVER_DOTCOM = "prover.certora.com"
|
|
72
|
+
APP_DOTCOM = "app.certora.com"
|
|
72
73
|
STAGING_DOTCOM = "vaas-stg.certora.com"
|
|
73
74
|
DEV_DOTCOM = "vaas-dev.certora.com"
|
|
75
|
+
# The mutation dashboard is on the legacy dashboard for now, also on production: the app has no page for it.
|
|
74
76
|
MUTATION_DASHBOARD_PRODUCTION = "https://prover.certora.com/mutations"
|
|
75
77
|
MUTATION_DASHBOARD_STAGING = "https://vaas-stg.certora.com/mutations"
|
|
76
78
|
MUTATION_DASHBOARD_DEV = "https://vaas-dev.certora.com/mutations"
|
|
@@ -158,8 +158,31 @@ API_HOSTS = {
|
|
|
158
158
|
"prover.certora.com": "data-api.certora.com",
|
|
159
159
|
"vaas-stg.certora.com": "data-api-stg.certora.com",
|
|
160
160
|
"vaas-dev.certora.com": "data-api-dev.certora.com",
|
|
161
|
+
# Report links on production use the app host (see APP_HOSTS). Code that derives the API host from a
|
|
162
|
+
# printed link, for example the mutation tester, finds it here.
|
|
163
|
+
"app.certora.com": "data-api.certora.com",
|
|
161
164
|
}
|
|
162
165
|
|
|
166
|
+
# The host for links that a user opens in a browser, for each site host whose browser pages moved to the app.
|
|
167
|
+
# The app serves the report pages (`/output/...`). A site host that is not listed keeps its own links.
|
|
168
|
+
APP_HOSTS = {
|
|
169
|
+
"prover.certora.com": "app.certora.com",
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def replace_host(site_domain: str, hosts: Dict[str, str]) -> str:
|
|
174
|
+
"""
|
|
175
|
+
@param site_domain: a site base URL, for example "https://prover.certora.com"
|
|
176
|
+
@param hosts: maps a site host to the host that replaces it
|
|
177
|
+
@return: site_domain with its host replaced by the matching value in hosts. A host that is not in hosts is
|
|
178
|
+
returned unchanged.
|
|
179
|
+
"""
|
|
180
|
+
parsed_url = urllib3.util.parse_url(site_domain)
|
|
181
|
+
new_host = hosts.get(parsed_url.host or "")
|
|
182
|
+
if new_host is None:
|
|
183
|
+
return site_domain
|
|
184
|
+
return f"{parsed_url.scheme}://{new_host}"
|
|
185
|
+
|
|
163
186
|
|
|
164
187
|
def get_api_domain(site_domain: str) -> str:
|
|
165
188
|
"""
|
|
@@ -167,11 +190,21 @@ def get_api_domain(site_domain: str) -> str:
|
|
|
167
190
|
@return: the matching API base URL, for example "https://data-api.certora.com". A site host that is not in
|
|
168
191
|
API_HOSTS is returned unchanged, because each site host also serves the API routes.
|
|
169
192
|
"""
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
193
|
+
return replace_host(site_domain, API_HOSTS)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def get_app_url(url: str) -> str:
|
|
197
|
+
"""
|
|
198
|
+
@param url: a full browser URL on a site host, for example a report or jobs link.
|
|
199
|
+
@return: the same URL with its host swapped to the app host (see APP_HOSTS), keeping the path and query.
|
|
200
|
+
A host that is not in APP_HOSTS is returned unchanged.
|
|
201
|
+
"""
|
|
202
|
+
parsed = urllib3.util.parse_url(url)
|
|
203
|
+
new_host = APP_HOSTS.get(parsed.host or "")
|
|
204
|
+
if new_host is None:
|
|
205
|
+
return url
|
|
206
|
+
rest = (parsed.path or "") + (f"?{parsed.query}" if parsed.query else "")
|
|
207
|
+
return f"{parsed.scheme}://{new_host}{rest}"
|
|
175
208
|
|
|
176
209
|
|
|
177
210
|
def get_build_dir() -> Path:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: certora-cli-beta
|
|
3
|
-
Version: 8.20.
|
|
3
|
+
Version: 8.20.3
|
|
4
4
|
Summary: Runner for the Certora Prover
|
|
5
5
|
Home-page: https://pypi.org/project/certora-cli-beta
|
|
6
6
|
Author: Certora
|
|
@@ -38,4 +38,4 @@ Dynamic: requires-dist
|
|
|
38
38
|
Dynamic: requires-python
|
|
39
39
|
Dynamic: summary
|
|
40
40
|
|
|
41
|
-
Commit
|
|
41
|
+
Commit 4ef546d. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name": "certora-cli-beta", "tag": "8.20.3", "branch": "", "commit": "4ef546d", "timestamp": "20261026.12.41.750951", "version": "8.20.3"}
|
|
Binary file
|
|
@@ -3,11 +3,11 @@ import setuptools
|
|
|
3
3
|
|
|
4
4
|
setuptools.setup(
|
|
5
5
|
name="certora-cli-beta",
|
|
6
|
-
version="8.20.
|
|
6
|
+
version="8.20.3",
|
|
7
7
|
author="Certora",
|
|
8
8
|
author_email="support@certora.com",
|
|
9
9
|
description="Runner for the Certora Prover",
|
|
10
|
-
long_description="Commit
|
|
10
|
+
long_description="Commit 4ef546d. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.",
|
|
11
11
|
long_description_content_type="text/markdown",
|
|
12
12
|
url="https://pypi.org/project/certora-cli-beta",
|
|
13
13
|
packages=setuptools.find_packages(),
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Commit f5f7778. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name": "certora-cli-beta", "tag": "8.20.2", "branch": "", "commit": "f5f7778", "timestamp": "20261016.19.54.927207", "version": "8.20.2"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/Compiler/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/castingInstrumenter.py
RENAMED
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuild.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuildRust.py
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraBuildSui.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraConfigIO.py
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraContext.py
RENAMED
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraContextClass.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraJobList.py
RENAMED
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraNodeFilters.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/certoraType.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/CertoraProver/storageExtension.py
RENAMED
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_default.conf
RENAMED
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_mc_template.spec
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_sanity.conf
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/Eq_template.spec
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/__init__.py
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/equivCheck.py
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/EquivalenceCheck/sanity.spec
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/ExpectedComparator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli/Shared/certoraValidateFuncs.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli_beta.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{certora_cli_beta-8.20.2 → certora_cli_beta-8.20.3}/certora_cli_beta.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|