@fuel-ts/math is a sub-module for interacting with Fuel.
This module contains helpful math utilities to work with decimal
, hex
, Uint8Array
.
Math is based in bn.js library, which helps us to do all kinds of calculations safely, doesn't matter the size of the number.
pnpm add @fuel-ts/math
# or
npm add @fuel-ts/math
Alternatively, we recommend you install the complete SDK using the umbrella package:
pnpm add fuels
# or
npm add fuels
In order to contribute to @fuel-ts/math
, please see the main fuels-ts monorepo.
The @fuel-ts/math
changelog can be found at CHANGELOG.
The primary license for @fuel-ts/math
is Apache 2.0
, see LICENSE.