eslint-plugin-snarkyjs
Version:
SnarkyJS rules for ESLint
24 lines (23 loc) • 1.19 kB
TypeScript
export declare const MAX_CONTRACT_STATES: 8;
declare const SnarkyJSPrimitives: readonly ["Field", "Bool", "UInt32", "UInt64", "Scalar", "PrivateKey", "Group", "PublicKey", "Signature"];
export declare type SnarkyJSPrimitive = typeof SnarkyJSPrimitives[number];
export declare function getSnarkyJSPrimitive(s: string): "Field" | "Bool" | "UInt32" | "UInt64" | "Scalar" | "PrivateKey" | "Group" | "PublicKey" | "Signature" | undefined;
export declare const SnarkyJSPrimitiveSizeInfo: Record<"Field" | "Bool" | "UInt32" | "UInt64" | "Scalar" | "PrivateKey" | "Group" | "PublicKey" | "Signature", {
size: number;
}>;
export declare type PropKind = {
kind: 'prop';
};
export declare type ArrayPropKind = {
kind: 'arrayProp';
arrayPropLength: number;
};
export declare type StateKind = {
kind: 'state';
size?: number;
};
export declare const ContractStateTypes: readonly ["prop", "arrayProp", "state"];
export declare function findValidContractType(s: string): "prop" | "arrayProp" | "state" | undefined;
export declare type ContractStateType = typeof ContractStateTypes[number];
export declare type ContractTypeKind = PropKind | ArrayPropKind | StateKind;
export {};