Ready To Use
Premint
Nestable Pre Mint

RMRKNestablePreMint

RMRK team

RMRKNestablePreMint

Implementation of RMRK nestable module with pre-minting.

Methods

RMRK_INTERFACE

function RMRK_INTERFACE() external pure returns (bytes4 rmrkInterface)

Interface identifier of the @rmrk-team/evm-contracts package

Returns

NameTypeDescription
rmrkInterfacebytes4Interface identifier for implementations of the @rmrk-team/evm-contracts package

VERSION

function VERSION() external pure returns (string version)

Version of the @rmrk-team/evm-contracts package

Returns

NameTypeDescription
versionstringVersion identifier for implementations of the @rmrk-team/evm-contracts package

acceptChild

function acceptChild(uint256 parentId, uint256 childIndex, address childAddress, uint256 childId) external nonpayable

Used to accept a pending child token for a given parent token.

This moves the child token from parent token's pending child tokens array into the active child tokens array.

Parameters

NameTypeDescription
parentIduint256ID of the parent token for which the child token is being accepted
childIndexuint256Index of a child tokem in the given parent's pending children array
childAddressaddressAddress of the collection smart contract of the child token expected to be located at the specified index of the given parent token's pending children array
childIduint256ID of the child token expected to be located at the specified index of the given parent token's pending children array

addChild

function addChild(uint256 parentId, uint256 childId, bytes data) external nonpayable

Used to add a child token to a given parent token.

This adds the child token into the given parent token's pending child tokens array.Requirements: - directOwnerOf on the child contract must resolve to the called contract. - the pending array of the parent contract must not be full.

Parameters

NameTypeDescription
parentIduint256ID of the parent token to receive the new child token
childIduint256ID of the new proposed child token
databytesAdditional data with no specified format

approve

function approve(address to, uint256 tokenId) external nonpayable

Used to grant a one-time approval to manage one's token.

Gives permission to to to transfer tokenId token to another account.The approval is cleared when the token is transferred.Only a single account can be approved at a time, so approving the zero address clears previous approvals.Requirements: - The caller must own the token or be an approved operator. - tokenId must exist.Emits an {Approval} event.

Parameters

NameTypeDescription
toaddressAddress receiving the approval
tokenIduint256ID of the token for which the approval is being granted

balanceOf

function balanceOf(address owner) external view returns (uint256 balance)

Used to retrieve the number of tokens in owner's account.

Parameters

NameTypeDescription
owneraddressAddress of the account being checked

Returns

NameTypeDescription
balanceuint256The balance of the given account

burn

function burn(uint256 tokenId) external nonpayable

Used to burn a given token.

In case the token has any child tokens, the execution will be reverted.

Parameters

NameTypeDescription
tokenIduint256ID of the token to burn

burn

function burn(uint256 tokenId, uint256 maxChildrenBurns) external nonpayable returns (uint256 burnedChildren)

Used to burn a given token.

When a token is burned, all of its child tokens are recursively burned as well.When specifying the maximum recursive burns, the execution will be reverted if there are more children to be burned.Setting the maxRecursiveBurn value to 0 will only attempt to burn the specified token and revert if there are any child tokens present.The approvals are cleared when the token is burned.Requirements: - tokenId must exist.Emits a {Transfer} event.

Parameters

NameTypeDescription
tokenIduint256ID of the token to burn
maxChildrenBurnsuint256undefined

Returns

NameTypeDescription
burnedChildrenuint256Number of recursively burned children

childOf

function childOf(uint256 parentId, uint256 index) external view returns (struct IERC7401.Child child)

Used to retrieve a specific active child token for a given parent token.

Returns a single Child struct locating at index of parent token's active child tokens array.The Child struct consists of the following values: [ tokenId, contractAddress ]

Parameters

NameTypeDescription
parentIduint256ID of the parent token for which the child is being retrieved
indexuint256Index of the child token in the parent token's active child tokens array

Returns

NameTypeDescription
childIERC7401.ChildA Child struct containing data about the specified child

childrenOf

function childrenOf(uint256 parentId) external view returns (struct IERC7401.Child[] children)

Used to retrieve the active child tokens of a given parent token.

Returns array of Child structs existing for parent token.The Child struct consists of the following values: [ tokenId, contractAddress ]

Parameters

NameTypeDescription
parentIduint256ID of the parent token for which to retrieve the active child tokens

Returns

NameTypeDescription
childrenIERC7401.Child[]An array of Child structs containing the parent token's active child tokens

contractURI

function contractURI() external view returns (string contractURI_)

Used to retrieve the metadata URI of the collection.

Returns

NameTypeDescription
contractURI_stringstring The metadata URI of the collection

directOwnerOf

function directOwnerOf(uint256 tokenId) external view returns (address owner_, uint256 parentId, bool isNFT)

Used to retrieve the immediate owner of the given token.

If the immediate owner is another token, the address returned, should be the one of the parent token's collection smart contract.

Parameters

NameTypeDescription
tokenIduint256ID of the token for which the RMRK owner is being retrieved

Returns

NameTypeDescription
owner_addressAddress of the given token's owner
parentIduint256The ID of the parent token. Should be 0 if the owner is an externally owned account
isNFTboolThe boolean value signifying whether the owner is an NFT or not

getApproved

function getApproved(uint256 tokenId) external view returns (address approved)

Used to retrieve the account approved to manage given token.

Requirements: - tokenId must exist.

Parameters

NameTypeDescription
tokenIduint256ID of the token to check for approval

Returns

NameTypeDescription
approvedaddressAddress of the account approved to manage the token

getRoyaltyPercentage

function getRoyaltyPercentage() external view returns (uint256 royaltyPercentageBps)

Used to retrieve the specified royalty percentage.

Returns

NameTypeDescription
royaltyPercentageBpsuint256The royalty percentage expressed in the basis points

getRoyaltyRecipient

function getRoyaltyRecipient() external view returns (address recipient)

Used to retrieve the recipient of royalties.

Returns

NameTypeDescription
recipientaddressAddress of the recipient of royalties

isApprovedForAll

function isApprovedForAll(address owner, address operator) external view returns (bool isApproved)

Used to check if the given address is allowed to manage the tokens of the specified address.

Parameters

NameTypeDescription
owneraddressAddress of the owner of the tokens
operatoraddressAddress being checked for approval

Returns

NameTypeDescription
isApprovedboolA boolean value signifying whether the operator is allowed to manage the tokens of the owner (true) or not (false)

isContributor

function isContributor(address contributor) external view returns (bool isContributor_)

Used to check if the address is one of the contributors.

Parameters

NameTypeDescription
contributoraddressAddress of the contributor whose status we are checking

Returns

NameTypeDescription
isContributor_boolBoolean value indicating whether the address is a contributor or not

manageContributor

function manageContributor(address contributor, bool grantRole) external nonpayable

Adds or removes a contributor to the smart contract.

Can only be called by the owner.Emits ContributorUpdate event.

Parameters

NameTypeDescription
contributoraddressAddress of the contributor's account
grantRoleboolA boolean value signifying whether the contributor role is being granted (true) or revoked (false)

maxSupply

function maxSupply() external view returns (uint256 maxSupply_)

Used to retrieve the maximum supply of the collection.

Returns

NameTypeDescription
maxSupply_uint256The maximum supply of tokens in the collection

mint

function mint(address to, uint256 numToMint, string tokenURI) external nonpayable returns (uint256 firstTokenId)

Used to mint the desired number of tokens to the specified address.

The data value of the _safeMint method is set to an empty value.Can only be called while the open sale is open.

Parameters

NameTypeDescription
toaddressAddress to which to mint the token
numToMintuint256Number of tokens to mint
tokenURIstringURI assigned to all the minted tokens

Returns

NameTypeDescription
firstTokenIduint256The ID of the first token to be minted in the current minting cycle

name

function name() external view returns (string name_)

Used to retrieve the collection name.

Returns

NameTypeDescription
name_stringName of the collection

nestMint

function nestMint(address to, uint256 numToMint, uint256 destinationId, string tokenURI) external nonpayable returns (uint256 firstTokenId)

Used to mint a desired number of child tokens to a given parent token.

The data value of the _safeMint method is set to an empty value.Can only be called while the open sale is open.

