Skip to main content

DataMap

@harmoniclabs/plutus-dataReadme | API


@harmoniclabs/plutus-data / DataMap

Class: DataMap<DataKey, DataValue>

Type parameters

DataKey extends Data

DataValue extends Data

Constructors

new DataMap(map)

new DataMap<DataKey, DataValue>(map): DataMap<DataKey, DataValue>

Parameters

map: DataPair<DataKey, DataValue>[]

Returns

DataMap<DataKey, DataValue>

Source

DataMap.ts:11

Properties

_map

private _map: DataPair<DataKey, DataValue>[]

Source

DataMap.ts:8

Accessors

map

get map(): DataPair<DataKey, DataValue>[]

Returns

DataPair<DataKey, DataValue>[]

Source

DataMap.ts:9

Methods

clone()

clone(): DataMap<DataKey, DataValue>

Returns

DataMap<DataKey, DataValue>

Source

DataMap.ts:24


toJson()

toJson(): Object

Returns

Object

map

map: Object[]

Source

DataMap.ts:33


toString()

toString(): string

Returns

string

Source

DataMap.ts:45