List of tools/versions used in producing the Michelson.
Location (URL) of the source code.
Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.
Using a String
title in the schema is breaking json-schema-to-typescript
. It confuses it with a string
.
That's why I'm changing the title here to StringExpression
.
When using Pinata and wrapping files within a directory we will only get a CID of the directory. So we need a way to also figure out what is a CID of the file itself. This is what this function does. Inspired by https://github.com/alanshaw/ipfs-only-hash/blob/master/index.js
Generates proper IPFS URI out of a hash and a file name
Generates IPFS URI with SHA256 checksum prefix
This file takes JSON schemas defined in TZIPs and convert them into useful TypeScript types definition files
When using Pinata's pinFileToIPFS
, library expects to receive a file as a ReadableStream.
This function converts an object into JSON string and create stream compatible with
Pinata. The hack with path
is important to make it work
Generated using TypeDoc
Decimal representation of a big number