Core TypeScript library that implements low level primitives for TON blockchain.
npm install @ton/coreCore TypeScript library that implements low level primitives for TON blockchain.
``bash`
yarn add @ton/core`bash`
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.
We use biome as our formatter. It's compatible to prettier, just significantly faster.
`sh`
yarn run format
By default tests are running using multiple worker threads. It's faster, but
undesirable during debugging. SINGLETHREADED env variable covers this case
`sh`
SINGLETHREADED=1 yarn run test
We use test coverage to eliminate blind spots in our tests.
#### How to?
The goal is to run every function at least once.
1. Build a coverage report
`sh`
yarn run coverage
2. Coverage report is written to the /coverage directory
3. Open /coverage/index.html` to check the report
See CONTRIBUTING.
This library has been created and maintained by the Whales Corp. and Dan Volkov. The current maintainer is TON Studio.
MIT