Closed simonjiao closed 3 months ago
The recent updates enhance the Move programming environment by refreshing dependency management and introducing new validation mechanisms for transaction arguments. Key improvements include extended checks for module integrity and a reorganized structure for managing virtual machine interactions. This comprehensive restructuring aims to fortify the reliability and functionalities of the Starcoin framework, ensuring a robust and dynamic development experience.
Files | Change Summary |
---|---|
Cargo.toml , vm/move-package-manager/Cargo.toml , vm/vm-runtime/Cargo.toml |
Updated dependency references to new revision hashes for various Move-related packages, ensuring current compatibility. |
executor/tests/script_function_test.rs |
Added entry keyword to functions for direct blockchain calls; introduced test_transaction_arg_verify for validating transaction arguments. |
vm/move-package-manager/src/extended_checks.rs , vm/move-package-manager/src/lib.rs , vm/move-package-manager/src/release.rs |
Added ExtendedChecker for comprehensive module validation; modified release handling to include extended checks and improved error reporting. |
vm/starcoin-gas/src/gas_meter.rs |
Introduced charge_dependency method to manage gas charges related to dependencies. |
vm/vm-runtime/src/lib.rs , vm/vm-runtime/src/parallel_executor/mod.rs , vm/vm-runtime/src/parallel_executor/vm_wrapper.rs , vm/vm-runtime/src/starcoin_vm.rs |
Removed adapter_common module; introduced verifier and vm_adapter modules; refactored transaction execution with new validation methods. |
vm/vm-runtime/src/verifier/mod.rs , vm/vm-runtime/src/verifier/transaction_arg_validation.rs |
Created transaction_arg_validation module for validating transaction arguments, implementing detailed checks within the new file. |
vm/vm-runtime/src/vm_adapter/... |
Introduced SessionAdapter to manage session interactions; modified visibility of functions for broader access. |
sequenceDiagram
participant User
participant VM
participant ExtendedChecker
participant SessionAdapter
User->>VM: Submit Transaction
VM->>ExtendedChecker: Run Extended Checks
ExtendedChecker->>VM: Validate Entries
VM->>SessionAdapter: Check Arguments
SessionAdapter-->>VM: Arguments Validated
VM-->>User: Transaction Processed Successfully
🐰 In the code, I hop and play,
With branches new, I find my way.
From fixed to flexible, I leap with glee,
Validations strong, as bright as can be!
In the world of Move, I dance and twirl,
Celebrating changes, oh what a whirl! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
partly closes https://github.com/starcoinorg/starcoin/issues/4157
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
-
-
Other information
Summary by CodeRabbit
New Features
SessionAdapter
to improve module and script execution processes.Bug Fixes
Refactor
Documentation