Commit ee7168b0 by github-actions

Transpile b12c2294

parent 49ae9a11
comment: off comment: off
github_checks:
annotations: false
coverage: coverage:
range: "100...100" status:
patch:
default:
target: 95%
project:
default:
threshold: 1%
...@@ -130,6 +130,8 @@ contract TimelockControllerUpgradeable is Initializable, AccessControlUpgradeabl ...@@ -130,6 +130,8 @@ contract TimelockControllerUpgradeable is Initializable, AccessControlUpgradeabl
/** /**
* @dev Returns the minimum delay for an operation to become valid. * @dev Returns the minimum delay for an operation to become valid.
*
* This value can be changed by executing an operation that calls `updateDelay`.
*/ */
function getMinDelay() public view returns (uint256 duration) { function getMinDelay() public view returns (uint256 duration) {
return _minDelay; return _minDelay;
...@@ -276,9 +278,14 @@ contract TimelockControllerUpgradeable is Initializable, AccessControlUpgradeabl ...@@ -276,9 +278,14 @@ contract TimelockControllerUpgradeable is Initializable, AccessControlUpgradeabl
} }
/** /**
* @dev Changes the timelock duration for future operations. * @dev Changes the minimum timelock duration for future operations.
* *
* Emits a {MinDelayChange} event. * Emits a {MinDelayChange} event.
*
* Requirements:
*
* - the caller must be the timelock itself. This can only be achieved by scheduling and later executing
* an operation where the timelock is the target and the data is the ABI-encoded call to this function.
*/ */
function updateDelay(uint256 newDelay) external virtual { function updateDelay(uint256 newDelay) external virtual {
require(msg.sender == address(this), "TimelockController: caller must be timelock"); require(msg.sender == address(this), "TimelockController: caller must be timelock");
......
{{~#*inline "typed-variable-array"~}} {{~#*inline "typed-variable-array"~}}
{{#each .}}++[.var-type]#++{{typeName}}++#++{{#if name}} ++[.var-name]#++{{name}}++#++{{/if}}{{#unless @last}}, {{/unless}}{{/each}} {{#each .}}{{typeName}}{{#if name}} {{name}}{{/if}}{{#unless @last}}, {{/unless}}{{/each}}
{{~/inline~}} {{~/inline~}}
{{#each linkable}} {{#each linkable}}
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
{{#each ownModifiers}} {{#each ownModifiers}}
[.contract-item] [.contract-item]
[[{{anchor}}]] [[{{anchor}}]]
==== `++{{name}}({{> typed-variable-array args}})++` [.item-kind]#modifier# ==== `[.contract-item-name]#++{{name}}++#++({{> typed-variable-array args}})++` [.item-kind]#modifier#
{{natspec.devdoc}} {{natspec.devdoc}}
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
{{#each ownFunctions}} {{#each ownFunctions}}
[.contract-item] [.contract-item]
[[{{anchor}}]] [[{{anchor}}]]
==== `++{{name}}({{> typed-variable-array args}}){{#if outputs}}{{> typed-variable-array outputs}}{{/if}}++` [.item-kind]#{{visibility}}# ==== `[.contract-item-name]#++{{name}}++#++({{> typed-variable-array args}}){{#if outputs}}{{> typed-variable-array outputs}}{{/if}}++` [.item-kind]#{{visibility}}#
{{natspec.devdoc}} {{natspec.devdoc}}
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
{{#each ownEvents}} {{#each ownEvents}}
[.contract-item] [.contract-item]
[[{{anchor}}]] [[{{anchor}}]]
==== `++{{name}}({{> typed-variable-array args}})++` [.item-kind]#event# ==== `[.contract-item-name]#++{{name}}++#++({{> typed-variable-array args}})++` [.item-kind]#event#
{{natspec.devdoc}} {{natspec.devdoc}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment