DisputeClient

Methods

  • raiseDispute
  • cancelDispute
  • resolveDispute

raiseDispute

Raises a dispute on a given ipId

MethodType
raiseDispute(request: RaiseDisputeRequest) => Promise<RaiseDisputeResponse>

Parameters:

  • request: The request object containing necessary data to raise a dispute.
  • request.targetIpId: The IP ID that is the target of the dispute.
  • request.arbitrationPolicy: The address of the arbitration policy.
  • request.linkToDisputeEvidence: The link to the dispute evidence.
  • request.targetTag: The target tag of the dispute.
  • request.calldata: [Optional] Calldata to initialize the policy.
  • request.txOptions: [Optional] The transaction options.

cancelDispute

Cancels an ongoing dispute

MethodType
cancelDispute(request: CancelDisputeRequest) => Promise<CancelDisputeResponse>

Parameters:

  • request: The request object containing details to cancel the dispute.
  • request.disputeId: The ID of the dispute to be cancelled.
  • request.calldata: [Optional] Additional data used in the cancellation process.
  • request.txOptions: [Optional] The transaction options.

resolveDispute

Resolves a dispute after it has been judged

MethodType
resolveDispute(request: ResolveDisputeRequest) => Promise<ResolveDisputeResponse>

Parameters:

  • request: The request object containing details to resolve the dispute.
  • request.disputeId: The ID of the dispute to be resolved.
  • request.data: The data to resolve the dispute.
  • request.txOptions: [Optional] The transaction options.