@okcontract/sdk
Version:
One-stop-shop permissionless SDK for building any blockchain frontend
21 lines (20 loc) • 994 B
TypeScript
import { type SheetProxy } from "@okcontract/cells";
import { type ConstantNode, type Environment, type FirstClassValue, type ParserExtension, type StandardLibrary, type TypeScheme } from "@okcontract/lambdascript";
import type { OKPage } from "./instance";
export declare const getEnvInstance: (env: Environment) => OKPage;
export declare const typeAddress: import("@okcontract/lambdascript").TypeConst;
export declare const newAddress: (addr: string | bigint) => ConstantNode<unknown>;
export declare const BaseValuesTypeScheme: {
[key: string]: TypeScheme;
};
/**
* web3Library defines a λs Context using OKcontract parameters.
* This defines access to coredata, etc.
* @param g
* @todo subscriber ?
* @returns
*/
export declare const web3Library: (libproxy: SheetProxy) => StandardLibrary;
export declare const address: FirstClassValue;
export declare const AddressExtension: ParserExtension<unknown, string>;
export declare const computeHash: (obj: unknown) => Promise<string>;