nooschain / contracts/state-migration-transforms / applyContractStateMigrationTransforms
Function: applyContractStateMigrationTransforms()
applyContractStateMigrationTransforms(
rows,transforms):ContractStateMigrationTransformResult
Defined in: contracts/state-migration-transforms.ts:110
Parameters
rows
readonly ContractStateMigrationSourceRow[]
transforms
readonly ({ 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; })[]