assertIsBinaryFixedPoint
Asserts that value is a BinaryFixedPoint.
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 |
TFractionalBits extends number | number |
Parameters
| Parameter | Type |
|---|---|
value | unknown |
signedness? | TSignedness |
totalBits? | TTotalBits |
fractionalBits? | TFractionalBits |
Returns
asserts value is BinaryFixedPoint<TSignedness, TTotalBits, TFractionalBits>