Class: DAI
Defined in: bee-js/src/utils/tokens.ts:94
Properties
DIGITS
readonlystaticDIGITS:18=18
Defined in: bee-js/src/utils/tokens.ts:95
Methods
divide()
divide(
other):DAI
Defined in: bee-js/src/utils/tokens.ts:153
Does not mutate the current DAI instance.
Parameters
other
bigint
Divisor
Returns
DAI
New DAI instance
eq()
eq(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:173
Parameters
other
DAI
Returns
boolean
exchangeToBZZ()
exchangeToBZZ(
daiPerBzz):BZZ
Defined in: bee-js/src/utils/tokens.ts:177
Parameters
daiPerBzz
DAI
Returns
gt()
gt(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:157
Parameters
other
DAI
Returns
boolean
gte()
gte(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:161
Parameters
other
DAI
Returns
boolean
lt()
lt(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:165
Parameters
other
DAI
Returns
boolean
lte()
lte(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:169
Parameters
other
DAI
Returns
boolean
minus()
minus(
other):DAI
Defined in: bee-js/src/utils/tokens.ts:143
Does not mutate the current DAI instance.
Parameters
other
DAI instance, or amount in PLUR
string | bigint | NumberString | DAI
Returns
DAI
New DAI instance
plus()
plus(
other):DAI
Defined in: bee-js/src/utils/tokens.ts:133
Does not mutate the current DAI instance.
Parameters
other
DAI instance, or amount in PLUR
string | bigint | NumberString | DAI
Returns
DAI
New DAI instance
toDecimalString()
toDecimalString():
string
Defined in: bee-js/src/utils/tokens.ts:119
Returns
string
toSignificantDigits()
toSignificantDigits(
digits):string
Defined in: bee-js/src/utils/tokens.ts:123
Parameters
digits
number
Returns
string
toWeiBigInt()
toWeiBigInt():
bigint
Defined in: bee-js/src/utils/tokens.ts:115
Returns
bigint
toWeiString()
toWeiString():
string
Defined in: bee-js/src/utils/tokens.ts:111
Returns
string
fromDecimalString()
staticfromDecimalString(string):DAI
Defined in: bee-js/src/utils/tokens.ts:103
Parameters
string
string
Returns
DAI
fromWei()
staticfromWei(wei):DAI
Defined in: bee-js/src/utils/tokens.ts:107
Parameters
wei
string | bigint | NumberString
Returns
DAI