Type alias SchemaType

SchemaType: {
    type: "Unit" | "Bool" | "U8" | "U16" | "U32" | "U64" | "U128" | "I8" | "I16" | "I32" | "I64" | "I128" | "Amount" | "AccountAddress" | "ContractAddress" | "Timestamp" | "Duration";
} | {
    first: SchemaType;
    second: SchemaType;
    type: "Pair";
} | {
    item: SchemaType;
    sizeLength: SchemaSizeLength;
    type: "List";
} | {
    item: SchemaType;
    sizeLength: SchemaSizeLength;
    type: "Set";
} | {
    key: SchemaType;
    sizeLength: SchemaSizeLength;
    type: "Map";
    value: SchemaType;
} | {
    item: SchemaType;
    size: number;
    type: "Array";
} | {
    fields: SchemaFields;
    type: "Struct";
} | {
    type: "Enum";
    variants: SchemaEnumVariant[];
} | {
    sizeLength: SchemaSizeLength;
    type: "String";
} | {
    sizeLength: SchemaSizeLength;
    type: "ContractName";
} | {
    sizeLength: SchemaSizeLength;
    type: "ReceiveName";
} | {
    maxByteSize: number;
    type: "ULeb128";
} | {
    maxByteSize: number;
    type: "ILeb128";
} | {
    sizeLength: SchemaSizeLength;
    type: "ByteList";
} | {
    size: number;
    type: "ByteArray";
} | {
    type: "TaggedEnum";
    variants: Map<number, SchemaEnumVariant>;
}

The schema type information. Provides information of how to serialize or deserialzie some binary information into a structure.

Generated using TypeDoc