@bananapus/core-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,39 +1,35 @@
1
1
  [profile.default]
2
2
  solc = '0.8.23'
3
- evm_version = 'paris' # Required for L2s (Optimism, Arbitrum, etc.)
4
- match_contract = "_Local" # Do not run fork tests
5
- sizes = true
6
- verbosity = 3 # display errors
3
+ evm_version = 'paris'
7
4
  optimizer_runs = 200
8
- block_number = 14126430
9
- block_timestamp = 1643802347
10
- runs = 4096
11
5
  libs = ["node_modules", "lib"]
12
- build_info = false
13
- extra_output = ['storageLayout']
14
6
  fs_permissions = [{ access = "read-write", path = "./"}]
7
+ match_contract = "_Local"
8
+
9
+ [profile.ci_sizes]
10
+ optimizer_runs = 200
11
+
12
+ [profile.fork]
13
+ match_contract = "_Fork"
14
+ fs_permissions = [{ access = "read", path = "./deployments/mainnet" }]
15
15
 
16
16
  [rpc_endpoints]
17
- ethereum ="${RPC_ETHEREUM_MAINNET}"
17
+ ethereum = "${RPC_ETHEREUM_MAINNET}"
18
18
  optimism = "${RPC_OPTIMISM_MAINNET}"
19
- polygon = "${RPC_POLYGON_MUMBAI}"
20
19
  arbitrum = "${RPC_ARBITRUM_MAINNET}"
21
20
  base = "${RPC_BASE_MAINNET}"
22
- arbitrum_sepolia = "${RPC_ARBITRUM_SEPOLIA}"
23
- ethereum_sepolia ="${RPC_ETHEREUM_SEPOLIA}"
21
+ ethereum_sepolia = "${RPC_ETHEREUM_SEPOLIA}"
24
22
  optimism_sepolia = "${RPC_OPTIMISM_SEPOLIA}"
25
- polygon_mumbai = "${RPC_POLYGON_MUMBAI}"
23
+ arbitrum_sepolia = "${RPC_ARBITRUM_SEPOLIA}"
26
24
  base_sepolia = "${RPC_BASE_SEPOLIA}"
27
25
 
28
- [profile.fork] # run via FOUNDRY_PROFILE=fork foundry test
29
- fs_permissions = [{ access = "read", path = "./deployments/mainnet" }] # Get the deployment addresses for forking
30
- match_contract = "_Fork"
26
+ [fuzz]
27
+ runs = 4096
31
28
 
32
29
  [invariant]
33
30
  runs = 1024
34
31
  depth = 100
35
32
  fail_on_revert = false
36
- dictionary_weight = 40
37
33
 
38
34
  [fmt]
39
35
  number_underscore = "thousands"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/core-v6",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -160,6 +160,9 @@ contract TestDeadlineFuzz_Local is JBTest {
160
160
  duration = bound(duration, 1, 365 days);
161
161
  JBDeadline d = new JBDeadline(duration);
162
162
 
163
+ // Ensure block.timestamp >= duration to avoid underflow.
164
+ vm.warp(duration + 1);
165
+
163
166
  uint48 start = uint48(block.timestamp + 1);
164
167
  uint48 queuedAt = uint48(block.timestamp - duration);
165
168