Completed Code
All of this page is covered in this working code example.
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 undertest/4_IPARemix.t.sol
to see it work and verify the results:
Contract AddressesWe 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/4_IPARemix.t.sol
Test Your Code!
Runforge 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.