Skip to content

nooschain v0.1.0


nooschain / chain/transaction-types / migrateContractStatePayloadSchema

Variable: migrateContractStatePayloadSchema

const migrateContractStatePayloadSchema: ZodObject<{ expectedSourceCodeHash: ZodOptional<ZodString>; expectedSourceManifestHash: ZodOptional<ZodString>; expectedTargetCodeHash: ZodOptional<ZodString>; expectedTargetManifestHash: ZodOptional<ZodString>; id: ZodString; metadata: ZodOptional<ZodDefault<ZodRecord<ZodString, ZodUnknown>>>; mode: ZodDefault<ZodEnum<["copy", "move"]>>; overwrite: ZodDefault<ZodEnum<["reject", "replace"]>>; sourceContractId: ZodString; stateKeys: ZodUnion<[ZodLiteral<"all">, ZodArray<ZodString, "many">]>; targetContractId: ZodString; }, "strip", ZodTypeAny, { expectedSourceCodeHash?: string; expectedSourceManifestHash?: string; expectedTargetCodeHash?: string; expectedTargetManifestHash?: string; id: string; metadata?: Record<string, unknown>; mode: "copy" | "move"; overwrite: "replace" | "reject"; sourceContractId: string; stateKeys: string[] | "all"; targetContractId: string; }, { expectedSourceCodeHash?: string; expectedSourceManifestHash?: string; expectedTargetCodeHash?: string; expectedTargetManifestHash?: string; id: string; metadata?: Record<string, unknown>; mode?: "copy" | "move"; overwrite?: "replace" | "reject"; sourceContractId: string; stateKeys: string[] | "all"; targetContractId: string; }>

Defined in: chain/transaction-types.ts:490

Audience-first NOOSChain documentation.