Skip to content

nooschain v0.1.0


nooschain / contracts/manifest / contractMethodManifestSchema

Variable: contractMethodManifestSchema

const contractMethodManifestSchema: ZodObject<{ abi: ZodOptional<ZodObject<{ description: ZodOptional<ZodString>; events: ZodDefault<ZodArray<ZodObject<{ description: ZodOptional<ZodString>; schema: ZodType<ContractAbiValue, ZodTypeDef, ContractAbiValue>; topic: ZodString; }, "strip", ZodTypeAny, { description?: string; schema: ContractAbiValue; topic: string; }, { description?: string; schema: ContractAbiValue; topic: string; }>, "many">>; input: ZodOptional<ZodType<ContractAbiValue, ZodTypeDef, ContractAbiValue>>; output: ZodOptional<ZodType<ContractAbiValue, ZodTypeDef, ContractAbiValue>>; }, "strip", ZodTypeAny, { description?: string; events: object[]; input?: ContractAbiValue; output?: ContractAbiValue; }, { description?: string; events?: object[]; input?: ContractAbiValue; output?: ContractAbiValue; }>>; buckets: ZodDefault<ZodArray<ZodObject<{ access: ZodArray<ZodEnum<[string, ...string[]]>, "many">; availability: ZodEnum<["metadata", "encrypted_payload_local"]>; bucketId: ZodString; }, "strip", ZodTypeAny, { access: string[]; availability: "metadata" | "encrypted_payload_local"; bucketId: string; }, { access: string[]; availability: "metadata" | "encrypted_payload_local"; bucketId: string; }>, "many">>; entrypoint: ZodString; invoke: ZodObject<{ allow: ZodArray<ZodDiscriminatedUnion<"principalType", [ZodObject<{ principalType: ZodLiteral<"anyUser">; }, "strip", ZodTypeAny, { principalType: "anyUser"; }, { principalType: "anyUser"; }>, ZodObject<{ principalType: ZodLiteral<"anyContract">; }, "strip", ZodTypeAny, { principalType: "anyContract"; }, { principalType: "anyContract"; }>, ZodObject<{ principalType: ZodLiteral<"any">; }, "strip", ZodTypeAny, { principalType: "any"; }, { principalType: "any"; }>, ZodObject<{ principalType: ZodLiteral<"system">; }, "strip", ZodTypeAny, { principalType: "system"; }, { principalType: "system"; }>]>, "many">; }, "strip", ZodTypeAny, { allow: ({ principalType: "anyUser"; } | { principalType: "anyContract"; } | { principalType: "any"; } | { principalType: "system"; } | { principalId: string; principalType: "user"; } | { principalId: string; principalType: "organization"; } | { principalId: string; principalType: "contract"; })[]; }, { allow: ({ principalType: "anyUser"; } | { principalType: "anyContract"; } | { principalType: "any"; } | { principalType: "system"; } | { principalId: string; principalType: "user"; } | { principalId: string; principalType: "organization"; } | { principalId: string; principalType: "contract"; })[]; }>; maxFuel: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { abi?: { description?: string; events: object[]; input?: ContractAbiValue; output?: ContractAbiValue; }; buckets: object[]; entrypoint: string; invoke: { allow: ({ principalType: "anyUser"; } | { principalType: "anyContract"; } | { principalType: "any"; } | { principalType: "system"; } | { principalId: string; principalType: "user"; } | { principalId: string; principalType: "organization"; } | { principalId: string; principalType: "contract"; })[]; }; maxFuel?: number; }, { abi?: { description?: string; events?: object[]; input?: ContractAbiValue; output?: ContractAbiValue; }; buckets?: object[]; entrypoint: string; invoke: { allow: ({ principalType: "anyUser"; } | { principalType: "anyContract"; } | { principalType: "any"; } | { principalType: "system"; } | { principalId: string; principalType: "user"; } | { principalId: string; principalType: "organization"; } | { principalId: string; principalType: "contract"; })[]; }; maxFuel?: number; }>

Defined in: contracts/manifest.ts:102

Audience-first NOOSChain documentation.