- Attaching license terms to IP assets
- Minting license tokens
- Registering derivatives
State Variables
name
ROYALTY_MODULE
LICENSE_REGISTRY
DISPUTE_MODULE
LICENSE_NFT
MODULE_REGISTRY
IP_GRAPH_ACL
Functions
initialize
accessManager: The address of the protocol admin roles contract.
attachDefaultLicenseTerms
ipId: The IP ID to attach default license terms to.
attachLicenseTerms
ipId: The IP ID.licenseTemplate: The address of the license template.licenseTermsId: The ID of the license terms.
mintLicenseTokens
licensorIpId: The licensor IP ID.licenseTemplate: The address of the license template.licenseTermsId: The ID of the license terms within the license template.amount: The amount of license tokens to mint.receiver: The address of the receiver.royaltyContext: The context of the royalty.maxMintingFee: The maximum minting fee that the caller is willing to pay. If set to 0, then no limit.maxRevenueShare: The maximum revenue share percentage allowed for minting the License Tokens.
startLicenseTokenId: The start ID of the minted license tokens.
registerDerivative
childIpId: The derivative IP ID.parentIpIds: The parent IP IDs.licenseTermsIds: The IDs of the license terms that the parent IP supports.licenseTemplate: The address of the license template of the license terms IDs.royaltyContext: The context of the royalty.maxMintingFee: The maximum minting fee that the caller is willing to pay. If set to 0, then no limit.maxRts: The maximum number of royalty tokens that can be distributed to the external royalty policies.maxRevenueShare: The maximum revenue share percentage allowed for minting the License Tokens.
registerDerivativeWithLicenseTokens
childIpId: The derivative IP ID.licenseTokenIds: The IDs of the license tokens.royaltyContext: The context of the royalty.maxRts: The maximum number of royalty tokens that can be distributed to the external royalty policies.
setLicensingConfig
ipId: The address of the IP for which the configuration is being set.licenseTemplate: The address of the license template used. If not specified, the configuration applies to all licenses.licenseTermsId: The ID of the license terms within the license template. If not specified, the configuration applies to all licenses.licensingConfig: The licensing configuration for the license.
predictMintingLicenseFee
licensorIpId: The IP ID of the licensor.licenseTemplate: The address of the license template.licenseTermsId: The ID of the license terms.amount: The amount of license tokens to mint.receiver: The address of the receiver.royaltyContext: The context of the royalty.
currencyToken: The address of the ERC20 token used for minting license fee.tokenAmount: The amount of the currency token to be paid for minting license tokens.

