forked from CosmWasm/wasmvm
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Merged chaos #8
Open
faddat
wants to merge
187
commits into
main
Choose a base branch
from
merged-chaos
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Merged chaos #8
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Updated `MockEnv` to use `types.Uint64` for time representation. - Introduced helper functions for memory operations: `readMemory` and `writeMemory`. - Replaced direct memory read/write calls in `hostGet` and other functions with the new helpers. - Removed the `MemoryAllocator` struct and related functions, simplifying memory management. - Cleaned up unused code and deleted obsolete files in the `libwasmvm` directory. - Adjusted function signatures and error handling for better clarity and consistency. This commit enhances the overall structure and readability of the codebase while ensuring proper memory handling.
run tests
Use cosmwasm `main` branch
This commit introduces several key changes: - Moved host functions to a separate package - Simplified host function registration - Updated memory management and region handling - Added String() method to Checksum type for hex encoding - Improved error handling and logging in host functions - Restructured runtime interfaces for better modularity
Modify the Secp256k1RecoverPubkey method call to match the updated function signature, which now returns an additional value. This change ensures compatibility with the latest API implementation.
This commit extends the cryptographic capabilities of the library by: - Adding BLS12-381 cryptographic function signatures to the GoAPI type - Updating host crypto functions to use new runtime and memory management - Implementing gas charging for BLS12-381 operations - Refactoring import paths and function signatures for crypto-related methods
This commit introduces comprehensive gas management modules for the WasmVM runtime: - Created gas package with core GasState implementation - Added gas configuration modules for different CosmWasm versions (v1.x and v2.x) - Implemented default gas configuration methods - Structured gas tracking and consumption logic - Prepared foundation for flexible gas metering across runtime versions
…anagement This commit introduces a new WasmRuntime interface that defines a comprehensive set of methods for managing WebAssembly smart contract lifecycles, including: - Code storage and management operations - Contract instantiation, execution, and migration methods - IBC (Inter-Blockchain Communication) entry points - Caching and resource management - Metrics retrieval The interface provides a flexible and extensible approach to handling WASM contract interactions across different runtime environments.
This commit introduces several improvements to the internal API library: - Simplified runtime initialization and cache management - Enhanced error handling with more descriptive error messages - Removed unused methods and simplified function signatures - Updated import paths to reflect new package structure - Added more descriptive comments for public functions - Streamlined code storage and contract lifecycle methods The changes improve code readability, error reporting, and overall maintainability of the WASM runtime library.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.