@firefly-exchange/library-sui
Version:
Sui library housing helper methods, classes to interact with Bluefin protocol(s) deployed on Sui
14 lines (13 loc) • 624 B
TypeScript
/**
* This file incorporates code from cetus-clmm-sui-sdk by CetusProtocol,
* licensed under the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* which can be found at https://github.com/CetusProtocol/cetus-clmm-sui-sdk/blob/main/LICENSE
*/
/**
* Converts a bigint to a signed integer with a specified number of bits.
*
* @param {bigint} int - The bigint to be converted.
* @param {number} bits - The bit length to use for the conversion, defaulting to 32 bits.
* @returns {number} - The resulting signed integer as a number.
*/
export declare function asIntN(int: bigint, bits?: number): number;