Helios API/ API Reference/ Classes/
UplcDataValue
UplcValue
that wraps a UplcData
instance.
Implements
Hierarchy
-
↳
UplcDataValue
Implements
Index
Constructors
constructor
• new UplcDataValue(site
, data
)
Parameters
Overrides
Accessors
bool
• get
bool(): boolean
Returns
boolean
Implementation of
Inherited from
UplcValueImpl.bool
bytes
• get
bytes(): number
[]
Returns
number
[]
Implementation of
Inherited from
UplcValueImpl.bytes
data
• get
data(): UplcData
Returns
Implementation of
Inherited from
UplcValueImpl.data
first
• get
first(): UplcValue
Returns
Implementation of
Inherited from
UplcValueImpl.first
flatSize
• get
flatSize(): number
Same number of header bits as UplcByteArray
Returns
number
Implementation of
int
• get
int(): bigint
Returns
bigint
Implementation of
Inherited from
UplcValueImpl.int
itemType
• get
itemType(): UplcType
Returns
Implementation of
Inherited from
UplcValueImpl.itemType
length
• get
length(): number
Returns
number
Implementation of
Inherited from
UplcValueImpl.length
list
• get
list(): UplcValue
[]
Returns
Implementation of
Inherited from
UplcValueImpl.list
memSize
• get
memSize(): number
Returns
number
Implementation of
second
• get
second(): UplcValue
Returns
Implementation of
Inherited from
UplcValueImpl.second
site
• get
site(): Site
Returns
Implementation of
Inherited from
UplcValueImpl.site
string
• get
string(): string
Returns
string
Implementation of
Inherited from
UplcValueImpl.string
Methods
assertUnit
▸ assertUnit(): UplcUnit
Returns
Implementation of
Inherited from
copy
▸ copy(newSite
): UplcDataValue
Parameters
Name | Type |
---|---|
newSite | Site |
Returns
Implementation of
isAny
▸ isAny(): boolean
Returns
boolean
Implementation of
Inherited from
isData
▸ isData(): boolean
Returns
boolean
Implementation of
Inherited from
isList
▸ isList(): boolean
Distinguishes a list from a map
Returns
boolean
Implementation of
Inherited from
isPair
▸ isPair(): boolean
Distinguishes a pair from a mapItem
Returns
boolean
Implementation of
Inherited from
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
Implementation of
Inherited from
toFlatValueInternal
▸ toFlatValueInternal(bitWriter
): void
Encodes value without type header
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
Implementation of
Inherited from
UplcValueImpl.toFlatValueInternal
transfer
▸ transfer(other
): any
Parameters
Name | Type |
---|---|
other | TransferUplcAst |
Returns
any
Implementation of
typeBits
▸ typeBits(): string
Returns
string
Implementation of
Inherited from
unwrap
▸ Static
unwrap(data
): UplcData
Parameters
Name | Type |
---|---|
data | UplcData | UplcDataValue |