State Variables
MAX_PARENTS
MAX_ANCESTORS
IP_GRAPH
GROUP_IP_ASSET_REGISTRY
LICENSING_MODULE
DISPUTE_MODULE
IP_GRAPH_ACL
EXPIRATION_TIME
Functions
initialize
accessManager
: The address of the protocol admin roles contract.
setDefaultLicenseTerms
newLicenseTemplate
: The address of the new default license template.newLicenseTermsId
: The ID of the new default license terms.
registerLicenseTemplate
licenseTemplate
: The address of the license template to register.
setLicensingConfigForLicense
ipId
: The address of the IP for which the configuration is being set.licenseTemplate
: The address of the license template used.licenseTermsId
: The ID of the license terms within the license template.licensingConfig
: The configuration for minting the license.
attachLicenseTermsToIp
ipId
: The address of the IP to which the license terms are attached.licenseTemplate
: The address of the license template.licenseTermsId
: The ID of the license terms.
registerDerivativeIp
childIpId
: The address of the derivative IP.parentIpIds
: An array of addresses of the parent IPs.licenseTemplate
: The address of the license template used.licenseTermsIds
: An array of IDs of the license terms.isUsingLicenseToken
: Whether the derivative IP is registered with license tokens.
initializeLicenseTemplate
ipId
: The address of the IP to which the license template is attached.licenseTemplate
: The address of the license template.
verifyMintLicenseToken
licensorIpId
: The address of the licensor IP.licenseTemplate
: The address of the license template where the license terms are defined.licenseTermsId
: The ID of the license terms will mint the license token.isMintedByIpOwner
: Whether the license token is minted by the IP owner.
Licensing.LicensingConfig
: The configuration for minting the license.
verifyGroupAddIp
groupId
: The address of the group.groupRewardPool
: The address of the reward pool of the group.ipId
: The address of the IP to be added to the group.groupLicenseTemplate
: The address of the license template attached to the group.groupLicenseTermsId
: The ID of the license terms attached to the group.
ipLicensingConfig
: The configuration for license attached to the IP.
isRegisteredLicenseTemplate
licenseTemplate
: The address of the license template to check.
bool
: Whether the license template is registered.
isDerivativeIp
childIpId
: The address of the IP to check.
bool
: Whether the IP is a derivative IP.
hasDerivativeIps
parentIpId
: The address of the IP to check.
bool
: Whether the IP has derivative IPs.
exists
licenseTemplate
: The address of the license template where the license terms are defined.licenseTermsId
: The ID of the license terms.
bool
: Whether the license terms exist.
hasIpAttachedLicenseTerms
ipId
: The address of the IP to check.licenseTemplate
: The address of the license template where the license terms are defined.licenseTermsId
: The ID of the license terms.
bool
: Whether the IP has attached any license terms.
getAttachedLicenseTerms
ipId
: The address of the IP.index
: The index of the attached license terms within the array of all attached license terms of the IP.
licenseTemplate
: The address of the license template where the license terms are defined.licenseTermsId
: The ID of the license terms.
getAttachedLicenseTermsCount
ipId
: The address of the IP.
uint256
: The count of attached license terms.
getDerivativeIp
parentIpId
: The address of the IP.index
: The index of the derivative IP within the array of all derivative IPs of the IP.
childIpId
: The address of the derivative IP.
getDerivativeIpCount
parentIpId
: The address of the IP.
uint256
: The count of derivative IPs.
getParentIp
childIpId
: The address of the IP.index
: The index of the parent IP within the array of all parent IPs of the IP.
parentIpId
: The address of the parent IP.
isParentIp
parentIpId
: The address of the potential parent IP.childIpId
: The address of the potential child IP.
bool
: Whether the IP is a parent of the other IP.
getParentIpCount
childIpId
: The address of the child IP.
uint256
: The count of parent IPs.
getAncestorsCount
ipId
: The ID of IP asset.
uint256
: The count of ancestor IPs.
getLicensingConfig
ipId
: The address of the IP.licenseTemplate
: The address of the license template where the license terms are defined.licenseTermsId
: The ID of the license terms.
Licensing.LicensingConfig
: The configuration for minting the license.
getExpireTime
ipId
: The address of the IP.
uint256
: The expiration time, 0 means never expired.
isExpiredNow
ipId
: The address of the IP.
bool
: Whether the IP is expired.
getDefaultLicenseTerms
licenseTemplate
: The address of the default license template.licenseTermsId
: The ID of the default license terms.
isDefaultLicense
licenseTemplate
: The address of the license template.licenseTermsId
: The ID of the license terms.
bool
: Whether the license terms are the default license terms.
getParentLicenseTerms
childIpId
: The address of the child IP.parentIpId
: The address of the parent IP.
licenseTemplate
: The address of the license template.licenseTermsId
: The ID of the license terms.
getRoyaltyPercent
ipId
: The address of the IP.licenseTemplate
: The address of the license template where the license terms are defined.licenseTermsId
: The ID of the license terms.
royaltyPercent
: The Royalty percentage 100% is 100_000_000.