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

Proposition of changes into Casper Types to support a Rust SDK for 1.6 #109

Closed
wants to merge 13 commits into from

Conversation

gRoussac
Copy link
Contributor

@gRoussac gRoussac commented Oct 17, 2023

This PR intends to pull changes made for the Rust SDK. It is adding a sdk feature and affects several methods or expose them accordingly to be able to compile the SDK.

This PR has a strong dependency on PR against node 1.6 casper-network/casper-node#4348

Right now this feature only build with --lib

Mainly adds some #[cfg(feature = "sdk")] where it is possible or not to use io/fs, or prevent sending to std with json_pretty_print and returning deploys
Changes the way secret key is loaded in with_payment_and_session()
Publicizes some methods outside the crate
Adds session_bytes to session_executable_deploy_item() and adds check_no_conflicting_arg_types() (might require additional unit tests)
Adds with_bytes() to SessionStrParams
Adds some Clone attributes to some structs
Removes rt-multi-thread, The default runtime flavor is 'multi_thread', but the 'rt-multi-thread' feature is disabled. switching (flavor = "current_thread") to tokio main. Please check this change is legit.

Had an issue with schemars, I had to fix the version to "=0.8.5" apparently with Casper node 1.6.

For simplicity for now keeping new get_maybe_secret_key() as one function and not two as per previous PR for 2.0

casper-ecosystem/rustSDK#4
casper-ecosystem/rustSDK#5
casper-ecosystem/rustSDK#13

@gRoussac
Copy link
Contributor Author

I need to reopen the PR from a new branch to keep the SDK compilation working

@gRoussac gRoussac closed this Oct 17, 2023
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.

1 participant