Helios API/ API Reference/ Interfaces/
UplcValue
UplcValue is passed around by Plutus-core expressions.
Implemented by
Index
Properties
assertUnit
• assertUnit: () => UplcUnit
Type declaration
▸ (): UplcUnit
Returns
bool
• bool: boolean
bytes
• bytes: number
[]
copy
• copy: (newSite
: Site
) => UplcValue
Type declaration
▸ (newSite
): UplcValue
return a copy of the UplcValue at a different Site
Parameters
Name | Type |
---|---|
newSite | Site |
Returns
data
• data: UplcData
first
• first: UplcValue
flatSize
• flatSize: number
size taken up in serialized UPLC program (number of bits)
int
• int: bigint
isAny
• isAny: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
isData
• isData: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
isList
• isList: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
isPair
• isPair: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
itemType
• itemType: UplcType
length
• length: number
only relevant for lists and maps
list
• list: UplcValue
[]
memSize
• memSize: number
size in words (8 bytes, 64 bits) occupied in target node
second
• second: UplcValue
site
• site: Site
string
• string: string
toFlatValue
• toFlatValue: (bitWriter
: BitWriter
) => void
Type declaration
▸ (bitWriter
): void
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
toFlatValueInternal
• toFlatValueInternal: (bitWriter
: BitWriter
) => void
Type declaration
▸ (bitWriter
): void
like toFlatValue(), but without the typebits
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
toString
• toString: () => string
Type declaration
▸ (): string
Returns
string
transfer
• transfer: (other
: TransferUplcAst
) => any
Type declaration
▸ (other
): any
Parameters
Name | Type |
---|---|
other | TransferUplcAst |
Returns
any
typeBits
• typeBits: () => string
Type declaration
▸ (): string
Returns
string