Skip to main content

ICorporateActions

Asset Tokenization Studio Team

ICorporateActions

Interface for reading corporate action records stored on a security token. Corporate actions represent issuer-initiated events (e.g. dividends, votes, KPI settlements) that are registered on-chain and classified by an arbitrary bytes32 action type.

Part of the Diamond facet system. Corporate actions are stored at STORAGE_LOCATION_CORPORATE_ACTION via CorporateActionsStorageWrapper. Each action is assigned a 1-based sequential bytes32 ID and de-duplicated by a content hash of keccak256(abi.encode(actionType, data)). Write operations (add, cancel, update) are defined in domain-specific interfaces that extend this one.

Methods​

actionContentHashExists​

function actionContentHashExists(bytes32 _contentHash) external view returns (bool)

Checks whether a content hash derived from an action type and payload already exists.

The content hash is keccak256(abi.encode(actionType, data)). Callers can use this to detect duplicate corporate actions before submitting a registration.

Parameters​

NameTypeDescription
_contentHashbytes32The pre-computed content hash to look up.

Returns​

NameTypeDescription
_0boolTrue if a corporate action with this content hash has already been registered, false otherwise.

getCorporateAction​

function getCorporateAction(bytes32 _corporateActionId) external view returns (bytes32 actionType_, uint256 actionIdByType_, bytes data_, bool isDisabled_)

Returns the stored details for a single corporate action.

Parameters​

NameTypeDescription
_corporateActionIdbytes32Unique bytes32 identifier of the corporate action to retrieve.

Returns​

NameTypeDescription
actionType_bytes32Classification key for the action.
actionIdByType_uint256Sequential index of this action within its action type.
data_bytesABI-encoded payload containing the action details.
isDisabled_boolTrue if the action has been cancelled, false otherwise.

getCorporateActionCount​

function getCorporateActionCount() external view returns (uint256 corporateActionCount_)

Returns the total number of corporate actions registered on the token.

Returns​

NameTypeDescription
corporateActionCount_uint256The total count of registered corporate actions.

getCorporateActionCountByType​

function getCorporateActionCountByType(bytes32 _actionType) external view returns (uint256 corporateActionCount_)

Returns the number of corporate actions registered under a specific action type.

Parameters​

NameTypeDescription
_actionTypebytes32The action type to count.

Returns​

NameTypeDescription
corporateActionCount_uint256The number of actions registered for _actionType.

getCorporateActionIds​

function getCorporateActionIds(uint256 _pageIndex, uint256 _pageLength) external view returns (bytes32[] corporateActionIds_)

Returns a paginated slice of corporate action identifiers.

_The list offset is computed as \_pageIndex _ \_pageLength. Returns an empty array when the offset meets or exceeds the total action count.*

Parameters​

NameTypeDescription
_pageIndexuint256Zero-based page index.
_pageLengthuint256Maximum number of identifiers to return per page.

Returns​

NameTypeDescription
corporateActionIds_bytes32[]Array of corporate action identifiers for the requested page.

getCorporateActionIdsByType​

function getCorporateActionIdsByType(bytes32 _actionType, uint256 _pageIndex, uint256 _pageLength) external view returns (bytes32[] corporateActionIds_)

Returns a paginated slice of corporate action identifiers for a specific action type.

_The list offset is computed as \_pageIndex _ \_pageLength. Returns an empty array when the offset meets or exceeds the count for that type.*

Parameters​

NameTypeDescription
_actionTypebytes32The action type to filter by.
_pageIndexuint256Zero-based page index.
_pageLengthuint256Maximum number of identifiers to return per page.

Returns​

NameTypeDescription
corporateActionIds_bytes32[]Array of corporate action identifiers for the requested page.

getCorporateActions​

function getCorporateActions(uint256 _pageIndex, uint256 _pageLength) external view returns (bytes32[] actionTypes_, uint256[] actionIdByType_, bytes[] datas_, bool[] isDisabled_)

Returns a paginated slice of full corporate action records.

_Internally resolves each paginated ID to its full ActionData. The list offset is computed as \_pageIndex _ \_pageLength.*

Parameters​

NameTypeDescription
_pageIndexuint256Zero-based page index.
_pageLengthuint256Maximum number of records to return per page.

Returns​

NameTypeDescription
actionTypes_bytes32[]Array of action classification keys.
actionIdByType_uint256[]Array of per-type sequential indices.
datas_bytes[]Array of ABI-encoded action payloads.
isDisabled_bool[]Array of disabled flags; true means the action has been cancelled.

