Skip to content

ton-org/ton-core

 
 

Repository files navigation

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

About

Low level tools for working with TON

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.8%
  • JavaScript 0.2%