ton-contract-executor icon indicating copy to clipboard operation
ton-contract-executor copied to clipboard

Integration of the new ton-compiler

Open AminRezaei0x443 opened this issue 2 years ago • 0 comments

The new ton-compiler(v2.0.0) module is based on wasm and can work on windows, Linux, and macOS easily. ton-contract-executor was using the 0.9.0 which couldn't run on windows. This PR implements the following:

  • Upgrades the used ton-compiler to 2.0.0 without any higher-level changes
  • Add fromFuncSources, and fromFuncFiles with the capability of compiling multiple files and sources + Tests
  • Increase jest timeout (It takes time to run some workers and it exceeds the default timeout)

Note: As the new ton-compiler uses direct file paths, so the workaround was using temporary files and doing cleanup afterward.

AminRezaei0x443 avatar Oct 25 '22 12:10 AminRezaei0x443