Helios API/ API Reference/ Classes/
UplcType
Represents the typeBits of a UPLC primitive.
Index
Constructors
constructor
• new UplcType(typeBits
)
Parameters
Name | Type |
---|---|
typeBits | string |
Methods
isData
▸ isData(): boolean
Returns
boolean
isDataPair
▸ isDataPair(): boolean
Returns
boolean
isSameType
▸ isSameType(value
): boolean
Parameters
Name | Type |
---|---|
value | UplcValue |
Returns
boolean
transfer
▸ transfer(other
): any
Parameters
Name | Type |
---|---|
other | TransferUplcAst |
Returns
any
typeBits
▸ typeBits(): string
Returns
string
fromNumbers
▸ Static
fromNumbers(lst
): UplcType
Parameters
Name | Type |
---|---|
lst | number [] |
Returns
newDataPairType
▸ Static
newDataPairType(): UplcType
Returns
newDataType
▸ Static
newDataType(): UplcType