SystemUtils
Title: SystemUtils
Shared access to revive's System precompile for DotNS contracts.
Canonical wrapper around ISystem at DotnsConstants.REVIVE_SYSTEM, so the precompile
address and interface are wired in one place rather than duplicated per consumer.
Note: security-contact: admin@parity.io
Functions
originIsRoot
Returns whether the transaction-level origin is substrate Root.
Reads the stack origin through ISystem.originIsRoot, which holds through a UUPS
proxy's delegatecall frame where callerIsRoot returns false, and returns false
rather than reverting on a non-Root origin.
function originIsRoot() internal view returns (bool root);
Returns
| Name | Type | Description |
|---|---|---|
root | bool | True when the transaction origin is Root. |