
Weekly Report - May 19, 2025
1. Implementation of WASM Source Code Invocation During Transaction Execution
This week, we successfully implemented the functionality to invoke WASM (WebAssembly) source code during transaction execution. With this implementation, the system can dynamically load and execute WASM modules during transactions, thereby enhancing the flexibility and efficiency of the trading process.
We designed the interface for the WASM module to ensure seamless integration with the transaction execution logic. The compilation and deployment of the WASM module were completed, ensuring its availability in the execution environment. Multiple rounds of testing were conducted to validate the performance of the WASM module across different transaction scenarios, ensuring its stability and performance.
2. Fixing the Invocation Issue of WASM Source Code in Go Version
In response to the issue of the Go version of the WASM source code being unable to be invoked, we conducted an in-depth investigation and resolution. Analysis revealed that the problem primarily stemmed from compatibility issues between the WASM module and the Go environment.
We updated the Go WASM runtime configuration to ensure it can correctly recognize and invoke the WASM module. Adjustments were made to the exported functions of the WASM module to ensure consistency with the calling conventions of the Go code. Comprehensive regression testing was performed to ensure that the fixed version works correctly across all scenarios.