npm.io
0.63.1 • Published 6 months ago

@ton/core

Licence
MIT
Version
0.63.1
Deps
0
Size
653 kB
Vulns
0
Weekly
0
Stars
77

@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.

IDE Setup: VSCode, Zed

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.

  1. Build a coverage report
yarn run coverage
  1. Coverage report is written to the /coverage directory

  2. Open /coverage/index.html to 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