@bananapus/address-registry-v6 0.0.4 → 0.0.5

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 = 10000000
4
+ optimizer_runs = 200
5
5
  libs = ["node_modules", "lib"]
6
6
  fs_permissions = [{ access = "read-write", path = "./"}]
7
7
 
@@ -16,9 +16,6 @@ runs = 1024
16
16
  depth = 100
17
17
  fail_on_revert = false
18
18
 
19
- [rpc_endpoints]
20
- ethereum = "${RPC_ETHEREUM_MAINNET}"
21
-
22
19
  [fmt]
23
20
  number_underscore = "thousands"
24
21
  multiline_func_header = "all"
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@bananapus/address-registry-v6",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Bananapus/nana-address-registry-v6"
8
8
  },
9
+ "engines": {
10
+ "node": ">=20.0.0"
11
+ },
9
12
  "scripts": {
10
13
  "test": "forge test",
11
14
  "test:fork": "FOUNDRY_PROFILE=CI forge test",
@@ -15,6 +18,6 @@
15
18
  "artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'nana-address-registry-v5'"
16
19
  },
17
20
  "dependencies": {
18
- "@sphinx-labs/plugins": "^0.33.1"
21
+ "@sphinx-labs/plugins": "^0.33.2"
19
22
  }
20
23
  }
@@ -13,7 +13,7 @@ import {IJBAddressRegistry} from "./interfaces/IJBAddressRegistry.sol";
13
13
  /// nonce (for `create`) or `create2` salt and deployment bytecode (for `create2`).
14
14
  contract JBAddressRegistry is IJBAddressRegistry {
15
15
  //*********************************************************************//
16
- // -------------------------------- errors --------------------------- //
16
+ // --------------------------- custom errors ------------------------- //
17
17
  //*********************************************************************//
18
18
 
19
19
  /// @notice Thrown when a nonce exceeds the maximum value supported by the RLP encoding (uint64 max).
@@ -62,7 +62,7 @@ contract JBAddressRegistry is IJBAddressRegistry {
62
62
  }
63
63
 
64
64
  //*********************************************************************//
65
- // ---------------------- internal transactions ---------------------- //
65
+ // -------------------------- internal views ------------------------- //
66
66
  //*********************************************************************//
67
67
 
68
68
  /// @notice Compute the address of a contract deployed using `create` based on the deployer's address and nonce.
@@ -102,6 +102,10 @@ contract JBAddressRegistry is IJBAddressRegistry {
102
102
  }
103
103
  }
104
104
 
105
+ //*********************************************************************//
106
+ // ------------------------ internal functions ----------------------- //
107
+ //*********************************************************************//
108
+
105
109
  /// @notice Register a contract's deployer in the `deployerOf` mapping.
106
110
  /// @param addr The deployed contract's address.
107
111
  /// @param deployer The deployer's address.
@@ -1,7 +1,12 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  pragma solidity ^0.8.0;
3
3
 
4
+ /// @notice A registry that maps deployed contract addresses to their deployers.
4
5
  interface IJBAddressRegistry {
6
+ /// @notice Emitted when a contract address is registered.
7
+ /// @param addr The address of the registered contract.
8
+ /// @param deployer The address of the contract's deployer.
9
+ /// @param caller The address that called the register function.
5
10
  event AddressRegistered(address indexed addr, address indexed deployer, address caller);
6
11
 
7
12
  /// @notice Returns the deployer of a given contract which has been registered.