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

Break down packages #600

Draft
wants to merge 61 commits into
base: main
Choose a base branch
from
Draft

Break down packages #600

wants to merge 61 commits into from

Conversation

faddat
Copy link
Contributor

@faddat faddat commented Jan 5, 2025

  • most tests pass
  • sleep`
  • cleanup
  • don't close cache in ReleasCache
  • additional cleanup
  • resolve further issues
  • fix issues with siguantures
  • memory management
  • fix analyzecode
  • database functions
  • fix issues related to db_scan
  • fix addr_validate
  • add 3 types of sig verification
  • add query_chain host function
  • gci
  • fix testfloats
  • fix out of bounds memory access
  • add missing host functions
  • revert golangci changes to focus on the insantiate issue
  • Refactor memory management and host functions in wasmvm
  • testifylint execpt for the MockInfoBin
  • Create tests.yml
  • testifylint execpt for the MockInfoBin
  • gci'd
  • continue test cleanup
  • gci is much better than goimports
  • use latest linter
  • resolve issues with goroutine
  • enable errcheck and thelper linters
  • remove manual host side deallocation
  • progress...
  • update runtime
  • update contracts used in testing`
  • update capabilities
  • correct typo from adjusting tests.
  • Revert "update capabilities"
  • Revert "update runtime"
  • add cryptographic imports
  • replace deprecated library
  • all signature mismatches resolved
  • add validation.go
  • TestStoreCode passes, introduce table-driven test
  • improve debug
  • lint
  • update linter config
  • Update .gitignore, modify mock time format, and enhance host function parameter handling
  • restore libwasmvm to ease reference
  • high quality debug info
  • add additional debug (look at adapted vs actual...)
  • turn on debug
  • Enhance testing capabilities, improve gas tracking, and validate memory regions
  • Add new contracts and update existing ones with improved schemas and configurations
  • break packages down into smaller pieces

- 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
This reverts commit 80e9ddd.
…ry regions

- Expanded TESTING_CAPABILITIES in `lib_libwasmvm_test.go` to include additional CosmWasm versions.
- Updated time format in `mocks.go` for better precision.
- Refactored gas tracking in `hostfunctions.go` to use consistent variable naming and added checks for gas consumption across various operations.
- Introduced validation for memory regions in `wazeroruntime.go` to ensure safe memory access and prevent out-of-bounds errors.
- Added optional transaction hash field in `TransactionInfo` struct in `env.go` for enhanced transaction tracking.
…configurations

- Introduced new contracts: burner, crypto-verify, cyberpunk, empty, floaty, hackatom, ibc-callbacks, ibc-reflect, ibc-reflect-send, nested-contracts, queue, reflect, and staking.
- Each contract includes updated README files, Cargo.toml, and Cargo.lock for dependency management.
- Enhanced schema files for better integration and functionality.
- Added integration tests for various contracts to ensure reliability and performance.
- Updated .cargo/config.toml files to standardize schema execution commands across contracts.
- Improved overall project structure and documentation for better developer experience.
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