Skip to main content

IERC3643Types

Asset Tokenization Studio Team

IERC3643Types

Shared events and errors for the ERC-3643 (T-REX) compliant security token standard. Imported by every facet and storage wrapper that participates in identity verification, compliance enforcement, agent management, or wallet recovery.

Events​

AgentAdded​

event AgentAdded(address indexed agent)

Emitted when an agent is granted transfer-management permissions.

Parameters​

NameTypeDescription
agent indexedaddressAddress of the newly added agent.

AgentRemoved​

event AgentRemoved(address indexed agent)

Emitted when an agent's transfer-management permissions are revoked.

Parameters​

NameTypeDescription
agent indexedaddressAddress of the removed agent.

ComplianceAdded​

event ComplianceAdded(address indexed compliance)

Emitted when the compliance contract address is updated.

Parameters​

NameTypeDescription
compliance indexedaddressAddress of the newly wired compliance contract.

IdentityRegistryAdded​

event IdentityRegistryAdded(address indexed identityRegistry)

Emitted when the identity registry contract address is updated.

Parameters​

NameTypeDescription
identityRegistry indexedaddressAddress of the newly wired identity registry.

RecoverySuccess​

event RecoverySuccess(address lostWallet, address newWallet, address investorOnchainID)

Emitted when a lost wallet is successfully recovered to a new address.

Parameters​

NameTypeDescription
lostWalletaddressAddress of the wallet that was lost.
newWalletaddressAddress of the replacement wallet.
investorOnchainIDaddressOnchainID of the investor performing the recovery.

UpdatedTokenInformation​

event UpdatedTokenInformation(string indexed newName, string indexed newSymbol, uint8 newDecimals, string newVersion, address indexed newOnchainID)

Emitted when core token metadata is updated.

Parameters​

NameTypeDescription
newName indexedstringNew token name.
newSymbol indexedstringNew token symbol.
newDecimalsuint8New decimal precision.
newVersionstringNew token version string.
newOnchainID indexedaddressNew onchainID address associated with the token.

Errors​

AddressNotVerified​

error AddressNotVerified()

Thrown when a transfer target address has not passed identity verification.

CannotRecoverWallet​

error CannotRecoverWallet()

Thrown when wallet recovery preconditions are not met (e.g. identity mismatch).

ComplianceCallFailed​

error ComplianceCallFailed()

Thrown when an external call to the compliance contract reverts or returns false.

ComplianceNotAllowed​

error ComplianceNotAllowed()

Thrown when a transfer is blocked by the compliance module.

IdentityRegistryCallFailed​

error IdentityRegistryCallFailed()

Thrown when an external call to the identity registry reverts or returns false.

InputAmountsArrayLengthMismatch​

error InputAmountsArrayLengthMismatch()

Thrown when the lengths of two input amount arrays do not match.

InputBoolArrayLengthMismatch​

error InputBoolArrayLengthMismatch()

Thrown when the lengths of two input boolean arrays do not match.

InsufficientFrozenBalance​

error InsufficientFrozenBalance(address user, uint256 requestedUnfreeze, uint256 availableFrozen, bytes32 partition)

Thrown when an unfreeze request exceeds the address's available frozen balance.

Parameters​

NameTypeDescription
useraddressAddress whose frozen balance was checked.
requestedUnfreezeuint256Amount the caller attempted to unfreeze.
availableFrozenuint256Actual frozen balance available for unfreezing.
partitionbytes32Partition on which the frozen balance was checked.

WalletRecovered​

error WalletRecovered()

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