|
| 1 | +# @elizaos/plugin-story |
| 2 | + |
| 3 | +The Story Protocol plugin enables interaction with Story Protocol's IP management and licensing system on the Odyssey testnet. |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +This plugin provides functionality to: |
| 8 | + |
| 9 | +- Register IP assets on Story Protocol |
| 10 | +- License IP assets |
| 11 | +- Attach license terms to IP assets |
| 12 | +- Query IP asset details and available licenses |
| 13 | +- Manage wallet interactions with Story Protocol |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +```bash |
| 18 | +npm install @elizaos/plugin-story |
| 19 | +``` |
| 20 | + |
| 21 | +## Configuration |
| 22 | + |
| 23 | +The plugin requires the following environment variables: |
| 24 | + |
| 25 | +```env |
| 26 | +STORY_PRIVATE_KEY=your_private_key |
| 27 | +STORY_API_KEY=your_api_key |
| 28 | +STORY_API_BASE_URL=https://api.story.xyz |
| 29 | +PINATA_JWT=your_pinata_jwt_token |
| 30 | +``` |
| 31 | + |
| 32 | +## Usage |
| 33 | + |
| 34 | +Import and register the plugin in your Eliza configuration: |
| 35 | + |
| 36 | +```typescript |
| 37 | +import { storyPlugin } from "@elizaos/plugin-story"; |
| 38 | + |
| 39 | +export default { |
| 40 | + plugins: [storyPlugin], |
| 41 | + // ... other configuration |
| 42 | +}; |
| 43 | +``` |
| 44 | + |
| 45 | +## Features |
| 46 | + |
| 47 | +### Register IP |
| 48 | + |
| 49 | +Register a new IP asset on Story Protocol: |
| 50 | + |
| 51 | +```typescript |
| 52 | +// Example conversation |
| 53 | +User: "I want to register my IP titled 'My Story' with the description 'An epic tale'"; |
| 54 | +Assistant: "I'll help you register your IP on Story Protocol..."; |
| 55 | +``` |
| 56 | + |
| 57 | +### License IP |
| 58 | + |
| 59 | +License an existing IP asset: |
| 60 | + |
| 61 | +```typescript |
| 62 | +// Example conversation |
| 63 | +User: "I want to license IP Asset 0x1234...5678 with license terms ID 1"; |
| 64 | +Assistant: "I'll help you license that IP asset..."; |
| 65 | +``` |
| 66 | + |
| 67 | +### Attach Terms |
| 68 | + |
| 69 | +Attach license terms to an IP asset: |
| 70 | + |
| 71 | +```typescript |
| 72 | +// Example conversation |
| 73 | +User: "I want to attach commercial license terms with 10% revenue share to IP 0x1234...5678"; |
| 74 | +Assistant: "I'll help you attach those license terms..."; |
| 75 | +``` |
| 76 | + |
| 77 | +### Get IP Details |
| 78 | + |
| 79 | +Query details about an IP asset: |
| 80 | + |
| 81 | +```typescript |
| 82 | +// Example conversation |
| 83 | +User: "Get details for IP Asset 0x1234...5678"; |
| 84 | +Assistant: "Here are the details for that IP asset..."; |
| 85 | +``` |
| 86 | + |
| 87 | +### Get Available Licenses |
| 88 | + |
| 89 | +Query available licenses for an IP asset: |
| 90 | + |
| 91 | +```typescript |
| 92 | +// Example conversation |
| 93 | +User: "What licenses are available for IP Asset 0x1234...5678?"; |
| 94 | +Assistant: "Here are the available licenses..."; |
| 95 | +``` |
| 96 | + |
| 97 | +## API Reference |
| 98 | + |
| 99 | +### Actions |
| 100 | + |
| 101 | +- `REGISTER_IP`: Register a new IP asset |
| 102 | +- `LICENSE_IP`: License an existing IP asset |
| 103 | +- `ATTACH_TERMS`: Attach license terms to an IP |
| 104 | +- `GET_IP_DETAILS`: Get details about an IP |
| 105 | +- `GET_AVAILABLE_LICENSES`: Get available licenses for an IP |
| 106 | + |
| 107 | +### Providers |
| 108 | + |
| 109 | +- `storyWalletProvider`: Manages wallet interactions with Story Protocol |
| 110 | + |
| 111 | +## Development |
| 112 | + |
| 113 | +### Building |
| 114 | + |
| 115 | +```bash |
| 116 | +npm run build |
| 117 | +``` |
| 118 | + |
| 119 | +### Testing |
| 120 | + |
| 121 | +```bash |
| 122 | +npm run test |
| 123 | +``` |
| 124 | + |
| 125 | +## Dependencies |
| 126 | + |
| 127 | +- `@story-protocol/core-sdk`: Core SDK for Story Protocol |
| 128 | +- `@pinata/sdk`: IPFS pinning service |
| 129 | +- `viem`: Ethereum interaction library |
| 130 | +- Other standard dependencies listed in package.json |
| 131 | + |
| 132 | +## Future Enhancements |
| 133 | + |
| 134 | +The following features and improvements are planned for future releases: |
| 135 | + |
| 136 | +1. **IP Management** |
| 137 | + |
| 138 | + - Batch IP registration |
| 139 | + - Advanced metadata management |
| 140 | + - IP relationship mapping |
| 141 | + - Automated IP verification |
| 142 | + - Collection management |
| 143 | + - IP analytics dashboard |
| 144 | + |
| 145 | +2. **Licensing Features** |
| 146 | + |
| 147 | + - Custom license templates |
| 148 | + - License negotiation tools |
| 149 | + - Automated royalty distribution |
| 150 | + - Usage tracking system |
| 151 | + - License violation detection |
| 152 | + - Bulk licensing tools |
| 153 | + |
| 154 | +3. **Rights Management** |
| 155 | + |
| 156 | + - Advanced permission systems |
| 157 | + - Rights transfer automation |
| 158 | + - Usage rights tracking |
| 159 | + - Derivative works management |
| 160 | + - Rights verification tools |
| 161 | + - Dispute resolution system |
| 162 | + |
| 163 | +4. **Smart Contract Integration** |
| 164 | + |
| 165 | + - Contract deployment templates |
| 166 | + - Automated verification |
| 167 | + - Contract upgrade system |
| 168 | + - Security analysis tools |
| 169 | + - Gas optimization |
| 170 | + - Multi-signature support |
| 171 | + |
| 172 | +5. **Content Management** |
| 173 | + |
| 174 | + - Media file handling |
| 175 | + - Content versioning |
| 176 | + - Distribution tracking |
| 177 | + - Content authentication |
| 178 | + - Storage optimization |
| 179 | + - Format conversion tools |
| 180 | + |
| 181 | +6. **Revenue Management** |
| 182 | + |
| 183 | + - Automated payments |
| 184 | + - Revenue sharing tools |
| 185 | + - Payment tracking |
| 186 | + - Financial reporting |
| 187 | + - Tax documentation |
| 188 | + - Audit trail system |
| 189 | + |
| 190 | +7. **Developer Tools** |
| 191 | + |
| 192 | + - Enhanced SDK features |
| 193 | + - Testing framework |
| 194 | + - Documentation generator |
| 195 | + - CLI improvements |
| 196 | + - Integration templates |
| 197 | + - Performance monitoring |
| 198 | + |
| 199 | +8. **Analytics and Reporting** |
| 200 | + - Usage statistics |
| 201 | + - Revenue analytics |
| 202 | + - License tracking |
| 203 | + - Performance metrics |
| 204 | + - Custom reporting |
| 205 | + - Market analysis tools |
| 206 | + |
| 207 | +We welcome community feedback and contributions to help prioritize these enhancements. |
| 208 | + |
| 209 | +## Contributing |
| 210 | + |
| 211 | +Contributions are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information. |
| 212 | + |
| 213 | +## Credits |
| 214 | + |
| 215 | +This plugin integrates with and builds upon several key technologies: |
| 216 | + |
| 217 | +- [Story Protocol](https://www.story.xyz/): IP management and licensing platform |
| 218 | +- [@story-protocol/core-sdk](https://www.npmjs.com/package/@story-protocol/core-sdk): Official Story Protocol SDK |
| 219 | +- [@pinata/sdk](https://www.npmjs.com/package/@pinata/sdk): IPFS pinning service |
| 220 | +- [viem](https://www.npmjs.com/package/viem): Ethereum interaction library |
| 221 | + |
| 222 | +Special thanks to: |
| 223 | + |
| 224 | +- The Story Protocol team for developing the IP management platform |
| 225 | +- The Story Protocol Developer community |
| 226 | +- The Pinata team for IPFS infrastructure |
| 227 | +- The Eliza community for their contributions and feedback |
| 228 | + |
| 229 | +For more information about Story Protocol capabilities: |
| 230 | + |
| 231 | +- [Story Protocol Documentation](https://docs.story.xyz/) |
| 232 | +- [Story Protocol Dashboard](https://app.story.xyz/) |
| 233 | +- [Story Protocol Blog](https://www.story.xyz/blog) |
| 234 | +- [Story Protocol GitHub](https://github.com/storyprotocol) |
| 235 | + |
| 236 | +## License |
| 237 | + |
| 238 | +This plugin is part of the Eliza project. See the main project repository for license information. |
0 commit comments