multiversx-sdk-cli 9.2.0b0__tar.gz → 9.3.0__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.
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/PKG-INFO +1 -1
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli.py +16 -1
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_contracts.py +5 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/config.py +9 -1
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dependencies/modules.py +1 -1
- multiversx_sdk_cli-9.3.0/multiversx_sdk_cli/dependency_checker.py +11 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dns.py +3 -3
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/templates.py +2 -2
- multiversx_sdk_cli-9.3.0/multiversx_sdk_cli/ux.py +15 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/pyproject.toml +1 -1
- multiversx_sdk_cli-9.2.0b0/multiversx_sdk_cli/ux.py +0 -14
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/.gitignore +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/LICENSE +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/README.md +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/.vscode/settings.json +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/accounts.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_accounts.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_config.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_data.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_delegation.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_deps.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_dns.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_ledger.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_localnet.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_output.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_password.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_shared.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_transactions.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_validators.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_wallet.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/constants.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/contract_verification.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/contracts.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cosign_transaction.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/delegation/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/delegation/staking_provider.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dependencies/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dependencies/install.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dependencies/resolution.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/docker.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/downloader.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/errors.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/guards.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/interfaces.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/ledger/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/ledger/config.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/ledger/ledger_app_handler.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/ledger/ledger_functions.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_default.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_general.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_networking.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_part.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_root.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_sharding.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_software.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/constants.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/genesis.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/genesis_json.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/genesis_smart_contracts_json.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/libraries.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/node.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/node_config_toml.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/nodes_setup_json.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/p2p_toml.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/seednode_p2pKey.pem +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_build_software.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_clean.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_config.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_new.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_prerequisites.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_start.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/wallets.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/myprocess.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/constants.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/core.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/interfaces.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/migrations.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/project_base.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/project_rust.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/data/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/data/common.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/data/extracted_feature.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/data/folder_report.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/data/project_report.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/data/report.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/data/wasm_report.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/do_report.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/features/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/features/features.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/features/report_option.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/features/size.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/features/twiggy_paths_check.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/format/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/format/change_type.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/format/format_options.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/report/report_creator.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/shared.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/sign_verify.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/simulation.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/transactions.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/utils.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/validators/__init__.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/validators/core.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/validators/validators_file.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/version.py +0 -0
- {multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/workstation.py +0 -0
|
@@ -19,7 +19,7 @@ import multiversx_sdk_cli.cli_transactions
|
|
|
19
19
|
import multiversx_sdk_cli.cli_validators
|
|
20
20
|
import multiversx_sdk_cli.cli_wallet
|
|
21
21
|
import multiversx_sdk_cli.version
|
|
22
|
-
from multiversx_sdk_cli import config, errors, ux
|
|
22
|
+
from multiversx_sdk_cli import config, errors, utils, ux
|
|
23
23
|
|
|
24
24
|
logger = logging.getLogger("cli")
|
|
25
25
|
|
|
@@ -38,6 +38,7 @@ def main(cli_args: List[str] = sys.argv[1:]):
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
def _do_main(cli_args: List[str]):
|
|
41
|
+
utils.ensure_folder(config.SDK_PATH)
|
|
41
42
|
argv_with_config_args = config.add_config_args(cli_args)
|
|
42
43
|
parser = setup_parser(argv_with_config_args)
|
|
43
44
|
args = parser.parse_args(argv_with_config_args)
|
|
@@ -47,6 +48,8 @@ def _do_main(cli_args: List[str]):
|
|
|
47
48
|
else:
|
|
48
49
|
logging.basicConfig(level="INFO", format='%(name)s: %(message)s', handlers=[RichHandler(show_time=False, rich_tracebacks=True)])
|
|
49
50
|
|
|
51
|
+
verify_deprecated_entries_in_config_file()
|
|
52
|
+
|
|
50
53
|
if not hasattr(args, "func"):
|
|
51
54
|
parser.print_help()
|
|
52
55
|
else:
|
|
@@ -103,6 +106,18 @@ COMMAND GROUPS summary
|
|
|
103
106
|
return parser
|
|
104
107
|
|
|
105
108
|
|
|
109
|
+
def verify_deprecated_entries_in_config_file():
|
|
110
|
+
deprecated_keys = config.get_deprecated_entries_in_config_file()
|
|
111
|
+
if len(deprecated_keys) == 0:
|
|
112
|
+
return
|
|
113
|
+
|
|
114
|
+
message = "The following entries are deprecated. Please remove them from the `mxpy.json` config file. \n"
|
|
115
|
+
for entry in deprecated_keys:
|
|
116
|
+
message += f"{entry} \n"
|
|
117
|
+
|
|
118
|
+
ux.show_warning(message)
|
|
119
|
+
|
|
120
|
+
|
|
106
121
|
if __name__ == "__main__":
|
|
107
122
|
ret = main(sys.argv[1:])
|
|
108
123
|
sys.exit(ret)
|
|
@@ -15,6 +15,7 @@ from multiversx_sdk_cli.contract_verification import \
|
|
|
15
15
|
trigger_contract_verification
|
|
16
16
|
from multiversx_sdk_cli.contracts import SmartContract, query_contract
|
|
17
17
|
from multiversx_sdk_cli.cosign_transaction import cosign_transaction
|
|
18
|
+
from multiversx_sdk_cli.dependency_checker import check_if_rust_is_installed
|
|
18
19
|
from multiversx_sdk_cli.docker import is_docker_installed, run_docker
|
|
19
20
|
from multiversx_sdk_cli.errors import DockerMissingError, NoWalletProvided
|
|
20
21
|
from multiversx_sdk_cli.interfaces import IAddress
|
|
@@ -279,11 +280,13 @@ def get_project_paths(args: Any) -> List[Path]:
|
|
|
279
280
|
|
|
280
281
|
|
|
281
282
|
def clean(args: Any):
|
|
283
|
+
check_if_rust_is_installed()
|
|
282
284
|
project_path = args.path
|
|
283
285
|
projects.clean_project(Path(project_path))
|
|
284
286
|
|
|
285
287
|
|
|
286
288
|
def build(args: Any):
|
|
289
|
+
check_if_rust_is_installed()
|
|
287
290
|
project_paths = [Path(args.path)]
|
|
288
291
|
arg_list = cli_shared.convert_args_object_to_args_list(args)
|
|
289
292
|
|
|
@@ -292,11 +295,13 @@ def build(args: Any):
|
|
|
292
295
|
|
|
293
296
|
|
|
294
297
|
def do_report(args: Any):
|
|
298
|
+
check_if_rust_is_installed()
|
|
295
299
|
args_dict = args.__dict__
|
|
296
300
|
projects.do_report(args, args_dict)
|
|
297
301
|
|
|
298
302
|
|
|
299
303
|
def run_tests(args: Any):
|
|
304
|
+
check_if_rust_is_installed()
|
|
300
305
|
project_paths = get_project_paths(args)
|
|
301
306
|
for project in project_paths:
|
|
302
307
|
projects.run_tests(project, args)
|
|
@@ -150,7 +150,7 @@ def get_defaults() -> Dict[str, Any]:
|
|
|
150
150
|
"dependencies.vmtools.urlTemplate.linux": "https://github.com/multiversx/mx-chain-vm-go/archive/{TAG}.tar.gz",
|
|
151
151
|
"dependencies.vmtools.urlTemplate.osx": "https://github.com/multiversx/mx-chain-vm-go/archive/{TAG}.tar.gz",
|
|
152
152
|
"dependencies.vmtools.urlTemplate.windows": "https://github.com/multiversx/mx-chain-vm-go/archive/{TAG}.tar.gz",
|
|
153
|
-
"dependencies.rust.tag": "nightly-2023-
|
|
153
|
+
"dependencies.rust.tag": "nightly-2023-12-11",
|
|
154
154
|
"dependencies.golang.resolution": "SDK",
|
|
155
155
|
"dependencies.golang.tag": "go1.20.7",
|
|
156
156
|
"dependencies.golang.urlTemplate.linux": "https://golang.org/dl/{TAG}.linux-amd64.tar.gz",
|
|
@@ -167,6 +167,12 @@ def get_defaults() -> Dict[str, Any]:
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
|
|
170
|
+
def get_deprecated_entries_in_config_file():
|
|
171
|
+
default_config_keys = set(get_defaults().keys())
|
|
172
|
+
current_config_keys = set(get_active().keys())
|
|
173
|
+
return current_config_keys - default_config_keys
|
|
174
|
+
|
|
175
|
+
|
|
170
176
|
def resolve_config_path() -> Path:
|
|
171
177
|
if os.path.isfile(LOCAL_CONFIG_PATH):
|
|
172
178
|
return LOCAL_CONFIG_PATH
|
|
@@ -249,6 +255,8 @@ def determine_final_args(argv: List[str], config_args: Dict[str, Any]) -> List[s
|
|
|
249
255
|
def get_dependency_directory(key: str, tag: str) -> Path:
|
|
250
256
|
parent_directory = get_dependency_parent_directory(key)
|
|
251
257
|
if tag == 'latest':
|
|
258
|
+
if not parent_directory.is_dir():
|
|
259
|
+
return parent_directory / tag
|
|
252
260
|
tag = get_latest_semver_from_directory(parent_directory)
|
|
253
261
|
|
|
254
262
|
return parent_directory / tag
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dependencies/modules.py
RENAMED
|
@@ -336,7 +336,7 @@ This may cause problems with the installation of rust.""")
|
|
|
336
336
|
def _install_sc_meta(self):
|
|
337
337
|
logger.info("Installing multiversx-sc-meta.")
|
|
338
338
|
tag = config.get_dependency_tag("sc-meta")
|
|
339
|
-
args = ["cargo", "install", "multiversx-sc-meta"]
|
|
339
|
+
args = ["cargo", "install", "multiversx-sc-meta", "--locked"]
|
|
340
340
|
|
|
341
341
|
if tag != "latest":
|
|
342
342
|
args.extend(["--version", tag])
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from multiversx_sdk_cli import config, errors, ux
|
|
2
|
+
from multiversx_sdk_cli.dependencies.modules import Rust
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def check_if_rust_is_installed():
|
|
6
|
+
RUST_MODULE_KEY = "rust"
|
|
7
|
+
rust_module = Rust(RUST_MODULE_KEY)
|
|
8
|
+
if not rust_module.is_installed(""):
|
|
9
|
+
tag = config.get_dependency_tag(RUST_MODULE_KEY)
|
|
10
|
+
ux.show_critical_error("Rust is not installed on your machine. Run `mxpy deps install rust --overwrite` and try again.")
|
|
11
|
+
raise errors.DependencyMissing(RUST_MODULE_KEY, tag)
|
|
@@ -7,8 +7,8 @@ from multiversx_sdk_cli import cli_shared, utils
|
|
|
7
7
|
from multiversx_sdk_cli.accounts import Account
|
|
8
8
|
from multiversx_sdk_cli.constants import ADDRESS_ZERO_BECH32, DEFAULT_HRP
|
|
9
9
|
from multiversx_sdk_cli.contracts import query_contract
|
|
10
|
-
from multiversx_sdk_cli.transactions import (
|
|
11
|
-
|
|
10
|
+
from multiversx_sdk_cli.transactions import (compute_relayed_v1_data,
|
|
11
|
+
do_prepare_transaction)
|
|
12
12
|
|
|
13
13
|
MaxNumShards = 256
|
|
14
14
|
ShardIdentiferLen = 2
|
|
@@ -50,7 +50,7 @@ def register(args: Any):
|
|
|
50
50
|
tx = do_prepare_transaction(args)
|
|
51
51
|
|
|
52
52
|
if hasattr(args, "relay") and args.relay:
|
|
53
|
-
args.outfile.write(
|
|
53
|
+
args.outfile.write(compute_relayed_v1_data(tx))
|
|
54
54
|
return
|
|
55
55
|
|
|
56
56
|
cli_shared.send_or_simulate(tx, args)
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/templates.py
RENAMED
|
@@ -3,7 +3,7 @@ from pathlib import Path
|
|
|
3
3
|
from typing import List, Union
|
|
4
4
|
|
|
5
5
|
from multiversx_sdk_cli import myprocess
|
|
6
|
-
from multiversx_sdk_cli.
|
|
6
|
+
from multiversx_sdk_cli.dependency_checker import check_if_rust_is_installed
|
|
7
7
|
|
|
8
8
|
logger = logging.getLogger("projects.templates")
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ class Contract:
|
|
|
33
33
|
|
|
34
34
|
def _ensure_dependencies_installed(self):
|
|
35
35
|
logger.info("Checking if the necessarry dependencies are installed.")
|
|
36
|
-
|
|
36
|
+
check_if_rust_is_installed()
|
|
37
37
|
|
|
38
38
|
def _prepare_args_to_list_templates(self) -> List[str]:
|
|
39
39
|
args = ["sc-meta", "templates"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from rich import print
|
|
2
|
+
from rich.markup import escape
|
|
3
|
+
from rich.panel import Panel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def show_message(message: str):
|
|
7
|
+
print(Panel(f"[green]{escape(message)}"))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def show_critical_error(message: str):
|
|
11
|
+
print(Panel(f"[red]{escape(message)}"))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def show_warning(message: str):
|
|
15
|
+
print(Panel(f"[yellow]{escape(message)}"))
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from rich import print
|
|
2
|
-
from rich.panel import Panel
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def show_message(message: str):
|
|
6
|
-
print(Panel(f"[green]{message}"))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def show_critical_error(message: str):
|
|
10
|
-
print(Panel(f"[red]{message}"))
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def show_warning(message: str):
|
|
14
|
-
print(Panel(f"[yellow]{message}"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/.vscode/settings.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_delegation.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
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_transactions.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cli_validators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/contract_verification.py
RENAMED
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/cosign_transaction.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/delegation/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dependencies/__init__.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/dependencies/install.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/ledger/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_part.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/config_root.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/constants.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/genesis.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/genesis_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/libraries.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/p2p_toml.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_clean.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_config.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_new.py
RENAMED
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/step_start.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/localnet/wallets.py
RENAMED
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/__init__.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/interfaces.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/migrations.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/project_base.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/project_rust.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/projects/shared.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/validators/__init__.py
RENAMED
|
File without changes
|
{multiversx_sdk_cli-9.2.0b0 → multiversx_sdk_cli-9.3.0}/multiversx_sdk_cli/validators/core.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|