TelegramMessenger / telemint

Telegram Auction Platform smart contracts
GNU General Public License v3.0
337 stars 69 forks source link

Please add a test suite and a build script #32

Open talkol opened 1 year ago

talkol commented 1 year ago

As official smart contracts by Telegram, future dapp developers are going to look up to your project and learn from it.

Please make the effort to educate them on what a proper dapp should look like.

These contracts manage money, it is reasonable to expect them to come with a test suite to show users who deposit money in them, that the contracts do what they're supposed to do. The test suite should be able to run on user's computers. This means that you will need to provide a build script to help users compile these contracts too.

I'm sure you know how to do all this, but if you need a good example - this is my template for the above: https://github.com/ton-defi-org/tonstarter-contracts

I also know that there are different methods of testing. I hope that you will choose ton-contract-executor method and write your tests in JavaScript - explanation why this is the superior method is available here: https://society.ton.org/ton-hello-world-guide-for-writing-first-smart-contract-in-func-part-2