Skip to content

nooschain v0.1.0


nooschain / contracts/manifest / contractManifestSchema

Variable: contractManifestSchema

const contractManifestSchema: ZodObject<{ calls: ZodDefault<ZodArray<ZodObject<{ contractId: ZodString; methods: ZodArray<ZodString, "many">; requiredBuckets: ZodDefault<ZodArray<ZodObject<{ access: ZodArray<..., ...>; availability: ZodEnum<...>; bucketId: ZodString; }, "strip", ZodTypeAny, { access: ...[]; availability: ... | ...; bucketId: string; }, { access: ...[]; availability: ... | ...; bucketId: string; }>, "many">>; }, "strip", ZodTypeAny, { contractId: string; methods: string[]; requiredBuckets: object[]; }, { contractId: string; methods: string[]; requiredBuckets?: object[]; }>, "many">>; exports: ZodObject<{ init: ZodOptional<ZodString>; methods: ZodEffects<ZodRecord<ZodString, ZodObject<{ abi: ZodOptional<ZodObject<{ description: ...; events: ...; input: ...; output: ...; }, "strip", ZodTypeAny, { description?: ...; events: ...; input?: ...; output?: ...; }, { description?: ...; events?: ...; input?: ...; output?: ...; }>>; buckets: ZodDefault<ZodArray<ZodObject<..., ..., ..., ..., ...>, "many">>; entrypoint: ZodString; invoke: ZodObject<{ allow: ZodArray<..., ...>; }, "strip", ZodTypeAny, { allow: ...[]; }, { allow: ...[]; }>; maxFuel: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { abi?: { description?: ... | ...; events: ...[]; input?: ... | ...; output?: ... | ...; }; buckets: object[]; entrypoint: string; invoke: { allow: (... | ... | ... | ... | ... | ... | ...)[]; }; maxFuel?: number; }, { abi?: { description?: ... | ...; events?: ... | ...; input?: ... | ...; output?: ... | ...; }; buckets?: object[]; entrypoint: string; invoke: { allow: (... | ... | ... | ... | ... | ... | ...)[]; }; maxFuel?: number; }>>, Record<string, { abi?: { description?: string; events: object[]; input?: ContractAbiValue; output?: ContractAbiValue; }; buckets: object[]; entrypoint: string; invoke: { allow: ({ principalType: ...; } | { principalType: ...; } | { principalType: ...; } | { principalType: ...; } | { principalId: ...; principalType: ...; } | { principalId: ...; principalType: ...; } | { principalId: ...; principalType: ...; })[]; }; maxFuel?: number; }>, Record<string, { abi?: { description?: string; events?: ...[]; input?: ContractAbiValue; output?: ContractAbiValue; }; buckets?: object[]; entrypoint: string; invoke: { allow: ({ principalType: ...; } | { principalType: ...; } | { principalType: ...; } | { principalType: ...; } | { principalId: ...; principalType: ...; } | { principalId: ...; principalType: ...; } | { principalId: ...; principalType: ...; })[]; }; maxFuel?: number; }>>; }, "strip", ZodTypeAny, { init?: string; methods: Record<string, { 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; }>; }, { init?: string; methods: Record<string, { 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; }>; }>; migrations: ZodDefault<ZodArray<ZodObject<{ description: ZodOptional<ZodString>; entrypoint: ZodString; fromVersion: ZodOptional<ZodString>; id: ZodString; input: ZodOptional<ZodType<ContractAbiValue, ZodTypeDef, ContractAbiValue>>; maxBatchSize: ZodOptional<ZodNumber>; maxFuel: ZodOptional<ZodNumber>; output: ZodOptional<ZodType<ContractAbiValue, ZodTypeDef, ContractAbiValue>>; toVersion: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { description?: string; entrypoint: string; fromVersion?: string; id: string; input?: ContractAbiValue; maxBatchSize?: number; maxFuel?: number; output?: ContractAbiValue; toVersion?: string; }, { description?: string; entrypoint: string; fromVersion?: string; id: string; input?: ContractAbiValue; maxBatchSize?: number; maxFuel?: number; output?: ContractAbiValue; toVersion?: string; }>, "many">>; name: ZodString; runtime: ZodLiteral<"wasm-assemblyscript-v1">; schemaVersion: ZodLiteral<1>; version: ZodString; }, "strip", ZodTypeAny, { calls: object[]; exports: { init?: string; methods: Record<string, { 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; }>; }; migrations: object[]; name: string; runtime: "wasm-assemblyscript-v1"; schemaVersion: 1; version: string; }, { calls?: object[]; exports: { init?: string; methods: Record<string, { 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; }>; }; migrations?: object[]; name: string; runtime: "wasm-assemblyscript-v1"; schemaVersion: 1; version: string; }>

Defined in: contracts/manifest.ts:128

Audience-first NOOSChain documentation.