UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

30 lines (29 loc) 1.03 kB
import { ValueType, ObjectType, OperatorType, ContextType } from "../common.js"; export interface GuardQuery { id: number; name: string; objectType: ObjectType; parameters: ValueType[]; return: ValueType; description: string; parameters_description: string[]; } export declare const GUARDQUERY: GuardQuery[]; export interface GuardInstruct { name: string; id: OperatorType | ContextType; description: string; returnType?: ValueType; } export declare const GUARDINSTRUCT: GuardInstruct[]; export type GuardItem = GuardInstruct | GuardQuery; export interface GuardInstructFilterOptions { name?: string; id?: (OperatorType | ContextType | number)[]; returnType?: ValueType; paramCount?: number; scope?: "instruct" | "object query" | "all"; objectType?: ObjectType; } export declare function filterGuardInstruct(options: GuardInstructFilterOptions): GuardItem[]; export declare function getGuardQueryInfo(queryIdOrName: number | string): GuardQuery | undefined;