Dispute
DisputeClient
Methods
- raiseDispute
- cancelDispute
- resolveDispute
raiseDispute
Raises a dispute on a given ipId
Method | Type |
---|---|
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
Method | Type |
---|---|
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
Method | Type |
---|---|
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.
Updated 2 months ago