@bananapus/core-v6 0.0.12 → 0.0.14

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.
Files changed (29) hide show
  1. package/package.json +1 -1
  2. package/test/TestPermissions.sol +1 -1
  3. package/test/helpers/TestBaseWorkflow.sol +2 -2
  4. package/test/units/static/JBChainlinkV3PriceFeed/TestPriceFeed.sol +1 -0
  5. package/test/units/static/JBController/JBControllerSetup.sol +1 -0
  6. package/test/units/static/JBDeadline/TestDeadlineFuzz.sol +1 -0
  7. package/test/units/static/JBDirectory/JBDirectorySetup.sol +1 -0
  8. package/test/units/static/JBERC20/JBERC20Setup.sol +1 -0
  9. package/test/units/static/JBFeelessAdresses/JBFeelessSetup.sol +1 -0
  10. package/test/units/static/JBFees/TestFeesFuzz.sol +1 -0
  11. package/test/units/static/JBFixedPointNumber/TestAdjustDecimals.sol +1 -0
  12. package/test/units/static/JBFixedPointNumber/TestAdjustDecimalsFuzz.sol +1 -0
  13. package/test/units/static/JBFundAccessLimits/JBFundAccessSetup.sol +1 -0
  14. package/test/units/static/JBFundAccessLimits/TestFundAccessLimitsEdge.sol +1 -0
  15. package/test/units/static/JBMetadataResolver/TestGetDataFor.sol +1 -0
  16. package/test/units/static/JBMetadataResolver/TestMetadataResolverFuzz.sol +1 -0
  17. package/test/units/static/JBMetadataResolver/TestMetadataResolverM20M21.sol +1 -0
  18. package/test/units/static/JBMultiTerminal/JBMultiTerminalSetup.sol +1 -0
  19. package/test/units/static/JBPermissions/JBPermissionsSetup.sol +1 -0
  20. package/test/units/static/JBPrices/JBPricesSetup.sol +1 -0
  21. package/test/units/static/JBProjects/JBProjectsSetup.sol +1 -0
  22. package/test/units/static/JBProjects/TestInitialProject.sol +1 -0
  23. package/test/units/static/JBRulesetMetadataResolver/TestSetCashOutTaxRateTo.sol +1 -0
  24. package/test/units/static/JBRulesets/JBRulesetsSetup.sol +1 -0
  25. package/test/units/static/JBRulesets/TestRulesets.sol +1 -0
  26. package/test/units/static/JBSplits/JBSplitsSetup.sol +1 -0
  27. package/test/units/static/JBSurplus/TestSurplusFuzz.sol +1 -0
  28. package/test/units/static/JBTerminalStore/JBTerminalStoreSetup.sol +1 -0
  29. package/test/units/static/JBTokens/JBTokensSetup.sol +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/core-v6",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -3,7 +3,7 @@ pragma solidity ^0.8.6;
3
3
 
4
4
  import /* {*} from */ "./helpers/TestBaseWorkflow.sol";
5
5
 
6
- contract TestPermissions_Local is TestBaseWorkflow, JBTest {
6
+ contract TestPermissions_Local is TestBaseWorkflow {
7
7
  IJBController private _controller;
8
8
  JBRulesetMetadata private _metadata;
9
9
  IJBTerminal private _terminal;
@@ -93,8 +93,8 @@ import {JBSplitGroupIds} from "../../src/libraries/JBSplitGroupIds.sol";
93
93
  import {IPermit2, IAllowanceTransfer} from "@uniswap/permit2/src/interfaces/IPermit2.sol";
94
94
  import {DeployPermit2} from "@uniswap/permit2/test/utils/DeployPermit2.sol";
95
95
 
96
- import {JBTest} from "./JBTest.sol";
97
96
  import {MetadataResolverHelper} from "./MetadataResolverHelper.sol";
97
+ import {JBTest} from "./JBTest.sol";
98
98
 
99
99
  import {MockERC20} from "./../mock/MockERC20.sol";
100
100
 
@@ -103,7 +103,7 @@ import {mul as UD60x18mul, wrap as UD60x18wrap, unwrap as UD60x18unwrap} from "@
103
103
 
104
104
  // Base contract for Juicebox system tests.
105
105
  // Provides common functionality, such as deploying contracts on test setup.
106
- contract TestBaseWorkflow is Test, DeployPermit2 {
106
+ contract TestBaseWorkflow is JBTest, DeployPermit2 {
107
107
  // Multisig address used for testing.
108
108
  address private _multisig = address(123);
109
109
  address private _beneficiary = address(69_420);
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBChainlinkV3PriceFeed} from "../../../../src/JBChainlinkV3PriceFeed.sol";
6
7
  import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
7
8
  import {JBFixedPointNumber} from "../../../../src/libraries/JBFixedPointNumber.sol";
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBDeadline} from "../../../../src/JBDeadline.sol";
6
7
  import {JBApprovalStatus} from "../../../../src/enums/JBApprovalStatus.sol";
7
8
  import {JBRuleset} from "../../../../src/structs/JBRuleset.sol";
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBFees} from "../../../../src/libraries/JBFees.sol";
6
7
 
7
8
  /// @notice Fuzz tests for the JBFees library.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBFixedPointNumber} from "../../../../src/libraries/JBFixedPointNumber.sol";
6
7
 
7
8
  contract TestAdjustDecimals_Local is JBTest {
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBFixedPointNumber} from "../../../../src/libraries/JBFixedPointNumber.sol";
6
7
 
7
8
  /// @notice Fuzz tests for JBFixedPointNumber.adjustDecimals.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /// @notice Edge case tests for JBFundAccessLimits append behavior and packing.
7
8
  /// The key finding is that setFundAccessLimitsFor uses .push() (append), not replace.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBMetadataResolver} from "../../../../src/libraries/JBMetadataResolver.sol";
6
7
 
7
8
  contract TestGetDataFor_Local is JBTest {
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBMetadataResolver} from "../../../../src/libraries/JBMetadataResolver.sol";
6
7
 
7
8
  /// @notice Wrapper contract to expose JBMetadataResolver internal functions for testing.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBMetadataResolver} from "../../../../src/libraries/JBMetadataResolver.sol";
6
7
 
7
8
  /// @notice Harness that exposes JBMetadataResolver internals and adds a combined operation
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  contract TestInitialProject_Local is JBTest {
7
8
  address _owner = makeAddr("owner");
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  contract TestSetCashOutTaxRateTo_Local is JBTest {
7
8
  using JBRulesetMetadataResolver for JBRulesetMetadata;
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBRulesetWeightCache} from "src/structs/JBRulesetWeightCache.sol";
6
7
 
7
8
  contract TestJBRulesetsUnits_Local is JBTest {
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
  import {JBSurplus} from "../../../../src/libraries/JBSurplus.sol";
6
7
 
7
8
  /// @notice Mock terminal that returns a fixed surplus for testing JBSurplus.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.
@@ -2,6 +2,7 @@
2
2
  pragma solidity 0.8.26;
3
3
 
4
4
  import /* {*} from */ "../../../helpers/TestBaseWorkflow.sol";
5
+ import {JBTest} from "../../../helpers/JBTest.sol";
5
6
 
6
7
  /*
7
8
  Contract that deploys a target contract with other mock contracts to satisfy the constructor.