JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 259943
  • Score
    100M100P100Q164398F
  • License MIT

Package Exports

  • @ton/core
  • @ton/core/dist/address/Address
  • @ton/core/dist/address/Address.js
  • @ton/core/dist/boc/Builder
  • @ton/core/dist/boc/Builder.js
  • @ton/core/dist/boc/Cell
  • @ton/core/dist/boc/Cell.js
  • @ton/core/dist/boc/cell/serialization
  • @ton/core/dist/boc/cell/serialization.js
  • @ton/core/dist/boc/utils/paddedBits
  • @ton/core/dist/boc/utils/paddedBits.js
  • @ton/core/dist/boc/utils/strings
  • @ton/core/dist/boc/utils/strings.js
  • @ton/core/dist/dict/parseDict
  • @ton/core/dist/dict/parseDict.js
  • @ton/core/dist/dict/serializeDict
  • @ton/core/dist/dict/serializeDict.js
  • @ton/core/dist/index.js
  • @ton/core/dist/types/SimpleLibrary
  • @ton/core/dist/types/SimpleLibrary.js
  • @ton/core/dist/utils/convert
  • @ton/core/dist/utils/convert.js
  • @ton/core/dist/utils/maybe
  • @ton/core/dist/utils/maybe.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ton/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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