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

Merged chaos #8

Open
wants to merge 187 commits into
base: main
Choose a base branch
from
Open

Merged chaos #8

wants to merge 187 commits into from

Conversation

faddat
Copy link
Owner

@faddat faddat commented Jan 24, 2025

No description provided.

- 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
chipshort and others added 30 commits February 11, 2025 19:21
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants