assertIsDecimalFixedPoint
Asserts that value is a DecimalFixedPoint.
Every shape parameter is independently optional. Pass undefined (or
simply omit trailing arguments) to leave a given field unconstrained.
Throws SOLANA_ERROR__FIXED_POINTS__SHAPE_MISMATCH if the value does
not match the expected shape, or
SOLANA_ERROR__FIXED_POINTS__VALUE_OUT_OF_RANGE if the raw bigint
does not fit the claimed signedness and total bits.
Type Parameters
| Type Parameter | Default type |
|---|---|
TSignedness extends Signedness | Signedness |
TTotalBits extends number | number |
TDecimals extends number | number |
Parameters
| Parameter | Type |
|---|---|
value | unknown |
signedness? | TSignedness |
totalBits? | TTotalBits |
decimals? | TDecimals |
Returns
asserts value is DecimalFixedPoint<TSignedness, TTotalBits, TDecimals>