Helios API/ API Reference/ Classes/
UplcValueImpl
Base cass for UplcValue implementations.
Hierarchy
Index
Constructors
constructor
• new UplcValueImpl(site
)
Parameters
Name | Type |
---|---|
site | Site |
Accessors
bool
• get
bool(): boolean
Returns
boolean
bytes
• get
bytes(): number
[]
Returns
number
[]
data
• get
data(): UplcData
Returns
first
• get
first(): UplcValue
Returns
int
• get
int(): bigint
Returns
bigint
itemType
• get
itemType(): UplcType
Returns
length
• get
length(): number
Returns
number
list
• get
list(): UplcValue
[]
Returns
second
• get
second(): UplcValue
Returns
site
• get
site(): Site
Returns
string
• get
string(): string
Returns
string
Methods
assertUnit
▸ assertUnit(): UplcUnit
Returns
isAny
▸ isAny(): boolean
Returns
boolean
isData
▸ isData(): boolean
Returns
boolean
isList
▸ isList(): boolean
Distinguishes a list from a map
Returns
boolean
isPair
▸ isPair(): boolean
Distinguishes a pair from a mapItem
Returns
boolean
toFlatValue
▸ toFlatValue(bitWriter
): void
Encodes value with plutus flat encoding. Member function not named 'toFlat' as not to confuse with 'toFlat' member of terms.
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
toFlatValueInternal
▸ toFlatValueInternal(bitWriter
): void
Encodes value without type header
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
typeBits
▸ typeBits(): string
Returns
string