Helios API/ API Reference/ Classes/

UplcByteArray

Primitive equivalent of ByteArrayData.

Implements

Hierarchy

Implements

Index

Constructors

constructor

new UplcByteArray(site, bytes)

Parameters

NameType
siteSite
bytesnumber[]

Overrides

UplcValueImpl.constructor

Accessors

bool

get bool(): boolean

Returns

boolean

Implementation of

UplcValue.bool

Inherited from

UplcValueImpl.bool

bytes

get bytes(): number[]

Returns

number[]

Implementation of

UplcValue.bytes

Inherited from

UplcValueImpl.bytes

data

get data(): UplcData

Returns

UplcData

Implementation of

UplcValue.data

Inherited from

UplcValueImpl.data

first

get first(): UplcValue

Returns

UplcValue

Implementation of

UplcValue.first

Inherited from

UplcValueImpl.first

flatSize

get flatSize(): number

4 for header, 8 bits per byte, 8 bits per chunk of 256 bytes, 8 bits final padding

Returns

number

Implementation of

UplcValue.flatSize

int

get int(): bigint

Returns

bigint

Implementation of

UplcValue.int

Inherited from

UplcValueImpl.int

itemType

get itemType(): UplcType

Returns

UplcType

Implementation of

UplcValue.itemType

Inherited from

UplcValueImpl.itemType

length

get length(): number

Returns

number

Implementation of

UplcValue.length

Inherited from

UplcValueImpl.length

list

get list(): UplcValue[]

Returns

UplcValue[]

Implementation of

UplcValue.list

Inherited from

UplcValueImpl.list

memSize

get memSize(): number

Returns

number

Implementation of

UplcValue.memSize

second

get second(): UplcValue

Returns

UplcValue

Implementation of

UplcValue.second

Inherited from

UplcValueImpl.second

site

get site(): Site

Returns

Site

Implementation of

UplcValue.site

Inherited from

UplcValueImpl.site

string

get string(): string

Returns

string

Implementation of

UplcValue.string

Inherited from

UplcValueImpl.string

Methods

assertUnit

assertUnit(): UplcUnit

Returns

UplcUnit

Implementation of

UplcValue.assertUnit

Inherited from

UplcValueImpl.assertUnit

copy

copy(newSite): UplcByteArray

Parameters

NameType
newSiteSite

Returns

UplcByteArray

Implementation of

UplcValue.copy

isAny

isAny(): boolean

Returns

boolean

Implementation of

UplcValue.isAny

Inherited from

UplcValueImpl.isAny

isData

isData(): boolean

Returns

boolean

Implementation of

UplcValue.isData

Inherited from

UplcValueImpl.isData

isList

isList(): boolean

Distinguishes a list from a map

Returns

boolean

Implementation of

UplcValue.isList

Inherited from

UplcValueImpl.isList

isPair

isPair(): boolean

Distinguishes a pair from a mapItem

Returns

boolean

Implementation of

UplcValue.isPair

Inherited from

UplcValueImpl.isPair

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

Implementation of

UplcValue.toFlatValue

Inherited from

UplcValueImpl.toFlatValue

toFlatValueInternal

toFlatValueInternal(bitWriter): void

Encodes value without type header

Parameters

NameType
bitWriterBitWriter

Returns

void

Implementation of

UplcValue.toFlatValueInternal

Inherited from

UplcValueImpl.toFlatValueInternal

transfer

transfer(other): any

Parameters

NameType
otherTransferUplcAst

Returns

any

Implementation of

UplcValue.transfer

typeBits

typeBits(): string

Returns

string

Implementation of

UplcValue.typeBits

Inherited from

UplcValueImpl.typeBits