Learn how to create an on-chain dispute in TypeScript.
This section demonstrates how to dispute an IP on Story. There are many instances where you may want to dispute an IP - whether that IP is or is not owned by you. Disputing IP on Story is easy thanks to our Dispute Module and the UMA Arbitration Policy.
Let’s say you register a drawing, and then someone else registers that drawing with 1 pixel off. You can dispute it along a IMPROPER_REGISTRATION
tag, which communicates potential plagiarism.
In this tutorial, you will simply learn how to flag an IP as being disputed.
There are a few steps you have to complete before you can start the tutorial.
To dispute an IP Asset, you will need:
targetIpId
of the IP Asset you are disputing (we use a test one below)targetTag
that you are applying to the dispute. Only whitelisted tags can be applied.cid
(Content Identifier) is a unique identifier in IPFS that represents the dispute evidence you must provide, as described here (we use a test one below).Note you can only provide a CID one time. After it is used, it can’t be used as evidence again.
Create a main.ts
file and add the code below: