69 lines
776 B
Markdown
69 lines
776 B
Markdown
# Owned
|
|
|
|
*Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol)*
|
|
|
|
|
|
|
|
Simple single owner authorization mixin.
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
### owner
|
|
|
|
```solidity
|
|
function owner() external view returns (address)
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
| Name | Type | Description |
|
|
|---|---|---|
|
|
| _0 | address | undefined |
|
|
|
|
### setOwner
|
|
|
|
```solidity
|
|
function setOwner(address newOwner) external nonpayable
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
| Name | Type | Description |
|
|
|---|---|---|
|
|
| newOwner | address | undefined |
|
|
|
|
|
|
|
|
## Events
|
|
|
|
### OwnerUpdated
|
|
|
|
```solidity
|
|
event OwnerUpdated(address indexed user, address indexed newOwner)
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
| Name | Type | Description |
|
|
|---|---|---|
|
|
| user `indexed` | address | undefined |
|
|
| newOwner `indexed` | address | undefined |
|
|
|
|
|
|
|