Skip to main content

ICoreAtSnapshot

Asset Tokenization Studio Team

ICoreAtSnapshot

Interface for querying core token properties resolved against a previously taken snapshot identifier.

Reads are delegated to SnapshotsStorageWrapper. Reverts with SnapshotIdNull for _snapshotID == 0 and with SnapshotIdDoesNotExists for unknown identifiers.

Methods​

decimalsAtSnapshot​

function decimalsAtSnapshot(uint256 _snapshotID) external view returns (uint8 decimals_)

Returns the token decimals at the time of a given snapshot.

Parameters​

NameTypeDescription
_snapshotIDuint256The snapshot identifier returned by a prior takeSnapshot call.

Returns​

NameTypeDescription
decimals_uint8The decimals value recorded at _snapshotID.

initializeCoreAtSnapshot​

function initializeCoreAtSnapshot() external nonpayable

Initialises the core at snapshot capability on the token.

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

Events​

CoreAtSnapshotInitialized​

event CoreAtSnapshotInitialized()

Emitted once when the core at snapshot capability is initialised on a token.

Fires exclusively from initializeCoreAtSnapshot.