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

Integrate latest sdk-py v1 #466

Merged
merged 4 commits into from
Jan 29, 2025
Merged

Integrate latest sdk-py v1 #466

merged 4 commits into from
Jan 29, 2025

Conversation

popenta
Copy link
Collaborator

@popenta popenta commented Jan 28, 2025

No description provided.

@popenta popenta self-assigned this Jan 28, 2025
data = "makeNewContractFromValidatorData@" + args_to_string([max_cap, fee])

serializer = Serializer()
data = "makeNewContractFromValidatorData@" + serializer.serialize([BigUIntValue(max_cap), BigUIntValue(fee)])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should have this function in the sdk-py (factories, controllers), as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, will be added.

...


class Simulation(ISerializable):
def __init__(self, simulate_response: ISimulateResponse) -> None:
def __init__(self, simulate_response: TransactionOnNetwork) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a double-check, do we have some CI tests for this functionality, as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be honest, I don't think we have. The interface was indeed a TransactionOnNetwork object that was only converted to a dictionary.

@@ -211,8 +203,8 @@ def tx_to_dictionary_as_inner_for_relayed_V1(tx: Transaction) -> Dict[str, Any]:
dictionary: Dict[str, Any] = {}

dictionary["nonce"] = tx.nonce
dictionary["sender"] = base64.b64encode(Address.new_from_bech32(tx.sender).get_public_key()).decode()
dictionary["receiver"] = base64.b64encode(Address.new_from_bech32(tx.receiver).get_public_key()).decode()
dictionary["sender"] = base64.b64encode(tx.sender.get_public_key()).decode()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove tx_to_dictionary_as_inner_for_relayed_V1 and legacy relayed V1 support in v10 🤞

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will.

rich==13.3.4
argcomplete==3.2.2

multiversx-sdk==0.19.0
multiversx-sdk==1.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@popenta popenta merged commit de9754c into main Jan 29, 2025
12 checks passed
@popenta popenta deleted the integrate-sdk-py-v1 branch January 29, 2025 10:49
@popenta popenta restored the integrate-sdk-py-v1 branch January 29, 2025 10:51
@popenta popenta deleted the integrate-sdk-py-v1 branch January 29, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants