Functions
claimScope
Claim a scope, with owner set to caller.transferScopeOwnership
Transfer ownership of a scope to a new entity.cancelScopeTransfer
Cancel a pending scope transferacceptScopeTransfer
Accept a scope transfergetScopeOwnerElect
Get owner-elect of a scope
Returns
getScopeOwner
Get owner of a scope
Returns
addOperator
Add an operator to a scoperemoveOperator
Remove an operator from a scopesetScopeRules
Set rules for a scopeaddWhitelist
Add an address to a scope’s whitelistremoveWhitelist
Remove an address from a scope’s whitelistsetMintConfiguration
Set the mint configuration for a given addressgetMintConfiguration
Get the mint configuration for a given address
Returns
setPatchFee
Set the patch fee for a given addressgetPatchFee
Get the patch fee for a given address
Returns
setAssignFee
Set the assign fee for a given fragment addressgetAssignFee
Get the assign fee for a given fragment address
Returns
addBanker
Add a banker to a given scoperemoveBanker
Remove a banker from a given scopewithdraw
Withdraw an amount from the balance of a given scopeTransfers
amount to the msg.senderbalanceOf
Get the balance of a given scope
Returns
mint
Mint a new token
Returns
mintBatch
Mint a batch of new tokens
Returns
proposeProtocolFeeConfig
Proposes a protocol fee configurationConfiguration does not apply until
commitProtocolFeeConfig is called.commitProtocolFeeConfig
Commits the current proposed protocol fee configurationMay only be called after timelock has passed.
getProtocolFeeConfig
Get the current protocol fee configurationproposeScopeFeeOverride
Proposes a protocol fee override for a scopecommitScopeFeeOverride
Commits the current proposed protocol fee override configuration for a scopeMay only be called after timelock has passed.
getScopeFeeOverride
Get the protocol fee override for a scopeaddProtocolBanker
Add a banker to the protocolremoveProtocolBanker
Remove a banker from the protocolwithdrawFromProtocol
Withdraw a specified amount from the protocol balanceTransfers to the msg.sender
balanceOfProtocol
Get the current balance of the protocolpatch
Create a new patch
Returns
patchBurned
Callback for when a patch is burnedpatch1155
Create a new 1155 patch
Returns
patchBurned1155
Callback for when an 1155 patch is burnedpatchAccount
Create a new account patch
Returns
patchBurnedAccount
Callback for when an account patch is burnedassign
Assigns a relation to have an IPatchworkLiteRef form a LiteRef to a IPatchworkAssignableassign
Assigns a relation to have an IPatchworkLiteRef form a LiteRef to a IPatchworkAssignableassignBatch
Assign multiple fragments to a target in batchassignBatch
Assign multiple fragments to a target in batchunassignSingle
Unassign a fragment from a targetunassignSingle
Unassign a fragment from a targetunassignMulti
Unassigns a multi relationunassignMulti
Unassigns a multi relationunassign
Unassigns a relation (single or multi)unassign
Unassigns a relation (single or multi)applyTransfer
Apply transfer rules and actions of a specific token from one address to anotherupdateOwnershipTree
Update the ownership tree of a specific Patchwork 721proposeAssignerDelegate
Propose an assigner delegate modulecommitAssignerDelegate
Commit the proposed assigner delegate moduleEvents
Assign
Emitted when a fragment is assignedUnassign
Emitted when a fragment is unassignedPatch
Emitted when a patch is mintedERC1155Patch
Emitted when a patch is mintedAccountPatch
Emitted when an account patch is mintedScopeClaim
Emitted when a new scope is claimedScopeTransferElect
Emitted when a scope has elected a new owner to transfer toScopeTransferCancel
Emitted when a scope transfer is canceledScopeTransfer
Emitted when a scope is transferredScopeAddOperator
Emitted when a scope has an operator addedScopeRemoveOperator
Emitted when a scope has an operator removedScopeRuleChange
Emitted when a scope’s rules are changedScopeWhitelistAdd
Emitted when a scope has an address added to the whitelistScopeWhitelistRemove
Emitted when a scope has an address removed from the whitelistMintConfigure
Emitted when a mint is configuredScopeBankerAdd
Emitted when a banker is added to a scopeScopeBankerRemove
Emitted when a banker is removed from a scopeScopeWithdraw
Emitted when a withdrawl is made from a scopeProtocolBankerAdd
Emitted when a banker is added to the protocolProtocolBankerRemove
Emitted when a banker is removed from the protocolProtocolWithdraw
Emitted when a withdrawl is made from the protocolMint
Emitted on mintMintBatch
Emitted on batch mintProtocolFeeConfigPropose
Emitted on protocol fee config proposedProtocolFeeConfigCommit
Emitted on protocol fee config committedScopeFeeOverridePropose
Emitted on scope fee config override proposedScopeFeeOverrideCommit
Emitted on scope fee config override committedPatchFeeChange
Emitted on patch fee changeAssignFeeChange
Emitted on assign fee changeAssignerDelegatePropose
Emitted on assigner delegate proposeAssignerDelegateCommit
Emitted on assigner delegate commitErrors
NotAuthorized
The address is not authorized to perform this actionScopeExists
The scope with the provided name already existsScopeDoesNotExist
The scope with the provided name does not existScopeTransferNotAllowed
Transfer of the scope to the provided address is not allowedFrozen
The token with the provided ID at the given address is frozenLocked
The token with the provided ID at the given address is lockedNotWhitelisted
The address is not whitelisted for the given scopeAccountAlreadyPatched
The address at the given address has already been patchedAlreadyPatched
The token at the given address has already been patchedERC1155AlreadyPatched
The ERC1155 path has already been patchedBadInputLengths
The provided input lengths are not compatible or valid for any multi array inputs, they must be the same lengthFragmentUnregistered
The fragment at the given address is unregisteredFragmentRedacted
The fragment at the given address has been redactedFragmentAlreadyAssigned
The fragment with the provided ID at the given address is already assignedRefNotFound
The reference was not found for the given fragment and targetFragmentNotAssigned
The fragment with the provided ID at the given address is not assignedFragmentNotAssignedToTarget
The fragment with the provided ID at the given address is not assigned to the targetFragmentAlreadyRegistered
The fragment at the given address is already registeredOutOfIDs
Ran out of available IDs for allocationMax 255 IDs per target.
UnsupportedTokenId
The provided token ID is unsupportedTokenIds may only be 56 bits long.
CannotLockSoulboundPatch
Cannot lock the soulbound patch at the given addressNotFrozen
The token with the provided ID at the given address is not frozenIncorrectNonce
The nonce for the token with the provided ID at the given address is incorrectIt may be incorrect or a newer nonce may be present.
SelfAssignmentNotAllowed
Self assignment of the token with the provided ID at the given address is not allowedTransferNotAllowed
Transfer of the token with the provided ID at the given address is not allowedTransferBlockedByAssignment
Transfer of the token with the provided ID at the given address is blocked by an assignmentMintNotAllowed
A rule is blocking the mint to this owner addressNotPatchworkAssignable
The token at the given address is not IPatchworkAssignableDataIntegrityError
A data integrity error has been detectedaddr+tokenId is expected where addr2+tokenId2 is present.InsufficientFunds
The available balance does not satisfy the amountIncorrectFeeAmount
The supplied fee is not the corret amountMintNotActive
Minting is not active for this addressFailedToSend
The value could not be sentUnsupportedContract
The contract is not supportedUnsupportedOperation
The operation is not supportedNoProposedFeeSet
No proposed fee is setTimelockNotElapsed
Timelock has not elapsedInvalidFeeValue
Invalid fee valueNoDelegateProposed
No delegate proposedStructs
FeeConfig
Fee ConfigurationFeeConfigOverride
Fee Configuration OverrideProposedFeeConfig
Proposal to change a fee configuration for either protocol or scope overrideMintConfig
Mint configurationProposedAssignerDelegate
Proposed assigner delegateScope
Represents a defined scope within the systemContains details about the scope ownership, permissions, and mappings for references and assignments.