Package Exports
- @harmoniclabs/plutus-data
- @harmoniclabs/plutus-data/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@harmoniclabs/plutus-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@harmoniclabs/plutus-data
Typescript definition of the generic Data
type for plutus applicaitons
type Data
= DataConstr
| DataMap<Data, Data>
| DataList
| DataI
| DataB;
install
npm install @harmoniclabs/plutus-data
exported functions
function hashData(data: Data): Uint8Array;
function dataToCborObj(data: Data): CborObj;
function dataToCbor(data: Data): CborString;
function dataFromCborObj(cborObj: CborObj): Data;
function dataFromCbor(cbor: CanBeCborString): Data;