@bananapus/address-registry-v6 0.0.1 → 0.0.3
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
|
-
solc = '0.8.
|
|
3
|
-
evm_version = 'paris'
|
|
4
|
-
sizes = true
|
|
5
|
-
verbosity = 3 # display errors
|
|
2
|
+
solc = '0.8.26'
|
|
3
|
+
evm_version = 'paris'
|
|
6
4
|
optimizer_runs = 10000000
|
|
7
|
-
|
|
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
|
-
[
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
package/script/Deploy.s.sol
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.
|
|
2
|
+
pragma solidity ^0.8.26;
|
|
3
3
|
|
|
4
4
|
import "forge-std/Test.sol";
|
|
5
5
|
import "../src/JBAddressRegistry.sol";
|
|
@@ -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
|
}
|