@ton/core
Core TypeScript library that implements low level primitives for TON blockchain.
How to install
yarn add @ton/core
npm install @ton/core
Beware that having two versions of @ton/core concurrently in the same project is not supported. Use the package manager's functionality (npm, yarn) in CI to avoid this.
Formatting
We use biome as our formatter. It's compatible to prettier, just significantly faster.
yarn run format
Testing
Debugging in tests
By default tests are running using multiple worker threads. It's faster, but
undesirable during debugging. SINGLETHREADED env variable covers this case
SINGLETHREADED=1 yarn run test
Coverage report
We use test coverage to eliminate blind spots in our tests.
How to?
The goal is to run every function at least once.
- Build a coverage report
yarn run coverage
Coverage report is written to the
/coveragedirectoryOpen
/coverage/index.htmlto check the report
Contributing
See CONTRIBUTING.
Acknowledgements
This library has been created and maintained by the Whales Corp. and Dan Volkov. The current maintainer is TON Studio.
License
MIT