Skip to main content

IPartitions

Asset Tokenization Studio Team

IPartitions

Interface exposing the partition-discovery accessors required by the ERC-1410 surface.

Hosts the read-only partitionsOf and isMultiPartition getters. Implementations are expected to be pure passthroughs onto the underlying ERC-1410 storage and therefore impose no additional access-control or pause guarantees.

Methods​

initializePartitions​

function initializePartitions(bool _multiPartition) external nonpayable

Initialises the partitions capability on the token and sets multi-partition mode.

Callable once; subsequent calls revert with FacetAlreadyRegistered. Requires DEFAULT_ADMIN_ROLE. Called by the factory during deployment.

Parameters​

NameTypeDescription
_multiPartitionboolWhen true, the token accepts partitions other than the default.

isMultiPartition​

function isMultiPartition() external view returns (bool)

Indicates whether the token operates in multi-partition mode.

Returns​

NameTypeDescription
_0boolTrue if the token allows multiple partitions to be set and managed; false otherwise

partitionsOf​

function partitionsOf(address _tokenHolder) external view returns (bytes32[])

Use to get the list of partitions _tokenHolder is associated with.

Parameters​

NameTypeDescription
_tokenHolderaddressAn address corresponds whom partition list is queried.

Returns​

NameTypeDescription
_0bytes32[]List of partitions.

Events​

PartitionsInitialized​

event PartitionsInitialized(bool multiPartition)

Emitted once when the partitions capability is initialised on a token.

Fires exclusively from initializePartitions.

Parameters​

NameTypeDescription
multiPartitionboolWhether the token operates in multi-partition mode.