Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration support: "v7" to "v8" #311

Closed
popenta opened this issue Aug 23, 2023 · 9 comments
Closed

Migration support: "v7" to "v8" #311

popenta opened this issue Aug 23, 2023 · 9 comments
Labels
migration Migration support

Comments

@popenta
Copy link
Contributor

popenta commented Aug 23, 2023

mxpy v8 has suffered a few breaking changes compared to the previous version.

If you are running mxpy contract build or mxpy contract clean commands from outside the contract's directory, instead of passing the contract path as a positional argument, it's now done using --path <path to contract>. The default value is still the current working directory.

mxpy just forwards the parameters to sc-meta for building and cleaning contracts, taking care of all the logic. If you'd like to know more about sc-meta continue reading here.

Some other changes are listed below.

Extra references:

@popenta popenta added the migration Migration support label Aug 23, 2023
@popenta
Copy link
Contributor Author

popenta commented Aug 24, 2023

mxpy deps install rust

Now, when rust is installed using the above command, sc-meta is also installed.

Make sure to do a mxpy deps install rust --overwrite upon installing mxpy v8.

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 24, 2023

Removed the default values for proxy and chain ID

If --proxy is provided will get the chain ID from the network, or if --chain is provided will simply use that value. If both are provided and the values do not match, will use the value obtained from the proxy.

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 24, 2023

mxpy contract report

When using the above command, in case twiggy is not installed, it automatically installs it.

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 24, 2023

mxpy network

The mxpy network command group has been removed. The commands can simply be replaced with a curl request.

Here's an example:

eg: curl https://devnet-api.multiversx.com/network/config

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 24, 2023

mxpy wallet pem-address & mxpy wallet pem-address-hex

The above commands have also been removed as they brought too little benefice.

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 24, 2023

Removed BunchOfTransactions

The BunchOfTransactions class was not used within mxpy, so it's been removed. In case you we're using mxpy as a package and not as a cli tool we've extracted the class in this PR's description so you can copy it and use it directly.

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 24, 2023

Colored logging

mxpy now has colored log lines.

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 31, 2023

mxpy hyperblock

The mxpy hyperblock get command has been removed. It can be easily replaced with a curl request.

eg: curl https://devnet-gateway.multiversx.com/hyperblock/by-nonce/123456

Extra references:

@popenta
Copy link
Contributor Author

popenta commented Aug 31, 2023

mxpy-up.py

The installation script has been made less verbose as it was very difficult to read. In case someone want's to see all the lines the --verbose argument can be passed when running the script.

Extra references:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration Migration support
Projects
None yet
Development

No branches or pull requests

1 participant