Helios API/ API Reference/ Classes/

MapData

Represents a list of pairs of other UplcData instances.

Hierarchy

Index

Constructors

constructor

new MapData(pairs)

Parameters

NameType
pairs[UplcData, UplcData][]

Overrides

UplcData.constructor

Accessors

memSize

get memSize(): number

Estimate of memory usage during validation

Returns

number

Inherited from

UplcData.memSize

Methods

isSame

isSame(other): boolean

Compares the schema jsons

Parameters

NameType
otherUplcData

Returns

boolean

Inherited from

UplcData.isSame

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

UplcData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

UplcData.toCborHex

toSchemaJson

toSchemaJson(): string

Returns

string

Inherited from

UplcData.toSchemaJson

transfer

transfer(other): any

Parameters

NameType
otherTransferUplcAst

Returns

any

Inherited from

UplcData.transfer

fromCbor

Static fromCbor(bytes): MapData

Parameters

NameType
bytesnumber[]

Returns

MapData

Overrides

UplcData.fromCbor