Skip to content

Commit 1da52c9

Browse files
commit the code blocks back
1 parent bad1932 commit 1da52c9

28 files changed

+4301
-0
lines changed

docs/zkEVM/architecture/high-level/smart-contracts/api/CDKValidium.md

Lines changed: 771 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Contract module which acts as a time-locked controller.
2+
It provides time, for users of the controlled contract, to exit before any risky maintenance operation is applied.
3+
4+
However, if the emergency mode of the CDKValidium contract system is active, any timelock is bypassed without delay.
5+
6+
## Functions
7+
8+
### constructor
9+
10+
```solidity
11+
function constructor(
12+
uint256 minDelay,
13+
address[] proposers,
14+
address[] executors,
15+
address admin,
16+
contract CDKValidium _cdkValidium
17+
) public
18+
```
19+
20+
##### Parameters
21+
22+
| Name | Type | Description |
23+
| :--- | :--- | :------------------------------------------------------------------- |
24+
|`minDelay` | uint256 | initial minimum delay for operations
25+
|`proposers` | address[] | accounts to be granted proposer and canceller roles
26+
|`executors` | address[] | accounts to be granted executor role
27+
|`admin` | address | optional account to be granted admin role; disable with zero address
28+
|`_cdkValidium` | contract CDKValidium | cdkValidium address
29+
30+
### getMinDelay
31+
32+
Returns the minimum delay for an operation to become valid.
33+
34+
```solidity
35+
function getMinDelay(
36+
) public returns (uint256 duration)
37+
```
38+
39+
The minimum delay value can be changed by executing any operation that calls `updateDelay`. If CDKValidium is in an emergency state the `minDelay` is 0 instead.

0 commit comments

Comments
 (0)