getCorporateActionsByType​

function getCorporateActionsByType(bytes32 _actionType, uint256 _pageIndex, uint256 _pageLength) external view returns (bytes32[] actionTypes_, uint256[] actionIdByType_, bytes[] datas_, bool[] isDisabled_)

Returns a paginated slice of full corporate action records for a specific action type.

_Internally resolves each paginated type-scoped ID to its full ActionData. The list offset is computed as \_pageIndex _ \_pageLength.*

Parameters​

NameTypeDescription
_actionTypebytes32The action type to filter by.
_pageIndexuint256Zero-based page index.
_pageLengthuint256Maximum number of records to return per page.

Returns​

NameTypeDescription
actionTypes_bytes32[]Array of action classification keys.
actionIdByType_uint256[]Array of per-type sequential indices.
datas_bytes[]Array of ABI-encoded action payloads.
isDisabled_bool[]Array of disabled flags; true means the action has been cancelled.

initializeCorporateActions​

function initializeCorporateActions() external nonpayable

Initialises the corporate actions capability on the token.

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

Events​

CorporateActionAdded​

event CorporateActionAdded(address indexed operator, bytes32 indexed actionType, bytes32 indexed corporateActionId, uint256 corporateActionIdByType, bytes data)

Emitted when a new corporate action is registered on the token.

Parameters​

NameTypeDescription
operator indexedaddressAddress of the caller who added the corporate action.
actionType indexedbytes32Classification key for the corporate action (e.g. dividend, vote).
corporateActionId indexedbytes32Unique sequential identifier for the corporate action (1-based, cast to bytes32).
corporateActionIdByTypeuint256Sequential index of this action within its action type.
databytesABI-encoded payload defining the corporate action details.

CorporateActionCancelled​

event CorporateActionCancelled(bytes32 indexed corporateActionId)

Emitted when a corporate action is cancelled (disabled).

Parameters​

NameTypeDescription
corporateActionId indexedbytes32Unique identifier of the corporate action that was cancelled.

CorporateActionsInitialized​

event CorporateActionsInitialized()

Emitted once when the corporate actions capability is initialised on a token.

Fires exclusively from initializeCorporateActions.

Errors​

AccountIsBlocked​

error AccountIsBlocked(address account)

Reverts when an operation targets or is requested by a blocked account.

The blocking policy is enforced by the domain that performs the check.

Parameters​

NameTypeDescription
accountaddressAccount rejected by the blocking validation.

AlreadyInitialized​

error AlreadyInitialized()

Reverts when an initialisation routine is invoked more than once.

Used by contracts or facets that must be initialised exactly once.

ContradictoryValuesInArray​

error ContradictoryValuesInArray(uint256 lowerIndex, uint256 upperIndex)

Reverts when ordered array values contradict expected ordering.

Indicates that two indexed values cannot both satisfy the required monotonic or range invariant.

Parameters​

NameTypeDescription
lowerIndexuint256Lower array index involved in the contradiction.
upperIndexuint256Upper array index involved in the contradiction.

CorporateActionAlreadyDisabled​

error CorporateActionAlreadyDisabled(bytes32 corporateActionId)

Thrown when attempting to cancel a corporate action that is already disabled.

Parameters​

NameTypeDescription
corporateActionIdbytes32The identifier of the already-disabled corporate action.

CorporateActionNotFound​

error CorporateActionNotFound(bytes32 corporateActionId)

Thrown when a lookup by corporateActionId returns no matching record.

Parameters​

NameTypeDescription
corporateActionIdbytes32The identifier that was not found.

DecimalsTooLarge​

error DecimalsTooLarge(uint8 currentDecimals, uint8 newDecimals)

Reverts when the difference between current decimals and new decimals exceeds the maximum value.

Protects decimals amount difference between current and new not te be greater than maximum.

Parameters​

NameTypeDescription
currentDecimalsuint8the current decimals amount.
newDecimalsuint8the new decimals amount.

DifferentLengths​

error DifferentLengths(uint256 length1, uint256 length2)

Emitted when two arrays or collections expected to have matching lengths differ.

Reverts operations that require one-to-one correspondence between input parameters.

Parameters​

NameTypeDescription
length1uint256Length of the first array or collection.
length2uint256Length of the second array or collection.

DuplicatedCorporateAction​

error DuplicatedCorporateAction(bytes32 actionType, bytes data)

Thrown when attempting to add a corporate action whose content hash already exists.

