UNPKG

@ton-community/tlb-runtime

Version:

TL‑B Runtime is a library for parsing and (de)serializing data according to TL‑B schemas

37 lines (36 loc) 1.02 kB
import { ParsedCell } from './TLBRuntime'; export type TLBSchema = string; export type BoCBase64 = string; export type TLBGroupItem = [TLBSchema, [ParsedCell, BoCBase64][]]; export type TLBGroup = string; export type TLBCorpus = { [key: TLBGroup]: TLBGroupItem[]; }; export type TLBCase = [TLBSchema, ParsedCell, BoCBase64]; export type TLBGroupFlat = { [key: TLBGroup]: TLBCase[]; }; export declare function makeGroupFlat(corpus: TLBCorpus): TLBGroupFlat; export declare const TLBStd: { Unit: string; Bit: string; True: string; Bool: string; Maybe: string; Either: string; Grams: string; Coins: string; VarInteger: string; VarUInteger: string; Unary: string; }; export declare const TLBHmLabel: string; export declare const TLBLib: { Grams: string; HashmapE: string; HashmapAugE: string; MsgAddress: string; }; export declare const TLBTVMReflection: string; export declare const groupCorpus: TLBCorpus; export declare const groupCorpusFlat: TLBGroupFlat;