@bananapus/address-registry-v6 0.0.1 → 0.0.2

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,27 +1,23 @@
1
1
  [profile.default]
2
2
  solc = '0.8.23'
3
- evm_version = 'paris' # Required for L2s (Optimism, Arbitrum, etc.)
4
- sizes = true
5
- verbosity = 3 # display errors
3
+ evm_version = 'paris'
6
4
  optimizer_runs = 10000000
7
- block_number = 14126430
8
- block_timestamp = 1643802347
9
- runs = 4096
10
- extra_output = ['storageLayout']
5
+ libs = ["node_modules", "lib"]
11
6
  fs_permissions = [{ access = "read-write", path = "./"}]
12
7
 
13
- [rpc_endpoints]
14
- ethereum ="${RPC_ETHEREUM_MAINNET}"
15
- optimism = "${RPC_OPTIMISM_MAINNET}"
16
- polygon = "${RPC_POLYGON_MUMBAI}"
17
- arbitrum = "${RPC_ARBITRUM_MAINNET}"
18
- base = "${RPC_BASE_MAINNET}"
19
- arbitrum_sepolia = "${RPC_ARBITRUM_SEPOLIA}"
20
- ethereum_sepolia ="${RPC_ETHEREUM_SEPOLIA}"
21
- optimism_sepolia = "${RPC_OPTIMISM_SEPOLIA}"
22
- polygon_mumbai = "${RPC_POLYGON_MUMBAI}"
23
- base_sepolia = "${RPC_BASE_SEPOLIA}"
8
+ [profile.ci_sizes]
9
+ optimizer_runs = 200
10
+
11
+ [fuzz]
12
+ runs = 4096
13
+
14
+ [invariant]
15
+ runs = 1024
16
+ depth = 100
17
+ fail_on_revert = false
24
18
 
19
+ [rpc_endpoints]
20
+ ethereum = "${RPC_ETHEREUM_MAINNET}"
25
21
 
26
22
  [fmt]
27
23
  number_underscore = "thousands"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/address-registry-v6",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,10 +13,14 @@ contract JBAddressRegistryTest_Fork is Test {
13
13
  JBAddressRegistry registry;
14
14
 
15
15
  function setUp() public {
16
+ // Skip fork tests when the RPC URL is not available (e.g. in CI).
17
+ string memory rpcUrl = vm.envOr("RPC_ETHEREUM_MAINNET", string(""));
18
+ if (bytes(rpcUrl).length == 0) {
19
+ vm.skip(true);
20
+ }
21
+
16
22
  // Start a mainnet fork.
17
- vm.createSelectFork(
18
- "https://rpc.ankr.com/eth/4bdda9badb97f42aa5cc09055318c1ae2e4d3c0a449ebdf8bf4fe6969b20772a", blockHeight
19
- );
23
+ vm.createSelectFork(vm.rpcUrl("ethereum"), blockHeight);
20
24
 
21
25
  registry = new JBAddressRegistry();
22
26
  }