Parameters

NameTypeDescription
toaddressAddress of the collection smart contract of the token into which to mint the child token
numToMintuint256Number of tokens to mint
destinationIduint256ID of the token into which to mint the new child token
tokenURIstringURI assigned to all the minted tokens

Returns

NameTypeDescription
firstTokenIduint256The ID of the first token to be minted in the current minting cycle

nestTransferFrom

function nestTransferFrom(address from, address to, uint256 tokenId, uint256 destinationId, bytes data) external nonpayable

Used to transfer the token into another token.

Parameters

NameTypeDescription
fromaddressAddress of the direct owner of the token to be transferred
toaddressAddress of the receiving token's collection smart contract
tokenIduint256ID of the token being transferred
destinationIduint256ID of the token to receive the token being transferred
databytesAdditional data with no specified format, sent in the addChild call

owner

function owner() external view returns (address owner_)

Returns the address of the current owner.

Returns

NameTypeDescription
owner_addressAddress of the current owner

ownerOf

function ownerOf(uint256 tokenId) external view returns (address owner_)

Used to retrieve the root owner of a given token.

The root owner of the token is an externally owned account (EOA). If the given token is child of another NFT, this will return an EOA address. Otherwise, if the token is owned by an EOA, this EOA will be returned.

Parameters

NameTypeDescription
tokenIduint256ID of the token for which the root owner has been retrieved

Returns

NameTypeDescription
owner_addressThe root owner of the token

pendingChildOf

function pendingChildOf(uint256 parentId, uint256 index) external view returns (struct IERC7401.Child child)

Used to retrieve a specific pending child token from a given parent token.

Returns a single Child struct locating at index of parent token's active child tokens array.The Child struct consists of the following values: [ tokenId, contractAddress ]

Parameters

NameTypeDescription
parentIduint256ID of the parent token for which the pending child token is being retrieved
indexuint256Index of the child token in the parent token's pending child tokens array

Returns

NameTypeDescription
childIERC7401.ChildA Child struct containting data about the specified child

pendingChildrenOf

function pendingChildrenOf(uint256 parentId) external view returns (struct IERC7401.Child[] children)

Used to retrieve the pending child tokens of a given parent token.

Returns array of pending Child structs existing for given parent.The Child struct consists of the following values: [ tokenId, contractAddress ]

Parameters

NameTypeDescription
parentIduint256ID of the parent token for which to retrieve the pending child tokens

Returns

NameTypeDescription
childrenIERC7401.Child[]An array of Child structs containing the parent token's pending child tokens

rejectAllChildren

function rejectAllChildren(uint256 tokenId, uint256 maxRejections) external nonpayable

Used to reject all pending children of a given parent token.

Removes the children from the pending array mapping.This does not update the ownership storage data on children. If necessary, ownership can be reclaimed by the rootOwner of the previous parent.Requirements: Requirements: - parentId must exist

Parameters

NameTypeDescription
tokenIduint256undefined
maxRejectionsuint256Maximum number of expected children to reject, used to prevent from rejecting children which arrive just before this operation.

renounceOwnership

function renounceOwnership() external nonpayable

Leaves the contract without owner. Functions using the onlyOwner modifier will be disabled.

Can only be called by the current owner.Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

royaltyInfo

function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount)

Used to retrieve the information about who shall receive royalties of a sale of the specified token and how much they will be.

Parameters

NameTypeDescription
tokenIduint256ID of the token for which the royalty info is being retrieved
salePriceuint256Price of the token sale

Returns

NameTypeDescription
receiveraddressThe beneficiary receiving royalties of the sale
royaltyAmountuint256The value of the royalties recieved by the receiver from the sale

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId) external nonpayable

Used to safely transfer a given token token from from to to.

Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.Emits a {Transfer} event.

Parameters

NameTypeDescription
fromaddressAddress to transfer the tokens from
toaddressAddress to transfer the tokens to
tokenIduint256ID of the token to transfer

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) external nonpayable

Used to safely transfer a given token token from from to to.

Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.Emits a {Transfer} event.

Parameters

