useChangeMilestoneStatus
Responsible for modifying the "status" property of a specific milestone in the escrow.
useChangeMilestoneStatus
Import
import { useChangeMilestoneStatus } from "@trustless-work/escrow";
// or
import { useChangeMilestoneStatus } from "@trustless-work/escrow/hooks/rest";Signature
function useChangeMilestoneStatus(): {
changeMilestoneStatus: (
payload: ChangeMilestoneStatusPayload,
type: EscrowType,
) => Promise<BuildTransactionResponse>;
};{
contractId: string;
serviceProvider: string;
updates: Array<{
index: number;
newStatus: string;
newEvidence?: string;
}>;
}