Skip to main content

MintByPartitionFacet

Asset Tokenization Studio Team

MintByPartitionFacet

Diamond facet exposing the ERC-1410 issueByPartition operation, registered under RESOLVER_KEY_MINT_BY_PARTITION.

Inherits the issuance logic from MintByPartition and satisfies the IStaticFunctionSelectors contract required by the Diamond proxy for static selector registration. Exposes one selector: issueByPartition. No library links are required for deployment beyond TokenCoreOps.

Methods​

getStaticFunctionSelectors​

function getStaticFunctionSelectors() external pure returns (bytes4[])

Gets all function selectors of a facet

Returns​

NameTypeDescription
_0bytes4[]Face functions selectors

getStaticInterfaceIds​

function getStaticInterfaceIds() external pure returns (bytes4[])

Gets all interfaces ids of a facet.

Returns​

NameTypeDescription
_0bytes4[]Face interface ids

getStaticResolverKey​

function getStaticResolverKey() external pure returns (bytes32 staticResolverKey_)

Gets the static resolver key

Returns​

NameTypeDescription
staticResolverKey_bytes32Static resolver key

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​

NameTypeDescription
_issueDataIERC1410Types.IssueDataundefined

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​

NameTypeDescription
accountaddressThe account that lacks the role.
rolebytes32The 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​

NameTypeDescription
accountaddressThe account that lacks the roles.
rolesbytes32[]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​

NameTypeDescription
configIdbytes32Resolver-proxy configuration whose operational status was checked.
versionIduint256Configuration 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​

NameTypeDescription
facetIdbytes32Identifier of the offending facet.
lastVersionuint256Last 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​

NameTypeDescription
maxSupplyuint256The 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​

NameTypeDescription
partitionbytes32The partition whose cap would be exceeded.
maxSupplyuint256The 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​

NameTypeDescription
partitionbytes32The 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​

NameTypeDescription
_resolverProxyVersionbytes8proxy version that is not compatible with the BLR.

WalletRecovered​

error WalletRecovered()

Thrown when attempting to recover a wallet that has already been recovered.