Skip to content
SwapKit is a powerful suite of tools for building blockchain applications.

BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:68

new BigIntArithmetics(params): BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:95

SKBigIntParams

BigIntArithmetics

bigIntValue: bigint = 0n

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:70


optional decimal: number

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:71


decimalMultiplier: bigint

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:69

add(…args): BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:117

InitialisationValueType[]

BigIntArithmetics


div(…args): BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:126

InitialisationValueType[]

BigIntArithmetics


eqValue(value): boolean

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:141

InitialisationValueType

boolean


formatBigIntToSafeValue(value, decimal?): string

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:278

bigint

number

string


getBaseValue<T>(type, decimal?): NumberPrimitivesType[T]

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:164

T extends AllowedNumberTypes

T

number

NumberPrimitivesType[T]


getBigIntValue(value, decimal?): bigint

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:181

InitialisationValueType

number

bigint


getValue<T>(type, decimal?): NumberPrimitivesType[T]

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:145

T extends AllowedNumberTypes

T

number

NumberPrimitivesType[T]


gt(value): boolean

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:129

InitialisationValueType

boolean


gte(value): boolean

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:132

InitialisationValueType

boolean


lt(value): boolean

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:135

InitialisationValueType

boolean


lte(value): boolean

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:138

InitialisationValueType

boolean


mul(…args): BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:123

InitialisationValueType[]

BigIntArithmetics


set(value): this

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:108

SKBigIntParams

this


sub(…args): BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:120

InitialisationValueType[]

BigIntArithmetics


toAbbreviation(digits): string

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:239

number = 2

string


toCurrency(currency, __namedParameters): string

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:253

string = "$"

string = "start"

number = 2

string = "."

string = ","

string


toFixed(fixedDigits): string

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:221

number = 6

string


toSignificant(significantDigits): string

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:191

number = 6

string


static fromBigInt(value, decimal?): BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:73

bigint

number

BigIntArithmetics


static shiftDecimals(__namedParameters): BigIntArithmetics

Defined in: packages/helpers/src/modules/bigIntArithmetics.ts:80

number

number

SwapKitNumber

BigIntArithmetics