UNPKG

eslint-plugin-o1js

Version:

o1js rules for ESLint

24 lines (23 loc) 1.17 kB
export declare const MAX_CONTRACT_STATES: 8; declare const o1jsPrimitives: readonly ["Field", "Bool", "UInt32", "UInt64", "Scalar", "PrivateKey", "Group", "PublicKey", "Signature"]; export declare type o1jsPrimitive = typeof o1jsPrimitives[number]; export declare function geto1jsPrimitive(s: string): "Field" | "Bool" | "UInt32" | "UInt64" | "Scalar" | "PrivateKey" | "Group" | "PublicKey" | "Signature" | undefined; export declare const o1jsPrimitiveSizeInfo: 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 {};