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

Merge feat/next in main #447

Merged
merged 117 commits into from
Sep 30, 2024
Merged

Merge feat/next in main #447

merged 117 commits into from
Sep 30, 2024

Conversation

popenta
Copy link
Contributor

@popenta popenta commented Sep 19, 2024

In this PR, the release v9.7.0 is prepared. This is a minor release that contains a couple of new features and some fixes.

The release contains a "breaking" change, but it's more of a "fixing" change, it should not impact the usage, maybe just those who use mxpy for bash scripting. The flag --using-delegation-manager was removed from the mxpy staking-provider add-nodes command, because it was redundant, without providing it, the transaction would fail. This is perhaps the most impacting change of this release.

mxpy staking-provider

The mxpy staking-provider command group has been enriched, it now contains more commands, such as mxpy staking-provider make-delegation-contract-from-validator and a set of new command for managing delegated funds. To see the full list of supported commands, use mxpy staking-provider -h.

When unjailing nodes, the value was not passed when creating the transaction and that should be now fixed.

Relevant PRs:

mxpy tx new

Previously, there was no easy way to send ESDT/SFT/NFT tokens. An argument called --token-transfers has been added and can be provided along the usual arguments:

mxpy tx new --token-transfers NFT-123456-01 1 ESDT-987654 100

Relevant PR:

Relayed V3 transactions

Support for Relayed V3 transactions has been added. Added the --relayer argument for specifying the relayer of the transaction. Added the --inner-transactions-outfile argument for saving the created relayed transactions. If the file contains transactions it will append to the rest of the transactions. Added the --inner-transactions argument to specify the inner transactions that will be sent by the relayer.

Relevant PR:

contract interactions using the ABI file

By providing the ABI file, mxpy can now encode and decode arguments for contract interactions. The --abi argument can be used to provide the ABI file and --arguments-file can be used for passing the arguments. The arguments should come from a json file and should be placed inside a list. The Address type can be provided using a dictionary, that should look like this:

{
  "bech32": "erd1..."
}

Bytes values can be provided using a dictionary, that should look like this:

{
 "hex": "some_hex_encoded_value"
}

For more information on how this feature can be used, check out the available documentation.

Relevant PRs:

mxpy wallet new

A new argument called --shard can be provided when generating a new wallet. The argument is used to generate the wallet in a specific shard.

Relevant PR:

mxpy faucet request

A new command has been added. It is used to get xEGLD on Devnet or Testnet. It opens the web-wallet in a browser and the user should complete the reCAPTCHA and click the Request Tokens button.

mxpy deps install

When running mxpy deps install rust the dependencies of sc-meta are no longer installed by default, the user is asked to manually run sc-meta install all.

Relevant PR:

mxpy contract build

This feature remains unchanged from the previous release, the user is advised to directly use sc-meta for building smart contracts.

Relevant PR:

Deprecations

mxpy contract report

The mxpy contract report is now deprecated, should be replaced with sc-meta report.

Relevant PR:

mxpy-up.py

Installing mxpy by running the mxpy-up.py installation script is now deprecated, and pipx should be used from now on for installing mxpy.

Relevant PR:
-#441

popenta and others added 30 commits January 31, 2024 10:09
…dator-data

Make delegation contract from validator data
Added commands for managing delegated funds
@popenta popenta marked this pull request as draft September 19, 2024 06:12
@popenta popenta added the ignore-for-release-notes Ignore for release notes label Sep 19, 2024
@popenta popenta marked this pull request as ready for review September 30, 2024 07:32
@popenta popenta merged commit 2d6e151 into main Sep 30, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release-notes Ignore for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants