Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.2.2 #77

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# CHANGELOG
## v1.2.2
* Introduced `RoyaltyWorkflows` for IP Revenue Claiming

**Full Changelog**: [v1.2.1...v1.2.2](https://github.com/storyprotocol/protocol-periphery-v1/compare/v1.2.1...v1.2.2)

## v1.2.1

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Batch calling functions is supported both natively and through the `Multicall3`
```json
{
"GroupingWorkflows": "0xDed2AF44142489d5c380322A22cB9A0B8f22111A",
"RoyaltyWorkflows": "0xA07f6f4258440d8128Ab86362F17361391F4CA2B",
"SPG": "0xAceb5E631d743AF76aF69414eC8D356c13435E59",
"SPGNFTBeacon": "0x769A0F5197D427a7fC4378317437e924c8c74b33",
"SPGNFTImpl": "0xbE0EB11e256093e22c8802977023970Da6B97fAB",
Expand Down
1 change: 1 addition & 0 deletions deploy-out/deployment-1513.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"main": {
"GroupingWorkflows": "0xDed2AF44142489d5c380322A22cB9A0B8f22111A",
"RoyaltyWorkflows": "0xA07f6f4258440d8128Ab86362F17361391F4CA2B",
"SPG": "0xAceb5E631d743AF76aF69414eC8D356c13435E59",
"SPGNFTBeacon": "0x769A0F5197D427a7fC4378317437e924c8c74b33",
"SPGNFTImpl": "0xbE0EB11e256093e22c8802977023970Da6B97fAB"
Expand Down
55 changes: 41 additions & 14 deletions docs/WORKFLOWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,53 @@

### [Registration Workflows](../contracts/interfaces/workflows/IRegistrationWorkflows.sol)

- `createCollection`: Creates a SPGNFT Collection
- `registerIp`: Registers an IP
- `mintAndRegisterIp`: Mints a NFT → Registers it as an IP
- `createCollection`:
- Creates a SPGNFT Collection
- `registerIp`:
- Registers an IP
- `mintAndRegisterIp`:
- Mints a NFT → Registers it as an IP

### [License Attachment Workflows](../contracts/interfaces/workflows/ILicenseAttachmentWorkflows.sol)

- `registerPILTermsAndAttach`: Registers PIL terms → Attaches them to an IP
- `registerIpAndAttachPILTerms`: Registers an IP → Registers PIL terms → Attaches them to the IP
- `mintAndRegisterIpAndAttachPILTerms`: Mints a NFT → Registers it as an IP → Registers PIL terms → Attaches them to the IP.
- `registerPILTermsAndAttach`:
- Registers PIL terms → Attaches them to an IP
- `registerIpAndAttachPILTerms`:
- Registers an IP → Registers PIL terms → Attaches them to the IP
- `mintAndRegisterIpAndAttachPILTerms`:
- Mints a NFT → Registers it as an IP → Registers PIL terms → Attaches them to the IP

### [Derivative Workflows](../contracts/interfaces/workflows/IDerivativeWorkflows.sol)

- `registerIpAndMakeDerivative`: Registers an IP → Registers it as a derivative of another IP
- `mintAndRegisterIpAndMakeDerivative`: Mints a NFT → Registers it as an IP → Registers the IP as a derivative of another IP

- `registerIpAndMakeDerivativeWithLicenseTokens`: Registers an IP → Registers it as a derivative of another IP using the license tokens
- `mintAndRegisterIpAndMakeDerivativeWithLicenseTokens`: Mints a NFT → Registers it as an IP → Registers the IP as a derivative of another IP using the license tokens
- `registerIpAndMakeDerivative`:
- Registers an IP → Registers it as a derivative of another IP
- `mintAndRegisterIpAndMakeDerivative`:
- Mints a NFT → Registers it as an IP → Registers the IP as a derivative of another IP
- `registerIpAndMakeDerivativeWithLicenseTokens`:
- Registers an IP → Registers the IP as a derivative of another IP using the license tokens
- `mintAndRegisterIpAndMakeDerivativeWithLicenseTokens`:
- Mints a NFT → Registers it as an IP → Registers the IP as a derivative of another IP using the license tokens

### [Grouping Workflows](../contracts/interfaces/workflows/IGroupingWorkflows.sol)

- `mintAndRegisterIpAndAttachLicenseAndAddToGroup`: Mints a NFT → Registers it as an IP → Attaches the given license terms to the IP → Adds the IP to a group IP
- `registerIpAndAttachLicenseAndAddToGroup`: Registers an IP → Attaches the given license terms to the IP → Adds the IP to a group IP
- `registerGroupAndAttachLicenseAndAddIps`: Registers a group IP → Attaches the given license terms to the group IP → Adds existing IPs to the group IP
- `mintAndRegisterIpAndAttachLicenseAndAddToGroup`:
- Mints a NFT → Registers it as an IP → Attaches the given license terms to the IP → Adds the IP to a group IP
- `registerIpAndAttachLicenseAndAddToGroup`:
- Registers an IP → Attaches the given license terms to the IP → Adds the IP to a group IP
- `registerGroupAndAttachLicenseAndAddIps`:
- Registers a group IP → Attaches the given license terms to the group IP → Adds existing IPs to the group IP

### [Royalty Workflows](../contracts/interfaces/workflows/IRoyaltyWorkflows.sol)

- `transferToVaultAndSnapshotAndClaimByTokenBatch`:
- Transfers revenue tokens to ancestor IP’s royalty vault → Takes a snapshot of the royalty vault → Claims all available revenue tokens from the snapshot to the claimer’s wallet
- *Use Case*: For IP royalty token holders who want to claim both their direct revenue and royalties from descendant IPs.
- `transferToVaultAndSnapshotAndClaimBySnapshotBatch`:
- Transfers revenue tokens to ancestor IP’s royalty vault → Takes a snapshot of the royalty vault → Claims all available revenue tokens from the new snapshot to the claimer’s wallet → Claims all available revenue tokens from each provided unclaimed snapshot to the claimer’s wallet
- *Use Case*: For IP royalty token holders who want to claim both direct revenue and descendant royalties from the latest snapshot and previously taken snapshots.
- `snapshotAndClaimByTokenBatch`:
- Takes a snapshot of the royalty vault → Claims all available revenue tokens from the new snapshot to the claimer’s wallet
- *Use Case*: For IP royalty token holders who want to claim the current revenue in their IP’s royalty vault (which may or may not include descendant royalties).
- `snapshotAndClaimBySnapshotBatch`:
- Takes a snapshot of the royalty vault → Claims all available revenue tokens from the new snapshot to the claimer’s wallet → Claims all available revenue tokens from each provided unclaimed snapshot to the claimer’s wallet
- *Use Case*: For IP royalty token holders who want to claim the current revenue in their IP’s royalty vault from the latest snapshot and previously taken snapshots.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@story-protocol/protocol-periphery",
"version": "v1.2.1",
"version": "v1.2.2",
"description": "Story Proof-of-Creativity protocol periphery smart contracts",
"main": "",
"directories": {
Expand Down
Loading