Register a Derivative
Learn how to register a derivative/remix IP Asset as a child of another in Solidity.
Completed Code
All of this page is covered in this working code example.
Once a License Token has been minted from an IP Asset, the owner of that token (an ERC-721 NFT) can burn it to register their own IP Asset as a derivative of the IP Asset associated with the License Token.
Prerequisites
There are a few steps you have to complete before you can start the tutorial.
- Complete the Setup Your Own Project
- Have a minted License Token. You can learn how to do that here
Register as Derivative
Let’s create a test file under test/4_IPARemix.t.sol
to see it work and verify the results:
Contract Addresses
We have filled in the addresses from the Story contracts for you. However you can also find the addresses for them here: Deployed Smart Contracts
Test Your Code!
Run forge build
. If everything is successful, the command should successfully compile.
Now run the test by executing the following command:
Paying and Claiming Revenue
Congratulations, you registered a derivative IP Asset!
Completed Code
All of this page is covered in this working code example.
Now that we have established parent-child IP relationships, we can begin to explore payments and automated revenue share based on the license terms. We’ll cover that in the upcoming pages.