Skip to content

nooschain v0.1.0


nooschain / chain/transaction-types / proposeContractStateMigrationPayloadSchema

Variable: proposeContractStateMigrationPayloadSchema

const proposeContractStateMigrationPayloadSchema: ZodObject<object & object, "strip", ZodTypeAny, { approvalMetadata?: Record<string, unknown>; auditMetadata?: Record<string, unknown>; batchSize: number; expectedSourceCodeHash?: string; expectedSourceManifestHash?: string; expectedTargetCodeHash?: string; expectedTargetManifestHash?: string; id: string; kind: "raw-copy" | "schema-transform" | "contract-defined"; metadata?: Record<string, unknown>; migrationId?: string; mode: "copy" | "move"; overwrite: "replace" | "reject"; proposalId: string; sourceContractId: string; stateKeys: string[] | "all"; targetContractId: string; transforms: ({ fromKey: string; operation: "copy"; toKey: string; } | { fromKey: string; operation: "rename"; toKey: string; } | { fromKey: string; operation: "delete"; } | { fromKey: string; operation: "setDefault"; path: string; toKey?: string; value?: unknown; } | { fromKey: string; operation: "set"; path: string; toKey?: string; value?: unknown; } | { fromKey: string; operation: "remove"; path: string; toKey?: string; } | { fromKey: string; fromPath: string; operation: "moveJsonPointer"; toKey?: string; toPath: string; })[]; }, { approvalMetadata?: Record<string, unknown>; auditMetadata?: Record<string, unknown>; batchSize?: number; expectedSourceCodeHash?: string; expectedSourceManifestHash?: string; expectedTargetCodeHash?: string; expectedTargetManifestHash?: string; id: string; kind?: "raw-copy" | "schema-transform" | "contract-defined"; metadata?: Record<string, unknown>; migrationId?: string; mode?: "copy" | "move"; overwrite?: "replace" | "reject"; proposalId: string; sourceContractId: string; stateKeys: string[] | "all"; targetContractId: string; transforms?: ({ fromKey: string; operation: "copy"; toKey: string; } | { fromKey: string; operation: "rename"; toKey: string; } | { fromKey: string; operation: "delete"; } | { fromKey: string; operation: "setDefault"; path: string; toKey?: string; value?: unknown; } | { fromKey: string; operation: "set"; path: string; toKey?: string; value?: unknown; } | { fromKey: string; operation: "remove"; path: string; toKey?: string; } | { fromKey: string; fromPath: string; operation: "moveJsonPointer"; toKey?: string; toPath: string; })[]; }>

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

Audience-first NOOSChain documentation.