what are the types of testing that can be done on a smart contract in the ton-contract-executor? And what are its limitations?

Jan 14, 2023, 5:47 PM
You want to use emulator, it's newer and has more functions. But basically you can check what messages will be sent from contract
Jan 14, 2023, 5:48 PM
Ok, well let me repeat the question then for emulator. What type of tests can be run and what are its limitations? Also for the test themselves are those typically typescript?
Jan 14, 2023, 5:51 PM
I've described basic outline. You make message and check what it will do to contract state. You can check examples in getgems contracts repository.

Emulator will do the same and a little bit more.
Jan 14, 2023, 5:52 PM
Will you update your ton lite client fork to support newer version of ton js?
Jan 14, 2023, 5:53 PM
it's already updated to use ton-core
Jan 14, 2023, 5:54 PM
whats some good test examples to look at in getgems contract repo?
Jan 14, 2023, 6:00 PM
idk, look at all of them, it's not that many
Jan 14, 2023, 6:01 PM
when I look at the top-level dependencies I don't see emulator there .. "dependencies": {
"@ton.org/func-js": "^0.1.3",
"@types/uuid": "^8.3.4",
"bn.js": "^5.2.1",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"ton": "^11.18.2",
"ton-compiler": "^1.0.0",
"ton-contract-executor": "^0.5.2",
"uuid": "^8.3.2"
}
is it included via "ton": "^11.18.2"?
Jan 14, 2023, 6:05 PM
may be this https://github.com/ton-community/tx-emulator
Jan 14, 2023, 6:13 PM
yes thats the one
Jan 14, 2023, 6:13 PM
after const client = new LiteClient({ engine }); how can i know when client is ready to query? it shows engine closed error. if i query something as soon as instantiated
Jan 14, 2023, 6:19 PM
no idea
Jan 14, 2023, 6:20 PM
🤔
Jan 14, 2023, 6:20 PM
just wait a bit
Jan 14, 2023, 6:20 PM

© 2024 Draquery.com All rights reserved.