@bananapus/ownable-v6 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/foundry.toml CHANGED
@@ -1,7 +1,7 @@
1
1
  [profile.default]
2
2
  solc = '0.8.26'
3
3
  evm_version = 'paris'
4
- optimizer_runs = 1000000000
4
+ optimizer_runs = 200
5
5
  libs = ["node_modules", "lib"]
6
6
  fs_permissions = [{ access = "read-write", path = "./"}]
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/ownable-v6",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "node": ">=20.0.0"
11
11
  },
12
12
  "dependencies": {
13
- "@bananapus/core-v6": "^0.0.9",
13
+ "@bananapus/core-v6": "^0.0.10",
14
14
  "@openzeppelin/contracts": "^5.0.2"
15
15
  },
16
16
  "scripts": {
package/remappings.txt ADDED
@@ -0,0 +1 @@
1
+ forge-std/=lib/forge-std/src/
@@ -15,7 +15,7 @@ import {JBOwner} from "./structs/JBOwner.sol";
15
15
  /// `JBPermissions`.
16
16
  abstract contract JBOwnableOverrides is Context, JBPermissioned, IJBOwnable {
17
17
  //*********************************************************************//
18
- // --------------------------- custom errors --------------------------//
18
+ // --------------------------- custom errors ------------------------- //
19
19
  //*********************************************************************//
20
20
 
21
21
  error JBOwnableOverrides_InvalidNewOwner();
@@ -3,10 +3,19 @@ pragma solidity ^0.8.0;
3
3
 
4
4
  import {IJBProjects} from "@bananapus/core-v6/src/interfaces/IJBProjects.sol";
5
5
 
6
+ /// @notice Provides Juicebox-aware ownership with support for project-based and address-based owners.
6
7
  interface IJBOwnable {
7
- event PermissionIdChanged(uint8 newId, address caller);
8
+ /// @notice Emitted when ownership is transferred to a new owner.
9
+ /// @param previousOwner The address of the previous owner.
10
+ /// @param newOwner The address of the new owner.
11
+ /// @param caller The address that initiated the transfer.
8
12
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner, address caller);
9
13
 
14
+ /// @notice Emitted when the permission ID used for owner access is changed.
15
+ /// @param newId The new permission ID.
16
+ /// @param caller The address that changed the permission ID.
17
+ event PermissionIdChanged(uint8 newId, address caller);
18
+
10
19
  /// @notice The contract that mints ERC-721s representing project ownership.
11
20
  /// @return projects The `IJBProjects` contract.
12
21
  function PROJECTS() external view returns (IJBProjects projects);