Helios API/ API Reference/ Classes/

HInt

Helios Int type

Deprecated

Hierarchy

Index

Constructors

constructor

new HInt(rawValue)

Parameters

NameType
rawValueHIntProps

Overrides

HeliosData.constructor

Accessors

value

get value(): bigint

Returns

bigint

Methods

add

add(other): HInt

Parameters

NameType
otherHInt | HIntProps

Returns

HInt

dump

dump(): string

Returns

string

eq

eq(other): boolean

Parameters

NameType
otherHInt | HIntProps

Returns

boolean

ge

ge(other): boolean

Parameters

NameType
otherHInt | HIntProps

Returns

boolean

gt

gt(other): boolean

Parameters

NameType
otherHInt | HIntProps

Returns

boolean

le

le(other): boolean

Parameters

NameType
otherHInt | HIntProps

Returns

boolean

lt

lt(other): boolean

Parameters

NameType
otherHInt | HIntProps

Returns

boolean

mul

mul(other): HInt

Parameters

NameType
otherHInt | HIntProps

Returns

HInt

neq

neq(other): boolean

Parameters

NameType
otherHInt | HIntProps

Returns

boolean

sub

sub(other): HInt

Parameters

NameType
otherHInt | HIntProps

Returns

HInt

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

HeliosData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

HeliosData.toCborHex

toSchemaJson

toSchemaJson(): string

Returns

string

Inherited from

HeliosData.toSchemaJson

fromCbor

Static fromCbor(bytes): HInt

Parameters

NameType
bytesnumber[]

Returns

HInt

fromProps

Static fromProps(props): HInt

Parameters

NameType
propsHInt | HIntProps

Returns

HInt

fromUplcCbor

Static fromUplcCbor(bytes): HInt

Parameters

NameType
bytesstring | number[]

Returns

HInt

fromUplcData

Static fromUplcData(data): HInt

Parameters

NameType
dataUplcData

Returns

HInt