📦 SPG (Periphery)
Learn about the Story Protocol Gateway that simplifies interactions with the protocol
The Story Protocol Gateway (SPG) is a group of periphery/utility smart contracts, deployed on our protocol that allows you to combine independent operations - like registering an 🧩 IP Asset and attaching License Terms to that IP Asset - into one transaction to make your life easier.
This was primarily developed to make our SDK easier to use.
For example, this mintAndRegisterIpAndAttachPILTerms
is one of the functions in the SPG (more specifically in the LicenseAttachmentWorkflows.sol
) that allows you to mint an NFT, register it as an IP Asset, and attach License Terms to it all in one call:
All Supported Workflows
As mentioned above, there are many different functions we have created for you that combine multiple functions into one. We have categorized them into different groups. These groups are called “workflows”.
View all Workflows
Click here to view all of the supported workflows.
Smart Contracts
Click here to view the workflow smart contracts.
Batching Calls
Although the SPG contains certain functions like mintAndRegisterIpAndAttachPILTerms
, registerIpAndAttachPILTerms
, and a bunch more, it would be tedious for us to continually update the contract to account for every single combination of possible interactions with an IP Asset.
Instead, we have allowed for a “Multicall” mechanism where you can batch transactions how you like. For more info, see Batch Function Calls.