Helios API/ API Reference/ Classes/

UplcType

Represents the typeBits of a UPLC primitive.

Index

Constructors

constructor

new UplcType(typeBits)

Parameters

NameType
typeBitsstring

Methods

isData

isData(): boolean

Returns

boolean

isDataPair

isDataPair(): boolean

Returns

boolean

isSameType

isSameType(value): boolean

Parameters

NameType
valueUplcValue

Returns

boolean

transfer

transfer(other): any

Parameters

NameType
otherTransferUplcAst

Returns

any

typeBits

typeBits(): string

Returns

string

fromNumbers

Static fromNumbers(lst): UplcType

Parameters

NameType
lstnumber[]

Returns

UplcType

newDataPairType

Static newDataPairType(): UplcType

Returns

UplcType

newDataType

Static newDataType(): UplcType

Returns

UplcType