17 | 18 | | 19 |
---|
25 | SDK :arrow_upper_right: 26 | | 27 |
31 | [Deployed Smart Contract Addresses ↗️](doc:deployed-smart-contracts) 32 | | 33 |
37 | Protocol Core :arrow_upper_right: 38 | | 39 |
43 | Protocol Periphery :arrow_upper_right: 44 | | 45 |
49 | Story - Consensus Implementation :arrow_upper_right: 50 | | 51 |
55 | Story Geth - Execution Layer Implementation :arrow_upper_right: 56 | | 57 |
19 | 20 | | 21 | 22 |23 | Odyssey Testnet 24 | | 25 | 26 |27 | Aeneid Testnet 28 | | 29 |
---|---|---|
35 | SDK 36 | | 37 | 38 |39 | [v1.2](https://www.npmjs.com/package/@story-protocol/core-sdk/v/1.2.0-rc.4) 40 | | 41 | 42 |43 | [v1.3](https://www.npmjs.com/package/@story-protocol/core-sdk/v/1.3.0-beta.2) 44 | 45 | :warning: Note this is still a beta version. 46 | 47 | **Migration Guide**: To go from v1.2 to v1.3, check out the [SDK v1.3 MIGRATION GUIDE](doc:sdk-v13-migration-guide). 48 | | 49 |
53 | Protocol 54 | | 55 | 56 |57 | [v1.2](https://github.com/storyprotocol/protocol-core-v1/tree/v1.2.3) 58 | | 59 | 60 |61 | [Core v1.3](https://github.com/storyprotocol/protocol-core-v1)\ 62 | [Periphery v1.3](https://github.com/storyprotocol/protocol-periphery-v1) 63 | 64 | **Tutorial**: Check out [⚙️ Smart Contracts](doc:get-started-with-the-smart-contracts) for a tutorial on integrating with the v1.3 contracts 65 | | 66 |
70 | API 71 | | 72 | 73 |74 | :warning: Deprecated (no longer available) 75 | | 76 | 77 |78 | [v1.3](https://docs.story.foundation/reference/api-introduction) 79 | | 80 |
19 | 20 | | 21 | 22 |23 | License Tokens 24 | | 25 | 26 |27 | Royalty Tokens 28 | | 29 | 30 |31 | Revenue Tokens 32 | | 33 |
---|---|---|---|
39 | **Module** 40 | | 41 | 42 |43 | [📜 Licensing Module](doc:licensing-module) 44 | | 45 | 46 |47 | [💸 Royalty Module](doc:royalty-module) 48 | | 49 | 50 |51 | [💸 Royalty Module](doc:royalty-module) 52 | | 53 |
57 | **Explanation** 58 | | 59 | 60 |61 | An ERC-721 NFT that gets minted from an IP Asset with specific license terms. It is essentially the license you hold that gives you access to use the associated IP Asset based on the terms in the License Token. 62 | 63 | A License Token is burned when it is used to register an IP Asset as a derivative of another. 64 | | 65 | 66 |67 | Each IP Asset has 100,000,000 Royalty Tokens associated, where each token represents the right of whoever owns them to claim 0.000001% of the gains ("*Revenue Tokens*") deposited into the IPA's Royalty Vault. 68 | | 69 | 70 |71 | These are the tokens that are actually used for payment (ex. $WIP). 72 | 73 | "*Royalty Tokens*" are used to claim these Revenue Tokens when an IP Asset earns them. 74 | | 75 |
79 | **Associated Docs** 80 | | 81 | 82 |83 | [License Token](doc:license-token) 84 | | 85 | 86 |87 | [IP Royalty Vault](doc:ip-royalty-vault) 88 | | 89 | 90 |91 | [IP Royalty Vault](doc:ip-royalty-vault) 92 | | 93 |
57 | Name 58 | | 59 | 60 |61 | Type 62 | | 63 | 64 |65 | Description 66 | | 67 |
---|---|---|
73 | ipId 74 | | 75 | 76 |77 | address 78 | | 79 | 80 |81 | 82 | | 83 |
87 | key 88 | | 89 | 90 |91 | string 92 | | 93 | 94 |95 | The string parameter key to query. 96 | | 97 |
29 | Name 30 | | 31 | 32 |33 | Type 34 | | 35 | 36 |37 | Description 38 | | 39 |
---|---|---|
45 | \_ 46 | 47 | array 48 | | 49 | 50 |51 | address 52 | 53 | \[ 54 | 55 | ] 56 | | 57 | 58 |59 | The input array to search 60 | | 61 |
65 | \_ 66 | 67 | element 68 | | 69 | 70 |71 | address 72 | | 73 | 74 |75 | The value to find 76 | | 77 |
87 | Name 88 | | 89 | 90 |91 | Type 92 | | 93 | 94 |95 | Description 96 | | 97 |
---|---|---|
103 | \[0] 104 | | 105 | 106 |107 | uint32 108 | | 109 | 110 |111 | Returns (index and isIn) for the first occurrence starting from index 0 112 | | 113 |
117 | \[1] 118 | | 119 | 120 |121 | bool 122 | | 123 | 124 |125 | 126 | | 127 |
29 | Name 30 | | 31 | 32 |33 | Type 34 | | 35 | 36 |37 | Description 38 | | 39 |
---|---|---|
45 | data 46 | | 47 | 48 |49 | bytes 50 | | 51 | 52 |53 | raw bytes, abi.encode() a value to be hashed 54 | | 55 |
59 | \_ 60 | 61 | hashToIds 62 | | 63 | 64 |65 | mapping(bytes32 => uint256) 66 | | 67 | 68 |69 | storage ref to the mapping of hash -> data id 70 | | 71 |
75 | existingIds 76 | | 77 | 78 |79 | uint256 80 | | 81 | 82 |83 | amount of distinct data stored. 84 | | 85 |