Skip to main content


The SDK is written in TypeScript, and has a robust test suite. It can perform arbitrary precision arithmetic, and supports rounding off to significant digits or fixed decimal places. The principal exports of the SDK are entities: classes that contain initialization and validation checks, necessary data fields, and helper functions.

An important part in the SDK is the fractions class, as it helps the SDK to replicate the integer math computation carried out on-chain. Hence, all math operations are performed as fraction operations, ensuring arbitrary precision up until the point that values are rounded for display purposes, or truncated to fit inside a fixed bit width. The SDK includes multiple imports which are discussed here

The source code is available on GitHub.