-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Docs Syncer
committed
Feb 27, 2024
1 parent
fe6cc40
commit 1decdc7
Showing
15 changed files
with
70 additions
and
45 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
docs/reference/contracts/diamond/access/ownable/DiamondOwnable.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# DiamondOwnable | ||
|
||
## Overview | ||
|
||
#### License: MIT | ||
|
||
```solidity | ||
contract DiamondOwnable is DiamondOwnableStorage | ||
``` | ||
|
||
The Diamond standard module | ||
|
||
This is modified version of OpenZeppelin's Ownable contract to be used as a Storage contract | ||
by the Diamond Standard. | ||
## Events info | ||
|
||
### OwnershipTransferred | ||
|
||
```solidity | ||
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) | ||
``` | ||
|
||
|
||
## Functions info | ||
|
||
### transferOwnership (0xf2fde38b) | ||
|
||
```solidity | ||
function transferOwnership(address newOwner_) public virtual onlyOwner | ||
``` | ||
|
||
The function to transfer the Diamond ownership | ||
|
||
|
||
Parameters: | ||
|
||
| Name | Type | Description | | ||
| :-------- | :------ | :--------------------------- | | ||
| newOwner_ | address | the new owner of the Diamond | | ||
|
||
### renounceOwnership (0x715018a6) | ||
|
||
```solidity | ||
function renounceOwnership() public virtual onlyOwner | ||
``` | ||
|
||
The function to leave Diamond without an owner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.