Skip to content

Commit

Permalink
Merge pull request #471 from multiversx/remove-contract-report
Browse files Browse the repository at this point in the history
Remove contract report
  • Loading branch information
popenta authored Jan 29, 2025
2 parents 1f28a95 + 9c49436 commit fb4ffdb
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 866 deletions.
50 changes: 0 additions & 50 deletions multiversx_sdk_cli/cli_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,46 +103,6 @@ def setup_parser(args: List[str], subparsers: Any) -> Any:
)
sub.set_defaults(func=run_tests)

sub = cli_shared.add_command_subparser(
subparsers,
"contract",
"report",
"Print a detailed report of the smart contracts.",
)
sub.add_argument(
"--skip-build",
action="store_true",
default=False,
help="skips the step of building of the wasm contracts",
)
sub.add_argument(
"--skip-twiggy",
action="store_true",
default=False,
help="skips the steps of building the debug wasm files and running twiggy",
)
sub.add_argument(
"--output-format",
type=str,
default="text-markdown",
choices=["github-markdown", "text-markdown", "json"],
help="report output format (default: %(default)s)",
)
sub.add_argument(
"--output-file",
type=Path,
help="if specified, the output is written to a file, otherwise it's written to the standard output",
)
sub.add_argument(
"--compare",
type=Path,
nargs="+",
metavar=("report-1.json", "report-2.json"),
help="create a comparison from two or more reports",
)
_add_build_options_sc_meta(sub)
sub.set_defaults(func=do_report)

output_description = CLIOutputBuilder.describe(
with_contract=True, with_transaction_on_network=True, with_simulation=True
)
Expand Down Expand Up @@ -558,16 +518,6 @@ def build(args: Any):
)


def do_report(args: Any):
deprecation_message = "`mxpy contract report` is deprecated. Please use `sc-meta report` instead."
logger.warning(deprecation_message)

args_dict = args.__dict__
projects.do_report(args, args_dict)

show_warning(deprecation_message)


def run_tests(args: Any):
check_if_rust_is_installed()
projects.run_tests(args)
Expand Down
2 changes: 0 additions & 2 deletions multiversx_sdk_cli/projects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
)
from multiversx_sdk_cli.projects.project_base import Project
from multiversx_sdk_cli.projects.project_rust import ProjectRust
from multiversx_sdk_cli.projects.report.do_report import do_report
from multiversx_sdk_cli.projects.templates import Contract

__all__ = [
"build_project",
"clean_project",
"do_report",
"run_tests",
"load_project",
"Project",
Expand Down
3 changes: 0 additions & 3 deletions multiversx_sdk_cli/projects/report/__init__.py

This file was deleted.

Empty file.
61 changes: 0 additions & 61 deletions multiversx_sdk_cli/projects/report/data/common.py

This file was deleted.

108 changes: 0 additions & 108 deletions multiversx_sdk_cli/projects/report/data/extracted_feature.py

This file was deleted.

54 changes: 0 additions & 54 deletions multiversx_sdk_cli/projects/report/data/folder_report.py

This file was deleted.

70 changes: 0 additions & 70 deletions multiversx_sdk_cli/projects/report/data/project_report.py

This file was deleted.

Loading

0 comments on commit fb4ffdb

Please sign in to comment.