MintByPartition
Asset Tokenization Studio Team
MintByPartition
Abstract implementation of the partition-aware token issuance operation.
Implements issueByPartition on top of TokenCoreOps. The entry point enforces the issuer-or-agent access-control matrix, unpaused state, address recovery check, partition validity, per-partition and global supply ceilings, and identity and compliance checks before delegating to the orchestrator library.
Methods
initializeMintByPartition
function initializeMintByPartition() external nonpayable
Initialises the mint-by-partition capability on the token.
Callable once; subsequent calls revert with FacetAlreadyRegistered. Requires DEFAULT_ADMIN_ROLE. Called by the factory during deployment.
issueByPartition
function issueByPartition(IERC1410Types.IssueData _issueData) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _issueData | IERC1410Types.IssueData | undefined |
Events
MintByPartitionInitialized
event MintByPartitionInitialized()
Emitted once when the mint-by-partition capability is initialised on a token.
Fires exclusively from initializeMintByPartition.
Errors
AccountHasNoRole
error AccountHasNoRole(address account, bytes32 role)
Thrown when an account does not hold a required role.
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The account that lacks the role. |
| role | bytes32 | The role that is not held. |
AccountHasNoRoles
error AccountHasNoRoles(address account, bytes32[] roles)
Thrown when an account does not hold any of the specified roles.
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The account that lacks the roles. |
| roles | bytes32[] | The roles that are not held. |
AssetNotOperational
error AssetNotOperational(bytes32 configId, uint256 versionId)
Raised by InitializerStorageWrapper.checkOperational (and the related isConfigVersionOperational helper) when an operation is attempted on a configuration version that has not yet been marked operational.
Parameters
| Name | Type | Description |
|---|---|---|
| configId | bytes32 | Resolver-proxy configuration whose operational status was checked. |
| versionId | uint256 | Configuration version whose operational status was checked. |
Deactivated
error Deactivated()
Thrown when an operation guarded by onlyActivated is attempted on a token whose deactivation flag has already been set.
FacetAlreadyRegistered
error FacetAlreadyRegistered(bytes32 facetId, uint256 lastVersion)
Raised when an initialiser tries to register a facet that already has a non-zero last registered version (i.e. the facet is being re-initialised on a fresh install).
Parameters
| Name | Type | Description |
|---|---|---|
| facetId | bytes32 | Identifier of the offending facet. |
| lastVersion | uint256 | Last version recorded for that facet at the time of the check. |
IsPaused
error IsPaused()
Thrown when an operation that requires the token to be unpaused is attempted while the token is paused (own flag or any external pause contract).
IssuanceIsDisabled
error IssuanceIsDisabled()
Thrown when an issuance operation is attempted after issuance has been permanently disabled.
MaxSupplyReached
error MaxSupplyReached(uint256 maxSupply)
Thrown when a mint would cause the total supply to exceed the global maximum.
Parameters
| Name | Type | Description |
|---|---|---|
| maxSupply | uint256 | The current global maximum supply. |
MaxSupplyReachedForPartition
error MaxSupplyReachedForPartition(bytes32 partition, uint256 maxSupply)
Thrown when a mint would cause a partition's total supply to exceed its cap.
Parameters
| Name | Type | Description |
|---|---|---|
| partition | bytes32 | The partition whose cap would be exceeded. |
| maxSupply | uint256 | The current maximum supply for the partition. |
PartitionNotAllowedInSinglePartitionMode
error PartitionNotAllowedInSinglePartitionMode(bytes32 partition)
Thrown when a multi-partition operation specifies a partition not permitted in single-partition mode.
Parameters
| Name | Type | Description |
|---|---|---|
| partition | bytes32 | The disallowed partition supplied by the caller. |
UnrecognizedResolverProxyVersion
error UnrecognizedResolverProxyVersion(bytes8 _resolverProxyVersion)
Thrown when the provided proxy version does not match any BLR compatible standard.
Parameters
| Name | Type | Description |
|---|---|---|
| _resolverProxyVersion | bytes8 | proxy version that is not compatible with the BLR. |
WalletRecovered
error WalletRecovered()
Thrown when attempting to recover a wallet that has already been recovered.