Skip to content

Commit

Permalink
feat: get to full natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Nov 9, 2023
1 parent 3e081b8 commit 9d74877
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/SparkLendFreezerMom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ contract SparkLendFreezerMom is ISparkLendFreezerMom {
address public override immutable poolConfigurator;
address public override immutable pool;

address public authority;
address public owner;
address public override authority;
address public override owner;

constructor(address poolConfigurator_, address pool_, address authority_) {
poolConfigurator = poolConfigurator_;
Expand All @@ -51,16 +51,16 @@ contract SparkLendFreezerMom is ISparkLendFreezerMom {
}

/**********************************************************************************************/
/*** Wards Functions ***/
/*** Owner Functions ***/
/**********************************************************************************************/

function setAuthority(address authority_) external onlyOwner {
function setAuthority(address authority_) external override onlyOwner {
emit SetAuthority(authority, authority_);
authority = authority_;
}


function setOwner(address owner_) external onlyOwner {
function setOwner(address owner_) external override onlyOwner {
emit SetOwner(owner, owner_);
owner = owner_;
}
Expand Down
27 changes: 25 additions & 2 deletions src/interfaces/ISparkLendFreezerMom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ interface ISparkLendFreezerMom {
/*** Events ***/
/**********************************************************************************************/

/**
* @dev Event to log the setting of a new owner.
* @param oldOwner The address of the previous owner.
* @param newOwner The address of the new owner.
*/
event SetOwner(address indexed oldOwner, address indexed newOwner);

/**
* @dev Event to log the setting of a new authority.
* @param oldAuthority The address of the previous authority.
* @param newAuthority The address of the new authority.
*/
event SetAuthority(address indexed oldAuthority, address indexed newAuthority);

/**********************************************************************************************/
Expand All @@ -32,16 +43,28 @@ interface ISparkLendFreezerMom {
*/
function authority() external view returns (address);

/**
* @dev Returns the address of the owner.
* @return The address of the owner.
*/
function owner() external view returns (address);

/**********************************************************************************************/
/*** Wards Functions ***/
/*** Owner Functions ***/
/**********************************************************************************************/

/**
* @dev Function to set a new authority, permissioned to wards.
* @dev Function to set a new authority, permissioned to owner.
* @param authority The address of the new authority.
*/
function setAuthority(address authority) external;

/**
* @dev Function to set a new owner, permissioned to owner.
* @param owner The address of the new owner.
*/
function setOwner(address owner) external;

/**********************************************************************************************/
/*** Auth Functions ***/
/**********************************************************************************************/
Expand Down

0 comments on commit 9d74877

Please sign in to comment.