This tool allows emulation of whole transactions pretty much as if they happened in a real TON network, but using only JS! It's similar to ton-contract-executor, however it emulates all phases of a transaction, not just the compute phase.
Version 0.0.10 has just been released, containing significant (around 30%) performance improvements (only for
sendMessage for now, get method performance will be improved in a future release).If you have already been using it previously and encountered any crashes, we advise you to upgrade since there have been multiple bugfixes. Also note that it requires node 16.
If you encounter any bugs on the latest version, feel free to open issues on GitHub.
Also note that there is a
blockchain-experimental branch in GitHub which contains another class, Blockchain, which allows emulation of whole chains of transactions, so if you want to test interaction of multiple contracts at the same time, feel free to try it out. Any feedback on API or otherwise is welcome! Note however that since it is just a branch, you will need to run yarn && yarn build in the folder once you clone it or install it using git url.