NameTypeDescription
fromaddressAddress to transfer the tokens from
toaddressAddress to transfer the tokens to
tokenIduint256ID of the token to transfer
databytesAdditional data without a specified format to be sent along with the token transaction

setApprovalForAll

function setApprovalForAll(address operator, bool approved) external nonpayable

Used to approve or remove operator as an operator for the caller.

Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.Requirements: - The operator cannot be the caller.Emits an {ApprovalForAll} event.

Parameters

NameTypeDescription
operatoraddressAddress of the operator being managed
approvedboolA boolean value signifying whether the approval is being granted (true) or (revoked)

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP (opens in a new tab) section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

Parameters

NameTypeDescription
interfaceIdbytes4undefined

Returns

NameTypeDescription
_0boolundefined

symbol

function symbol() external view returns (string symbol_)

Used to retrieve the collection symbol.

Returns

NameTypeDescription
symbol_stringSymbol of the collection

tokenURI

function tokenURI(uint256 tokenId) external view returns (string tokenURI_)

Used to retrieve the metadata URI of a token.

Parameters

NameTypeDescription
tokenIduint256ID of the token to retrieve the metadata URI for

Returns

NameTypeDescription
tokenURI_stringMetadata URI of the specified token

totalAssets

function totalAssets() external view returns (uint256 totalAssets_)

Used to retrieve the total number of assets.

Returns

NameTypeDescription
totalAssets_uint256The total number of assets

totalSupply

function totalSupply() external view returns (uint256 totalSupply_)

Used to retrieve the total supply of the tokens in a collection.

Returns

NameTypeDescription
totalSupply_uint256The number of tokens in a collection

transferChild

function transferChild(uint256 tokenId, address to, uint256 destinationId, uint256 childIndex, address childAddress, uint256 childId, bool isPending, bytes data) external nonpayable

Used to transfer a child token from a given parent token.

When transferring a child token, the owner of the token is set to to, or is not updated in the event of to being the 0x0 address.

Parameters

NameTypeDescription
tokenIduint256ID of the parent token from which the child token is being transferred
toaddressAddress to which to transfer the token to
destinationIduint256ID of the token to receive this child token (MUST be 0 if the destination is not a token)
childIndexuint256Index of a token we are transferring, in the array it belongs to (can be either active array or pending array)
childAddressaddressAddress of the child token's collection smart contract.
childIduint256ID of the child token in its own collection smart contract.
isPendingboolA boolean value indicating whether the child token being transferred is in the pending array of the parent token (true) or in the active array (false)
databytesAdditional data with no specified format, sent in call to _to

transferFrom

function transferFrom(address from, address to, uint256 tokenId) external nonpayable

Transfers a given token from from to to.

Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}.Emits a {Transfer} event.

Parameters

NameTypeDescription
fromaddressAddress from which to transfer the token from
toaddressAddress to which to transfer the token to
tokenIduint256ID of the token to transfer

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new owner.

Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressAddress of the new owner's account

updateRoyaltyRecipient

function updateRoyaltyRecipient(address newRoyaltyRecipient) external nonpayable

Used to update recipient of royalties.

Custom access control has to be implemented to ensure that only the intended actors can update the beneficiary.

Parameters

NameTypeDescription
newRoyaltyRecipientaddressAddress of the new recipient of royalties

Events

AllChildrenRejected

event AllChildrenRejected(uint256 indexed tokenId)

Used to notify listeners that all pending child tokens of a given token have been rejected.

Emitted when a token removes all a child tokens from its pending array.

Parameters

NameTypeDescription
tokenId indexeduint256ID of the token that rejected all of the pending children

Approval

event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

Emitted when owner enables approved to manage the tokenId token.

Parameters

NameTypeDescription
owner indexedaddressundefined
approved indexedaddressundefined
tokenId indexeduint256undefined

ApprovalForAll

event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

Emitted when owner enables or disables (approved) operator to manage all of its assets.

Parameters

NameTypeDescription
owner indexedaddressundefined
operator indexedaddressundefined
approvedboolundefined

ChildAccepted

event ChildAccepted(uint256 indexed tokenId, uint256 childIndex, address indexed childAddress, uint256 indexed childId)

Used to notify listeners that a new child token was accepted by the parent token.

