Helios API/ API Reference/ Classes/

UplcValueImpl

Base cass for UplcValue implementations.

Hierarchy

Index

Constructors

constructor

new UplcValueImpl(site)

Parameters

NameType
siteSite

Accessors

bool

get bool(): boolean

Returns

boolean

bytes

get bytes(): number[]

Returns

number[]

data

get data(): UplcData

Returns

UplcData

first

get first(): UplcValue

Returns

UplcValue

int

get int(): bigint

Returns

bigint

itemType

get itemType(): UplcType

Returns

UplcType

length

get length(): number

Returns

number

list

get list(): UplcValue[]

Returns

UplcValue[]

second

get second(): UplcValue

Returns

UplcValue

site

get site(): Site

Returns

Site

string

get string(): string

Returns

string

Methods

assertUnit

assertUnit(): UplcUnit

Returns

UplcUnit

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

NameType
bitWriterBitWriter

Returns

void

toFlatValueInternal

toFlatValueInternal(bitWriter): void

Encodes value without type header

Parameters

NameType
bitWriterBitWriter

Returns

void

typeBits

typeBits(): string

Returns

string