Upgradeable base
What every upgradeable contract of Gedho answers. Its implementation is replaced only through the 72 hour timelock, by code with a higher version and the same fingerprint.
Read
version
function version() external view returns (uint256);
Number of this code. An upgrade raises it.
| Returns | Type |
|---|---|
- | uint256 |
fingerprint
function fingerprint() external view returns (bytes32);
Hash of the values that this code was built with. It only catches a wrong deployment: new code can lie about it.
| Returns | Type |
|---|---|
- | bytes32 |
Errors
NotAdmin
error NotAdmin();
The caller is not Admin.
NotGuardianOrAdmin
error NotGuardianOrAdmin();
The caller is neither the guardian nor Admin.
NotTimelock
error NotTimelock();
The caller is not the timelock that this needs.
Paused
error Paused();
The guardian paused every market.
VersionNotHigher
error VersionNotHigher(uint256 current, uint256 next);
The new code does not have a higher version.
| Parameter | Type |
|---|---|
current | uint256 |
next | uint256 |
WrongFingerprint
error WrongFingerprint(address implementation);
The new code was built with other values.
| Parameter | Type |
|---|---|
implementation | address |