Emitted when a parent token accepts a token from its pending array, migrating it to the active array.

Parameters

NameTypeDescription
tokenId indexeduint256ID of the token that accepted a new child token
childIndexuint256Index of the newly accepted child token in the parent token's active children array
childAddress indexedaddressAddress of the child token's collection smart contract
childId indexeduint256ID of the child token in the child token's collection smart contract

ChildProposed

event ChildProposed(uint256 indexed tokenId, uint256 childIndex, address indexed childAddress, uint256 indexed childId)

Used to notify listeners that a new token has been added to a given token's pending children array.

Emitted when a child NFT is added to a token's pending array.

Parameters

NameTypeDescription
tokenId indexeduint256ID of the token that received a new pending child token
childIndexuint256Index of the proposed child token in the parent token's pending children array
childAddress indexedaddressAddress of the proposed child token's collection smart contract
childId indexeduint256ID of the child token in the child token's collection smart contract

ChildTransferred

event ChildTransferred(uint256 indexed tokenId, uint256 childIndex, address indexed childAddress, uint256 indexed childId, bool fromPending, bool toZero)

Used to notify listeners a child token has been transferred from parent token.

Emitted when a token transfers a child from itself, transferring ownership to the root owner.

Parameters

NameTypeDescription
tokenId indexeduint256ID of the token that transferred a child token
childIndexuint256Index of a child in the array from which it is being transferred
childAddress indexedaddressAddress of the child token's collection smart contract
childId indexeduint256ID of the child token in the child token's collection smart contract
fromPendingboolA boolean value signifying whether the token was in the pending child tokens array (true) or in the active child tokens array (false)
toZeroboolA boolean value signifying whether the token is being transferred to the 0x0 address (true) or not (false)

ContributorUpdate

event ContributorUpdate(address indexed contributor, bool isContributor)

Event that signifies that an address was granted contributor role or that the permission has been revoked.

This can only be triggered by a current owner, so there is no need to include that information in the event.

Parameters

NameTypeDescription
contributor indexedaddressAddress of the account that had contributor role status updated
isContributorboolA boolean value signifying whether the role has been granted (true) or revoked (false)

NestTransfer

event NestTransfer(address indexed from, address indexed to, uint256 fromTokenId, uint256 toTokenId, uint256 indexed tokenId)

Used to notify listeners that the token is being transferred.

Emitted when tokenId token is transferred from from to to.

Parameters

NameTypeDescription
from indexedaddressAddress of the previous immediate owner, which is a smart contract if the token was nested.
to indexedaddressAddress of the new immediate owner, which is a smart contract if the token is being nested.
fromTokenIduint256ID of the previous parent token. If the token was not nested before, the value should be 0
toTokenIduint256ID of the new parent token. If the token is not being nested, the value should be 0
tokenId indexeduint256ID of the token being transferred

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Used to anounce the transfer of ownership.

Parameters

NameTypeDescription
previousOwner indexedaddressAddress of the account that transferred their ownership role
newOwner indexedaddressAddress of the account receiving the ownership role

Transfer

event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

Emitted when tokenId token is transferred from from to to.

Parameters

NameTypeDescription
from indexedaddressundefined
to indexedaddressundefined
tokenId indexeduint256undefined

Errors

ERC721AddressZeroIsNotaValidOwner

error ERC721AddressZeroIsNotaValidOwner()

Attempting to grant the token to 0x0 address

ERC721ApprovalToCurrentOwner

error ERC721ApprovalToCurrentOwner()

Attempting to grant approval to the current owner of the token

ERC721ApproveCallerIsNotOwnerNorApprovedForAll

error ERC721ApproveCallerIsNotOwnerNorApprovedForAll()

Attempting to grant approval when not being owner or approved for all should not be permitted

ERC721ApproveToCaller

error ERC721ApproveToCaller()

Attempting to grant approval to self

ERC721InvalidTokenId

error ERC721InvalidTokenId()

Attempting to use an invalid token ID

ERC721MintToTheZeroAddress

error ERC721MintToTheZeroAddress()

Attempting to mint to 0x0 address

ERC721NotApprovedOrOwner