De-duplication is enforced via keccak256(abi.encode(actionType, data)).

Parameters​

NameTypeDescription
actionTypebytes32The action type of the duplicate corporate action.
databytesThe ABI-encoded payload of the duplicate corporate action.

ExpiredDeadline​

error ExpiredDeadline(uint256 deadline)

Reverts when a signed payload is submitted after its deadline.

The caller must provide and validate deadlines before accepting the signed operation.

Parameters​

NameTypeDescription
deadlineuint256Expired deadline carried by the signed payload.

ExponentOverflow​

error ExponentOverflow(uint256 exponent)

Reverts when an exponent would cause 10 ** exponent to overflow uint256.

Thrown by DecimalsLib.checkExponentOverflow when exponent >= 78.

Parameters​

NameTypeDescription
exponentuint256The exponent that would produce an overflow.

GreaterThanMaxUint256​

error GreaterThanMaxUint256(uint256 amount, uint8 decimals)

Reverts when multiplying amount by 10 ** decimals would exceed uint256 max.

Thrown by DecimalsLib.calculateDecimalsAdjustment when amount > MAX_UINT256 / 10 ** decimals.

Parameters​

NameTypeDescription
amountuint256The token amount that cannot be scaled up.
decimalsuint8The exponent that causes the overflow.

InvalidDates​

error InvalidDates()

Reverts when a date set is invalid.

Used when the failing date constraint does not require exposing values.

InvalidTimestamp​

error InvalidTimestamp()

Reverts when a timestamp value is invalid.

Used for shared timestamp validation that is not tied to expiration.

MaxExternalListSizeReached​

error MaxExternalListSizeReached(uint256 max)

Reverts when adding an entry would grow an external list beyond its maximum size.

Enforced by ExternalListManagementStorageWrapper.addExternalList for the external pause, control and KYC lists. The bound exists because each list is iterated in full on the hot path of token operations, so an unbounded list could exceed the gas limit and brick the token.

Parameters​

NameTypeDescription
maxuint256Maximum number of entries permitted in the external list.

UnexpectedError​

error UnexpectedError(bytes4 _errorId)

Reverts when an unreachable validation state is detected.

Replaces assertions for defensive handling of logically impossible states.

Parameters​

NameTypeDescription
_errorIdbytes4Identifier of the unexpected validation condition.

WrongDates​

error WrongDates(uint256 firstDate, uint256 secondDate)

Reverts when two date values fail their required ordering constraint.

The expected relationship between both dates is defined by the caller's validation context.

Parameters​

NameTypeDescription
firstDateuint256First date participating in the failed comparison.
secondDateuint256Second date participating in the failed comparison.

WrongExpirationTimestamp​

error WrongExpirationTimestamp()

Reverts when an expiration timestamp is invalid.

Used for expired, past, or otherwise unacceptable expiration values.

WrongIndexForAction​

error WrongIndexForAction(uint256 index, bytes32 actionType)

Thrown when a type-scoped index does not correspond to an existing action.

Parameters​

NameTypeDescription
indexuint256The out-of-range index that was provided.
actionTypebytes32The action type against which the index was validated.

WrongNonce​

error WrongNonce(uint256 nonce, address account)

Reverts when a nonce does not match the expected value for an account.

Protects signed operations against replay and out-of-order execution.

Parameters​

NameTypeDescription
nonceuint256Nonce supplied by the caller or signed payload.
accountaddressAccount for which the nonce validation failed.

WrongSignature​

error WrongSignature()

Reverts when a signature fails verification.

Applies to shared signature validation flows, including EIP-712 payloads and partition-based signatures.

WrongSignatureLength​

error WrongSignatureLength()

Reverts when a signature payload has an invalid byte length.

Used before signature recovery or verification to reject malformed input.

WrongTimestamp​

error WrongTimestamp(uint256 timeStamp)

Reverts when a scheduled timestamp is not strictly in the future.

Used for shared scheduling validation where the current block time is read through TimeTravelStorageWrapper.

Parameters​

NameTypeDescription
timeStampuint256Timestamp rejected for scheduling.

ZeroAddressNotAllowed​

error ZeroAddressNotAllowed()

Reverts when the zero address is supplied where it is not permitted.

Prevents invalid account, contract, or recipient references.

ZeroValueNotAllowed​

error ZeroValueNotAllowed()

Reverts when zero is supplied where a positive value is required.

Used for shared validation of amounts, limits, factors, or identifiers.