@okcontract/sdk
Version:
One-stop-shop permissionless SDK for building any blockchain frontend
13 lines (12 loc) • 741 B
TypeScript
import type { AnyCell, SheetProxy } from "@okcontract/cells";
import { type DataCacheType } from "@okcontract/coredata";
import { type EditorMode, type LabelledTypeDefinition, type MapTypeDefinitions } from "@okcontract/fred";
import type { OKPage } from "./instance";
export declare const ChainAddressDefinition: (proxy: SheetProxy) => () => AnyCell<LabelledTypeDefinition>;
/**
* coredataTypeScheme builds a static TypeScheme for coredata.
* @param intf
* @returns
* @todo generalize an environment to get interactive data, rather than static parameters (toks, intf)
*/
export declare const coredataTypeScheme: (instance: OKPage, is_admin?: boolean, mode?: EditorMode, type?: DataCacheType, methods?: string[]) => MapTypeDefinitions;