error ERC721NotApprovedOrOwner()

Attempting to manage a token without being its owner or approved by the owner

ERC721TokenAlreadyMinted

error ERC721TokenAlreadyMinted()

Attempting to mint an already minted token

ERC721TransferFromIncorrectOwner

error ERC721TransferFromIncorrectOwner()

Attempting to transfer the token from an address that is not the owner

ERC721TransferToNonReceiverImplementer

error ERC721TransferToNonReceiverImplementer()

Attempting to safe transfer to an address that is unable to receive the token

ERC721TransferToTheZeroAddress

error ERC721TransferToTheZeroAddress()

Attempting to transfer the token to a 0x0 address

RMRKChildAlreadyExists

error RMRKChildAlreadyExists()

Attempting to accept a child that has already been accepted

RMRKChildIndexOutOfRange

error RMRKChildIndexOutOfRange()

Attempting to interact with a child, using index that is higher than the number of children

RMRKIdZeroForbidden

error RMRKIdZeroForbidden()

Attempting to use ID 0, which is not supported

The ID 0 in RMRK suite is reserved for empty values. Guarding against its use ensures the expected operation

RMRKIsNotContract

error RMRKIsNotContract()

Attempting to interact with an end-user account when the contract account is expected

RMRKMaxPendingChildrenReached

error RMRKMaxPendingChildrenReached()

Attempting to add a pending child after the number of pending children has reached the limit (default limit is 128)

RMRKMaxRecursiveBurnsReached

error RMRKMaxRecursiveBurnsReached(address childContract, uint256 childId)

Attempting to burn a total number of recursive children higher than maximum set

Parameters

NameTypeDescription
childContractaddressAddress of the collection smart contract in which the maximum number of recursive burns was reached
childIduint256ID of the child token at which the maximum number of recursive burns was reached

RMRKMintOverMax

error RMRKMintOverMax()

Attempting to mint a number of tokens that would cause the total supply to be greater than maximum supply

RMRKMintZero

error RMRKMintZero()

Attempting to mint zero tokens

RMRKNestableTooDeep

error RMRKNestableTooDeep()

Attempting to nest a child over the nestable limit (current limit is 100 levels of nesting)

RMRKNestableTransferToDescendant

error RMRKNestableTransferToDescendant()

Attempting to nest the token to own descendant, which would create a loop and leave the looped tokens in limbo

RMRKNestableTransferToNonRMRKNestableImplementer

error RMRKNestableTransferToNonRMRKNestableImplementer()

Attempting to nest the token to a smart contract that doesn't support nesting

RMRKNestableTransferToSelf

error RMRKNestableTransferToSelf()

Attempting to nest the token into itself

RMRKNewContributorIsZeroAddress

error RMRKNewContributorIsZeroAddress()

Attempting to assign a 0x0 address as a contributor

RMRKNewOwnerIsZeroAddress

error RMRKNewOwnerIsZeroAddress()

Attempting to transfer the ownership to the 0x0 address

RMRKNotApprovedOrDirectOwner

error RMRKNotApprovedOrDirectOwner()

Attempting to interact with a token without being its owner or having been granted permission by the owner to do so

When a token is nested, only the direct owner (NFT parent) can mange it. In that case, approved addresses are not allowed to manage it, in order to ensure the expected behaviour

RMRKNotOwner

error RMRKNotOwner()

Attempting to interact with a management function without being the smart contract's owner

RMRKNotOwnerOrContributor

error RMRKNotOwnerOrContributor()

Attempting to interact with a function without being the owner or contributor of the collection

RMRKPendingChildIndexOutOfRange

error RMRKPendingChildIndexOutOfRange()

Attempting to interact with a pending child using an index greater than the size of pending array

RMRKRoyaltiesTooHigh

error RMRKRoyaltiesTooHigh()

Attempting to set the royalties to a value higher than 100% (10000 in basis points)

RMRKUnexpectedChildId

error RMRKUnexpectedChildId()

Attempting to accept or transfer a child which does not match the one at the specified index

RMRKUnexpectedNumberOfChildren

error RMRKUnexpectedNumberOfChildren()

Attempting to reject all pending children but children assets than expected are pending