Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
ee7168b0
Commit
ee7168b0
authored
Dec 01, 2020
by
github-actions
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpile
b12c2294
parent
49ae9a11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
.codecov.yml
.codecov.yml
+9
-1
TimelockControllerUpgradeable.sol
contracts/access/TimelockControllerUpgradeable.sol
+8
-1
contract.hbs
docs/contract.hbs
+4
-4
No files found.
.codecov.yml
View file @
ee7168b0
comment
:
off
comment
:
off
github_checks
:
annotations
:
false
coverage
:
coverage
:
range
:
"
100...100"
status
:
patch
:
default
:
target
:
95%
project
:
default
:
threshold
:
1%
contracts/access/TimelockControllerUpgradeable.sol
View file @
ee7168b0
...
@@ -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");
...
...
docs/contract.hbs
View file @
ee7168b0
{{
~#*
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
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment